/* ===== RESET Y CONFIGURACIÓN BASE ===== */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: linear-gradient(135deg, 
    var(--bg-primary) 0%, 
    var(--bg-secondary) 50%, 
    var(--primary-blue-subtle) 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--transition-normal);
}

/* ===== SISTEMA DE COLORES MODERNO ===== */
:root {
  /* Colores principales - Más suaves y profesionales para blog */
  --primary-blue: #4f46e5;
  --primary-blue-light: #6366f1;
  --primary-blue-dark: #3730a3;
  --primary-blue-subtle: rgba(79, 70, 229, 0.08);
  
  --accent-gold: #d97706;
  --accent-gold-light: #f59e0b;
  --accent-gold-dark: #b45309;
  --accent-gold-subtle: rgba(217, 119, 6, 0.08);
  
  /* Colores adicionales para blog */
  --soft-purple: #8b5cf6;
  --soft-green: #059669;
  --soft-orange: #ea580c;
  
  /* Sistema de grises sofisticado */
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  
  /* Colores semánticos */
  --success: #10b981;
  --success-light: #34d399;
  --success-subtle: rgba(16, 185, 129, 0.1);
  
  --warning: #f59e0b;
  --warning-light: #fbbf24;
  --warning-subtle: rgba(245, 158, 11, 0.1);
  
  --error: #ef4444;
  --error-light: #f87171;
  --error-subtle: rgba(239, 68, 68, 0.1);
  
  --info: #3b82f6;
  --info-light: #60a5fa;
  --info-subtle: rgba(59, 130, 246, 0.1);
  
  /* Colores de fondo */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  
  /* Colores de texto */
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  
  /* Bordes */
  --border-primary: #e5e7eb;
  --border-secondary: #d1d5db;
  --border-focus: var(--primary-blue);
  
  /* Sombras */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  
  /* Transiciones */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-bounce: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Bordes y transiciones */
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-primary);
  padding: 12px 5%;
  margin-top: 80px;
  font-size: 14px;
}

.breadcrumb-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  max-width: 1200px;
  margin: 0 auto;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  color: var(--text-muted);
}

.breadcrumb-item:not(:last-child)::after {
  content: '›';
  margin-left: 8px;
  color: var(--text-light);
  font-weight: 500;
}

.breadcrumb-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
  padding: 4px 8px;
  border-radius: 4px;
}

.breadcrumb-link:hover {
  color: var(--primary-blue);
  background: var(--primary-blue-subtle);
}

.breadcrumb-current {
  color: var(--text-primary);
  font-weight: 500;
  padding: 4px 8px;
}

/* Breadcrumb icons */
.breadcrumb-icon {
  width: 16px;
  height: 16px;
  margin-right: 4px;
  opacity: 0.7;
}

/* Responsive breadcrumbs */
@media (max-width: 768px) {
  .breadcrumbs {
    padding: 10px 20px;
    font-size: 13px;
  }
  
  .breadcrumb-list {
    gap: 6px;
  }
  
  .breadcrumb-item:not(:last-child)::after {
    margin-left: 6px;
  }
  
  .breadcrumb-link,
  .breadcrumb-current {
    padding: 3px 6px;
  }
}

@media (max-width: 480px) {
  .breadcrumbs {
    padding: 8px 15px;
    font-size: 12px;
  }
  
  .breadcrumb-list {
    gap: 4px;
  }
  
  .breadcrumb-item:not(:last-child)::after {
    margin-left: 4px;
  }
}

/* ===== NAVEGACIÓN ===== */
.nav {
  height: 80px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-primary);
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.blog-name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-blue);
}

.blog-title {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.blog-subtitle {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-600);
  margin-top: 2px;
}

.blog-name img {
  width: 40px;
  height: 40px;
  box-shadow: var(--shadow-sm);
}

.blog-name a {
  text-decoration: none;
  color: var(--primary-blue);
  font-weight: 700;
  font-size: 24px;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links ul {
  list-style: none;
  display: flex;
  gap: 8px;
}

.nav-links .nav-opcions li {
  position: relative;
}

.nav-links .nav-opcions li a {
  font-size: 16px;
  color: var(--text-primary);
  text-decoration: none;
  padding: 12px 20px;
  border-radius: var(--border-radius);
  transition: var(--transition);
  font-weight: 500;
  display: block;
  position: relative;
}

.nav-links .nav-opcions li a:hover {
  background: var(--primary-blue-subtle);
  color: var(--primary-blue);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.nav-links .nav-opcions li ul {
  position: absolute;
  top: 100%;
  right: 0;
  width: 240px;
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  display: none;
  border: 1px solid var(--border-primary);
  padding: 12px 0;
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(-10px);
  transition: all var(--transition-normal);
  z-index: 1001;
}

.nav-links .nav-opcions li ul li a {
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 0;
  text-transform: capitalize;
  transition: all var(--transition-normal);
  border-left: 3px solid transparent;
}

.nav-links .nav-opcions li ul li a:hover {
  background: var(--primary-blue-subtle);
  color: var(--primary-blue);
  transform: none;
  border-left-color: var(--primary-blue);
  padding-left: 28px;
}

.nav-links ul li:hover > ul {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

#toggle, .nav label {
  display: none;
  cursor: pointer;
}

/* ===== BARRA DE MENSAJE ===== */
.bar-message {
  margin-top: 80px;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-gold));
  color: white;
  padding: 20px 0;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.bar-message h1 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin: 0;
}

/* ===== CONTENIDO PRINCIPAL ===== */
.main-article {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  margin-top: 40px;
  margin-bottom: 40px;
}

.text-introduction h1 {
  color: var(--text-primary);
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.article-text {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 24px;
  text-align: justify;
}

/* ===== CAJAS DE ARTÍCULOS ===== */
.article-boxes {
  max-width: 1200px;
  margin: 60px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 0 20px;
}

.box {
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border-primary);
  position: relative;
}

.box:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-blue);
}

.box:active {
  transform: translateY(-4px);
  transition: transform 0.1s ease;
}

.box.loading {
  pointer-events: none;
  opacity: 0.7;
  position: relative;
}

.box.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-primary);
  border-top: 2px solid var(--primary-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  transform: translate(-50%, -50%);
  z-index: 10;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.box a {
  text-decoration: none;
  display: block;
  height: 100%;
}

.box article {
  height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  position: relative;
  transition: var(--transition);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(124, 58, 237, 0.05));
}

.box-article-image {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
  transition: var(--transition);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.box:hover .box-article-image {
  transform: scale(1.1);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
}

.boxes-title {
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.box:hover .boxes-title {
  background: var(--primary-blue);
  color: white;
}

/* ===== ESTILOS PARA ENLACES EXTERNOS ===== */
.external-link {
  position: relative;
  color: var(--primary-blue);
  text-decoration: none;
  transition: var(--transition);
}

.external-link:hover {
  color: var(--accent-gold);
}

.external-link::after {
  content: '↗';
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary-blue);
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  opacity: 0;
  transition: var(--transition);
}

.external-link:hover::after {
  opacity: 1;
}

/* Estilo específico para enlaces externos en el menú */
.nav-opcions .external-link {
  position: relative;
}

.nav-opcions .external-link::after {
  content: '↗';
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  background: var(--primary-blue);
  color: white;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
  opacity: 0;
  transition: var(--transition);
}

.nav-opcions .external-link:hover::after {
  opacity: 1;
}

/* ===== ESTILOS PARA LA PÁGINA ABOUT ===== */
.about-title-section {
  text-align: center;
  padding: 3rem 2rem 2rem;
}

.about-title-section h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

/* Presentación */
.about-intro {
  margin-bottom: 3rem;
  text-align: center;
}

.intro-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.intro-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-blue);
}

.geilys-photo {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-blue);
}

.intro-text h1 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.intro-text p {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

/* Historia */
.about-story {
  margin-bottom: 3rem;
}

.about-story h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.about-story p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* Imagen */
.about-image {
  margin-bottom: 3rem;
  text-align: center;
}

.story-image {
  width: 100%;
  max-width: 500px;
  height: 300px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
}

.about-image p {
  color: var(--text-secondary);
  font-style: italic;
}

/* Proceso */
.about-process {
  margin-bottom: 3rem;
}

.about-process h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.about-process p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* La idea */
.about-idea {
  margin-bottom: 3rem;
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--border-radius);
  border-left: 3px solid var(--accent-gold);
}

.about-idea h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.about-idea p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Visión */
.about-vision {
  margin-bottom: 3rem;
}

.about-vision h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.about-vision p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Mensaje final */
.about-message {
  margin-bottom: 3rem;
}

.about-message h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.about-message p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.signature {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-primary);
  text-align: center;
}

.signature p {
  margin-bottom: 0.5rem;
}

.signature p:last-child {
  color: var(--primary-blue);
  font-weight: 600;
}

/* Footer simplificado */
.footer {
  background: var(--bg-card);
  color: var(--text-secondary);
  padding: 2rem;
  margin-top: 4rem;
  text-align: center;
  border-top: 1px solid var(--border-primary);
}

.footer-content p {
  margin: 0;
  font-size: 0.9rem;
}

/* Copyright */
.copyright {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-primary);
}

.copyright p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  opacity: 0.8;
}

/* Responsive para about */
@media (max-width: 768px) {
  .about-title-section h1 {
    font-size: 2.5rem;
  }
  
  .about-container {
    padding: 1rem;
  }
  
  .intro-content {
    flex-direction: column;
    text-align: center;
  }
  
  .intro-image {
    width: 100px;
    height: 100px;
  }
  
  .geilys-photo {
    width: 280px;
    height: 280px;
  }
  
  .intro-text h1 {
    font-size: 1.8rem;
  }
  
  .story-image {
    height: 250px;
  }
}

@media (max-width: 480px) {
  .about-title-section h1 {
    font-size: 2rem;
  }
  
  .intro-image {
    width: 80px;
    height: 80px;
  }
  
  .geilys-photo {
    width: 220px;
    height: 220px;
  }
  
  .intro-text h1 {
    font-size: 1.5rem;
  }
  
  .about-idea {
    padding: 1.5rem;
  }
}

/* ===== ESTILOS PARA IMÁGENES DE ARTÍCULOS ===== */
.article-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
  object-fit: contain;
  border: 3px solid var(--primary-blue);
  transition: var(--transition);
  background: var(--bg-secondary);
  padding: 8px;
}

.article-icon:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.article-icon-title {
  text-align: center;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===== ARTÍCULOS - DISEÑO SIMPLE Y PERSONAL ===== */
.every-article-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 30px;
  background: transparent;
  margin-top: 40px;
  margin-bottom: 40px;
}

.article-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 35px 30px;
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-primary);
  box-shadow: var(--shadow-sm);
}

.article-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-blue-subtle), var(--accent-gold-subtle));
  padding: 14px;
  margin: 0 auto 20px;
  display: block;
}

.article-title {
  color: var(--text-primary);
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 20px 0;
  line-height: 1.3;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.article-intro {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.6;
  margin: 0;
  font-style: italic;
  max-width: 600px;
  margin: 0 auto;
}

.article-content {
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-primary);
  box-shadow: var(--shadow-sm);
  padding: 35px 30px;
}

.article-text {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 25px;
  text-align: left;
}

.tip-card {
  background: var(--bg-secondary);
  padding: 25px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-primary);
  margin-bottom: 25px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.tip-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-blue);
}

.tip-number {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-gold));
  color: white;
  font-weight: bold;
  padding: 6px 10px;
  border-radius: 50%;
  margin-right: 12px;
  font-size: 14px;
  min-width: 28px;
  text-align: center;
  vertical-align: top;
}

.tip-title {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px 0;
  display: inline-block;
  vertical-align: top;
  width: calc(100% - 50px);
}

.tip-content {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  padding-left: 40px;
}

.tip-highlight {
  background: var(--primary-blue-subtle);
  padding: 18px;
  border-radius: var(--border-radius);
  border-left: 3px solid var(--accent-gold);
  margin: 15px 0;
  font-style: italic;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.article-conclusion {
  background: linear-gradient(135deg, var(--primary-blue-subtle), var(--accent-gold-subtle));
  padding: 30px;
  border-radius: var(--border-radius);
  border: 1px solid var(--primary-blue);
  margin: 30px 0 0 0;
  text-align: center;
}

.article-conclusion .article-text {
  color: var(--text-primary);
  font-weight: 500;
  margin: 0;
  font-size: 15px;
  font-style: italic;
}

.articles-img {
  width: 100%;
  max-width: 300px;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  border-radius: var(--border-radius);
  margin: 20px auto;
  display: block;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  background: var(--bg-secondary);
  padding: 10px;
}

.articles-img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

.experiencia-in-articles {
  background: var(--primary-blue-subtle);
  padding: 20px;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--accent-gold);
  margin: 20px 0;
  font-style: italic;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.tips-in-articles {
  background: var(--bg-tertiary);
  padding: 18px;
  border-radius: var(--border-radius);
  border-left: 3px solid var(--primary-blue);
  margin: 15px 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.last-text-general {
  background: linear-gradient(135deg, var(--primary-blue-subtle), var(--accent-gold-subtle));
  padding: 20px;
  border-radius: var(--border-radius);
  border: 1px solid var(--primary-blue);
  margin: 20px 0;
  font-weight: 500;
  color: var(--text-primary);
  text-align: center;
  font-style: italic;
}

.tips-list {
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-primary);
  box-shadow: var(--shadow-sm);
  padding: 30px;
  margin: 30px 0;
}

.tips-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tips-list ul li {
  margin-bottom: 40px;
  padding: 30px;
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-primary);
  transition: var(--transition);
}

.tips-list ul li:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.tips-list .article-subtitle {
  color: var(--text-primary);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-blue-subtle);
  position: relative;
}

.tips-list .article-subtitle::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--accent-gold);
}

.tips-list .article-text {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.intro-articles {
  background: var(--bg-tertiary);
  padding: 30px;
  border-radius: var(--border-radius);
  margin-bottom: 30px;
  border-left: 4px solid var(--accent-gold);
}

.article-icon-title {
  text-align: center;
  margin-bottom: 40px;
  padding: 40px 30px;
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-primary);
  box-shadow: var(--shadow-sm);
}

/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-gold));
  color: white;
  text-align: center;
  padding: 40px 20px;
  margin-top: 80px;
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.footer h3 {
  font-weight: 500;
  font-size: 16px;
  margin-bottom: 20px;
  opacity: 0.9;
}

.social-media {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.social-media a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.social-media a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.social-media svg {
  width: 24px;
  height: 24px;
  fill: white;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .nav {
    padding: 0 20px;
  }
  
  .nav label {
    display: block;
  }
  
  .nav .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    display: none;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border-primary);
  }
  
  .nav .nav-links ul {
    flex-direction: column;
    gap: 0;
  }
  
  .nav .nav-links ul li {
    width: 100%;
  }
  
  .nav .nav-links ul li a {
    padding: 15px 20px;
    border-radius: 0;
  }
  
  .nav .nav-links ul li ul {
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
    background: var(--bg-tertiary);
  }
  
  #toggle:checked ~ .nav-links {
    display: block;
  }
  
  .blog-name {
    font-size: 20px;
  }
  
  .blog-name a {
    font-size: 20px;
  }
  
  .blog-subtitle {
    font-size: 11px;
  }
  
  .blog-name img {
    width: 32px;
    height: 32px;
  }
  
  .bar-message h1 {
    font-size: 16px;
  }
  
  .main-article,
  .every-article-content {
    margin: 20px 10px;
    padding: 40px 25px;
  }
  
  .text-introduction h1 {
    font-size: 28px;
  }
  
  .article-title {
    font-size: 28px;
  }
  
  .article-boxes {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 40px 20px;
  }
  
  .box article {
    height: 240px;
  }
  
  .box-article-image {
    width: 100px;
    height: 100px;
  }
  
  .box:hover .box-article-image {
    transform: scale(1.05);
  }
  
  .article-text {
    font-size: 16px;
  }
  
  .article-subtitle {
    font-size: 20px;
  }
  
  .tips-list ul li {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .nav {
    height: 70px;
  }
  
  .bar-message {
    margin-top: 70px;
    padding: 15px 0;
  }
  
  .bar-message h1 {
    font-size: 14px;
  }
  
  .text-introduction h1 {
    font-size: 24px;
  }
  
  .article-title {
    font-size: 24px;
  }
  
  .article-text {
    font-size: 15px;
  }
  
  .article-subtitle {
    font-size: 18px;
  }
  
  .article-icon {
    width: 90px;
    height: 90px;
  }
  
  .articles-img {
    max-width: 250px;
    height: auto;
    max-height: 180px;
  }
  
  .box-article-image {
    width: 80px;
    height: 80px;
  }
  
  .social-media {
    gap: 15px;
  }
  
  .social-media a {
    width: 45px;
    height: 45px;
  }
  
  .social-media svg {
    width: 20px;
    height: 20px;
  }
}

/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.box {
  animation: fadeInUp 0.6s ease-out;
}

.box:nth-child(2) { animation-delay: 0.1s; }
.box:nth-child(3) { animation-delay: 0.2s; }
.box:nth-child(4) { animation-delay: 0.3s; }
.box:nth-child(5) { animation-delay: 0.4s; }
.box:nth-child(6) { animation-delay: 0.5s; }
.box:nth-child(7) { animation-delay: 0.6s; }

/* ===== ESTILOS ESPECÍFICOS PARA ARTÍCULOS ===== */
.recommended {
  background: var(--bg-tertiary);
  padding: 30px;
  border-radius: var(--border-radius);
  margin: 40px 0;
  border-left: 4px solid var(--accent-gold);
}

/* ===== ESTILOS PARA EL ARTÍCULO DE AUTOGUÍA ===== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.benefit-card {
  background: var(--bg-primary);
  padding: 25px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-primary);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-blue);
}

.benefit-card h4 {
  color: var(--primary-blue);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.benefit-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.5;
}

/* ===== TARJETAS DE NIVELES ===== */
.levels-section {
  margin: 40px 0;
}

.level-card {
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  margin: 30px 0;
  overflow: hidden;
  border: 1px solid var(--border-primary);
  transition: var(--transition);
}

.level-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.level-header {
  padding: 25px 30px;
  color: white;
  font-weight: 600;
}

/* ===== COLORES ESPECÍFICOS PARA CADA NIVEL ===== */
.nivel-A1 {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.nivel-A2 {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.nivel-B1 {
  background: linear-gradient(135deg, #10b981, #059669);
}

.nivel-B2 {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.nivel-C1 {
  background: linear-gradient(135deg, #f97316, #ea580c);
}

.nivel-C2 {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.level-header h3 {
  font-size: 24px;
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.level-description {
  font-size: 16px;
  opacity: 0.95;
  font-style: italic;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.level-content {
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.level-section h4 {
  color: var(--primary-blue);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
}

.level-section ul {
  list-style: none;
  padding: 0;
}

.level-section ul li {
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 15px;
  border-bottom: 1px solid var(--border-primary);
}

.level-section ul li:last-child {
  border-bottom: none;
}

/* ===== SECCIÓN DE CONSEJOS ===== */
.tips-section {
  margin: 40px 0;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.tip-card {
  background: var(--bg-secondary);
  padding: 25px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-primary);
  transition: var(--transition);
}

.tip-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-gold);
}

.tip-card h4 {
  color: var(--primary-blue);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
}

.tip-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

/* ===== SECCIÓN DE CONCLUSIÓN ===== */
.conclusion-section {
  margin: 40px 0;
  text-align: center;
}

.motivation-box {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(124, 58, 237, 0.1));
  padding: 30px;
  border-radius: var(--border-radius);
  border: 2px solid var(--primary-blue);
  margin: 30px 0;
}

.motivation-box h3 {
  color: var(--primary-blue);
  font-size: 20px;
  margin-bottom: 15px;
}

.motivation-box p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
}

/* ===== MEJORAS PARA IMÁGENES ===== */
.image-container {
  text-align: center;
  margin: 30px 0;
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-primary);
}

.image-container img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: block;
  margin: 0 auto;
}

.image-container img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.image-caption {
  margin-top: 15px;
  font-size: 14px;
  color: var(--text-light);
  font-style: italic;
  line-height: 1.4;
}

/* ===== MEJORAS PARA IMÁGENES RESPONSIVAS ===== */
@media (max-width: 768px) {
  .image-container {
    padding: 15px;
    margin: 20px 0;
  }
  
  .image-caption {
    font-size: 13px;
  }
  
  .podcast-link {
    padding: 12px 15px;
    gap: 10px;
  }
  
  .podcast-title {
    font-size: 16px;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .level-content {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }
  
  .tips-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .level-header {
    padding: 20px;
  }
  
  .level-header h3 {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .image-container {
    padding: 10px;
    margin: 15px 0;
  }
  
  .image-caption {
    font-size: 12px;
  }
  
  .podcast-link {
    padding: 10px 12px;
    gap: 8px;
  }
  
  .podcast-title {
    font-size: 15px;
  }
  
  .podcast-icon {
    width: 20px;
    height: 20px;
  }
  
  .benefit-card {
    padding: 20px;
  }
  
  .level-card {
    margin: 20px 0;
  }
  
  .level-header {
    padding: 15px;
  }
  
  .level-header h3 {
    font-size: 18px;
  }
  
  .level-content {
    padding: 15px;
  }
  
  .tip-card {
    padding: 20px;
  }
  
  .motivation-box {
    padding: 20px;
  }
}

/* ===== MEJORAS PARA ICONOS EN NAVEGACIÓN ===== */
.blog-name img {
  width: 40px;
  height: 40px;
  box-shadow: var(--shadow-sm);
  object-fit: cover;
}

/* ===== ARTÍCULOS DESTACADOS ===== */
.featured-articles {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 40px;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.featured-card {
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border-primary);
  position: relative;
}

.featured-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-blue);
}

.featured-card a {
  text-decoration: none;
  display: block;
  height: 100%;
}

.featured-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--primary-blue-subtle), var(--accent-gold-subtle));
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-content {
  padding: 25px;
}

.featured-content h3 {
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.3;
}

.featured-content p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 15px;
}

.featured-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-gold));
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== BOTÓN VER TODOS LOS ARTÍCULOS ===== */
.view-all-articles {
  text-align: center;
  margin-top: 40px;
  padding: 30px 20px;
  background: linear-gradient(135deg, var(--primary-blue-subtle), var(--accent-gold-subtle));
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-primary);
}

.btn-view-all {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
  color: white;
  padding: 16px 32px;
  border-radius: var(--border-radius);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  border: none;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0.3px;
}

.btn-view-all:hover {
  background: linear-gradient(135deg, var(--primary-blue-dark), var(--primary-blue));
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
}

.btn-view-all:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 3px;
}

.view-all-subtitle {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 14px;
  font-style: italic;
  opacity: 0.8;
}

/* ===== PÁGINA TODOS LOS ARTÍCULOS ===== */
.all-articles-grid {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.articles-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.article-card {
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border-primary);
  height: 100%;
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-blue);
}

.article-card a {
  text-decoration: none;
  display: block;
  height: 100%;
}

.article-image {
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-blue-subtle), var(--accent-gold-subtle));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.article-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.article-content {
  padding: 25px;
}

.article-category {
  display: inline-block;
  background: var(--primary-blue-subtle);
  color: var(--primary-blue);
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
}

.article-card .article-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.3;
}

.article-excerpt {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.article-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.article-badge.popular {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
  color: white;
}

.article-badge.essential {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
  color: white;
}

.article-badge.useful {
  background: linear-gradient(135deg, var(--soft-green), #10b981);
  color: white;
}

.article-badge.personal {
  background: linear-gradient(135deg, var(--soft-purple), #a855f7);
  color: white;
}

.read-time {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}

/* Botón de regreso */
.back-to-home {
  text-align: center;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--border-primary);
}

.btn-back {
  display: inline-block;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid var(--border-primary);
}

.btn-back:hover {
  background: var(--primary-blue);
  color: white;
  border-color: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Responsive para página de artículos */
@media (max-width: 768px) {
  .articles-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .article-image {
    height: 150px;
  }
  
  .article-img {
    width: 60px;
    height: 60px;
  }
  
  .article-content {
    padding: 20px;
  }
  
  .article-card .article-title {
    font-size: 18px;
  }
}

/* ===== ARTÍCULOS RELACIONADOS ===== */
.related-articles {
  background: var(--bg-secondary);
  padding: 50px 0;
  margin-top: 40px;
  border-top: 1px solid var(--border-primary);
}

.related-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.related-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 40px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.related-card {
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-primary);
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-blue);
}

.related-card a {
  text-decoration: none;
  display: block;
}

.related-image {
  height: 120px;
  background: linear-gradient(135deg, var(--primary-blue-subtle), var(--accent-gold-subtle));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.related-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.related-content {
  padding: 20px;
}

.related-category {
  display: inline-block;
  background: var(--primary-blue-subtle);
  color: var(--primary-blue);
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 10px;
}

.related-article-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.related-excerpt {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 12px;
}

.related-read-time {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
}

.view-more-articles {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-primary);
}

.btn-view-more {
  display: inline-block;
  background: var(--primary-blue);
  color: white;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-view-more:hover {
  background: var(--primary-blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: white;
}

/* Responsive para artículos relacionados */
@media (max-width: 768px) {
  .related-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .related-image {
    height: 100px;
  }
  
  .related-img {
    width: 40px;
    height: 40px;
  }
  
  .related-content {
    padding: 15px;
  }
  
  .related-title {
    font-size: 24px;
  }
}

/* Responsive para artículos destacados */
@media (max-width: 768px) {
  .featured-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .featured-content {
    padding: 20px;
  }
  
  .featured-image {
    height: 150px;
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 20px;
  }
  
  .featured-content h3 {
    font-size: 18px;
  }
  
  .featured-content p {
    font-size: 14px;
  }
}

/* ===== ESTILOS PARA ENLACES DE PODCASTS ===== */
.podcast-link {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  padding: 15px 20px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(124, 58, 237, 0.1));
  border-radius: var(--border-radius);
  border: 1px solid var(--border-primary);
  transition: var(--transition);
}

.podcast-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-blue);
}

.podcast-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.podcast-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-blue);
  text-decoration: none;
  transition: var(--transition);
}

.podcast-title:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

.recommended h2 {
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
}

.center-text {
  text-align: center;
  color: var(--text-secondary);
  font-size: 16px;
}

.last-text-general {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(124, 58, 237, 0.05));
  padding: 30px;
  border-radius: var(--border-radius);
  margin: 40px 0;
  border: 1px solid var(--border-primary);
}

/* ===== OPTIMIZACIÓN DE IMÁGENES ===== */
img {
  max-width: 100%;
  height: auto;
  opacity: 1; /* Asegurar que todas las imágenes sean visibles por defecto */
}

img.loaded {
  opacity: 1;
}

/* Placeholder mientras carga la imagen */
img[loading="lazy"] {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-50) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

img.loaded[loading="lazy"] {
  background: none;
  animation: none;
}

/* WebP/AVIF support indicators (solo para desarrollo) */
.debug-format::after {
  content: 'Original';
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(255, 0, 0, 0.7);
  color: white;
  padding: 2px 5px;
  font-size: 10px;
  border-radius: 3px;
}

.webp-loaded::after {
  content: 'WebP';
  background: rgba(0, 150, 0, 0.7);
}

.avif-loaded::after {
  content: 'AVIF';
  background: rgba(0, 100, 200, 0.7);
}

/* ===== MEJORAS DE ACCESIBILIDAD ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  img:not(.loaded) {
    transition: none;
  }
  
  img[loading="lazy"] {
    animation: none;
  }
}

/* ===== TIEMPO DE LECTURA ===== */
.reading-time {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border-radius: var(--border-radius);
  border-left: 3px solid var(--accent-gold);
  margin: 16px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.reading-time-icon {
  font-size: 16px;
}

.reading-time-text {
  font-weight: 500;
  color: var(--text-primary);
}

.reading-time-words {
  opacity: 0.7;
  font-size: 13px;
}

/* ===== TABLA DE CONTENIDOS ===== */
.table-of-contents {
  background: var(--bg-primary);
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  margin: 30px 0;
  box-shadow: var(--shadow-sm);
}

.toc-title {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-blue-subtle);
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc-counter;
}

.toc-item {
  margin-bottom: 8px;
  counter-increment: toc-counter;
  position: relative;
}

.toc-item::before {
  content: counter(toc-counter) ". ";
  color: var(--primary-blue);
  font-weight: 600;
  margin-right: 8px;
}

.toc-level-3 {
  margin-left: 20px;
  font-size: 14px;
}

.toc-level-4 {
  margin-left: 40px;
  font-size: 13px;
}

.toc-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  line-height: 1.4;
}

.toc-link:hover {
  color: var(--primary-blue);
  background: var(--primary-blue-subtle);
  text-decoration: none;
}

/* ===== BARRA DE PROGRESO DE LECTURA ===== */
.reading-progress {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--border-primary);
  z-index: 999;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.reading-progress.visible {
  opacity: 1;
}

.reading-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-gold));
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 0 2px 2px 0;
}

/* Mostrar barra de progreso solo en artículos */
.article-container ~ * .reading-progress,
.every-article-content ~ * .reading-progress,
.main-article ~ * .reading-progress {
  opacity: 1;
}

/* ===== MEJORAS PARA HEADINGS CON ANCHORS ===== */
h2[id], h3[id], h4[id] {
  position: relative;
  scroll-margin-top: 120px; /* Espacio para nav fijo */
}

h2[id]:hover::before,
h3[id]:hover::before,
h4[id]:hover::before {
  content: '🔗';
  position: absolute;
  left: -30px;
  opacity: 0.5;
  font-size: 0.8em;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

h2[id]:hover::before:hover,
h3[id]:hover::before:hover,
h4[id]:hover::before:hover {
  opacity: 1;
}

/* ===== RESPONSIVE PARA NUEVOS COMPONENTES ===== */
@media (max-width: 768px) {
  .reading-time {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 14px;
  }
  
  .table-of-contents {
    padding: 18px;
    margin: 20px 0;
  }
  
  .toc-title {
    font-size: 16px;
  }
  
  .toc-level-3 {
    margin-left: 15px;
  }
  
  .toc-level-4 {
    margin-left: 30px;
  }
  
  .reading-progress {
    top: 70px; /* Ajustar para nav más pequeño en móvil */
  }
  
  h2[id], h3[id], h4[id] {
    scroll-margin-top: 100px;
  }
}

@media (max-width: 480px) {
  .reading-time {
    font-size: 13px;
    padding: 8px 12px;
  }
  
  .table-of-contents {
    padding: 15px;
  }
  
  .toc-title {
    font-size: 15px;
  }
  
  .toc-link {
    font-size: 13px;
    padding: 3px 6px;
  }
  
  .toc-level-3 {
    margin-left: 12px;
    font-size: 12px;
  }
  
  .toc-level-4 {
    margin-left: 24px;
    font-size: 11px;
  }
}

/* ===== FOCUS STATES ===== */
a:focus,
button:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* ===== DISEÑO DE ARTÍCULOS LIMPIO Y MINIMALISTA ===== */
.article-title-section {
  text-align: center;
  padding: 2rem 2rem 1rem;
  margin-top: 80px;
}

.article-title-section h1 {
  font-size: 2rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.4;
  max-width: 700px;
  margin: 0 auto;
}

.article-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* Introducción del artículo */
.article-intro {
  margin-bottom: 2.5rem;
  text-align: left;
}

.intro-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.intro-image {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  object-fit: contain;
  background: var(--bg-secondary);
  padding: 12px;
  flex-shrink: 0;
}

.intro-text h2 {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.intro-text p {
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
  font-size: 1rem;
  line-height: 1.5;
}

.intro-text p:last-child {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Secciones del artículo */
.article-story,
.article-benefits,
.article-recommendations,
.article-method,
.article-recommendation,
.article-experience,
.article-tools,
.article-mistakes,
.article-message {
  margin-bottom: 2rem;
}

.article-story h2,
.article-benefits h2,
.article-recommendations h2,
.article-method h2,
.article-recommendation h2,
.article-experience h2,
.article-tools h2,
.article-mistakes h2,
.article-message h2 {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
}

.article-story p,
.article-benefits p,
.article-recommendations p,
.article-method p,
.article-recommendation p,
.article-experience p,
.article-tools p,
.article-mistakes p,
.article-message p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
}

/* Método paso a paso */
.method-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.step-card {
  display: flex;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-primary);
}

.step-card:last-child {
  border-bottom: none;
}

.step-number {
  background: var(--text-primary);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.step-content p {
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.step-tips {
  background: var(--bg-secondary);
  padding: 0.8rem;
  border-radius: 4px;
  margin-top: 0.5rem;
}

.step-tips strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.step-tips ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.step-tips ul li {
  padding: 0.2rem 0;
  color: var(--text-secondary);
  position: relative;
  padding-left: 0.8rem;
  font-size: 0.85rem;
}

.step-tips ul li::before {
  content: '•';
  color: var(--text-muted);
  position: absolute;
  left: 0;
}

/* Recomendación especial */
.recommendation-content {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-primary);
  border-bottom: 1px solid var(--border-primary);
  margin: 1.5rem 0;
}

.recommendation-image {
  width: 100px;
  height: auto;
  border-radius: 4px;
  flex-shrink: 0;
}

.recommendation-text ul {
  list-style: none;
  padding: 0;
  margin-top: 0.8rem;
}

.recommendation-text ul li {
  padding: 0.3rem 0;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1rem;
  font-size: 0.9rem;
}

.recommendation-text ul li::before {
  content: '•';
  color: var(--text-muted);
  position: absolute;
  left: 0;
}

/* Herramientas */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.tool-card {
  padding: 1rem;
  border-bottom: 1px solid var(--border-primary);
}

.tool-card:last-child {
  border-bottom: none;
}

.tool-card h4 {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.tool-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* Lista de errores */
.mistakes-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.mistakes-list li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1rem;
  border-bottom: 1px solid var(--border-primary);
  font-size: 0.9rem;
}

.mistakes-list li:last-child {
  border-bottom: none;
}

.mistakes-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

/* Mensaje final con firma */
.signature {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-primary);
  text-align: left;
}

.signature p {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.signature p:last-child {
  color: var(--text-primary);
  font-weight: 500;
}

/* Responsive para artículos */
@media (max-width: 768px) {
  .article-title-section h1 {
    font-size: 1.6rem;
  }
  
  .article-container {
    padding: 1rem;
  }
  
  .intro-content {
    flex-direction: column;
    text-align: center;
  }
  
  .intro-image {
    width: 100px;
    height: 100px;
  }
  
  .intro-text h2 {
    font-size: 1.2rem;
  }
  
  .step-card {
    gap: 0.8rem;
    padding: 1rem 0;
  }
  
  .recommendation-content {
    flex-direction: column;
    text-align: center;
  }
  
  .recommendation-image {
    width: 80px;
    align-self: center;
  }
  
  .tools-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 480px) {
  .article-title-section h1 {
    font-size: 1.4rem;
  }
  
  .article-title-section {
    padding: 1.5rem 1rem 0.5rem;
  }
  
  .intro-image {
    width: 90px;
    height: 90px;
  }
  
  .intro-text h2 {
    font-size: 1.1rem;
  }
  
  .step-number {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }
}

/* ===== NAVEGACIÓN ENTRE ARTÍCULOS ===== */
.article-navigation {
  max-width: 700px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.nav-buttons {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-primary);
}

.nav-btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition-fast);
  border: 1px solid var(--border-primary);
  text-align: center;
  min-width: 140px;
}

.nav-btn.secondary {
  background: var(--bg-secondary);
  color: var(--text-secondary);
}

.nav-btn.secondary:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.nav-btn.primary {
  background: var(--text-primary);
  color: white;
}

.nav-btn.primary:hover {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
}

/* Responsive para navegación */
@media (max-width: 768px) {
  .nav-buttons {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .nav-btn {
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .article-navigation {
    padding: 0 1rem;
  }
  
  .nav-btn {
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
  }
}

/* ===== LLAMADA A LA ACCIÓN EN INTRODUCCIÓN ===== */
.introduction-cta {
  background: linear-gradient(135deg, var(--primary-blue-subtle), var(--accent-gold-subtle));
  border: 2px solid var(--primary-blue);
  border-radius: var(--border-radius-lg);
  padding: 35px 30px;
  margin-top: 40px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.introduction-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.introduction-cta h3 {
  color: var(--primary-blue);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cta-text {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 25px;
  font-style: italic;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--border-radius);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  text-align: center;
  min-width: 200px;
  position: relative;
  overflow: hidden;
}

.cta-button.primary {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
  color: white;
  border-color: var(--primary-blue-dark);
}

.cta-button.primary:hover {
  background: linear-gradient(135deg, var(--primary-blue-dark), var(--primary-blue));
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
}

.cta-button.secondary {
  background: var(--bg-primary);
  color: var(--primary-blue);
  border-color: var(--primary-blue);
}

.cta-button.secondary:hover {
  background: var(--primary-blue);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.cta-button:focus {
  outline: 3px solid var(--accent-gold);
  outline-offset: 2px;
}

/* Responsive para CTA */
@media (max-width: 768px) {
  .introduction-cta {
    padding: 25px 20px;
    margin-top: 30px;
  }
  
  .introduction-cta h3 {
    font-size: 20px;
  }
  
  .cta-text {
    font-size: 15px;
    margin-bottom: 20px;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 12px;
  }
  
  .cta-button {
    padding: 12px 24px;
    font-size: 15px;
    min-width: 180px;
  }
}

@media (max-width: 480px) {
  .introduction-cta {
    padding: 20px 15px;
  }
  
  .introduction-cta h3 {
    font-size: 18px;
  }
  
  .cta-text {
    font-size: 14px;
  }
  
  .cta-button {
    padding: 10px 20px;
    font-size: 14px;
    min-width: 160px;
  }
}

/* ===== SISTEMA DE BÚSQUEDA Y FILTRADO =====
.search-container {
  max-width: 1200px;
  margin: 40px auto 60px;
  padding: 0 20px;
}

.search-wrapper {
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-primary);
  margin-bottom: 30px;
}

.search-input-container {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.search-icon {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
  z-index: 2;
}

#search-input {
  width: 100%;
  padding: 16px 16px 16px 50px;
  border: 2px solid var(--border-primary);
  border-radius: var(--border-radius);
  font-size: 16px;
  font-family: inherit;
  background: var(--bg-secondary);
  color: var(--text-primary);
  transition: var(--transition-normal);
  outline: none;
}

#search-input:focus {
  border-color: var(--primary-blue);
  background: var(--bg-primary);
  box-shadow: 0 0 0 3px var(--primary-blue-subtle);
}

#search-input::placeholder {
  color: var(--text-muted);
}

.clear-search {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  padding: 8px;
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.clear-search:hover {
  background: var(--border-primary);
  color: var(--text-primary);
}

.search-results-count {
  color: var(--text-secondary);
  font-size: 14px;
  font-style: italic;
  padding: 8px 16px;
  background: var(--bg-tertiary);
  border-radius: var(--border-radius);
  border-left: 3px solid var(--accent-gold);
}

/* ===== FILTROS POR CATEGORÍA ===== */
.filter-container {
  background: var(--bg-secondary);
  border-radius: var(--border-radius-lg);
  padding: 25px;
  border: 1px solid var(--border-primary);
  box-shadow: var(--shadow-sm);
}

.filter-label {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-label::before {
  content: '🏷️';
  font-size: 18px;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-btn {
  padding: 10px 18px;
  border: 2px solid var(--border-primary);
  border-radius: var(--border-radius);
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-normal);
  font-family: inherit;
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  background: var(--primary-blue-subtle);
  transform: translateY(-1px);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
  color: white;
  border-color: var(--primary-blue-dark);
  box-shadow: var(--shadow-sm);
}

.filter-btn.active:hover {
  background: linear-gradient(135deg, var(--primary-blue-dark), var(--primary-blue));
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ===== RESULTADOS DE BÚSQUEDA ===== */
.no-results,
.no-results-home {
  text-align: center;
  padding: 60px 40px;
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  border: 2px dashed var(--border-primary);
  margin: 40px 0;
  grid-column: 1 / -1; /* Ocupa todo el ancho del grid */
}

.no-results-icon {
  font-size: 48px;
  margin-bottom: 20px;
  opacity: 0.6;
}

.no-results h3,
.no-results-home h3 {
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}

.no-results p,
.no-results-home p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 24px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.btn-clear-all {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
  font-family: inherit;
  box-shadow: var(--shadow-sm);
}

.btn-clear-all:hover {
  background: linear-gradient(135deg, var(--primary-blue-dark), var(--primary-blue));
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ===== ANIMACIONES PARA FILTROS ===== */
.article-card,
.featured-card {
  transition: var(--transition-normal);
}

.article-card.filtered-out,
.featured-card.filtered-out {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

/* ===== BOTÓN SCROLL TO TOP ===== */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-normal);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: linear-gradient(135deg, var(--primary-blue-dark), var(--primary-blue));
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.scroll-to-top:active {
  transform: translateY(-1px);
}

/* Icono de flecha hacia arriba */
.scroll-to-top::before {
  content: '↑';
  font-weight: bold;
  font-size: 24px;
}

/* ===== RESPONSIVE PARA BÚSQUEDA Y FILTROS ===== */
@media (max-width: 768px) {
  .search-container {
    margin: 30px auto 40px;
    padding: 0 15px;
  }
  
  .search-wrapper {
    padding: 20px;
  }
  
  .filter-container {
    padding: 20px;
  }
  
  .filter-buttons {
    gap: 8px;
  }
  
  .filter-btn {
    padding: 8px 14px;
    font-size: 13px;
  }
  
  #search-input {
    padding: 14px 14px 14px 45px;
    font-size: 15px;
  }
  
  .search-icon {
    left: 14px;
  }
  
  .clear-search {
    right: 10px;
  }
  
  .no-results,
  .no-results-home {
    padding: 40px 20px;
  }
  
  .no-results-icon {
    font-size: 36px;
  }
  
  .no-results h3,
  .no-results-home h3 {
    font-size: 20px;
  }
  
  .no-results p,
  .no-results-home p {
    font-size: 15px;
  }
  
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
  
  .scroll-to-top::before {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .search-wrapper {
    padding: 15px;
  }
  
  .filter-container {
    padding: 15px;
  }
  
  .filter-label {
    font-size: 15px;
  }
  
  .filter-buttons {
    gap: 6px;
  }
  
  .filter-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  #search-input {
    padding: 12px 12px 12px 40px;
    font-size: 14px;
  }
  
  .search-icon {
    left: 12px;
    width: 18px;
    height: 18px;
  }
  
  .search-results-count {
    font-size: 13px;
    padding: 6px 12px;
  }
  
  .scroll-to-top {
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
  }
  
  .scroll-to-top::before {
    font-size: 18px;
  }
}

/* ===== MEJORAS DE ACCESIBILIDAD PARA BÚSQUEDA ===== */
.filter-btn:focus,
#search-input:focus,
.clear-search:focus,
.btn-clear-all:focus,
.scroll-to-top:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* ===== ESTADOS DE CARGA ===== */
.search-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: var(--text-muted);
}

.search-loading::after {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-primary);
  border-top: 2px solid var(--primary-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 10px;
}

/* ===== BOOK CARDS SECTION ===== */
.books-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.book-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.book-card {
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border-primary);
  display: flex;
  flex-direction: column;
  height: 500px; /* Altura fija para ambas tarjetas */
}

.book-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-blue);
}

.book-cover {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--primary-blue-subtle), var(--accent-gold-subtle));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.book-image {
  width: 120px;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  background: var(--bg-secondary);
  padding: 8px;
}

.book-card:hover .book-image {
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

.book-info {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.book-title {
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.book-author {
  color: var(--primary-blue);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  font-style: italic;
}

.book-description {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
  max-height: 120px; /* Altura máxima para la descripción */
  overflow-y: auto; /* Scroll si el contenido es muy largo */
}

.book-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid var(--border-primary);
  margin-top: auto;
}

.chapters-count {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border-primary);
}

.difficulty {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
  color: white;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Difficulty level colors */
.difficulty.principiante {
  background: linear-gradient(135deg, var(--soft-green), #10b981);
}

.difficulty.intermedio {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
}

.difficulty.avanzado {
  background: linear-gradient(135deg, var(--error), var(--error-light));
}

/* ===== COMING SOON CARD STYLES ===== */
.coming-soon-card {
  position: relative;
}

.coming-soon-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.coming-soon-card:hover .coming-soon-overlay {
  opacity: 1;
}

.coming-soon-badge {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
  color: white;
  padding: 12px 20px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: var(--transition);
}

.coming-soon-card:hover .coming-soon-badge {
  transform: scale(1);
}

.coming-soon-badge i {
  font-size: 16px;
}

/* ===== ADMIN ACCESS STYLES ===== */
.admin-access {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--border-primary);
}

.admin-access-button {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: var(--border-radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.admin-access-button:hover {
  background: linear-gradient(135deg, var(--primary-blue-dark), var(--primary-blue));
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.admin-access-button i {
  font-size: 16px;
}

/* ===== RESPONSIVE FOR BOOK CARDS ===== */
@media (max-width: 768px) {
  .books-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .book-card {
    height: 450px; /* Altura fija también en tablet */
  }
  
  .book-cover {
    height: 180px;
    padding: 15px;
  }
  
  .book-image {
    width: 100px;
    height: 140px;
  }
  
  .book-info {
    padding: 20px;
  }
  
  .book-title {
    font-size: 18px;
  }
  
  .book-author {
    font-size: 15px;
  }
  
  .book-description {
    font-size: 14px;
    max-height: 100px; /* Altura máxima ajustada para móvil */
  }
}

@media (max-width: 480px) {
  .books-section {
    padding: 0 15px;
  }
  
  .book-card {
    height: 420px; /* Altura fija también en móvil */
  }
  
  .book-cover {
    height: 160px;
    padding: 12px;
  }
  
  .book-image {
    width: 90px;
    height: 120px;
  }
  
  .book-info {
    padding: 15px;
  }
  
  .book-title {
    font-size: 16px;
  }
  
  .book-author {
    font-size: 14px;
  }
  
  .book-description {
    font-size: 13px;
    max-height: 90px; /* Altura máxima ajustada para móvil pequeño */
  }
  
  .chapters-count,
  .difficulty {
    font-size: 11px;
    padding: 5px 10px;
  }
}

/* ===== FORZAR MODO CLARO ===== */
/* Se ha eliminado el soporte automático para modo oscuro para mantener 
   el sitio siempre en modo claro independientemente del modo del sistema */

