/* ----------------------------------------------------
   Educore - Estilos del Ecosistema Educativo
   Diseño Premium SaaS / IA - Vanilla CSS
   ---------------------------------------------------- */

/* --- Variables y Configuración del Sistema de Diseño --- */
:root {
  /* Paleta de Colores Principal */
  --bg-primary: #080b11;
  --bg-secondary: #0f1524;
  --bg-card: rgba(17, 24, 39, 0.65);
  --border-color: rgba(255, 255, 255, 0.08);
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dark: #6b7280;
  
  /* Colores de Acento y Categorías */
  --color-accent: #06b6d4;      /* Cian */
  --color-primary: #6366f1;     /* Indigo */
  --color-secondary: #8b5cf6;   /* Violeta */
  
  /* Colores por Herramienta */
  --chat-color: #3b82f6;        /* Azul */
  --cursos-color: #10b981;      /* Esmeralda */
  --trivia-color: #f59e0b;      /* Ámbar */
  --admin-color: #ec4899;       /* Rosa */
  
  /* Degradados Premium */
  --grad-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  --grad-text: linear-gradient(135deg, #ffffff 0%, #a5b4fc 50%, var(--color-accent) 100%);
  --grad-hero-glow: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(6, 182, 212, 0.05) 50%, transparent 100%);
  
  /* Fuentes */
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Sombras y Efectos */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 50px -10px rgba(0, 0, 0, 0.7);
  --shadow-glow-chat: 0 0 20px rgba(59, 130, 246, 0.15);
  --shadow-glow-cursos: 0 0 20px rgba(16, 185, 129, 0.15);
  --shadow-glow-trivia: 0 0 20px rgba(245, 158, 11, 0.15);
  --shadow-glow-admin: 0 0 20px rgba(236, 72, 153, 0.15);
  
  /* Transiciones */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reseteo Estándar y Estilos de Base --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Offset para el header fijo */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Scrollbar Personalizado */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* --- Layout y Clases de Utilidad --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.max-w-lg {
  max-width: 800px;
}

.max-w-sm {
  max-width: 500px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.text-center {
  text-align: center;
}

.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-accent {
  color: var(--color-accent);
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.hero-badge {
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
}

.subtitle {
  font-family: var(--font-title);
  color: var(--color-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.section-description {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.header-margin {
  margin-bottom: 60px;
}

.hidden {
  display: none !important;
}

/* --- Botones --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-primary {
  background: var(--grad-primary);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-arrow {
  width: 16px;
  height: 16px;
  margin-left: 8px;
  transition: transform var(--transition-fast);
}

.btn-outline:hover .btn-arrow {
  transform: translateX(4px);
}

/* --- Barra de Navegación --- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(8, 11, 17, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: padding var(--transition-normal);
  padding: 20px 0;
}

.main-header.scrolled {
  padding: 12px 0;
  background: rgba(8, 11, 17, 0.9);
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 10px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  color: var(--text-main);
}

.logo-text {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.nav-menu {
  display: block;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-main);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-main);
  margin: 5px 0;
  transition: all var(--transition-normal);
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  padding: 160px 0 100px 0;
  background-image: var(--grad-hero-glow);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: var(--font-title);
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-main);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.visual-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
}

.hero-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 15px 35px rgba(0,0,0,0.4));
}

/* --- Animaciones del SVG del Hero --- */
.pulse-line {
  stroke-dasharray: 8;
  animation: dash 25s linear infinite;
}

@keyframes dash {
  to {
    stroke-dashoffset: -1000;
  }
}

.floating-node-center {
  animation: floatCenter 6s ease-in-out infinite;
}

.floating-node-1 {
  animation: floatNode1 8s ease-in-out infinite;
}

.floating-node-2 {
  animation: floatNode2 7s ease-in-out infinite;
}

.floating-node-3 {
  animation: floatNode3 9s ease-in-out infinite;
}

.floating-node-4 {
  animation: floatNode4 7.5s ease-in-out infinite;
}

@keyframes floatCenter {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-5px) scale(1.02); }
}

@keyframes floatNode1 {
  0%, 100% { transform: translate(0px, 0px); }
  50% { transform: translate(-8px, -12px); }
}

@keyframes floatNode2 {
  0%, 100% { transform: translate(0px, 0px); }
  50% { transform: translate(12px, -8px); }
}

@keyframes floatNode3 {
  0%, 100% { transform: translate(0px, 0px); }
  50% { transform: translate(-10px, 10px); }
}

@keyframes floatNode4 {
  0%, 100% { transform: translate(0px, 0px); }
  50% { transform: translate(8px, 12px); }
}

/* Efecto hover interactivo simulado en SVG */
.hover-node {
  transition: transform var(--transition-fast), filter var(--transition-fast);
  cursor: pointer;
}

.hover-node:hover {
  filter: brightness(1.2) drop-shadow(0 0 8px currentColor);
}

.glow-sphere {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
}

.glow-sphere.s1 {
  width: 180px;
  height: 180px;
  background: rgba(99, 102, 241, 0.2);
  top: 10%;
  left: 20%;
}

.glow-sphere.s2 {
  width: 150px;
  height: 150px;
  background: rgba(6, 182, 212, 0.15);
  bottom: 15%;
  right: 15%;
}

/* --- Introducción del Ecosistema --- */
.ecosistema-intro {
  padding: 80px 0 40px 0;
}

/* --- Sección de Productos --- */
.productos-section {
  padding: 40px 0 80px 0;
}

.product-grid {
  gap: 32px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
  overflow: hidden;
}

/* Glow sutil en el fondo de las tarjetas */
.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(250px circle at var(--x, 0px) var(--y, 0px), rgba(255,255,255,0.03), transparent 80%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.product-card:hover::before {
  opacity: 1;
}

/* Personalización del hover de cada producto */
#card-chat:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: var(--shadow-glow-chat), var(--shadow-md);
  transform: translateY(-4px);
}

#card-cursos:hover {
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: var(--shadow-glow-cursos), var(--shadow-md);
  transform: translateY(-4px);
}

#card-trivia:hover {
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: var(--shadow-glow-trivia), var(--shadow-md);
  transform: translateY(-4px);
}

#card-admin:hover {
  border-color: rgba(236, 72, 153, 0.3);
  box-shadow: var(--shadow-glow-admin), var(--shadow-md);
  transform: translateY(-4px);
}

.product-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.product-icon-container {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-icon {
  width: 24px;
  height: 24px;
}

/* Colores específicos de icono */
.bg-chat {
  background: rgba(59, 130, 246, 0.12);
  color: var(--chat-color);
}
.font-chat {
  background: rgba(59, 130, 246, 0.08);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.bg-cursos {
  background: rgba(16, 185, 129, 0.12);
  color: var(--cursos-color);
}
.font-cursos {
  background: rgba(16, 185, 129, 0.08);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.bg-trivia {
  background: rgba(245, 158, 11, 0.12);
  color: var(--trivia-color);
}
.font-trivia {
  background: rgba(245, 158, 11, 0.08);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.bg-admin {
  background: rgba(236, 72, 153, 0.12);
  color: var(--admin-color);
}
.font-admin {
  background: rgba(236, 72, 153, 0.08);
  color: #f9a8d4;
  border: 1px solid rgba(236, 72, 153, 0.2);
}

.product-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
}

.product-title {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.product-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.product-features {
  list-style: none;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-features li {
  font-size: 0.9rem;
  color: var(--text-main);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.product-features li::before {
  content: '✓';
  color: var(--color-accent);
  font-weight: bold;
}

/* Modificamos los checks por producto para consistencia */
#card-chat .product-features li::before { color: var(--chat-color); }
#card-cursos .product-features li::before { color: var(--cursos-color); }
#card-trivia .product-features li::before { color: var(--trivia-color); }
#card-admin .product-features li::before { color: var(--admin-color); }

.product-footer {
  margin-top: auto;
}

/* Hover de botón dentro de tarjeta */
#card-chat:hover .btn-outline {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--chat-color);
  color: #93c5fd;
}
#card-cursos:hover .btn-outline {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--cursos-color);
  color: #6ee7b7;
}
#card-trivia:hover .btn-outline {
  background: rgba(245, 158, 11, 0.1);
  border-color: var(--trivia-color);
  color: #fcd34d;
}
#card-admin:hover .btn-outline {
  background: rgba(236, 72, 153, 0.1);
  border-color: var(--admin-color);
  color: #f9a8d4;
}

/* --- Sección de Beneficios --- */
.beneficios-section {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.beneficios-grid {
  gap: 24px;
}

.beneficio-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 32px;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.beneficio-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.15);
}

.beneficio-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(6, 182, 212, 0.1);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.beneficio-icon svg {
  width: 24px;
  height: 24px;
}

.beneficio-card h3 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.beneficio-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* --- Sección de Planes (Precios) --- */
.planes-section {
  padding: 80px 0;
}

.pricing-grid {
  gap: 24px;
  align-items: stretch;
  margin-bottom: 40px;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.price-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.12);
  box-shadow: var(--shadow-md);
}

/* Tarjeta Destacada School */
.price-card.featured {
  border: 2px solid var(--color-primary);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.08) 0%, rgba(15, 21, 36, 0.8) 100%);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.15);
  transform: scale(1.03);
}

.price-card.featured:hover {
  transform: scale(1.03) translateY(-4px);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.25);
}

.popular-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-primary);
  color: #ffffff;
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.4);
}

.price-header {
  margin-bottom: 30px;
  text-align: center;
}

.plan-name {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  display: block;
  margin-bottom: 16px;
}

.price-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: 16px;
}

.currency {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-main);
  margin-right: 4px;
}

.amount {
  font-family: var(--font-title);
  font-size: 3rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.period {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-left: 6px;
}

.plan-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.price-body {
  margin-bottom: 36px;
  flex-grow: 1;
}

.plan-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-features-list li {
  font-size: 0.9rem;
  color: var(--text-main);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.plan-features-list li::before {
  content: '✓';
  color: var(--color-accent);
  font-weight: bold;
}

.price-card.featured .plan-features-list li::before {
  color: var(--color-secondary);
}

.price-footer {
  margin-top: auto;
}

/* Leyenda de Exención de Responsabilidad */
.disclaimer-box {
  background: rgba(15, 21, 36, 0.5);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 16px 24px;
  max-width: 600px;
  margin: 0 auto;
}

.legend-disclaimer {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Preguntas Frecuentes (FAQ) --- */
.faq-section {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color var(--transition-normal);
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  color: var(--text-main);
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.faq-trigger:hover {
  color: var(--color-accent);
}

.faq-icon-arrow {
  width: 12px;
  height: 12px;
  border-right: 2px stroke var(--text-main);
  position: relative;
  transition: transform var(--transition-normal);
}

/* Arrow indicator icon inside trigger */
.faq-icon-arrow::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  top: -4px;
  right: 2px;
}

.faq-item.active .faq-icon-arrow {
  transform: rotate(-180deg);
}

.faq-item.active {
  border-color: rgba(6, 182, 212, 0.3);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out;
}

.faq-content-inner {
  padding: 0 24px 24px 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Simulación de Formulario de Contacto --- */
.contacto-section {
  padding: 80px 0;
  position: relative;
}

.contacto-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
}

.contacto-card h3 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.contacto-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-group input {
  background: rgba(8, 11, 17, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 12px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #ffffff;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
}

.success-message {
  padding: 16px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 8px;
  color: #a7f3d0;
  font-size: 0.9rem;
  text-align: center;
  animation: fadeIn var(--transition-normal);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Pie de Página --- */
.main-footer {
  background: #05070a;
  border-top: 1px solid var(--border-color);
  padding: 80px 0 40px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand-col .logo {
  margin-bottom: 20px;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 280px;
}

.footer-links-col h4 {
  font-family: var(--font-title);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 32px;
  text-align: center;
}

.footer-bottom p {
  color: var(--text-dark);
  font-size: 0.8rem;
}

/* --- Animaciones al hacer Scroll --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.reveal-active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Adaptabilidad Responsive (Mobile-First / Media Queries) --- */

@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Hacemos que el Pro IA ocupe las 2 cols en tablets */
  .pricing-grid .price-card:last-child {
    grid-column: span 2;
  }
  
  .hero-title {
    font-size: 3.2rem;
  }
}

@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-container {
    flex-direction: column-reverse;
    display: flex;
  }
  
  .hero-visual {
    margin-bottom: 20px;
  }
  
  .hero-title {
    font-size: 2.6rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .hero-stats {
    justify-content: space-between;
    gap: 10px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  /* Menú Hamburguesa Móvil */
  .menu-toggle {
    display: block;
    z-index: 1001;
  }
  
  /* Menú desplegable móvil */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: #0b0f19;
    border-left: 1px solid var(--border-color);
    padding: 100px 40px 40px 40px;
    z-index: 1000;
    transition: right var(--transition-normal);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-list {
    flex-direction: column;
    gap: 24px;
  }
  
  .nav-link {
    font-size: 1.15rem;
    display: block;
    padding: 8px 0;
  }
  
  /* Hamburger activo */
  .menu-toggle.active .hamburger-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .menu-toggle.active .hamburger-bar:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active .hamburger-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .header-actions .btn-primary {
    display: none; /* Ocultamos el botón secundario en móvil para limpiar navbar */
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-grid .price-card:last-child {
    grid-column: span 1;
  }
  
  .price-card.featured {
    transform: none;
  }
  
  .price-card.featured:hover {
    transform: translateY(-4px);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-brand-col {
    text-align: center;
  }
  
  .footer-brand-col .logo {
    justify-content: center;
  }
  
  .footer-desc {
    max-width: 100%;
  }
  
  .footer-links-col {
    text-align: center;
  }
}
