/* ============================================
   RESET Y BASE
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', system-ui, sans-serif;
  line-height: 1.6;
  color: #1e293b;
  background: #f8fafc;
}

/* ============================================
   UTILIDADES
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   TIPOGRAFÍA
   ============================================ */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  color: #0f172a;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 20px;
}

h3 {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  margin-bottom: 12px;
}

p {
  margin-bottom: 15px;
  line-height: 1.7;
}

strong {
  font-weight: 600;
  color: #0f172a;
}

/* ============================================
   BOTONES
   ============================================ */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.btn:first-child,
.btn-primary {
  background: #2563eb;
  color: white;
}

.btn-sec {
  background: white;
  color: #1e293b;
  border: 2px solid #e2e8f0;
}

.btn-sec:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.btn-link {
  display: inline-block;
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.btn-link:hover {
  color: #1e40af;
  text-decoration: underline;
}

/* ============================================
   HEADER / HERO
   ============================================ */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: white;
  padding: 130px 20px 60px;
  text-align: center;
  margin-bottom: 40px;
}

.hero-small {
  padding: 40px 20px;
}

.logo-container {
  margin-bottom: 30px;
}

.logo-container svg {
  max-width: 280px;
  border-radius: 10px;
  height: auto;
}

.hero-content h1 {
  color: white;
}

.highlight {
  color: #4c90e4;
}

.highlight-text {
  color: #fbbf24;
  font-weight: 600;
}

.subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  margin-bottom: 40px;
  opacity: 0.95;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumb {
  font-size: 0.9rem;
  margin-bottom: 30px;
  color: rgba(255,255,255,0.8);
}

.breadcrumb a {
  color: white;
  text-decoration: none;
  transition: opacity 0.2s;
}

.breadcrumb a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.breadcrumb span {
  margin: 0 8px;
}

/* ============================================
   SECCIONES
   ============================================ */
section {
  padding: 60px 20px;
}

section h2 {
  text-align: center;
  margin-bottom: 40px;
}

section > p {
  text-align: center;
  color: #64748b;
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 20px;
}

/* ============================================
   BENEFICIOS
   ============================================ */
.beneficios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.beneficio {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.beneficio:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.beneficio-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.beneficio h3 {
  color: #1e293b;
  margin-bottom: 12px;
}

.beneficio p {
  color: #64748b;
  margin-bottom: 0;
}

/* ============================================
   SECCIÓN EDUCATIVA
   ============================================ */
.educativo {
  background: white;
  border-radius: 16px;
  padding: 50px;
  max-width: 900px;
  margin: 0 auto;
  margin-bottom: 40px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.educativo p {
  font-size: 1.1rem;
  color: #475569;
  text-align: center;
}

.stats {
  display: flex;
  justify-content: space-around;
  margin-top: 40px;
  flex-wrap: wrap;
  gap: 30px;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  color: #2563eb;
  line-height: 1;
}

.stat-label {
  font-size: 1.1rem;
  color: #64748b;
  font-weight: 500;
  margin-top: 8px;
  display: block;
}

/* ============================================
   CATEGORÍAS PREVIEW (Homepage)
   ============================================ */
.categorias-preview {
  text-align: center;
}

.categorias-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.categoria-mini-card {
  background: white;
  padding: 30px 20px;
  border-radius: 12px;
  text-decoration: none;
  color: #1e293b;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.categoria-mini-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
  background: #f0f9ff;
}

.categoria-mini-icon {
  font-size: 2.5rem;
}

.categoria-mini-title {
  font-weight: 600;
  font-size: 1.1rem;
}

/* ============================================
   CATEGORÍAS GRID (Página Simuladores)
   ============================================ */
.guia-intro {
  max-width: 900px;
  margin: auto;
  margin-top: -40px;
  text-align: center;
}

.guia-intro h2 {
  margin-bottom: 20px;
}

.guia-intro p {
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.8;
}

.categorias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.categoria-card {
  background: white;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  border: 2px solid transparent;
}

.categoria-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  border-color: #3b82f6;
}

.categoria-icon {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 10px;
}

.categoria-card h3 {
  color: #0f172a;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.categoria-card p {
  color: #64748b;
  flex-grow: 1;
  margin-bottom: 10px;
  line-height: 1.7;
}

.categoria-count {
  display: inline-block;
  background: #eff6ff;
  color: #2563eb;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.categoria-card .btn {
  width: 100%;
  margin-top: auto;
}

/* ============================================
   RECURSOS EXTRA
   ============================================ */
.recursos-extra {
  background: #f8fafc;
  padding: 50px 20px;
  border-radius: 16px;
  text-align: center;
}

.recursos-extra h2 {
  margin-bottom: 15px;
}

.recursos-extra > p {
  color: #64748b;
  margin-bottom: 40px;
}

.recursos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.recurso-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}

.recurso-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.recurso-card h3 {
  color: #0f172a;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.recurso-card p {
  color: #64748b;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

/* ============================================
   BÚSQUEDA INTERNA / KEYWORDS
   ============================================ */
.busqueda-interna {
  text-align: center;
  margin: 50px 0;
}

.busqueda-interna h2 {
  margin-bottom: 15px;
}

.busqueda-interna > p {
  color: #64748b;
  margin-bottom: 30px;
}

.keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.keyword-tag {
  display: inline-block;
  background: white;
  color: #475569;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border: 2px solid #e2e8f0;
  transition: all 0.2s;
}

.keyword-tag:hover {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #2563eb;
  transform: translateY(-2px);
}

/* ============================================
   ANUNCIOS
   ============================================ */
.ad-container {
  padding: 0 20px;
  text-align: center;
}

.ad-box {
  background: #f1f5f9;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  padding: 60px 20px;
  color: #94a3b8;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ad-box-large {
  padding: 100px 20px;
}

.ad-box small {
  font-size: 0.85rem;
  font-weight: 400;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 50px 20px 30px;
  margin-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  margin-top: 15px;
  line-height: 1.7;
  color: #cbd5e1;
}

.footer-nav h4 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.footer-nav ul {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 8px;
}

.footer-nav a {
  color: #94a3b8;
  text-decoration: none;
  display: inline-block;
  transition: color 0.2s;
  font-size: 0.95rem;
}

.footer-nav a:hover {
  color: #60a5fa;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 30px;
  text-align: center;
  font-size: 0.9rem;
}

.footer-bottom p {
  margin-bottom: 10px;
}

.disclaimer {
  font-size: 0.85rem;
  color: #64748b;
}

/* ============================================
   ANIMACIONES
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .hero {
    padding: 110px 20px 40px;
  }
  
  .hero-small {
    padding: 30px 20px;
  }
  
  .educativo {
    padding: 30px 20px;
  }
  
  section {
    padding: 40px 20px;
  }
  
  .stats {
    gap: 20px;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .categorias-grid,
  .beneficios-grid,
  .recursos-grid {
    gap: 20px;
  }
  
  .categoria-card,
  .beneficio {
    padding: 25px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .footer-nav h4 {
    margin-top: 20px;
  }
}

@media (max-width: 480px) {
  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
  }
  
  .categorias-mini-grid {
    grid-template-columns: 1fr;
  }
  
  .keywords {
    flex-direction: column;
  }
  
  .keyword-tag {
    width: 100%;
  }
}

 /* NAVBAR */
    .navbar {
      background: #0f172a;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 1000;
    }
    
    .nav-container {
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0 20px;
      height: 70px;
    }
    
    .nav-logo {
      display: flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
      color: white;
      font-size: 1.3rem;
      font-weight: 700;
      z-index: 1001;
    }
    
    /* MENU DESKTOP */
    .nav-menu {
      display: flex;
      list-style: none;
      gap: 5px;
      align-items: center;
    }
    
    .nav-item {
      position: relative;
    }
    
    .nav-link {
      color: #cbd5e1;
      text-decoration: none;
      padding: 10px 16px;
      display: block;
      border-radius: 6px;
      transition: all 0.3s;
      font-weight: 500;
      font-size: 0.95rem;
    }
    
    .nav-link:hover {
      background: rgba(255,255,255,0.1);
      color: white;
    }
    
    .nav-link.active {
      background: #2563eb;
      color: white;
    }
    
    /* DROPDOWN */
    .dropdown-toggle {
      display: flex;
      align-items: center;
      gap: 5px;
      cursor: pointer;
    }
    
    .dropdown-toggle::after {
      content: "▼";
      font-size: 0.65rem;
      transition: transform 0.3s;
    }
    
    .dropdown-menu {
      position: absolute;
      top: 100%;
      left: 0;
      background: white;
      min-width: 240px;
      border-radius: 8px;
      box-shadow: 0 10px 30px rgba(0,0,0,0.15);
      opacity: 0;
      visibility: hidden;
      transform: translateY(-10px);
      transition: all 0.3s;
      margin-top: 10px;
      overflow: hidden;
    }
    
    .dropdown:hover .dropdown-menu {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }
    
    .dropdown:hover .dropdown-toggle::after {
      transform: rotate(180deg);
    }
    
    .dropdown-item {
      padding: 12px 18px;
      color: #1e293b;
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: 12px;
      transition: background 0.2s;
      font-size: 0.9rem;
      border-left: 3px solid transparent;
    }
    
    .dropdown-item:hover {
      background: #f0f9ff;
      color: #2563eb;
      border-left-color: #2563eb;
    }
    
    .dropdown-icon {
      font-size: 1.1rem;
      width: 20px;
      text-align: center;
    }
    
    .dropdown-divider {
      height: 1px;
      background: #e2e8f0;
      margin: 8px 0;
    }
    
    /* HAMBURGER BUTTON */
    .nav-toggle {
      display: none;
      flex-direction: column;
      gap: 5px;
      background: none;
      border: none;
      cursor: pointer;
      padding: 5px;
      z-index: 1001;
    }
    
    .nav-toggle span {
      width: 25px;
      height: 3px;
      background: white;
      border-radius: 3px;
      transition: all 0.3s;
    }
    
    .nav-toggle.active span:nth-child(1) {
      transform: rotate(45deg) translate(8px, 8px);
    }
    
    .nav-toggle.active span:nth-child(2) {
      opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
      transform: rotate(-45deg) translate(7px, -7px);
    }
    
    /* DEMO CONTENT */
    .demo-section {
      max-width: 1200px;
      margin: 40px auto;
      padding: 0 20px;
    }
    
    .demo-section h2 {
      color: #0f172a;
      margin-bottom: 20px;
    }
    
    .demo-section p {
      color: #64748b;
      line-height: 1.7;
      margin-bottom: 15px;
    }
    
    /* RESPONSIVE */
    @media (max-width: 768px) {
      .nav-toggle {
        display: flex;
      }
      
      .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: #0f172a;
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 8px 16px rgba(0,0,0,0.2);
      }
      
      .nav-menu.active {
        max-height: 500px;
        border-top: 1px solid rgba(255,255,255,0.1);
      }
      
      .nav-item {
        border-bottom: 1px solid rgba(255,255,255,0.05);
      }
      
      .nav-link {
        padding: 15px 20px;
        border-radius: 0;
      }
      
      /* Dropdown Mobile */
      .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin: 0;
        background: #1e293b;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
      }
      
      .dropdown.active .dropdown-menu {
        max-height: 400px;
      }
      
      .dropdown.active .dropdown-toggle::after {
        transform: rotate(180deg);
      }
      
      .dropdown-item {
        padding: 12px 20px 12px 40px;
        color: #cbd5e1;
        border-left: none;
      }
      
      .dropdown-item:hover {
        background: rgba(255,255,255,0.05);
        color: white;
      }
      
      .dropdown-toggle::after {
        margin-left: auto;
      }
    }

    /* ============================================
   PÁGINAS DE CATEGORÍAS - Agregar a global.css
   ============================================ */

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  color: #0f172a;
  margin-bottom: 15px;
  font-size: clamp(1.8rem, 4vw, 2.2rem);
}

.section-header p {
  color: #64748b;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Simuladores Grid */
.simuladores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.simulador-card {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  border: 2px solid transparent;
}

.simulador-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
  border-color: #3b82f6;
}

.simulador-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 15px;
}

.simulador-icon {
  font-size: 2rem;
}

.simulador-badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.simulador-badge.free {
  background: #dcfce7;
  color: #15803d;
}

.simulador-badge.premium {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #78350f;
}

.simulador-card h3 {
  color: #0f172a;
  font-size: 1.3rem;
  line-height: 1;
}

.simulador-card > p {
  color: #64748b;
  flex-grow: 1;
  line-height: 1.6;
}

.simulador-features {
  list-style: none;
  margin-bottom: 15px;
  padding: 3px 20px;
  background: #f8fafc;
  border-radius: 8px;
}

.simulador-features li {
  color: #475569;
  padding: 4px 0;
  font-size: 0.95rem;
  border-bottom: 1px solid #e2e8f0;
}

.simulador-features li:last-child {
  border-bottom: none;
}

.simulador-card .btn {
  width: 100%;
  text-align: center;
  margin-top: auto;
}

/* Premium Section */
.premium-section {
  margin: 80px 0;
}

.premium-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 24px;
  padding: 50px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.premium-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(37,99,235,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.premium-badge {
  display: inline-block;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #78350f;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.premium-card h2 {
  color: white;
  margin-bottom: 20px;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.premium-description {
  color: #cbd5e1;
  font-size: 1.2rem;
  margin-bottom: 40px;
  line-height: 1.7;
  max-width: 800px;
}

.premium-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.premium-feature {
  background: rgba(255,255,255,0.05);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s;
}

.premium-feature:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(59,130,246,0.3);
  transform: translateY(-3px);
}

.feature-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 15px;
}

.premium-feature h4 {
  color: white;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.premium-feature p {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.premium-cta {
  text-align: center;
  padding: 40px;
  background: rgba(255,255,255,0.05);
  border-radius: 16px;
  border: 2px solid rgba(37,99,235,0.3);
}

.premium-price {
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.price-original {
  color: #94a3b8;
  font-size: 1.3rem;
  text-decoration: line-through;
}

.price-current {
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
}

.premium-cta .btn {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  font-size: 1.1rem;
  padding: 16px 40px;
  margin-bottom: 15px;
  box-shadow: 0 10px 30px rgba(37,99,235,0.4);
}

.premium-cta .btn:hover {
  box-shadow: 0 15px 40px rgba(37,99,235,0.6);
}

.premium-note {
  color: #94a3b8;
  font-size: 0.9rem;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .simuladores-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .premium-card {
    padding: 30px 20px;
  }
  
  .premium-features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .premium-cta {
    padding: 25px 15px;
  }
  
  .price-current {
    font-size: 2rem;
  }
}