/* ============================================
   NeurofeedbackKIDS — Estilos Globales
   Sistema de diseño completo
   ============================================ */

/* === VARIABLES CSS === */
:root {
  /* Primarios — energia cerebral (paleta oficial Dra. Vizuet) */
  --color-primary: #7c3792;       /* morado marca (base) */
  --color-primary-light: #8c9ef6; /* azul pastel */
  --color-primary-glow: #F0E7FA;  /* morado muy claro */
  --color-title: #a55ac4;         /* morado claro para titulos */

  /* Secundarios — frescura (menta) */
  --color-accent: #00c3a5;        /* menta vibrante */
  --color-accent-light: #8ef4cf;  /* menta pastel */

  /* Exito / Positivo */
  --color-success: #00c3a5;
  --color-success-light: #D1FAE5;

  /* Alerta amigable (amarillos de marca) */
  --color-warning: #fcc149;       /* amarillo mostaza */
  --color-warning-light: #ffda8e; /* amarillo pastel */

  /* CTAs de alto impacto */
  --color-cta: #e53679;           /* rosa magenta */
  --color-cta-warm: #fd7931;      /* naranja */

  /* Neutros (letras mas suaves) */
  --color-dark: #787878;          /* gris de marca para titulos */
  --color-dark-soft: #5271ff;     /* azul medio */
  --color-gray: #787878;          /* gris de marca */
  --color-gray-light: #f5f5f7;
  --color-white: #ffffff;

  /* Gradientes con paleta de marca */
  --gradient-hero: linear-gradient(135deg, #7c3792 0%, #5271ff 55%, #8c9ef6 100%);
  --gradient-card: linear-gradient(145deg, #ffffff 0%, #F5F0FA 100%);
  --gradient-accent: linear-gradient(90deg, #00c3a5, #7c3792);
  --gradient-warm: linear-gradient(135deg, #fcc149, #fd7931);

  /* Tipografia */
  --font-heading: 'Fredoka One', cursive;
  --font-body: 'Nunito', sans-serif;

  /* Espaciado */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Sombras (morado de marca) */
  --shadow-sm: 0 2px 8px rgba(124, 55, 146, 0.12);
  --shadow-md: 0 8px 24px rgba(124, 55, 146, 0.18);
  --shadow-lg: 0 20px 48px rgba(124, 55, 146, 0.22);
  --shadow-glow: 0 0 40px rgba(124, 55, 146, 0.35);
}

/* === RESET === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-dark);
  background: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Focus visible para accesibilidad */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* === TIPOGRAFIA === */
h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--color-title);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
}

p {
  font-family: var(--font-body);
  line-height: 1.7;
  color: var(--color-gray);
}

/* === UTILIDADES === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.1rem;
}

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

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0.75rem 2rem;
  background: rgba(58, 58, 92, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(124, 55, 146, 0.25);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 0.5rem 2rem;
  background: rgba(58, 58, 92, 0.97);
  box-shadow: var(--shadow-md);
}

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

.navbar-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.navbar-logo img {
  height: 42px;
  width: auto;
  transition: height 0.3s ease;
}

.navbar.scrolled .navbar-logo img {
  height: 36px;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.navbar-links a {
  font-weight: 700;
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  padding: 0.25rem 0;
  white-space: nowrap;
}

.navbar-links a:hover {
  color: var(--color-accent-light);
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.navbar-links a:hover::after {
  width: 100%;
}

/* Excluir underline del boton WhatsApp */
.navbar-links a.btn-whatsapp::after {
  display: none;
}

/* Hamburguesa mobile */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.navbar-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.navbar-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.navbar-toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* === BOTONES === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.btn-primary:hover {
  background: #6a2d7d;
  transform: translateY(-3px) scale(1.03);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.2rem;
  font-size: 0.85rem !important;
  background: #25D366;
  color: var(--color-white);
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  padding-top: 5rem;
}

/* Hero con imagen de fondo */
.hero--bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(58, 58, 92, 0.88) 0%,
    rgba(82, 113, 255, 0.78) 40%,
    rgba(124, 55, 146, 0.65) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: 1.5rem;
}

.hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Blobs decorativos del hero */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  pointer-events: none;
  z-index: 1;
}

.hero-blob--1 {
  width: 400px;
  height: 400px;
  background: var(--color-accent);
  top: -100px;
  right: -100px;
}

.hero-blob--2 {
  width: 300px;
  height: 300px;
  background: var(--color-primary-light);
  bottom: -50px;
  left: 20%;
}

.hero-blob--3 {
  width: 200px;
  height: 200px;
  background: var(--color-success);
  top: 40%;
  right: 15%;
}

/* === CARDS DE CONDICION === */
.condition-card {
  background: var(--gradient-card);
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.condition-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 2px;
  background: var(--gradient-accent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

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

.condition-card .card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.condition-card .card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
}

.condition-card h3 {
  margin-bottom: 0.75rem;
}

.condition-card p {
  font-size: 0.95rem;
}

/* Grid de condiciones */
.conditions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* === CARD GENERICA === */
.card {
  background: var(--gradient-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

/* === SECCION PROBLEMA === */
.problema-section {
  background: var(--color-gray-light);
  border-radius: 0;
}

.problema-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.problema-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.problema-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.problema-item .icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

/* === SECCION SOLUCION (3 pasos) === */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  counter-reset: step;
}

.step-card {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--gradient-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all 0.3s ease;
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.step-card h3 {
  margin-bottom: 0.75rem;
}

/* === DIFERENCIADORES (POR QUE NOSOTROS) === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-item {
  text-align: center;
  padding: 2rem;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: var(--color-primary-glow);
  border-radius: var(--radius-lg);
  margin-bottom: 1.25rem;
  font-size: 2rem;
  color: var(--color-primary);
  transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}

/* === TIMELINE (PROCESO) === */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding: 1.5rem 0 2.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -3rem;
  top: 1.8rem;
  width: 16px;
  height: 16px;
  background: var(--color-accent);
  border: 3px solid var(--color-white);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transform: translateX(-50%);
}

.timeline-item h3 {
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

/* === TESTIMONIOS === */
.testimonials-carousel {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 1rem 0 2rem;
  scrollbar-width: none;
}

.testimonials-carousel::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  flex: 0 0 min(100%, 360px);
  scroll-snap-align: start;
  background: var(--gradient-card);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
}

.testimonial-card .stars {
  color: var(--color-warning);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.testimonial-card blockquote {
  font-style: italic;
  color: var(--color-dark);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.testimonial-name {
  font-weight: 800;
  color: var(--color-dark);
  font-size: 0.95rem;
}

.testimonial-role {
  font-size: 0.85rem;
  color: var(--color-gray);
}

/* === VIDEOS GRID === */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.video-thumb:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-thumb:hover img {
  transform: scale(1.05);
}

.video-thumb-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(124, 55, 146, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(124, 55, 146, 0.4);
  padding-left: 4px;
}

.video-thumb:hover .video-thumb-play {
  background: var(--color-primary);
  transform: translate(-50%, -50%) scale(1.15);
}

.video-thumb iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* === VIDEO MODAL === */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  z-index: 1;
}

.video-modal-content iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-lg);
}

.video-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.video-modal-close:hover {
  transform: scale(1.2);
}

/* === STATS / CONTADORES === */
.stats-section {
  background: var(--gradient-hero);
  color: var(--color-white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 1.5rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.85;
  font-weight: 600;
}

/* === FAQ / ACCORDION === */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--gradient-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--color-dark);
  cursor: pointer;
  text-align: left;
  background: none;
  border: none;
  gap: 1rem;
}

.faq-question .icon-toggle {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
  color: var(--color-primary);
}

.faq-item.active .faq-question .icon-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* === CTA FINAL === */
.cta-section {
  background: var(--gradient-hero);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section h2 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  margin-bottom: 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* === FOOTER === */
.footer {
  background: linear-gradient(135deg, #2d2646 0%, #1e1a35 100%);
  color: rgba(255, 255, 255, 0.9);
  padding: 4rem 0 2rem;
}

.footer p {
  color: rgba(255, 255, 255, 0.85);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer h4 {
  font-family: var(--font-heading);
  color: var(--color-white);
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s ease;
  display: block;
  padding: 0.25rem 0;
}

.footer a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.footer-social a svg {
  fill: currentColor;
}

.footer-social a:hover {
  background: var(--color-primary);
  transform: translateY(-3px);
}

/* === WHATSAPP FLOTANTE === */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all 0.3s ease;
  animation: pulse-green 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: var(--color-white);
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 40px rgba(37, 211, 102, 0.7); }
}

/* === ANIMACIONES SCROLL === */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Delay escalonado para grids */
.animate-on-scroll[data-delay="1"] { transition-delay: 0.1s; }
.animate-on-scroll[data-delay="2"] { transition-delay: 0.2s; }
.animate-on-scroll[data-delay="3"] { transition-delay: 0.3s; }
.animate-on-scroll[data-delay="4"] { transition-delay: 0.4s; }
.animate-on-scroll[data-delay="5"] { transition-delay: 0.5s; }

/* === RESPONSIVE === */

/* Desktop intermedio: navbar muy lleno (1100px) */
@media (max-width: 1200px) {
  .navbar-links {
    gap: 0.85rem;
  }
  .navbar-links a {
    font-size: 0.78rem;
  }
}

/* Tablet: activar hamburguesa antes (1024px) */
@media (max-width: 1024px) {
  .navbar-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: var(--color-dark);
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transition: right 0.4s ease;
    gap: 1.5rem;
  }
  .navbar-links.active {
    right: 0;
  }
  .navbar-links a {
    font-size: 1rem;
  }
  .navbar-toggle {
    display: flex;
  }
}

/* Tablet: 768px */
@media (max-width: 768px) {
  .navbar-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: var(--color-dark);
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transition: right 0.4s ease;
    gap: 1.5rem;
  }

  .navbar-links.active {
    right: 0;
  }

  .navbar-toggle {
    display: flex;
  }

  .hero {
    padding-top: 6rem;
    min-height: auto;
    padding-bottom: 4rem;
  }

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

  .hero-buttons {
    justify-content: center;
  }

  .problema-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .conditions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .videos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline {
    padding-left: 2.5rem;
  }

  .section {
    padding: 3.5rem 0;
  }
}

/* Mobile: 375px */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 3rem 0;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .problema-grid {
    grid-template-columns: 1fr;
  }

  .conditions-grid {
    grid-template-columns: 1fr;
  }

  .videos-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .testimonial-card {
    flex: 0 0 90%;
  }

  .whatsapp-float {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 52px;
    height: 52px;
  }
}
