/* Design Tokens (Nanook) */
:root {
  /* Categorías */
  --color-infantil: #e54275;
  --color-primaria: #7fcbae; /* uso prioritario */
  --color-secundaria: #fc2972; /* uso prioritario */
  --color-bachillerato: #ef3d50;
  --color-secundaria-gold: #f2c972;

  /* Variantes oscuras útiles */
  --color-primaria-dark: #49675c;
  --color-secundaria-dark: #6f6349; /* "dorado" más oscuro indicado */

  /* Neutros y base */
  --color-bg: #f0f0f0; /* blanco suave */
  --color-text: #151719; /* negro suavizado */
  --color-header-bg: #dadad0;
  --color-neutral: #5c5e5d; /* gris neutro */
  --color-surface: #ffffff; /* superficies (tarjetas) */
  --color-border: rgba(92, 94, 93, 0.25);
  --color-manifesto-bg: #f0f0f0;

  /* Tipografía */
  --font-base: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.6;
  --font-weight-regular: 400;
  --font-weight-bold: 800; /* titulares extra bold */

  /* Micro-interactions */
  --hover-lift-y: -2px;

  /* Line height tokens */
  --line-height-heading-tight: 1.15;
  --line-height-heading: 1.25;
  --line-height-subheading: 1.35;
  --line-height-body-regular: 1.55;
  --line-height-body-compact: 1.4;
  --line-height-caption: 1.35;

  /* Tipografía escalada */
  --font-size-display: clamp(2.6rem, 3.8vw, 3.2rem);
  --font-size-heading: clamp(2.1rem, 3vw, 2.4rem);
  --font-size-subheading: clamp(1.15rem, 1.9vw, 1.6rem);
  --font-size-subheading-lg: clamp(1.4rem, 2.2vw, 1.75rem);
  --font-size-body-lg: clamp(1.05rem, 1.35vw, 1.25rem);
  --font-size-body: var(--font-size-base);
  --font-size-caption: 0.9rem;
}

@media (max-width: 768px) {
  :root {
    --font-size-display: clamp(2rem, 6vw, 2.4rem);
    --font-size-heading: clamp(1.65rem, 4vw, 2.1rem);
    --font-size-subheading: 1.15rem;
    --font-size-subheading-lg: 1.3rem;
    --font-size-body-lg: 1rem;
    --font-size-caption: 0.85rem;
    --line-height-heading: 1.2;
    --line-height-subheading: 1.3;
    --line-height-body-regular: 1.5;
    --line-height-body-compact: 1.35;
  }
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: absolute;
  left: 32px;
  top: 12px;
  width: auto;
  height: auto;
  background: #fff;
  color: var(--color-text);
  padding: 8px 12px;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  z-index: 2000;
}

/* Utilities */
.text-muted {
  color: var(--color-neutral);
}
.text-center {
  text-align: center;
}
.text-xs {
  font-size: 0.8rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 3rem;
}
.mb-4 {
  margin-bottom: 1.5rem;
}
.mb-5 {
  margin-bottom: 3.5rem;
}
.faq-register-link {
  text-decoration: underline;
  font-weight: 600;
  color: var(--color-primaria-dark);
}
.section-title-small {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}
.mt-3 {
  margin-top: 2rem;
}
.mt-5 {
  margin-top: 3.5rem;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-base);
  font-weight: var(--font-weight-regular);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: var(--line-height-base);
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3 {
  font-family: var(--font-base);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-heading-tight);
}

/* Global link styles */
a {
  position: relative;
  text-decoration: none;
  color: inherit;
}

/* Animated underline only for text links (no buttons) */
a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.25s ease-out;
}

a:not(.btn):hover::after {
  width: 100%;
}

/* Buttons should never underline */
.btn {
  text-decoration: none;
}

/* Container */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  background: var(--color-header-bg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  padding: 0 120px;
  padding-left: 105px; /* reduce 15px on desktop */
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 104px;
  padding: 0;
  position: relative;
}

.logo {
  font-family: var(--font-base);
  font-weight: var(--font-weight-bold);
  font-size: 24px;
  color: var(--color-text);
  padding-right: 15px; /* desktop spacing to the right */
}

.logo-img {
  display: block;
  height: 54px; /* desktop logo height (slightly reduced) */
  width: auto;
  margin-top: 3px; /* nudge down by 3px */
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.mobile-menu-button {
  display: none;
}

.nav-link {
  color: var(--color-text);
  font-weight: 700;
  font-size: 18px;
  transition: color 0.3s, transform 0.3s;
}

.nav-link.active {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.nav-link:hover {
  color: var(--color-text);
  transform: translateY(var(--hover-lift-y));
}

/* Buttons */
.btn {
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: var(--font-base);
  font-weight: 600;
  font-size: 18px;
  transition: all 0.3s;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: var(--color-infantil);
  color: #000000;
  width: 190px;
  height: 45px;
  padding: 0;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background: var(--color-infantil);
  transform: translateY(var(--hover-lift-y));
}

/* Inverted text on brand green (explicit) */
.btn-invert {
  color: #000000;
}

.btn-cta {
  background: var(--color-secundaria);
  color: #ffffff;
  padding: 21.5px 45.67px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background: var(--color-bg);
  color: var(--color-text);
  border: none;
  padding: 16px 32px;
}

.btn-cta:hover,
.btn-cta-large:hover {
  background: var(--color-primaria-dark);
  transform: translateY(var(--hover-lift-y));
  color: #ffffff;
}

/* Hero CTA: same behavior as header (no color change, text black with underline) */
.hero-buttons .btn-cta-large {
  background: var(--color-primaria);
  color: #000000;
  padding: 12px 24px;
}

.hero-buttons .btn-cta-large:hover {
  background: var(--color-primaria);
  color: #000000;
  transform: translateY(var(--hover-lift-y));
}

/* Header CTA: force white text */
.navbar .btn-primary,
.navbar .btn-primary.btn-invert {
  color: #ffffff;
}

.navbar .btn-primary:hover,
.navbar .btn-primary.btn-invert:hover {
  color: #ffffff;
}

/* Hero-specific button adjustments */
.hero-buttons .btn-primary {
  width: 100%;
  height: auto;
  padding: 0;
}

.hero-buttons .btn-cta-large {
  white-space: nowrap;
  padding: 18px 44px;
}

.hero-buttons .btn-secondary {
  width: 100%;
}

.section-cta .btn-secondary {
  background: #f0f0f0;
  border: none;
  transition: transform 0.3s;
}

.section-cta .btn-secondary:hover {
  background: #f0f0f0;
  color: var(--color-text);
  transform: translateY(var(--hover-lift-y));
}

/* Hero Section - Pantalla Completa con Efecto Cristal */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 104px);
  width: 100%;
}

.hero-split {
  display: grid;
  grid-template-rows: minmax(320px, 55vh) 1fr;
}

.hero-photo-strip {
  position: relative;
  height: 100%;
  min-height: 320px;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.hero-stage-tab {
  position: absolute;
  right: 16px;
  bottom: 0px;
  z-index: 4;
  background: #f2c972;
  color: #151719;
  font-weight: 700;
  font-size: 15px;
  padding: 6px 12px;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.1);
  max-width: 260px;
  text-align: center;
}

.hero-stage-tab::after {
  display: none;
}

/* Fondo con carrusel */
.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-bg-slide.is-active {
  opacity: 1;
}

.hero-bg-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Overlay oscuro */
/* Wrapper del contenido */
.hero-content-wrapper {
  display: none;
}

/* Badge flotante */
.hero-badge-float {
  position: absolute;
  top: 10px;
  right: 16px;
  z-index: 3;
}

.hero-badge-float img {
  display: block;
  max-width: 320px;
  height: auto;
}

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

.hero-panel {
  background: #e54275;
  color: #ffffff;
  padding: 48px 32px 64px;
}

.hero-panel-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.hero-title {
  font-size: var(--font-size-display);
  line-height: var(--line-height-heading-tight);
  color: #ffffff;
  font-weight: 800;
  margin-bottom: 20px;
}

.hero-title-solid {
  text-shadow: none;
}

.hero-subtitle {
  font-size: var(--font-size-subheading);
  line-height: var(--line-height-subheading);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 18px;
  text-shadow: none;
}

.hero-subtitle-solid strong {
  color: #ffffff;
}

.hero-kicker {
  font-size: var(--font-size-caption);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 12px;
}

.hero-buttons-solid {
  margin-top: 12px;
}

.hero-solid-btn {
  background: #ffffff;
  color: #151719;
}

.hero-solid-btn:hover {
  background: #ffffff;
  color: #151719;
  transform: translateY(var(--hover-lift-y));
}

.hero-panel-cta .hero-buttons {
  justify-content: flex-start;
}

.hero-panel-cta .btn {
  width: 100%;
}

.hero-panel-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-panel-cta {
  align-self: start;
  text-align: left;
}

.hero-panel-cta .btn-cta-large {
  padding: 18px 30px;
}

.hero-panel-row {
  display: grid;
  gap: 16px;
}

.hero-dots-wrapper {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

@media (min-width: 960px) {
  .hero-panel-row {
    grid-template-columns: 2fr 1fr;
    align-items: center;
  }

  .hero-panel-cta {
    justify-self: end;
    text-align: right;
  }

  .hero-panel-cta .hero-buttons {
    justify-content: flex-end;
  }

  .hero-panel-cta .btn {
    width: auto;
    min-width: 220px;
  }
}

.hero-panel-cta .hero-kicker {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-kicker {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.hero-buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

/* Dots del carrusel en la parte inferior */
.hero-dots-wrapper {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.partner-logo {
  color: var(--color-text);
  font-size: 14px;
  background: rgba(0, 0, 0, 0.04);
  padding: 8px 16px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Video Section */
.section-video {
  background: var(--color-text);
  color: #ffffff;
}

.section-video .section-title {
  margin-bottom: 32px;
  color: #ffffff;
}

.video-grid {
  display: flex;
  justify-content: center;
}

.video-placeholder {
  position: relative;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  border: none;
  padding: 0;
  cursor: pointer;
  background: #000000;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.video-gif-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
}

.video-gif-fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #ffffff;
  background: radial-gradient(
    circle at center,
    rgba(0, 0, 0, 0.35) 0,
    rgba(0, 0, 0, 0.75) 55%
  );
}

/* Video Modal */
.video-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(21, 23, 25, 0.95); /* var(--color-text) con opacidad 95% */
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.video-modal-overlay.is-open {
  display: flex;
}

.video-modal {
  position: relative;
  width: 100%;
  max-width: 960px;
  padding: 24px;
}

.video-modal-body {
  background: #000000;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.video-modal-frame {
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  position: relative;
  background: #000;
}

.video-modal-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.video-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    circle at center,
    rgba(0, 0, 0, 0.5) 0,
    rgba(0, 0, 0, 0.85) 60%
  );
  color: #f0f0f0;
  font-size: 18px;
  font-weight: 600;
  pointer-events: none;
}

.video-modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  border: none;
  background: rgba(240, 240, 240, 0.1);
  color: #f0f0f0;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s ease;
}

.video-modal-close:hover {
  background: rgba(240, 240, 240, 0.2);
}

.photo-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 15, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2100;
  padding: 20px;
}

.photo-modal-overlay.is-open {
  display: flex;
}

.photo-modal {
  width: min(900px, 100%);
  max-width: 960px;
}

.photo-modal-body {
  background: #070a0f;
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.5);
}

.photo-modal-frame {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #050608;
  border-radius: 18px;
  padding: 12px;
}

.photo-modal-frame img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: contain;
  max-height: 70vh;
  max-width: 100%;
}

.photo-modal-caption {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Form modal (Formbricks) */
.form-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(21, 23, 25, 0.95); /* var(--color-text) con opacidad 95% */
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.form-modal-overlay.is-open {
  display: flex;
}

.form-modal {
  position: relative;
  width: 100%;
  max-width: 1040px;
  padding: 24px;
}

.form-modal-body {
  background: #f9f8f7;
  border-radius: 24px;
  overflow: hidden;
  padding: 16px;
}

.form-modal-frame {
  width: 100%;
  height: 80vh;
}

.form-modal-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.cookie-banner {
  position: fixed;
  inset: auto 0 0;
  background: #101118;
  color: #f4f5f6;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  z-index: 4000;
  box-shadow: 0 -14px 40px rgba(0, 0, 0, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cookie-banner.is-hidden {
  display: none;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.95rem;
  max-width: 640px;
}

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

.cookie-banner button {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: inherit;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.cookie-banner button:nth-of-type(1) {
  background: #f86d69;
  border-color: #f86d69;
  color: #fff;
}

.cookie-banner button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.edition-banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: #6fc2aa;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px 20px 20px;
  z-index: 50;
  font-family: 'Poppins', sans-serif;
  opacity: 0.95;
  pointer-events: auto;
  transition: opacity 0.4s ease, transform 0.5s ease;
  width: min(960px, calc(100% - 32px));
  height: auto;
  min-height: 0;
  max-height: none;
  border-radius: 0 0 24px 24px;
  margin: 0 auto;
}

.edition-banner-inner {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-transform: uppercase;
}

.edition-banner-headline {
  font-size: clamp(20px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #0b1315;
  margin: 0;
}

.edition-banner-subtitle {
  font-size: clamp(26px, 5vw, 56px);
  margin: 0;
  line-height: clamp(26px, 5vw, 56px);
  color: #0b1315;
}

.edition-banner-logo {
  width: clamp(184px, 23vw, 276px);
  margin: 0 auto;
  filter: contrast(110%);
}

.edition-banner-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: transparent;
  color: #0b1315;
  font-size: 28px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px;
}

.edition-banner--hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
}

/* Dots del carrusel actualizados */
.hero-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 0;
}

  .hero-dot {
    width: 10px;
    height: 10px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.2);
}

.hero-dot.is-active {
  width: 32px;
  background: var(--color-primaria);
  box-shadow: 0 0 10px rgba(127, 203, 174, 0.6);
}

@media (max-width: 768px) {
  .hero-dots {
    gap: 14px;
    padding: 0;
  }

  .hero-dot {
    width: 15px;
    height: 15px;
  }

  .hero-dot.is-active {
    width: 35px;
  }
}

@media (max-width: 768px) {
  .hero-stage-tab {
    max-width: none;
    white-space: nowrap;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: 0;
    padding: 3px 13px;
    font-size: 14px;
  }
}

@media (max-width: 1024px) {
  .hero-panel {
    padding: 40px 24px 48px;
  }
  .hero-photo-strip {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: auto;
    overflow: visible;
    padding-bottom: clamp(48px, 8vw, 80px);
  }

  .hero-split {
    grid-template-rows: auto auto;
  }

  .hero-photo-strip {
    width: 100%;
    margin-left: 0;
  }

  .hero-dots-wrapper {
    bottom: 44px;
  }

  .hero-panel {
    padding: 32px 20px 40px;
  }
}

/* Legal pages */
.legal-block {
  margin-bottom: 24px;
}

.legal-block h2 {
  margin-bottom: 12px;
}

.legal-block p {
  margin-bottom: 12px;
  line-height: 1.6;
}
.category-label {
  margin-top: 30px;
  margin-bottom: 6px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-neutral);
  text-align: center;
}
.category-chips {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--color-text);
  background: var(--color-surface);
}
.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.dot-infantil {
  background: var(--color-infantil);
}
.dot-primaria {
  background: var(--color-primaria);
}
.dot-secundaria {
  background: var(--color-secundaria-gold);
}
.dot-bach {
  background: var(--color-bachillerato);
}

.chip-infantil {
  background: var(--color-infantil);
  color: #f0f0f0;
}

.chip-primaria {
  background: var(--color-primaria);
}

.chip-secundaria {
  background: #f2c972;
}

.chip-bach {
  background: var(--color-bachillerato);
  color: #f0f0f0;
}

.btn-secondary-ghost {
  background: transparent;
  border: none;
  color: var(--color-text);
}

.image-placeholder {
  background: var(--color-surface);
  border-radius: 24px;
  height: 467px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  font-size: 20px;
  color: var(--color-neutral);
  font-weight: 600;
}

/* Section Styles */
.section {
  padding: 96px 0;
}

.section-tight-bottom {
  padding-bottom: 51px;
}

.section-white {
  background: var(--color-surface);
}

.section-manifesto {
  background: var(--color-manifesto-bg);
}

.section-gray {
  background: var(--color-bg);
}

.section-green {
  background: var(--color-primaria);
}

.section-gold {
  background: var(--color-secundaria-gold);
  color: var(--color-text);
}

/* Intro hero (HOME) */
.hero-intro .section-title {
  margin-bottom: 24px;
}

.hero-intro-subtitle {
  max-width: 780px;
  margin: 0 auto 40px;
}

.intro-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.intro-card {
  background: #f9f8f7;
  border-radius: 16px;
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 360px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.intro-card--auto-height {
  min-height: auto;
  height: auto;
}

.intro-card-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  margin-bottom: 16px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 12px;
}

.gallery-grid--cards {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  justify-items: center;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fdfcfb;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* Ajuste puntual: imágenes específicas ancladas arriba en ediciones */
.gallery-item img[src*="CEIP%20INFANTA%20LEONOR%20IMAGENES_8_votar.webp"],
.gallery-item img[src*="CEIP%20INFANTA%20LEONOR%20IMAGENES_1_votar.webp"] {
  object-position: top;
}

.gallery-item figcaption {
  padding: 12px 16px 16px;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--color-neutral);
}

.gallery-item:focus-visible {
  outline: 3px solid var(--color-primaria);
  outline-offset: -3px;
  box-shadow: 0 0 0 2px rgba(29, 33, 41, 0.6);
}

.gallery-item:hover {
  transform: translateY(-3px);
}

.intro-card-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 18px;
  line-height: 1.25;
}

.intro-card-text {
  font-size: 16px;
  line-height: 1.4;
  color: var(--color-neutral);
}

.intro-card-text + .intro-card-text {
  margin-top: 12px;
}

.intro-card-icon-img {
  display: block;
  max-height: 60px;
  max-width: 100px;
  width: auto;
  margin-bottom: 27px;
}

.intro-card-icon-img.votar-icon {
  max-height: 70px;
  margin-bottom: 17px;
}

.hero-intro {
  padding-top: clamp(64px, 5vw, 96px);
  margin-top: 0;
  position: relative;
  z-index: 0;
}

@media (max-width: 640px) {
  .hero {
    padding-bottom: 80px;
  }

  .hero-intro {
    padding-top: clamp(40px, 6vw, 60px);
  }
}

/* Edición 2025 dark section */
.section-impact-dark {
  background: #151719;
  color: #f0f0f0;
}

.section-impact-dark .section-title,
.section-title-left-light {
  color: #f0f0f0;
}

.section-subtitle-cyan-light {
  color: var(--color-secundaria-gold);
}

.section-impact-dark .section-text {
  color: #f0f0f0;
}

.stat-number-light {
  color: #f2c972;
}

.section-impact-dark .stat-label {
  color: #f0f0f0;
}

.two-column-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  align-items: start;
}

.editions-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

.editions-hero-text,
.editions-hero-next {
  display: grid;
  gap: 16px;
}

.editions-hero-map-wrapper {
  justify-self: center;
}

.editions-hero-map {
  width: 100%;
  max-width: 420px;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.nanook-figure {
  margin: 0 auto 16px;
  max-width: 340px;
}

.nanook-figure img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
  object-fit: cover;
}

@media (min-width: 1025px) {
  .editions-hero-grid {
    grid-template-columns: minmax(320px, 1fr) 1fr;
    grid-template-areas:
      "text map"
      "next map";
    gap: 32px 40px;
  }

  .editions-hero-text {
    grid-area: text;
  }

  .editions-hero-next {
    grid-area: next;
  }

  .editions-hero-map-wrapper {
    grid-area: map;
    justify-self: center;
  }
}

.nanook-figure figcaption {
  font-size: 14px;
  color: var(--color-neutral);
  margin-top: 8px;
}

.section-impact-dark .impact-video-caption {
  color: #f0f0f0;
}

.docu-reasons {
  max-width: 780px;
  margin: 0 auto;
  text-align: left;
}

.docu-reason-intro {
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 16px;
  color: var(--color-text);
}

.section-why-docu .section-title {
  margin-bottom: 32px;
}

.docu-reason {
  padding-left: 40px;
}

.docu-reason {
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--color-text);
}

.docu-reason-number {
  font-weight: 700;
  margin-right: 4px;
}

.docu-reason-note {
  font-size: 14px;
  line-height: 1.4;
  margin-top: 16px;
  color: var(--color-neutral);
}

.curricular-section {
  color: var(--color-text);
}

.curricular-layout {
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

.curricular-text {
  flex: 0 0 50%;
}

.curricular-section h1 {
  color: var(--color-text);
  text-align: left;
  margin-bottom: 24px;
}

.curricular-text p {
  font-size: 20px;
  line-height: 1.4;
}

.curricular-topics {
  flex: 0 0 50%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.curricular-topic {
  padding: 4px 0 12px;
}

.curricular-topic-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
  line-height: 1.25;
}

.curricular-topic-text {
  font-size: 16px;
  line-height: 1.4;
  color: var(--color-text);
}

/* FAQ page */
.faq-intro {
  max-width: 800px;
  margin: 0 auto 16px;
  text-align: center;
}

.faq-lead {
  font-size: 18px;
  line-height: 1.5;
  color: var(--color-neutral);
}

.faq-block-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 32px 0 40px;
}

.faq-nav-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: var(--color-text);
}

.faq-nav-link::after {
  display: none;
}

.faq-nav-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.faq-nav-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-neutral);
}

.faq-nav-title {
  font-size: 18px;
  font-weight: 700;
}

.faq-nav-desc {
  font-size: 14px;
  color: var(--color-neutral);
  line-height: 1.4;
}

.faq-blocks {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.faq-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 24px 24px 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.faq-block-header {
  margin-bottom: 12px;
}

.faq-block-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-neutral);
  margin-bottom: 4px;
}

.faq-block-title {
  font-size: 22px;
  line-height: 1.35;
  color: var(--color-text);
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  padding: 16px 0;
}

.faq-question-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}

.faq-number {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-primaria) 0%, #b0e5cf 100%);
  color: var(--color-text);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.faq-question {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-secundaria);
  line-height: 1.25;
  margin-bottom: 8px;
}

.faq-answer {
  font-size: 16px;
  line-height: 1.4;
  color: var(--color-neutral);
}

.cta-support {
  margin-top: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
}

@media (max-width: 720px) {
  .faq-nav-link {
    padding: 14px;
  }
  .faq-block {
    padding: 20px 16px 8px;
  }
  .faq-question-row {
    gap: 10px;
  }
  .faq-number {
    width: 32px;
    height: 32px;
  }
}

.section-title {
  font-size: var(--font-size-heading);
  line-height: var(--line-height-heading);
  color: var(--color-text);
  text-align: center;
  margin-bottom: 48px;
}

#pilares .section-title {
  margin-bottom: 36px;
}

.section-title-left {
  font-size: var(--font-size-heading);
  line-height: var(--line-height-heading);
  color: var(--color-text);
  margin-bottom: 24px;
}

.section-impact-dark .section-title-left {
  color: #f0f0f0;
}

.section-title-light {
  font-size: var(--font-size-heading);
  line-height: var(--line-height-heading);
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle-light {
  font-size: var(--font-size-subheading);
  line-height: var(--line-height-subheading);
  color: rgba(240, 240, 240, 0.85);
  text-align: center;
}

.section-title-white {
  font-size: var(--font-size-heading);
  line-height: var(--line-height-heading);
  color: white;
  text-align: center;
  margin-bottom: 48px;
}

.section-subtitle {
  font-size: var(--font-size-subheading);
  line-height: var(--line-height-subheading);
  color: var(--color-neutral);
  text-align: center;
  margin-bottom: 48px;
}

#pilares .section-subtitle {
  margin-top: 8px;
  margin-bottom: 32px;
}

.section-subtitle-cyan {
  font-size: var(--font-size-subheading-lg);
  line-height: var(--line-height-subheading);
  color: var(--color-primaria);
  font-weight: 600;
  margin-bottom: 24px;
}

.section-text {
  font-size: 20px;
  line-height: var(--line-height-body-regular);
  color: var(--color-neutral);
  margin-bottom: 32px;
}

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

.benefit-card {
  background: #f9f8f7;
  border: none;
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.intro-cards-levels .intro-card-title {
  font-size: 20px;
}

.category-infantil {
  color: var(--color-infantil);
  font-weight: 700;
}
.category-primaria {
  color: var(--color-primaria);
  font-weight: 700;
}
.category-secundaria {
  color: var(--color-bachillerato);
  font-weight: 700;
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
  font-size: 32px;
  width: 64px;
  height: 64px;
  margin: 0 auto 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
}

.benefit-icon img {
  max-width: 150px;
  max-height: 75px;
  height: auto;
  width: auto;
  display: block;
}

.benefit-icon img.benefit-icon-jury {
  max-height: 95px;
}

.benefit-title {
  font-size: 24px;
  color: var(--color-text);
  margin-bottom: 16px;
  font-weight: 600;
  line-height: 1.25;
}

.benefit-text {
  font-size: 16px;
  line-height: 1.4;
  color: var(--color-neutral);
  font-weight: 100;
}

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}

.steps-grid.steps-grid-auto {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.section-how {
  padding: 32px 0 96px;
}

.timeline-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 32px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  max-width: 840px;
  margin: 0 auto;
}

.timeline-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 12px;
}

.timeline-list li {
  font-size: 20px;
  line-height: 1.6;
  color: var(--color-text);
}

.step-card {
  text-align: center;
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.step-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
}

.step-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.step-number {
  width: 56px;
  height: 56px;
  background: linear-gradient(
    135deg,
    var(--color-primaria),
    var(--color-primaria-dark)
  );
  color: white;
  font-size: 24px;
  font-weight: 700;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.step-title {
  font-size: 24px;
  color: var(--color-text);
  margin-bottom: 16px;
  font-weight: 600;
  line-height: 1.25;
}

.step-text {
  font-size: 16px;
  line-height: 1.4;
  color: var(--color-neutral);
}

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

.topic-card {
  background: #f9f8f7;
  border-radius: 16px;
  padding: 32px;
  transition: transform 0.3s;
}

.topic-card:hover {
  transform: translateY(-4px);
}

.topic-green .topic-icon {
  background: rgba(16, 185, 129, 0.1);
}

.topic-yellow .topic-icon {
  background: rgba(255, 184, 0, 0.1);
}

.topic-title {
  font-size: 24px;
  color: var(--color-text);
  margin-bottom: 12px;
  font-weight: 600;
  line-height: 1.25;
}

.topic-text {
  font-size: 16px;
  line-height: 1.4;
  color: var(--color-neutral);
}

/* Students Lead Section */
.students-lead-container {
  display: flex;
  gap: 64px;
  align-items: center;
}

.students-lead-content {
  flex: 1;
}

.students-lead-image {
  flex: 1;
}

.students-lead-image .image-placeholder {
  height: 422px;
  background: linear-gradient(
    135deg,
    var(--color-secundaria),
    var(--color-secundaria-dark)
  );
  color: white;
}

.impact-map-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.impact-map-caption {
  margin-top: 9px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--color-neutral);
  opacity: 0.9;
  text-align: center;
}

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

.stat-card {
  text-align: left;
}

.stat-number {
  font-family: var(--font-base);
  font-size: 48px;
  font-weight: 700;
  color: var(--color-primaria);
  line-height: 48px;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 16px;
  color: var(--color-neutral);
  line-height: 1.4;
}

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

.testimonials-rows {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 920px;
  margin: 0 auto;
  align-items: center;
}

.testimonial-row-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-neutral);
  letter-spacing: 0.08em;
  text-align: center;
}

.testimonials-grid-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  justify-items: center;
  gap: 24px;
  width: 100%;
  max-width: 920px;
}

.testimonials-grid-two .testimonial-card {
  width: 100%;
  max-width: 340px;
}

.testimonial-card {
  background: #f9f8f7;
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stars {
  margin-bottom: 8px;
}

.stars img {
  display: block;
  width: 80px;
  height: auto;
}

.testimonial-text {
  font-size: 16px;
  line-height: 1.4;
  color: var(--color-text);
  font-style: italic;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  gap: 16px;
  align-items: center;
  padding-top: 8px;
}

.author-avatar {
  display: none;
}

/* Ensure testimonials layout is consistent: 3 cols desktop, 2 cols tablet, 1 col mobile */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

.author-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 24px;
}

.author-role {
  font-size: 14px;
  color: var(--color-neutral);
  line-height: 20px;
}

/* CTA Section */
.section-cta {
  background: #ef4050;
  padding: clamp(64px, 8vw, 96px) 0;
}

.cta-btn-text--mobile {
  display: none;
}

@media (max-width: 768px) {
  .section-cta {
    padding: clamp(48px, 6vw, 72px) 0;
  }

  .section-cta .cta-title {
    line-height: 1.2;
  }

  .section-cta .cta-subtitle,
  .section-cta .cta-small {
  }

  .section-cta .cta-container {
    padding: 0 clamp(16px, 4vw, 24px);
  }

  .section-cta .hero-buttons-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .section-cta .hero-buttons-cta .btn-cta-large {
    width: 100%;
    padding: 14px 20px;
  }

  .cta-btn-text--desktop {
    display: none;
  }

  .cta-btn-text--mobile {
    display: inline;
  }
}

.section-cta .cta-container {
  padding: 0 clamp(24px, 6vw, 40px);
}

.section-cta .hero-buttons-cta {
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.section-cta .hero-buttons-cta .btn-cta-large {
  min-width: 220px;
}

.cta-container {
  text-align: center;
  max-width: 1140px;
}

.cta-title {
  font-size: var(--font-size-display);
  line-height: var(--line-height-heading-tight);
  color: #f2c972;
  margin-bottom: 24px;
}

.cta-subtitle {
  font-size: var(--font-size-subheading);
  line-height: var(--line-height-subheading);
  color: #ffffff;
  margin-bottom: 16px;
}

.cta-small {
  font-size: var(--font-size-subheading);
  line-height: var(--line-height-subheading);
  color: #ffffff;
  opacity: 0.9;
  margin-bottom: 32px;
}

.cta-footer {
  font-size: 16px;
  color: #ffffff;
  opacity: 0.8;
  margin-top: 24px;
}

/* Partners Section */
.section-partners {
  background: var(--color-surface);
  color: var(--color-text);
  padding: clamp(64px, 7vw, 96px) 0;
}

.section-partners .container {
  padding: 0 clamp(16px, 4vw, 32px);
  margin: 0 auto;
  width: min(95vw, 1240px);
  max-width: 1240px;
  box-sizing: border-box;
}

.section-partners .text-muted {
  color: var(--color-text);
}

.section-title--partners {
  padding-top: 36px;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.3;
}

.hero-logos {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.section-partners .hero-logos {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(16px, 4vw, 32px);
  flex-wrap: nowrap;
  width: min(1040px, 100%);
  margin: 0 auto;
  opacity: 1;
}

.section-partners .partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: transparent;
  flex: 1 1 0;
  min-width: 160px;
  max-width: 220px;
  height: 110px;
}

.section-partners .partner-logo img {
  width: auto;
  height: auto;
  max-height: 72px;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.section-partners .partner-logo--fixed {
  min-width: 200px;
  max-width: 220px;
}

.section-partners .partner-logo--fixed img {
  max-height: 72px;
}

.section-partners .partner-logo.placeholder {
  border: 1px dashed rgba(240, 240, 240, 0.3);
}

@media (max-width: 768px) {
  .section-partners .hero-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 20px 12px;
  }

  .section-partners .partner-logo {
    flex: 0 0 calc(50% - 12px);
    max-width: calc(50% - 12px);
    min-width: 0;
    height: 90px;
    padding: 0 8px;
  }

  .section-partners .partner-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
  }

  .section-partners .partner-logo--fixed {
    min-width: 0;
    max-width: calc(50% - 12px);
  }

  .section-title--partners {
    font-size: clamp(1.15rem, 4vw, 1.35rem);
    line-height: var(--line-height-subheading);
  }
}

/* Partners heading: larger and bold */
.partners-title {
  font-size: 2rem; /* ~double of base 1rem/16px */
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

/* Footer */
.footer {
  background: var(--color-text);
  padding: clamp(48px, 6vw, 64px) 0;
  color: #cbd5e0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.footer-title {
  font-size: 24px;
  color: white;
  margin-bottom: 24px;
  font-weight: 700;
}

.footer-heading {
  font-size: 18px;
  color: white;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-text {
  font-size: 16px;
  line-height: 26px;
  color: var(--color-neutral);
}

.footer-text-small {
  font-size: 16px;
  line-height: 24px;
  color: var(--color-neutral);
  margin-bottom: 16px;
}

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

.footer-links a {
  color: var(--color-neutral);
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s;
}

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

.social-links {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
}

.social-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.social-icon:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 33px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  font-size: 14px;
  color: var(--color-neutral);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 14px;
  color: var(--color-neutral);
  text-decoration: none;
  transition: color 0.3s;
}

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

/* Responsive Design */
@media (min-width: 1025px) and (max-width: 1200px) {
  /* Center the navbar area and ease spacing */
  .navbar {
    padding: 0 80px;
  }
  .nav-links {
    gap: 24px;
  }
  .logo-img {
    height: 52px;
    margin-top: 2px;
  }
}

@media (min-width: 1015px) and (max-width: 1100px) {
  /* Shift header content slightly left for tighter widths */
  .navbar {
    padding: 0 60px;
  }
  .navbar .container {
    width: 95%;
    margin-left: 0;
    margin-right: auto;
    padding: 0;
  }
  /* Hide 'Opiniones' to prevent overlap */
  #nav-opiniones {
    display: none;
  }
  /* Nudge only the logo further left */
  .logo {
    transform: translateX(-32px);
  }
}
@media (max-width: 940px) and (min-width: 769px) {
  /* Hide one item to prevent overlap and slightly reduce font size */
  #nav-opiniones {
    display: none;
  }
  .nav-link {
    font-size: 16px;
  }
}
@media (max-width: 1400px) {
  .navbar {
    padding: 0 120px;
  }
  .section-cta {
    padding: 96px clamp(24px, 3vw, 40px);
  }

  .section-partners,
  .footer {
    padding: 80px clamp(24px, 2vw, 40px);
  }
}

@media (max-width: 1024px) {
  .navbar {
    padding: 0 60px;
  }
  /* Secondary imagotipo height on tablet */
  .logo-img {
    height: 75px;
  }
  .logo {
    padding-right: 0;
  }

  /* Hero responsive - Tablet */
  .hero {
    min-height: 600px;
    justify-content: center;
  }

  .hero-content-wrapper {
    max-width: 600px;
  }

  .hero-content-glass {
    padding: 40px;
  }

  .hero-badge-float {
    top: 10px;
    right: 16px;
    left: auto;
    padding: 0;
  }

  .hero-badge-float img {
    max-width: 270px;
  }

  .hero-buttons {
    flex-direction: column;
  }

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

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

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

  .students-lead-container {
    flex-direction: column;
  }

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

  .testimonials-grid-two {
    flex-direction: column;
    align-items: stretch;
  }

  .testimonials-grid-two .testimonial-card {
    flex: 1 1 100%;
    max-width: none;
  }

  .curricular-layout {
    flex-direction: column;
    gap: 32px;
  }

  .curricular-text,
  .curricular-topics {
    flex: 1 1 100%;
  }

  .curricular-section h1 {
    text-align: center;
  }

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

@media (max-width: 768px) {
  .navbar {
    padding: 0 32px;
  }
  /* Mobile imagotipo (secondary) smaller */
  .logo-img {
    height: 70px;
  }
  .logo {
    padding-right: 0;
  }

  .mobile-menu-button {
    display: block;
    background: none;
    border: none;
    border-radius: 0;
    font-size: 32px;
    line-height: 1;
    padding: 6px 8px;
    cursor: pointer;
    color: var(--color-text);
  }
  .nav-links {
    display: none;
    position: fixed;
    top: 91px;
    right: 0;
    left: 0;
    background: var(--color-header-bg);
    border-radius: 0 0 12px 12px;
    padding: 0 16px 16px;
    flex-direction: column;
    gap: 16px;
    z-index: 1001;
    align-items: center;
    text-align: center;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  }
  .nav-links .nav-link {
    font-weight: 600;
  }
  .navbar.nav-open .nav-links {
    display: flex;
  }
  .nav-links .btn-primary {
    padding: 0;
    margin: 0 0 12px 0;
    align-self: center;
  }

  /* Hero responsive - Mobile */
  .hero {
    height: auto;
    min-height: auto;
    justify-content: center;
    align-items: flex-start;
    overflow: visible;
    padding-bottom: clamp(48px, 8vw, 80px);
  }

  .hero-content-wrapper {
    padding: 0 24px;
    max-width: 100%;
  }

  .hero-content-glass {
    padding: 32px 24px;
    border-radius: 24px;
    max-width: 100%;
    width: 100%;
  }

  /* Prevenir overflow horizontal */
  body {
    overflow-x: hidden;
  }

  .hero-background,
  .hero-overlay {
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
  }

  .hero-title {
    line-height: var(--line-height-heading-tight);
  }

  .hero-subtitle {
    line-height: var(--line-height-subheading);
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .hero-badge-float {
    position: absolute;
    top: 10px;
    right: 16px;
    left: auto;
    transform: none;
    margin: 0;
    animation: none;
    padding: 0;
    order: -1;
  }

  .hero-badge-float img {
    max-width: 270px;
    margin: 0;
    display: block;
  }

  /* Ajustar hero en mobile para dar espacio al badge */
  .hero {
  }

  .hero-content-wrapper {
    margin-top: 0;
  }

  .hero-dots-wrapper {
    bottom: 39px;
  }

  .hero-dots {
    padding: 0;
    gap: 15px;
    background: transparent;
    border: none;
    backdrop-filter: none;
  }

  .hero-dot {
    width: 13px;
    height: 13px;
    padding: 0;
    background-clip: border-box;
  }

  .hero-dot.is-active {
    width: 33px;
  }

  /* Botones más grandes y espaciados en mobile */
  .hero-buttons .btn-cta-large {
    min-height: 52px;
    padding: 16px 32px;
    font-size: 16px;
  }

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

  .curricular-topics {
    grid-template-columns: 1fr;
  }

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

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

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
  }

  .footer {
    padding: clamp(36px, 5vw, 56px) 0;
  }
}
