/* =========================================================================
   OMBU Primary — Stylesheet
   "Organic Modular Soft Design"
   ========================================================================= */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Rebond Grotesque';
  src: url('../assets/fonts/RebondGrotesque-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Rebond Grotesque';
  src: url('../assets/fonts/RebondGrotesque-MediumItalic.otf') format('opentype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Suisse BP Neue';
  src: url('../assets/fonts/SuisseBPNeue-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Suisse BP Neue';
  src: url('../assets/fonts/SuisseBPNeue-LightItalic.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens — Pantone palette from OMBU Brand Book by Contexto ---------- */
:root {
  --white: #FFFFFF;
  --cream: #FAFAF2;          /* Pantone 9499 C tint 20% */
  --cream-deep: #F1EFE2;
  --olive: #696B57;          /* Pantone 5753 C — OMBU brand olive */
  --olive-deep: #4E5040;
  --terracotta: #D6967D;     /* Pantone 7514 C — OMBU brand salmon/terracotta */
  --salmon: #E2AB95;
  --yellow: #F2D487;         /* Pantone 7403 C — OMBU brand yellow */
  --blue: #8299C4;           /* Pantone 659 C — OMBU brand blue */
  --ink: #1A1B14;
  --ink-soft: #4A4B40;
  --ink-mute: rgba(26, 27, 20, 0.55);

  --display: 'Rebond Grotesque', Georgia, 'Times New Roman', serif;
  --body: 'Suisse BP Neue', -apple-system, 'Helvetica Neue', Arial, sans-serif;

  --radius-sm: 14px;
  --radius-md: 28px;
  --radius-lg: 999px;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 56px);

  --easing: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.55;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }
::selection { background: var(--olive); color: var(--white); }

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
}
em { font-style: italic; color: var(--terracotta); }
.muted { color: var(--ink-mute); }
.eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 1.8rem;
}
.eyebrow--olive { color: var(--olive-deep); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.95em 1.6em;
  border-radius: var(--radius-lg);
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: transform .35s var(--easing), background-color .25s ease, color .25s ease, box-shadow .25s ease, border-color .25s ease;
  will-change: transform;
}
.btn--small { padding: 0.7em 1.2em; font-size: 0.85rem; }
.btn--primary {
  background: var(--ink);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--olive-deep);
  transform: translateY(-2px);
  box-shadow: 0 18px 30px -18px rgba(31, 42, 20, 0.55);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(31, 42, 20, 0.25);
}
.btn--ghost:hover {
  background: rgba(31, 42, 20, 0.06);
  transform: translateY(-2px);
}
.btn--ghost-light {
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}
.btn--ghost-light:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.7);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--gutter);
  padding: 1.1rem var(--gutter);
  background: rgba(255, 255, 255, 0);
  transition: background-color .35s ease, backdrop-filter .35s ease, padding .35s ease, box-shadow .35s ease;
}
.site-header.is-stuck {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-block: 0.7rem;
  box-shadow: 0 1px 0 rgba(31, 42, 20, 0.06);
}
.brand { display: inline-flex; align-items: center; justify-self: start; }
.brand-img { height: 36px; width: auto; transition: opacity .3s ease; }
.brand-img--dark { display: none; }
.site-header.is-stuck .brand-img--light { display: none; }
.site-header.is-stuck .brand-img--dark  { display: block; }

.primary-nav {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: clamp(0.8rem, 1vw, 1.4rem);
  font-size: clamp(1.45rem, 1.5vw, 1.7rem);
  letter-spacing: 0.01em;
  color: var(--white);
  transition: color .35s ease;
}
/* HOME: enlace central, un poco más grande */
.nav-home { font-size: 1.15em; font-weight: 600; letter-spacing: 0.02em; }
/* Solo en pantallas REALMENTE chicas reducimos, para no desbordar (Sistema OMBU) */
@media (max-width: 1100px) {
  .primary-nav { font-size: 1.18rem; gap: 0.7rem; }
}
.site-header.is-stuck .primary-nav { color: var(--ink); }
.primary-nav a { position: relative; padding: 0.3rem 0; transition: opacity .25s ease; }
.primary-nav a:hover { opacity: .75; }

.site-header .btn--primary {
  background: rgba(255,255,255,0.95);
  color: var(--ink);
}
.site-header.is-stuck .btn--primary {
  background: var(--ink);
  color: var(--white);
}

@media (max-width: 760px) {
  .primary-nav { display: none; }
}

/* Header CTA group + Teachers Room login link */
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 12px;
}
.header-staff-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  transition: color .25s ease, background-color .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.site-header.is-stuck .header-staff-link {
  color: var(--ink);
  border-color: rgba(0,0,0,0.15);
  opacity: 0.78;
}
.header-staff-link:hover {
  color: rgba(255,255,255,1);
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.45);
}
.site-header.is-stuck .header-staff-link:hover {
  color: var(--ink);
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.30);
  opacity: 1;
}
.header-staff-link__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #6f9e57;
  opacity: 1;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(111, 158, 87, 0.6);
  animation: staffPulse 1.5s ease-in-out infinite;
}
@keyframes staffPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(111, 158, 87, 0.55); }
  50%      { opacity: 0.35; box-shadow: 0 0 0 6px rgba(111, 158, 87, 0); }
}
@media (prefers-reduced-motion: reduce) { .header-staff-link__dot { animation: none; } }
.header-staff-link__label {
  display: inline;
}
@media (max-width: 760px) {
  .header-staff-link {
    padding: 6px 10px;
    font-size: 0.74rem;
  }
}
@media (max-width: 480px) {
  .header-cta { gap: 8px; }
  .header-staff-link__label { display: none; }
  .header-staff-link {
    width: 32px; height: 32px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
  .header-staff-link__dot { width: 7px; height: 7px; }
}

/* ---------- Hero (sticky cover) ---------- */
.hero {
  position: sticky;
  top: 0;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem var(--gutter) 6rem;
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
}
.hero-media {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(31,42,20,0.45) 0%, rgba(31,42,20,0.25) 40%, rgba(31,42,20,0.65) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 940px;
  width: 100%;
  text-align: center;
}
.hero-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin: 0 0 2rem;
}
.hero-title {
  font-size: clamp(3rem, 9vw, 8.5rem);
  letter-spacing: -0.035em;
  margin-bottom: 1.8rem;
  color: var(--white);
  text-shadow: 0 2px 30px rgba(0,0,0,0.18);
}
.hero-title em { color: var(--white); display: block; }

/* Dynamic word rotator — fade + soft upward motion + sutile blur */
.hero-rotator {
  position: relative;
  display: inline-block;
  vertical-align: baseline;
  height: 1em;
  /* widest word reserves space so layout never jumps */
  min-width: 6.2ch;
  text-align: center;
}
.hero-word {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  color: #FFD68F;
  font-style: italic;
  opacity: 0;
  transform: translateY(14px);
  filter: blur(6px);
  transition:
    opacity 600ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 600ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform, filter;
  pointer-events: none;
}
.hero-word.is-active {
  opacity: 1;
  transform: none;
  filter: blur(0);
}
.hero-word.is-leaving {
  opacity: 0;
  transform: translateY(-14px);
  filter: blur(6px);
}

@media (prefers-reduced-motion: reduce) {
  .hero-word {
    transition: opacity 250ms ease;
    transform: none !important;
    filter: none !important;
  }
}
.hero-sub {
  max-width: 620px;
  margin: 0 auto 2.6rem;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: rgba(255,255,255,0.92);
  line-height: 1.55;
}
.hero-cta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* floating icons */
.float-icon {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  opacity: 0.85;
  will-change: transform;
  animation: bob 7s ease-in-out infinite;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.18));
}
.float-icon--sun {
  top: 12%; right: 10%;
  width: clamp(48px, 6vw, 78px);
  animation-duration: 6s;
}
.float-icon--cloud {
  top: 22%; left: 6%;
  width: clamp(60px, 7vw, 90px);
  animation-duration: 8s;
  animation-delay: -2s;
}
.float-icon--flower {
  bottom: 18%; right: 8%;
  width: clamp(54px, 7vw, 86px);
  animation-duration: 7.5s;
  animation-delay: -1s;
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-14px) rotate(2deg); }
}


/* ---------- LOGO STRIP (first content block — slides up over hero) ---------- */
.logo-strip {
  background: var(--white);
  padding: clamp(1.4rem, 2.4vw, 2rem) 0 clamp(0.9rem, 1.6vw, 1.4rem);
  overflow: hidden;
  position: relative;
  z-index: 2;
  margin-top: clamp(-60px, -5vw, -36px);
  margin-bottom: 0;
  border-top-left-radius: clamp(36px, 5vw, 60px);
  border-top-right-radius: clamp(36px, 5vw, 60px);
  box-shadow: 0 -22px 50px -22px rgba(0, 0, 0, 0.18);
}
/* Inner track keeps the side-fade mask without breaking the rounded outer edge */
.logo-strip .logo-track {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
/* Sections after the logo strip stack above the hero in flow */
.about, .universe, .methodology, .stats-banner, .testimonials, .founders, .partners, .faq, .site-footer {
  position: relative;
  z-index: 2;
}
.logo-track {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  animation: marquee 35s linear infinite;
  width: max-content;
  padding: 0 2rem;
}
.logo-track img {
  height: clamp(38px, 4.5vw, 60px);
  width: auto;
  flex-shrink: 0;
  transition: transform .4s var(--easing);
}
.logo-track img:hover { transform: scale(1.1); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Section spacing token (compact, harmonised) ---------- */
.about, .universe, .methodology, .testimonials, .founders, .partners, .stats-banner, .faq {
  --section-py: clamp(3.5rem, 7vw, 6rem);
}

/* ---------- ABOUT — the story so far ---------- */
.about {
  background: var(--white);
  padding: clamp(1.5rem, 3vw, 3rem) var(--gutter) var(--section-py);
}
.about-inner {
  max-width: var(--container);
  margin: 0 auto;
}
.about-title {
  font-size: clamp(2.2rem, 6vw, 5rem);
  margin-bottom: 2.2rem;
  max-width: 18ch;
}
.about-intro {
  max-width: 64ch;
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  color: var(--ink-soft);
  line-height: 1.65;
  margin: 0 0 3rem;
}

/* ===== Image-first reveal cards (Paul Manilla style) =====
   - background image always visible
   - dark overlay always present for legibility
   - on hover: overlay deepens with brand colour + description slides up
*/
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1rem, 1.6vw, 1.6rem);
  max-width: var(--container);
  margin: 0 auto;
}
.card {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
  cursor: default;
  color: var(--white);
  transition: transform .55s var(--easing), box-shadow .55s var(--easing);
}
.card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 36px 60px -28px rgba(31, 42, 20, 0.55);
}

/* Background image — ALWAYS visible, gently zooms on hover */
.card-bg {
  position: absolute; inset: 0;
  z-index: 0;
  background-image: var(--bg-img);
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: transform 1.4s var(--easing);
}
.card:hover .card-bg { transform: scale(1.08); }

/* Always-on dark scrim (legibility) + accent overlay that intensifies on hover */
.card-overlay {
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.04) 0%, rgba(0,0,0,0.28) 55%, rgba(0,0,0,0.66) 100%);
  opacity: 1;
  transition: opacity .55s var(--easing);
}
.card:hover .card-overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0.36) 55%, rgba(0,0,0,0.74) 100%);
}

.card-content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
}
.card-num {
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
}
.card-icon {
  width: clamp(48px, 5vw, 64px);
  height: clamp(48px, 5vw, 64px);
  object-fit: contain;
  margin: 0;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.4)) brightness(1.05);
  transition: transform .55s var(--easing);
}
.card:hover .card-icon { transform: rotate(-6deg) scale(1.08); }

.card-title {
  font-size: clamp(1.15rem, 1.5vw, 1.45rem);
  margin: 0;
  letter-spacing: -0.015em;
  line-height: 1.2;
  max-width: 14ch;
  color: var(--white);
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
}
.card-desc {
  margin: auto 0 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.55;
  /* Slide up + fade in on hover */
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .45s var(--easing) .1s, transform .55s var(--easing) .1s;
  max-height: 50%;
  overflow: hidden;
}

/* Hover state — desktop */
@media (hover: hover) and (pointer: fine) {
  .card:hover .card-desc { opacity: 1; transform: none; }
}

/* Touch / no-hover — show description always */
@media (hover: none) {
  .card-desc { opacity: 1; transform: none; }
}

/* Accent line at top of card (always visible) — only for image-overlay cards */
.card:not(.card--flip)::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent, var(--olive));
  z-index: 3;
}

/* ======================================================================
   SOL-CARDS — expandable horizontal row (Paul Manilla pattern, exact spec)
   Pure CSS hover, no JS state. Padre :hover afecta hijos.
   ====================================================================== */
.sol-cards {
  display: flex;
  align-items: stretch;
  gap: 8px;
  height: 540px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  list-style: none;
}
.sol-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  flex: 1 1 0;
  min-width: 64px;
  transition: flex 600ms cubic-bezier(0.4, 0, 0.2, 1);
  isolation: isolate;
}
.sol-cards:hover .sol-card { flex: 0.65 1 0; }
.sol-cards:hover .sol-card:hover { flex: 2.8 1 0; }

/* Background image — set via JS from data-bg */
.sol-bg {
  position: absolute; inset: 0;
  z-index: 0;
  background-color: var(--ink);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark overlay (collapsed gradient — fades on expand) — exact spec */
.sol-overlay {
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(to top,
    rgba(8, 10, 18, 0.88) 0%,
    rgba(8, 10, 18, 0.45) 50%,
    rgba(8, 10, 18, 0.08) 100%);
  transition: opacity 500ms ease;
}
.sol-cards:hover .sol-card:hover .sol-overlay { opacity: 0; }

/* Accent line — appears only on hover */
.sol-accent-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent, var(--olive));
  z-index: 5;
  opacity: 0;
  transition: opacity 250ms ease 100ms;
}
.sol-cards:hover .sol-card:hover .sol-accent-line { opacity: 1; }

/* === Collapsed view === */
.sol-collapsed {
  position: absolute; inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 0 1rem 1.25rem;
  opacity: 1;
  transition: opacity 200ms ease;
}
.sol-cards:hover .sol-card:hover .sol-collapsed {
  opacity: 0;
  pointer-events: none;
}
.sol-num {
  position: absolute;
  top: 1rem;
  font-family: var(--body);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.55);
}
.sol-vertical {
  writing-mode: horizontal-tb;
  white-space: normal;
  text-align: center;
  font-family: var(--body);
  font-size: clamp(15px, 1.15vw, 19px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  margin: 0;
}
.sol-icon-square {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--accent, var(--olive)) 21%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, var(--olive)) 40%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.sol-icon-square img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: brightness(1.1);
}

/* === Expanded glass panel === */
.sol-expanded {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  /* Open: slow + delayed (graceful entrance). Close: fast upward sweep (no lag). */
  transition: opacity 140ms ease-out 0ms, transform 160ms ease-out 0ms;
}
.sol-cards:hover .sol-card:hover .sol-expanded {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition: opacity 320ms cubic-bezier(0.22, 1, 0.36, 1) 220ms,
              transform 380ms cubic-bezier(0.22, 1, 0.36, 1) 220ms;
}
/* When card loses hover, panel sweeps upward and disappears very quickly */
.sol-card:not(:hover) .sol-expanded {
  transform: translateY(-12px);
}
.sol-expanded-inner {
  background: rgba(8, 10, 20, 0.84);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid color-mix(in srgb, var(--accent, var(--olive)) 32%, transparent);
  border-radius: 18px;
  padding: 1.5rem 1.4rem;
  color: var(--white);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.sol-expanded-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}
.sol-icon-small {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent, var(--olive)) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, var(--olive)) 38%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sol-icon-small img { width: 22px; height: 22px; object-fit: contain; }
.sol-expanded h3 {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--white);
}
.sol-desc {
  margin: 0 0 1rem;
  font-family: var(--body);
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
}
.sol-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.sol-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-family: var(--body);
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
}
.sol-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent, var(--olive)) 25%, transparent);
  color: var(--accent, var(--olive));
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05rem;
}
.sol-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  background: var(--accent, var(--olive));
  color: var(--white);
  border-radius: 12px;
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  align-self: flex-start;
  transition: opacity 200ms ease, transform 200ms ease;
}
.sol-cta:hover { opacity: 0.9; transform: translateY(-1px); }

/* === Mobile — stacked short cards === */
@media (max-width: 760px) {
  .sol-cards {
    height: auto;
    flex-direction: column;
    gap: 12px;
  }
  .sol-card {
    flex: 0 0 auto !important;
    height: 176px;
    min-width: 0;
  }
  .sol-cards:hover .sol-card,
  .sol-cards:hover .sol-card:hover { flex: 0 0 auto; }

  .sol-collapsed { opacity: 1 !important; pointer-events: auto !important; }
  .sol-vertical {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 1rem;
    margin: 0;
    text-align: left;
  }
  .sol-collapsed {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    padding: 1.2rem 1.4rem;
  }
  .sol-num { display: none; }
  .sol-icon-square {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-left: auto;
  }
  .sol-icon-square img { width: 22px; height: 22px; }
  .sol-overlay {
    background: linear-gradient(to right,
      rgba(8, 10, 18, 0.85) 0%,
      rgba(8, 10, 18, 0.55) 100%);
  }
  .sol-expanded { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .sol-card,
  .sol-bg,
  .sol-overlay,
  .sol-collapsed,
  .sol-expanded,
  .sol-accent-line { transition: none !important; }
}

/* ===== Flip cards (Methodology) — solid colour back ===== */
.card--flip {
  background: transparent;
  perspective: 1400px;
  cursor: pointer;
  color: inherit;
}
.card--flip:hover {
  transform: translateY(-4px);
}
.card-flipper {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .9s var(--easing);
}
.card--flip:hover .card-flipper,
.card--flip.is-flipped .card-flipper {
  transform: rotateY(180deg);
}
.card-face {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  padding: 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  overflow: hidden;
}
.card-face--front {
  background: var(--cream);
  border: 1px solid rgba(31, 42, 20, 0.06);
  align-items: flex-start;
  gap: 1rem;
  border-top: 4px solid var(--accent, var(--olive));
}
.card-face--front .card-icon {
  width: clamp(56px, 6vw, 76px);
  height: clamp(56px, 6vw, 76px);
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.06));
}
.card-face--front .card-title {
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  margin: 0;
  letter-spacing: -0.015em;
  line-height: 1.18;
  max-width: 14ch;
  color: var(--ink);
  text-shadow: none;
}
.card-cue {
  position: absolute;
  bottom: 0.9rem;
  right: 0.9rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--accent, var(--olive-deep));
  font-family: var(--display);
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 500;
  box-shadow: 0 4px 10px -4px rgba(0,0,0,0.18);
  transition: transform .35s var(--easing);
}
.card--flip:hover .card-cue,
.card--flip.is-flipped .card-cue { transform: rotate(45deg); }

.card-face--back {
  background: var(--accent, var(--olive));
  color: var(--white);
  transform: rotateY(180deg);
  align-items: flex-start;
  justify-content: center;
  gap: 0.8rem;
}
.card-back-title {
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  margin: 0 0 0.4rem;
  color: var(--white);
  opacity: 0.85;
}
.card-back-desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--white);
}

/* ---------- Methodology ---------- */
.methodology {
  position: relative;
  background: var(--white);
  padding: var(--section-py) var(--gutter);
  border-top: 1px solid rgba(31, 42, 20, 0.06);
}
.methodology-inner {
  max-width: var(--container);
  margin: 0 auto;
}
.method-title {
  font-size: clamp(2.2rem, 6vw, 5rem);
  letter-spacing: -0.025em;
  margin-bottom: 2rem;
  max-width: 16ch;
}
/* "Early Years Foundation Stage" como subtítulo: mucho más chico que EYFS */
.method-title em {
  display: block;
  font-size: 0.3em;
  line-height: 1.2;
  margin-top: 0.55rem;
  letter-spacing: 0.01em;
}
.method-lede {
  max-width: 64ch;
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: var(--ink-soft);
  line-height: 1.65;
  margin: 0 0 2.5rem;
}
.method-lede strong { color: var(--ink); font-weight: 500; }
.method-subhead {
  margin: 0 0 2rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}
.method-subhead .muted { font-size: 0.8rem; }


/* ---------- Universe ---------- */
.universe {
  background: var(--white);
  padding: var(--section-py) var(--gutter);
  border-top: 1px solid rgba(31, 42, 20, 0.06);
}
.universe-head {
  max-width: var(--container);
  margin: 0 auto 3rem;
  text-align: left;
}
.universe-title {
  font-size: clamp(2.2rem, 6vw, 5rem);
  margin-bottom: 1.5rem;
  max-width: 18ch;
}
.universe-lede {
  max-width: 56ch;
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: var(--ink-soft);
}
.universe-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.5rem, 2.4vw, 2.4rem);
}
.char-card {
  background: var(--cream);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .45s var(--easing), box-shadow .35s ease;
}
.char-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 48px -28px rgba(31, 42, 20, 0.4);
}
.char-media {
  position: relative;
  aspect-ratio: 9 / 16;
  background: #1F2A14;
  overflow: hidden;
}
.char-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.char-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(31, 42, 20, 0.18);
  transition: background-color .3s ease, opacity .35s ease;
  color: var(--white);
}
.char-play svg {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  border-radius: 50%;
  padding: 14px 12px 14px 18px;
  transition: transform .3s var(--easing), background-color .25s ease;
}
.char-card:hover .char-play { background: rgba(31, 42, 20, 0.35); }
.char-card:hover .char-play svg { transform: scale(1.06); background: var(--white); }
.char-play.is-hidden { opacity: 0; pointer-events: none; }
.char-play[disabled] {
  cursor: default;
  background: rgba(31, 42, 20, 0.55);
}
.char-play-soon {
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.55em 1.1em;
  border-radius: var(--radius-lg);
}
.char-text {
  padding: 1.6rem 1.6rem 2rem;
}
.char-tag {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.char-text h3 { font-size: 2rem; margin: 0 0 0.7rem; }
.char-text p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; line-height: 1.55; }

/* ---------- STATS BANNER (Bobolobo-style ribbon) ---------- */
.stats-banner {
  position: relative;
  isolation: isolate;
  padding: clamp(2rem, 4vw, 3rem) var(--gutter);
  color: var(--white);
  overflow: hidden;
  border-top: 1px solid rgba(31, 42, 20, 0.06);
}
.stats-media { position: absolute; inset: 0; z-index: 0; }
.stats-video { width: 100%; height: 100%; object-fit: cover; }
.stats-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 25, 15, 0.72), rgba(20, 25, 15, 0.82));
}
.ribbon {
  position: relative;
  z-index: 2;
  margin: 0 -2rem 3rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ribbon-track {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.6vw, 3rem);
  letter-spacing: -0.01em;
  color: #FFE9B7;
  white-space: nowrap;
  padding: 0.5rem 1rem;
}
.ribbon-dot { color: var(--yellow); font-size: 0.7em; opacity: 0.85; }
.stats-eyebrow {
  position: relative;
  z-index: 2;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin: 0 0 2.2rem;
}
.stat-num[data-count],
.stat-num {
  font-variant-numeric: tabular-nums;
}
.stats-grid {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 2.5rem;
  text-align: center;
}
.stat-num {
  display: block;
  font-family: var(--display);
  font-size: clamp(2.6rem, 6vw, 5rem);
  letter-spacing: -0.04em;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.7rem;
  font-variant-numeric: tabular-nums;
}
.stat-fix {
  font-family: var(--display);
  font-size: 0.7em;
  font-weight: 500;
  margin-left: 0.05em;
  color: var(--yellow);
  letter-spacing: -0.02em;
}
.stat-lbl {
  display: block;
  color: rgba(255,255,255,0.88);
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  line-height: 1.45;
  max-width: 22ch;
  margin: 0 auto;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials {
  background: var(--cream);
  padding: var(--section-py) 0;
}
.testi-head {
  max-width: var(--container);
  margin: 0 auto 2.5rem;
  padding: 0 var(--gutter);
}
.testi-title {
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  margin-bottom: 0;
}
.testi-marquee {
  position: relative;
  overflow: hidden;
  padding: 1.4rem 0 2rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.testi-track {
  display: flex;
  align-items: stretch;
  gap: 1.6rem;
  width: max-content;
  animation: testiScroll 80s linear infinite;
}
.testi-marquee:hover .testi-track { animation-play-state: paused; }
@keyframes testiScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.testi-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem 1.8rem;
  flex: 0 0 clamp(300px, 30vw, 400px);
  box-shadow: 0 14px 30px -22px rgba(31, 42, 20, 0.25);
  display: flex;
  flex-direction: column;
}
.testi-stars {
  color: var(--yellow);
  font-size: 1rem;
  margin-bottom: 1rem;
  letter-spacing: 0.15em;
}
.testi-quote {
  font-family: var(--display);
  font-size: 1.15rem;
  line-height: 1.4;
  margin: 0 0 1.4rem;
  color: var(--ink);
}
.testi-name { margin: 0; font-weight: 500; font-size: 0.95rem; }
.testi-role { margin: 0.15rem 0 0; font-size: 0.85rem; color: var(--ink-mute); }

/* Prev/next arrows over the marquee */
.testi-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 26px -12px rgba(31, 42, 20, 0.4);
  transition: transform .25s ease, background-color .25s ease, color .25s ease;
}
.testi-arrow:hover {
  background: var(--ink);
  color: var(--white);
  transform: translateY(-50%) scale(1.06);
}
.testi-arrow svg { width: 22px; height: 22px; }
.testi-arrow--prev { left: clamp(12px, 2vw, 24px); }
.testi-arrow--next { right: clamp(12px, 2vw, 24px); }

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .testi-track { animation: none; }
}

/* ---------- FOUNDERS ---------- */
.founders {
  background: var(--white);
  padding: var(--section-py) var(--gutter);
}
.founders-head {
  max-width: var(--container);
  margin: 0 auto 2.5rem;
}
.founders-title {
  font-size: clamp(2.2rem, 6vw, 4.6rem);
}
.founders-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1.6rem, 2.4vw, 2.6rem);
}
.founder { text-align: center; }
.founder-portrait {
  position: relative;
  width: clamp(180px, 20vw, 240px);
  aspect-ratio: 1 / 1;
  margin: 0 auto 1.4rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--cream);
}
.founder-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--easing);
}
.founder:hover .founder-portrait img { transform: scale(1.05); }
.founder h3 { font-size: 1.6rem; margin: 0 0 0.3rem; }
.founder-role {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive-deep);
}
.founder-bio {
  margin: 0 auto;
  max-width: 36ch;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ---------- PARTNERS marquee ---------- */
.partners {
  background: var(--cream);
  padding: clamp(2rem, 4vw, 3.2rem) 0;
}
.partners-head {
  max-width: var(--container);
  margin: 0 auto 2.5rem;
  padding: 0 var(--gutter);
}
.partners-title {
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  margin-bottom: 1.5rem;
}
.partners-lede {
  max-width: 60ch;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: var(--ink-soft);
  line-height: 1.6;
}
.partners-grid {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(0.7rem, 1.3vw, 1.3rem);
  align-items: center;
}
@media (max-width: 760px) { .partners-grid { grid-template-columns: repeat(2, 1fr); } }
.partner-logo {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1rem 0.9rem;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .35s var(--easing), box-shadow .35s ease;
}
.partner-logo:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px -22px rgba(31, 42, 20, 0.3);
}
.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(20%);
  opacity: 0.85;
  transition: filter .35s ease, opacity .35s ease;
}
.partner-logo:hover img { filter: none; opacity: 1; }

/* ---------- FAQ — Bobolobo style ---------- */
.faq {
  background: #F5F4F0;
  padding: var(--section-py) var(--gutter);
  border-top: 1px solid rgba(31, 42, 20, 0.06);
}
.faq-head {
  max-width: 820px;
  margin: 0 auto 3.5rem;
  text-align: center;
}
.faq-eyebrow {
  display: inline-block;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.5em 1.2em;
  border-radius: var(--radius-lg);
  margin: 0 0 1.6rem;
  box-shadow: 0 2px 8px -4px rgba(31, 42, 20, 0.1);
}
.faq-title {
  font-size: clamp(2.6rem, 7vw, 5rem);
  margin-bottom: 1.2rem;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.faq-lede {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}
.faq-list {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.faq-item {
  background: #E5E3DA;
  border-radius: 18px;
  overflow: hidden;
  transition: background-color .35s var(--easing);
}
.faq-item[open] {
  background: #DCDACF;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.6rem 1.8rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q {
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.5vw, 1.45rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.3;
}
.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 18px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform .4s var(--easing), opacity .3s var(--easing);
}
.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.faq-item[open] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}
.faq-a {
  padding: 0 1.8rem 1.8rem;
  animation: faqFade .45s var(--easing);
}
.faq-a p {
  margin: 0;
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 64ch;
}
.faq-a a {
  color: var(--olive-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.faq-a a:hover { color: var(--ink); }
.faq-a strong { color: var(--ink); font-weight: 500; }

/* FAQ — card maestro desplegable (colapsa todo en un solo recuadro) */
.faq-master { max-width: 880px; margin: 0 auto; }
.faq-master > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.5rem 1.8rem; cursor: pointer; list-style: none; user-select: none;
  background: #E5E3DA; border-radius: 18px;
  transition: background-color .3s var(--easing), border-radius .3s var(--easing);
}
.faq-master > summary::-webkit-details-marker { display: none; }
.faq-master[open] > summary { background: #DCDACF; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.faq-master[open] > summary .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }
.faq-master .faq-list { margin-top: 0.7rem; }
.faq-master-title { display: flex; flex-direction: column; gap: 0.15rem; }
.faq-master-sub { font-family: var(--body); font-size: 0.92rem; font-weight: 400; color: var(--ink-soft); line-height: 1.4; }
/* FAQ compacto (menos aire) */
.faq--compact .faq-head { margin-bottom: 1rem; }

@keyframes faqFade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(3rem, 6vw, 5rem) var(--gutter) 2.5rem;
  text-align: center;
  border-top: 1px solid rgba(31, 42, 20, 0.06);
}
.footer-inner { max-width: 600px; margin: 0 auto; }
.footer-logo { height: 48px; margin: 0 auto 1.6rem; filter: brightness(0) invert(1) sepia(0.4) saturate(0.5); }
.footer-heading {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin: 0 0 1rem;
  color: var(--cream);
}
.footer-line { margin: 0.4rem 0; font-size: 0.95rem; color: rgba(245,239,227,0.8); }
.footer-addr {
  display: flex; align-items: center; justify-content: center; gap: 0.45rem;
  margin: 0.6rem 0 0.2rem; font-size: 0.92rem; color: rgba(245,239,227,0.8);
}
.footer-addr-ic { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.85; }
.footer-addr a { color: inherit; text-decoration: none; }
.footer-addr a:hover { color: var(--cream); text-decoration: underline; }
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.6rem;
  justify-content: center;
  margin: 1.8rem 0 2rem;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  color: var(--cream);
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-lg);
  transition: background-color .25s ease, transform .25s ease;
}
.social-link:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.social-link svg { width: 22px; height: 22px; }
.site-footer .btn--primary {
  background: var(--cream);
  color: var(--ink);
  margin-top: 0.5rem;
}
.site-footer .btn--primary:hover { background: var(--white); }
.footer-fine {
  margin-top: 2.5rem;
  font-size: 0.78rem;
  color: rgba(245,239,227,0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Hero shield (decorative bottom-left) ---------- */
.hero-shield {
  position: absolute;
  bottom: clamp(7rem, 11vw, 9rem);
  left: clamp(1.4rem, 3vw, 2.4rem);
  z-index: 4;
  width: clamp(72px, 9vw, 120px);
  height: auto;
  opacity: 0.95;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35));
  pointer-events: none;
  animation: bob 9s ease-in-out infinite;
}
@media (max-width: 760px) {
  .hero-shield { bottom: 6rem; left: 1.2rem; width: 64px; }
}

/* ---------- Hero sound toggle ---------- */
.hero-sound {
  position: absolute;
  top: 6rem;
  right: 1.6rem;
  z-index: 45;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 32px -10px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(31, 42, 20, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .25s ease, opacity .35s ease, background-color .25s ease;
}
.hero-sound:hover {
  transform: scale(1.08);
  background: var(--white);
}
@media (max-width: 760px) {
  .hero-sound { top: 5rem; right: 1rem; width: 46px; height: 46px; }
}
.hero-sound.is-faded { opacity: 0; pointer-events: none; transform: scale(0.9); }
.hero-sound:hover { transform: scale(1.08); background: var(--white); }
.hero-sound svg { width: 22px; height: 22px; pointer-events: none; }
.hero-sound .icon-mute   { display: block; }
.hero-sound .icon-unmute { display: none; }
.hero-sound.is-on .icon-mute   { display: none; }
.hero-sound.is-on .icon-unmute { display: block; }
.hero { cursor: pointer; }
.hero-cta, .scroll-cue, .hero-sound, .site-header { cursor: auto; }
.hero-cta { cursor: default; }
.hero-cta .btn { cursor: pointer; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--easing), transform .9s var(--easing);
  /* Safety net: after 3s anything still hidden becomes visible regardless of JS */
  animation: revealFallback 0s linear 3s forwards;
}
@keyframes revealFallback {
  to { opacity: 1; transform: none; }
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
  animation: none;
}
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }
.reveal:nth-child(5) { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .logo-track { animation: none; }
}

/* =========================================================================
   ETAPA 1 — Nuevas secciones del Portal: Programmes · Therapies · Gallery ·
   Admissions · Enrol + Health & Care · nav móvil. Mismo sistema de marca.
   ========================================================================= */

/* New sections must layer ABOVE the sticky hero (hero is z-index:1) */
.programmes, .therapies, .gallery, .admissions, .enrol {
  position: relative;
  z-index: 2;
  --section-py: clamp(3.5rem, 7vw, 6rem);
}

/* ---------- Mobile nav toggle (hamburger) ---------- */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  color: var(--white);
  transition: color .35s ease, background-color .25s ease;
}
.site-header.is-stuck .nav-toggle { color: var(--ink); }
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .35s var(--easing), opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .header-cta .btn--primary { display: none; } /* enrol CTA moves into the drawer on mobile */
}

/* ---------- Mobile nav drawer ---------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 49;
  background: rgba(250, 250, 242, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .35s var(--easing);
}
.mobile-nav.is-open { opacity: 1; }
.mobile-nav[hidden] { display: none; }
.mobile-nav__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  text-align: center;
}
.mobile-nav__links a {
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.mobile-nav__links a:hover { color: var(--olive-deep); }
.mobile-nav__links .btn--primary { margin-top: 1rem; font-family: var(--body); font-size: 0.95rem; color: var(--white); }

/* ---------- PROGRAMMES (reuses .cards image-overlay) ---------- */
.programmes {
  background: var(--cream);
  padding: var(--section-py) var(--gutter);
  border-top: 1px solid rgba(31, 42, 20, 0.06);
}
.programmes-head { max-width: var(--container); margin: 0 auto 3rem; }
.programmes-title { font-size: clamp(2.2rem, 6vw, 5rem); margin-bottom: 1.5rem; max-width: 16ch; }
.programmes-lede { max-width: 60ch; font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--ink-soft); line-height: 1.6; }

/* 9 etapas — grid modular 3×3 en desktop, 2 en tablet, 1 en móvil */
#programmeCards { grid-template-columns: repeat(3, 1fr); gap: clamp(0.8rem, 1.2vw, 1.2rem); }
@media (max-width: 900px) { #programmeCards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { #programmeCards { grid-template-columns: 1fr; } }
/* tarjetas más compactas/premium (menos invasivas) */
#programmeCards .card { aspect-ratio: 1 / 1; }
#programmeCards .card-content { padding: 1.2rem 1.1rem; gap: 0.5rem; }
#programmeCards .card-icon { width: clamp(36px, 3.4vw, 44px); height: clamp(36px, 3.4vw, 44px); }
#programmeCards .card-num { font-size: 0.72rem; }
#programmeCards .card-title { font-size: clamp(1.02rem, 1.25vw, 1.25rem); }
#programmeCards .card-desc { font-size: 0.84rem; line-height: 1.45; }

/* Iconos sociales del header (Instagram / WhatsApp) */
.header-social { display: inline-flex; align-items: center; justify-content: center; color: var(--white); opacity: .85; transition: opacity .2s ease, color .2s ease; }
.header-social:hover { opacity: 1; }
.site-header.is-stuck .header-social,
.header--solid .header-social { color: var(--ink); }

/* ---------- THERAPIES (split layout) ---------- */
.therapies {
  background: var(--white);
  padding: var(--section-py) var(--gutter);
  border-top: 1px solid rgba(31, 42, 20, 0.06);
}
.therapies-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.therapies-title { font-size: clamp(2.2rem, 6vw, 4.6rem); margin-bottom: 1.4rem; max-width: 14ch; }
.therapies-lede { max-width: 52ch; font-size: clamp(1.02rem, 1.25vw, 1.15rem); color: var(--ink-soft); line-height: 1.6; margin: 0 0 2rem; }
.therapy-list { display: flex; flex-direction: column; gap: 1.25rem; margin: 0 0 2rem; }
.therapy-item { display: flex; align-items: flex-start; gap: 1rem; }
.therapy-ic {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: var(--cream);
  border: 1px solid rgba(31, 42, 20, 0.06);
  display: flex; align-items: center; justify-content: center;
}
.therapy-ic img { width: 28px; height: 28px; object-fit: contain; }
.therapy-item h3 { font-size: 1.2rem; margin: 0 0 0.25rem; letter-spacing: -0.01em; }
.therapy-item p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); line-height: 1.5; }
.therapies-media { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4 / 5; background: var(--cream); }
.therapies-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .therapies-inner { grid-template-columns: 1fr; }
  .therapies-media { order: -1; aspect-ratio: 16 / 10; max-height: 360px; }
}

/* ---------- GALLERY (masonry grid + lightbox) ---------- */
.gallery {
  background: var(--ink);
  color: var(--white);
  padding: var(--section-py) var(--gutter);
}
.gallery-head { max-width: var(--container); margin: 0 auto 2.6rem; }
.gallery-eyebrow { color: rgba(255,255,255,0.7); }
.gallery-title { font-size: clamp(2.2rem, 6vw, 4.6rem); margin-bottom: 1.2rem; color: var(--white); }
.gallery-title em { color: var(--yellow); }
.gallery-lede { max-width: 56ch; font-size: clamp(1rem, 1.2vw, 1.15rem); color: rgba(255,255,255,0.8); line-height: 1.6; }
.gallery-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  gap: clamp(0.6rem, 1vw, 1rem);
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  padding: 0;
  display: block;
  background: #20231a;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--easing); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item--tall { grid-row: span 2; }
.gallery-item--wide { grid-column: span 2; }
.gallery-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.4rem 1rem 0.9rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--white);
  text-align: left;
  background: linear-gradient(180deg, transparent, rgba(8,10,12,0.78));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s var(--easing), transform .35s var(--easing);
}
.gallery-item:hover .gallery-cap,
.gallery-item:focus-visible .gallery-cap { opacity: 1; transform: none; }
/* Galería viva: capa fantasma para el cross-fade entre fotos */
.gallery-cap { z-index: 2; }
.gallery-item .gx {
  position: absolute; inset: 0; z-index: 1;
  opacity: 0;
  transition: opacity 1.3s ease, transform .8s var(--easing);
  pointer-events: none;
}
.gallery-item .gx--in { opacity: 1; }
@media (max-width: 760px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 175px; }
  .gallery-cap { opacity: 1; transform: none; }
}
/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(10, 12, 8, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .3s var(--easing);
}
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox-figure { margin: 0; max-width: 1100px; max-height: 88vh; }
.lightbox-img { max-width: 100%; max-height: 80vh; border-radius: var(--radius-sm); box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7); }
.lightbox-cap { margin-top: 0.9rem; text-align: center; color: rgba(255,255,255,0.85); font-size: 0.95rem; letter-spacing: 0.04em; }
.lightbox-close {
  position: absolute;
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: background-color .25s ease, transform .25s ease;
}
.lightbox-close:hover { background: rgba(255,255,255,0.22); transform: scale(1.06); }
.lightbox-close svg { width: 24px; height: 24px; }

/* ---------- ADMISSIONS (steps) — compacto, mismo aire que "Cómo funciona" de fiestas ---------- */
.admissions {
  background: var(--white);
  padding: clamp(2.4rem, 5vw, 3.6rem) var(--gutter);
  border-top: 1px solid rgba(31, 42, 20, 0.06);
}
.admissions-inner { max-width: var(--container); margin: 0 auto; }
.admissions-head { max-width: 56ch; margin: 0 auto clamp(1.4rem, 3vw, 2rem); text-align: center; }
.admissions-head .eyebrow { margin-bottom: 0.5rem; }
.admissions-title { font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.05; margin-bottom: 0.6rem; max-width: none; }
.admissions-lede { font-size: clamp(0.95rem, 1.05vw, 1.02rem); color: var(--ink-soft); line-height: 1.55; max-width: 52ch; margin: 0 auto; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(0.6rem, 1.2vw, 0.9rem); }
.step {
  position: relative;
  background: var(--cream);
  border: 1px solid rgba(31, 42, 20, 0.06);
  border-radius: var(--radius-md);
  border-top: 3px solid var(--olive);
  padding: clamp(0.8rem, 1.2vw, 1.05rem);
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.5s ease;
}
.step:hover { transform: translateY(-5px); box-shadow: 0 20px 40px -28px rgba(31, 42, 20, 0.45); }
.step:nth-child(2) { border-top-color: var(--terracotta); }
.step:nth-child(3) { border-top-color: var(--blue); }
.step:nth-child(4) { border-top-color: var(--yellow); }
.step-num { font-family: var(--display); font-size: clamp(1.1rem, 1.7vw, 1.45rem); line-height: 1; color: var(--olive); opacity: 0.4; display: block; margin-bottom: 0.3rem; transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.4s ease; }
.step:hover .step-num { transform: scale(1.08); opacity: 0.65; }
.step:nth-child(2) .step-num { color: var(--terracotta); }
.step:nth-child(3) .step-num { color: var(--blue); }
.step:nth-child(4) .step-num { color: #C9A23B; }
.step h3 { font-size: clamp(0.92rem, 1.1vw, 1.02rem); margin: 0 0 0.25rem; letter-spacing: -0.01em; line-height: 1.2; }
.step p { margin: 0; font-size: 0.8rem; color: var(--ink-soft); line-height: 1.45; }
.admissions-cta { margin-top: 2.4rem; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* ---------- ENROL + HEALTH & CARE form ---------- */
.enrol {
  background: var(--cream);
  padding: var(--section-py) var(--gutter);
  border-top: 1px solid rgba(31, 42, 20, 0.06);
}
.enrol-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.enrol-intro { position: sticky; top: 100px; }
.enrol-title { font-size: clamp(2.2rem, 6vw, 4.4rem); margin-bottom: 1.4rem; max-width: 12ch; }
.enrol-lede { font-size: clamp(1.02rem, 1.25vw, 1.15rem); color: var(--ink-soft); line-height: 1.6; margin: 0 0 2rem; max-width: 40ch; }
.enrol-contact { display: flex; flex-direction: column; gap: 0.85rem; margin: 0 0 1.6rem; }
.enrol-contact li { display: flex; align-items: baseline; gap: 0.7rem; font-size: 0.98rem; color: var(--ink-soft); }
.enrol-contact a { color: var(--olive-deep); text-decoration: underline; text-underline-offset: 2px; }
.enrol-contact a:hover { color: var(--ink); }
.enrol-contact-ic { color: var(--terracotta); font-size: 0.8rem; }
.enrol-socials a { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--olive-deep); font-size: 0.95rem; }
.enrol-socials svg { width: 22px; height: 22px; }
/* form */
.enrol-form {
  background: var(--white);
  border: 1px solid rgba(31, 42, 20, 0.07);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 3vw, 2.6rem);
  box-shadow: 0 24px 60px -40px rgba(31, 42, 20, 0.4);
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-block { border: none; padding: 0; margin: 0 0 1.8rem; }
.form-block legend { font-family: var(--display); font-size: 1.15rem; letter-spacing: -0.01em; color: var(--ink); padding: 0; margin-bottom: 1rem; }
.form-note { margin: -0.4rem 0 1rem; font-size: 0.88rem; color: var(--ink-mute); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.82rem; letter-spacing: 0.02em; color: var(--ink-soft); }
.field--full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  font-family: var(--body);
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid rgba(31, 42, 20, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--olive);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(105, 107, 87, 0.15);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-mute); }
.form-check { display: flex; align-items: flex-start; gap: 0.6rem; margin: 0.8rem 0 0; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.4; cursor: pointer; }
.form-check input { margin-top: 0.15rem; width: 16px; height: 16px; accent-color: var(--olive); flex-shrink: 0; }
.form-privacy { margin: 1.4rem 0 1.2rem; font-size: 0.82rem; color: var(--ink-mute); line-height: 1.5; }
.btn--block { width: 100%; justify-content: center; }
.form-status { margin: 0.9rem 0 0; font-size: 0.9rem; text-align: center; min-height: 1.2em; }
.form-status a { color: inherit; text-decoration: underline; }
.form-status.is-error { color: #b4543b; }
.form-status.is-ok { color: var(--olive-deep); }
/* success panel */
.enrol-success {
  grid-column: 1 / -1;
  background: var(--white);
  border: 1px solid rgba(31, 42, 20, 0.07);
  border-radius: var(--radius-md);
  padding: clamp(2.4rem, 5vw, 4rem);
  text-align: center;
  box-shadow: 0 24px 60px -40px rgba(31, 42, 20, 0.4);
}
.enrol-success[hidden] { display: none; }
.enrol-success-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--olive); color: var(--white); font-size: 1.8rem; margin-bottom: 1.2rem;
}
.enrol-success h3 { font-size: 1.8rem; margin: 0 0 0.6rem; }
.enrol-success p { margin: 0 auto; max-width: 36ch; color: var(--ink-soft); }
@media (max-width: 860px) {
  .enrol-inner { grid-template-columns: 1fr; }
  .enrol-intro { position: static; }
}
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }

/* =========================================================================
   OMBU additions — nav Fiestas, lang toggle, methodology taglines, sol pacing
   ========================================================================= */

/* Link "Fiestas" como destino aparte (página, no ancla) */
.primary-nav .nav-fiestas,
.mobile-nav__links .nav-fiestas {
  color: var(--yellow);
  font-weight: 500;
}
.site-header.is-stuck .primary-nav .nav-fiestas,
.header--solid .primary-nav .nav-fiestas { color: var(--terracotta); }
.nav-fiestas span { font-size: .8em; }

/* Toggle de idioma ES/EN (inyectado por i18n.js) */
.lang-toggle {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}
.lang-toggle button {
  padding: 5px 10px;
  color: rgba(255, 255, 255, 0.8);
  background: transparent;
  transition: background .2s ease, color .2s ease;
}
.lang-toggle button.is-active { background: rgba(255, 255, 255, 0.92); color: var(--ink); }
.site-header.is-stuck .lang-toggle,
.header--solid .lang-toggle { border-color: rgba(26, 27, 20, 0.25); }
.site-header.is-stuck .lang-toggle button,
.header--solid .lang-toggle button { color: var(--ink-mute); }
.site-header.is-stuck .lang-toggle button.is-active,
.header--solid .lang-toggle button.is-active { background: var(--ink); color: var(--white); }
.mobile-nav .lang-toggle { border-color: rgba(26,27,20,.25); align-self: center; }
.mobile-nav .lang-toggle button { color: var(--ink-mute); }
.mobile-nav .lang-toggle button.is-active { background: var(--ink); color: var(--white); }

/* Tagline en el frente de las flip cards (Methodology) */
.card-tag {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0.2rem 0 0;
  max-width: 24ch;
}

/* Ritmo más calmado en las sol-cards (antes 600ms se sentía brusco) */
.sol-card { transition: flex 950ms var(--easing) 60ms; }

/* Galería — al pasar el mouse, la card activa crece y las demás se calman */
.gallery-grid .gallery-item {
  transition: transform .6s var(--easing), opacity .5s var(--easing), box-shadow .6s var(--easing);
  will-change: transform;
}
.gallery-grid:hover .gallery-item { opacity: .72; }
.gallery-grid .gallery-item:hover {
  opacity: 1;
  transform: scale(1.035);
  z-index: 2;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.55);
}
.gallery-cta { text-align: center; margin-top: 2rem; }

/* Steps: es un <ol> — sin numeración del navegador y centrado */
ol.steps {
  list-style: none;
  padding-left: 0;
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}
/* El CTA comparte el mismo carril: su borde izquierdo = primera tarjeta */
.admissions-cta { max-width: 1040px; margin-left: auto; margin-right: auto; }

/* ---------- Header pro: logo grande, nav sin quiebres ---------- */
.brand-img { height: 46px; }
.site-header { gap: clamp(14px, 2vw, 32px); }
.primary-nav { gap: clamp(0.9rem, 1.4vw, 1.5rem); font-size: 0.92rem; }
.primary-nav a { white-space: nowrap; }
.nav-fiestas { display: inline-flex; align-items: center; gap: 0.3em; }

/* ---------- CTA héroe: el alma de la página ---------- */
.btn--hero {
  font-size: 1.2rem;
  padding: 1.15em 2.6em;
  font-weight: 600;
  letter-spacing: 0.005em;
  box-shadow: 0 26px 52px -18px rgba(0, 0, 0, 0.6);
}
.btn--hero:hover { transform: translateY(-4px) scale(1.03); }
/* La flechita/emoji del CTA se desliza al pasar el mouse (vida sin saturar) */
.btn--hero span { display: inline-block; transition: transform .3s var(--easing); }
.btn--hero:hover span { transform: translateX(5px); }
/* CTA primario del hero: terracota cálida (resalta sobre el video) en vez de tinta oscura */
.hero-cta-row .btn--primary.btn--hero {
  background: linear-gradient(135deg, #E0A583, #C67C5A);
  color: #fff;
  box-shadow: 0 26px 52px -18px rgba(198, 124, 90, 0.6);
}
.hero-cta-row .btn--primary.btn--hero:hover {
  background: linear-gradient(135deg, #E7AF8F, #BB704F);
  box-shadow: 0 30px 60px -16px rgba(198, 124, 90, 0.72);
}
/* 🎈 Globo rojo en los botones de Fiestas (nav arriba + CTA principal) — más llamativo */
.nav-fiestas::after {
  content: '🎈';
  font-size: .95em;
  display: inline-block;
  animation: fiestaBalloonBob 2.8s ease-in-out infinite;
}
.hero-cta-row .btn--hero-fiesta::before {
  content: '🎈';
  position: absolute;
  top: -20px;
  right: -6px;
  font-size: 1.6rem;
  line-height: 1;
  pointer-events: none;
  z-index: 3;
  filter: drop-shadow(0 5px 7px rgba(0, 0, 0, 0.32));
  animation: fiestaBalloonFloat 3.2s ease-in-out infinite;
}
@keyframes fiestaBalloonBob {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-3px) rotate(5deg); }
}
@keyframes fiestaBalloonFloat {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-7px) rotate(6deg); }
}
@media (prefers-reduced-motion: reduce) {
  .nav-fiestas::after, .hero-cta-row .btn--hero-fiesta::before { animation: none; }
}
.hero-cta { flex-direction: column; align-items: flex-start; gap: 0.7rem; }
.hero-cta-note {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.hero-cta-note .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.75); } }

/* Programmes: descripción siempre visible (las cards se sentían vacías) */
.programmes .card-desc { opacity: 1; transform: none; }

/* ---------- Media rotator: fotos que se funden con zoom lento (Ken Burns) ---------- */
.media-rotator { position: relative; overflow: hidden; }
.media-rotator img {
  opacity: 0;
  transition: opacity 1.4s var(--easing);
  transform: scale(1);
}
.media-rotator img:not(:first-child) {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.media-rotator img.is-active {
  opacity: 1;
  animation: rotator-zoom 6.5s ease-out forwards;
}
@keyframes rotator-zoom { from { transform: scale(1); } to { transform: scale(1.07); } }
@media (prefers-reduced-motion: reduce) {
  .media-rotator img.is-active { animation: none; }
}

/* ---------- Fix rotator del hero: el contenedor se dimensiona a la palabra
   más ancha (antes min-width fijo 6.2ch → "imagination" pisaba "Where") ---------- */
.hero-rotator {
  display: inline-grid;
  min-width: 0;
  height: auto;
  vertical-align: baseline;
}
.hero-word {
  position: static;
  grid-area: 1 / 1;
  inset: auto;
  display: inline-block;
  justify-self: center;
}

/* ---------- Header consistente ES/EN: logo → nav → controles a la derecha ---------- */
.site-header { justify-content: flex-start; }
.header-cta { margin-left: auto; }

/* ---- Agenda embebida (modal de calendario GHL/Calendly) ---- */
.bkm { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; }
.bkm[hidden] { display: none; }
.bkm-back { position: absolute; inset: 0; background: rgba(20, 22, 15, 0.55); backdrop-filter: blur(4px); cursor: pointer; }
.bkm-card {
  position: relative;
  width: min(960px, calc(100vw - 28px));
  height: min(760px, calc(100vh - 40px));
  background: var(--cream);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.5);
  animation: bkm-in .3s var(--easing);
}
@keyframes bkm-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.bkm-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 1.25rem;
  background: var(--olive-deep); color: var(--white);
  font-family: var(--display); font-weight: 500;
}
.bkm-close { color: rgba(255,255,255,.85); font-size: 1.5rem; line-height: 1; background: none; border: 0; cursor: pointer; padding: 0 .2em; }
.bkm-close:hover { color: var(--white); }
.bkm-body { position: relative; flex: 1; background: var(--cream); }
.bkm-body iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bkm-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink); opacity: .55; font-size: .95rem; margin: 0; }

/* ---- Hero: par de CTAs con movimiento armónico ---- */
.hero-cta-row { display: inline-flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.btn--hero-fiesta {
  background: linear-gradient(135deg, #F2D487, #E5B547);
  color: var(--ink);
  box-shadow: 0 24px 48px -20px rgba(229, 181, 71, 0.55);
}
.btn--hero-fiesta:hover { background: linear-gradient(135deg, #F6DFA0, #E5B547); }

/* Flotan suave en contrafase (translate compone con el transform del hover) */
@keyframes cta-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
.hero-cta-row .btn--hero { animation: cta-float 5.5s ease-in-out infinite; position: relative; overflow: hidden; }
.hero-cta-row .btn--hero-fiesta { animation-delay: -2.75s; }

/* Destello de luz al pasar el cursor */
.hero-cta-row .btn--hero::after {
  content: '';
  position: absolute; top: 0; bottom: 0; left: -60%;
  width: 50%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: skewX(-18deg);
  opacity: 0;
  pointer-events: none;
}
.hero-cta-row .btn--hero:hover::after { animation: cta-sheen .9s var(--easing); }
@keyframes cta-sheen {
  from { opacity: 0; transform: skewX(-18deg) translateX(0); }
  15% { opacity: 1; }
  to { opacity: 0; transform: skewX(-18deg) translateX(340%); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-cta-row .btn--hero { animation: none; }
  .hero-cta-row .btn--hero::after { display: none; }
}

/* ---- Testimonios estilo reseña real ---- */
.testi-id { display: flex; align-items: center; gap: .7rem; margin-bottom: .55rem; }
.testi-ava {
  width: 42px; height: 42px; flex: none;
  border-radius: 50%;
  background: var(--av, var(--olive));
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 500; font-size: .9rem; letter-spacing: .03em;
}
.testi-who { display: flex; flex-direction: column; gap: .1rem; }
.testi-id .testi-name { margin: 0; }
.testi-id .testi-role { margin: 0; font-size: .78rem; }
.testi-tr {
  background: none; border: 0; padding: 0;
  margin-top: .55rem;
  font: inherit; font-size: .8rem;
  color: var(--olive);
  text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px;
  cursor: pointer;
  align-self: flex-start;
}
.testi-tr:hover { color: var(--olive-deep); }

/* Footer: logo clickeable al hero + par de CTAs */
.footer-logo-link { display: inline-block; transition: transform .3s var(--easing), opacity .3s ease; }
.footer-logo-link:hover { transform: translateY(-2px); opacity: .85; }
.footer-cta-row { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

/* ---- Pasos (admisiones / cómo funciona): comprimidos en móvil, tocar para expandir ---- */
@media (max-width: 860px) {
  .steps .step { cursor: pointer; }
  .steps .step h3 { position: relative; padding-right: 1.8rem; margin-bottom: 0; }
  .steps .step h3::after {
    content: '+';
    position: absolute; right: 0; top: 50%;
    translate: 0 -50%;
    font-size: 1.35rem; font-weight: 400;
    color: var(--olive);
    transition: rotate .3s var(--easing);
  }
  .steps .step.is-open h3::after { rotate: 45deg; }
  .steps .step p {
    max-height: 0; opacity: 0; overflow: hidden; margin: 0;
    transition: max-height .45s var(--easing), opacity .35s ease, margin .3s ease;
  }
  .steps .step.is-open p { max-height: 16em; opacity: 1; margin-top: .5rem; }
}

/* ===== Ajustes landing/header (cita Elisa) ===== */
/* Header SÓLIDO siempre — barra claramente visible (landing + subpáginas) */
.site-header.header--solid {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(31, 42, 20, 0.07);
}
.site-header.header--solid .primary-nav { color: var(--ink); }
.site-header.header--solid .brand-img--light { display: none; }
.site-header.header--solid .brand-img--dark  { display: block; }
.site-header.header--solid .btn--primary { background: var(--ink); color: var(--white); }
.site-header.header--solid .nav-toggle { color: var(--ink); }
.site-header.header--solid .header-staff-link { color: var(--ink); }

/* Banner de cifras más delgado */
.stats-banner { padding-top: clamp(1.1rem, 2.4vw, 1.9rem) !important; padding-bottom: clamp(1.1rem, 2.4vw, 1.9rem) !important; }

/* "Una red que viaja contigo" — compacta y centrada */
.partners { padding: clamp(1.6rem, 3vw, 2.6rem) 0 !important; }
.partners-head { text-align: center; max-width: 680px; margin-left: auto; margin-right: auto; }
.partners-title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: 0.8rem; }
.partners-lede { margin-left: auto; margin-right: auto; }

/* "La historia hasta hoy" — descripción a la derecha (más compacto) */
@media (min-width: 820px) {
  .about-inner { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 5vw, 4rem); align-items: center; }
  .about-inner > .eyebrow { grid-column: 1; grid-row: 1; margin: 0 0 0.5rem; }
  .about-title { grid-column: 1; grid-row: 2; margin-bottom: 0; }
  .about-intro { grid-column: 2; grid-row: 1 / 3; align-self: center; margin: 0; }
}

/* ---------- Método · tarjeta Characteristics → mascotas Learning Skills OMBU ---------- */
.sol-mascots {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.6rem 0.35rem;
}
.sol-mascots li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  text-align: center;
}
.sol-mascots img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: contain;
  background: var(--cream, #faf7ef);
  box-shadow: 0 5px 12px -7px rgba(0, 0, 0, 0.55);
}
.sol-mascots span {
  font-size: 0.6rem;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.92);
}
/* Lista de 7 áreas en dos columnas para que entre con elegancia */
.sol-bullets--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem 1.1rem;
}
@media (max-width: 600px) {
  .sol-mascots { grid-template-columns: repeat(5, 1fr); gap: 0.45rem 0.2rem; }
  .sol-mascots img { width: 42px; height: 42px; border-radius: 12px; }
  .sol-mascots span { font-size: 0.54rem; }
  .sol-bullets--two { grid-template-columns: 1fr; }
}

/* ---------- EYFS · principios: tarjetas compactas, parejas y legibles ---------- */
#methodCards { grid-template-columns: repeat(4, 1fr); gap: clamp(0.7rem, 1.3vw, 1.1rem); align-items: stretch; }
/* Cards compactas: icono + título en la MISMA fila, descripción abajo */
#methodCards .card { aspect-ratio: 16 / 10; }
#methodCards .card-content {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "num num" "icon title" "desc desc";
  align-content: end;
  column-gap: 0.65rem;
  row-gap: 0.42rem;
  padding: 1.05rem 1.1rem;
}
#methodCards .card-num   { grid-area: num; margin: 0; font-size: 0.8rem; }
#methodCards .card-icon  {
  grid-area: icon; align-self: center; margin: 0;
  width: 42px; height: 42px; padding: 9px;
  border-radius: 50%; background: #fff; box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); filter: none;
}
#methodCards .card-title {
  grid-area: title; align-self: center; margin: 0; max-width: none;
  font-size: clamp(1.05rem, 1.3vw, 1.3rem); line-height: 1.15;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}
#methodCards .card-desc  {
  grid-area: desc; margin: 0; opacity: 1; transform: none;
  font-size: 0.86rem; line-height: 1.42;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}
/* Layer más oscura para que el texto SIEMPRE se lea bien sobre cualquier foto */
#methodCards .card-overlay {
  background: linear-gradient(180deg, rgba(15, 18, 12, 0.18) 0%, rgba(15, 18, 12, 0.5) 45%, rgba(15, 18, 12, 0.88) 100%);
}
#methodCards .card:hover .card-overlay {
  background: linear-gradient(180deg, rgba(15, 18, 12, 0.24) 0%, rgba(15, 18, 12, 0.58) 45%, rgba(15, 18, 12, 0.92) 100%);
}
@media (max-width: 900px) { #methodCards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { #methodCards { grid-template-columns: 1fr; } #methodCards .card { aspect-ratio: 16 / 10; } }

/* ---------- Testimonios: cards más chicas y legibles en móvil ---------- */
@media (max-width: 600px) {
  .testi-card { flex: 0 0 70vw; max-width: 280px; padding: 1.25rem 1.15rem; }
  .testi-quote { font-size: 0.98rem; line-height: 1.4; margin-bottom: 1rem; }
  .testi-track { gap: 1rem; }
  .testi-marquee { padding: 1rem 0 1.4rem; }
  .testi-stars { font-size: 0.9rem; margin-bottom: 0.7rem; }
}

/* ---------- Clases: tarjetas simples SIN foto, info clara y elegante ---------- */
#programmeCards .card-bg, #programmeCards .card-overlay { display: none !important; }
#programmeCards .card {
  aspect-ratio: auto;
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(31, 42, 20, 0.08);
  border-left: 4px solid var(--accent, var(--olive));
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px -28px rgba(31, 42, 20, 0.4);
  overflow: hidden;
}
#programmeCards .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 50px -28px rgba(31, 42, 20, 0.42);
}
#programmeCards .card-content {
  position: relative;
  height: auto;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 1.4rem 1.3rem;
  gap: 0.5rem;
}
#programmeCards .card-num {
  color: var(--accent, var(--olive-deep));
  font-weight: 500;
  letter-spacing: 0.07em;
  font-size: 0.82rem;
}
#programmeCards .card-icon {
  width: clamp(38px, 3.4vw, 46px);
  height: clamp(38px, 3.4vw, 46px);
  filter: none;
  margin-bottom: 0.1rem;
}
#programmeCards .card-title { color: var(--ink); font-size: clamp(1.05rem, 1.3vw, 1.3rem); font-weight: 500; }
#programmeCards .card-desc { color: var(--ink-soft); font-size: 0.85rem; line-height: 1.5; }
/* Precio mensual por grado */
#programmeCards .card-price {
  font-family: var(--display);
  font-size: clamp(1.2rem, 1.5vw, 1.5rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0.05rem 0 0.1rem;
}
#programmeCards .card-price__per { font-size: 0.6em; font-weight: 500; color: var(--ink-soft); letter-spacing: 0; }

/* ---- Flip de grados: frente (grado) / reverso (costos al hacer clic) ---- */
#programmeCards .card.prog-flip {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  overflow: visible;
  perspective: 1400px;
  cursor: pointer;
}
#programmeCards .prog-flip__inner {
  position: relative;
  min-height: 205px;
  height: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 14px 30px -26px rgba(31, 42, 20, .38);
  transition: transform .4s cubic-bezier(.4, 0, .2, 1), box-shadow .4s cubic-bezier(.4, 0, .2, 1);
}
#programmeCards .prog-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding: 1.05rem 1.15rem;
  background: #fff;
  border: 1px solid rgba(31, 42, 20, .10);
  border-radius: var(--radius-md);
}
#programmeCards .prog-face--front { justify-content: center; z-index: 1; }
#programmeCards .prog-face--front .prog-flip__hint { margin-top: .45rem; }
/* Reverso = panel de costos que vive ABAJO; ASOMA al hover y se abre del todo al clic */
#programmeCards .prog-face--back {
  z-index: 2;
  justify-content: flex-start;
  transform: translateY(100%);
  transition: transform .45s cubic-bezier(.22, 1, .36, 1);
  border-top: 3px solid var(--accent, var(--olive-deep));
  box-shadow: 0 -14px 34px -18px rgba(31, 42, 20, .5);
}
#programmeCards .card.prog-flip:not(.is-flipped):hover .prog-flip__inner,
#programmeCards .card.prog-flip:not(.is-flipped):focus-visible .prog-flip__inner {
  transform: translateY(-6px);
  box-shadow: 0 26px 48px -26px rgba(31, 42, 20, .5);
}
#programmeCards .card.prog-flip:not(.is-flipped):hover .prog-face--back,
#programmeCards .card.prog-flip:not(.is-flipped):focus-visible .prog-face--back {
  transform: translateY(62%);
}
#programmeCards .card.prog-flip.is-flipped .prog-face--back { transform: translateY(0); }
.prog-flip__hint {
  margin-top: auto;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--accent, var(--olive-deep));
  opacity: .9;
}
.prog-costs-title {
  margin: 0;
  font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent, var(--olive-deep));
}
.prog-costs { list-style: none; margin: .1rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .3rem; }
.prog-costs li {
  display: flex; justify-content: space-between; align-items: baseline; gap: .6rem;
  font-size: .8rem; color: var(--ink-soft);
  border-bottom: 1px solid rgba(31, 42, 20, .07); padding-bottom: .28rem;
}
.prog-costs li:last-child { border-bottom: none; padding-bottom: 0; }
.prog-costs b { font-family: var(--display); font-size: .95rem; font-weight: 500; color: var(--ink); }
@media (prefers-reduced-motion: reduce) { #programmeCards .prog-flip__inner { transition: none; } }

/* ============================================================
   HOVER "PEEK" — insinuar que las tarjetas tienen contenido detrás.
   (1) Grados (flip): giro 3D sutil al pasar el mouse, sin voltear del todo.
   (2) Características/Áreas (sol-cards): elevación + profundidad 3D.
   ============================================================ */

/* (1) GRADOS — el reverso (costos) asoma al hover; la lógica vive en el bloque del flip de arriba */
.prog-flip__hint { transition: transform .35s var(--easing), opacity .35s var(--easing); }

/* (2) SOL-CARDS — la activa se eleva e inclina; las demás se hunden (profundidad) */
#solCards { perspective: 1600px; }
#solCards .sol-card {
  transition: flex 950ms var(--easing) 60ms, transform 480ms var(--easing),
              box-shadow 480ms var(--easing), filter 480ms var(--easing);
  transform-style: preserve-3d;
}
#solCards:hover .sol-card:hover {
  transform: translateY(-8px) rotateX(2.5deg);
  box-shadow: 0 32px 64px -28px rgba(8, 10, 18, .62);
}
#solCards:hover .sol-card:not(:hover) {
  transform: translateY(5px) scale(0.985);
  filter: brightness(0.9);
}

@media (prefers-reduced-motion: reduce) {
  #programmeCards .card.prog-flip:not(.is-flipped):hover .prog-flip__inner,
  #solCards:hover .sol-card:hover,
  #solCards:hover .sol-card:not(:hover) { transform: none; }
}

/* ===== Densidad: header menos saturado · cintillo más delgado · testimonios más compactos ===== */
/* Header nav más apretado y menos saturado */
.primary-nav { gap: clamp(1.2rem, 1.8vw, 2.4rem) !important; font-size: clamp(1rem, 1.2vw, 1.25rem) !important; }
.header-social svg { width: 17px; height: 17px; }
.header-cta { gap: 0.55rem; }
.header-staff-link__label { font-size: 0.72rem; }

/* Cintillo (stats-banner) notablemente más delgado */
.stats-banner { padding-top: clamp(0.9rem, 2vw, 1.5rem) !important; padding-bottom: clamp(0.9rem, 2vw, 1.5rem) !important; }
.stats-banner .ribbon { margin-bottom: clamp(0.9rem, 2vw, 1.4rem) !important; }
.stats-banner .ribbon-track { font-size: clamp(1.05rem, 2.2vw, 1.7rem) !important; padding: 0.3rem 1rem !important; }
.stats-banner .stats-eyebrow { margin-bottom: 1.1rem !important; }
.stats-banner .stats-grid { gap: clamp(1rem, 2.5vw, 1.8rem) !important; }
.stats-banner .stat-num { font-size: clamp(1.9rem, 4vw, 3.2rem) !important; margin-bottom: 0.35rem !important; }

/* Testimonios: menos gap arriba y título más chico (landing + fiestas) */
.testimonials { padding-top: clamp(1.8rem, 3.5vw, 2.8rem) !important; padding-bottom: clamp(2rem, 4vw, 3.2rem) !important; }
.testi-head { margin-bottom: clamp(1rem, 2vw, 1.5rem) !important; }
.testi-title { font-size: clamp(1.8rem, 3.6vw, 2.8rem) !important; }

/* ---------- Clases: tarjetas más bonitas (tinte por elemento, icono en círculo, chips) ---------- */
#programmeCards .card { background: color-mix(in srgb, var(--accent) 6%, #fff); }
#programmeCards .card-icon {
  background: color-mix(in srgb, var(--accent) 15%, #fff);
  border-radius: 50%;
  padding: 7px;
  box-sizing: border-box;
}
#programmeCards .card-title { font-weight: 600; }
#programmeCards .card-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem; }
#programmeCards .card-tag {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.32em 0.66em; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 16%, #fff);
  color: color-mix(in srgb, var(--accent) 72%, #2a2a22);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
}

/* Sección Nosotros: separar las tarjetas de método del intro (se sentía comprimida) */
#about .sol-cards { margin-top: clamp(2.2rem, 4.5vw, 4rem); }
#about { padding-bottom: clamp(3rem, 6vw, 5.5rem); }

/* Clases: título sin negrita y más grande (la negrita se veía mal) */
#programmeCards .card-title { font-weight: 400; font-size: clamp(1.22rem, 1.7vw, 1.6rem); max-width: none; }

/* Aliados: texto a la izquierda, logos a la derecha (2 columnas) */
.partners-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.partners-head { text-align: left !important; max-width: none !important; margin: 0 !important; }
.partners-lede { margin: 0 !important; }
.partners-grid { grid-template-columns: repeat(3, 1fr) !important; margin: 0 !important; gap: clamp(0.6rem, 1.2vw, 1rem) !important; }
@media (max-width: 820px) {
  .partners-inner { grid-template-columns: 1fr; gap: 1.6rem; }
  .partners-head { text-align: center !important; }
}

/* Clases: icono + título en la MISMA fila → tarjetas más compactas y chicas */
#programmeCards .card-head { display: flex; align-items: center; gap: 0.65rem; }
#programmeCards .card-icon { width: 40px !important; height: 40px !important; margin: 0 !important; padding: 6px !important; flex-shrink: 0; }
#programmeCards .card-title { font-weight: 400; font-size: clamp(1.25rem, 1.7vw, 1.62rem); line-height: 1.12; margin: 0; max-width: none; }
#programmeCards .card-content { padding: 1.05rem 1.15rem !important; gap: 0.5rem !important; }
#programmeCards .card-num { font-size: 0.66rem; }
#programmeCards .card-desc { font-size: 0.83rem; }

/* Clases: TODAS las tarjetas de la misma altura (delgada), badges al fondo */
#programmeCards { grid-auto-rows: 1fr; }
#programmeCards .card { height: 100%; }
#programmeCards .card-content { display: flex; flex-direction: column; height: 100%; }
#programmeCards .card-tags { margin-top: auto; }

/* Cintillo amarillo en móvil: sin margen negativo (el fade quedaba fuera de pantalla y cortaba el texto) */
@media (max-width: 600px) {
  .ribbon { margin-left: 0 !important; margin-right: 0 !important;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent) !important;
            mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent) !important; }
  .stats-banner .ribbon-track { font-size: clamp(0.95rem, 4vw, 1.3rem) !important; }
}

/* Acortar el gap entre Testimonios y Aliados (estaba enorme) */
.testi-marquee { padding-bottom: 0.8rem !important; }
.testimonials { padding-bottom: clamp(1rem, 2vw, 1.6rem) !important; }
.partners { padding-top: clamp(0.8rem, 1.6vw, 1.4rem) !important; }

/* Galería: botón con logo de Instagram */
.gallery-ig-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 1.3rem;
  padding: 0.58rem 1.15rem; border-radius: 999px;
  background: #fff; color: var(--ink, #1f2a14);
  font-weight: 600; font-size: 0.9rem; letter-spacing: 0.01em;
  box-shadow: 0 12px 26px -16px rgba(0, 0, 0, 0.55);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gallery-ig-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -18px rgba(0, 0, 0, 0.6); }

/* Metodología EYFS: cabecera en 2 columnas (título izq · texto der) */
.methodology .method-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  margin-bottom: clamp(2rem, 4vw, 3.2rem);
}
.methodology .method-head__left .method-title { margin-bottom: 0; max-width: none; }
.methodology .method-head__right .method-lede { margin: 0; max-width: 52ch; }
.methodology .method-head__right .method-lede + .method-lede { margin-top: 1rem; }
@media (max-width: 820px) {
  .methodology .method-head { grid-template-columns: 1fr; gap: 1.1rem; }
}
/* Anclas del nav: que la sección no quede debajo del header fijo */
section[id] { scroll-margin-top: 88px; }

/* Header: enlaces que llevan a OTRA página → terracota (como Fiestas), para entender que salen del home */
.primary-nav a[href^="/"]:not([href*="#"]),
.mobile-nav__links a[href^="/"]:not([href*="#"]) { color: var(--terracotta) !important; }

/* Botones con pulso (estilo Framer PulseButton) */
.btn--pulse { position: relative; }
.btn--pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--terracotta) 55%, transparent);
  animation: btnPulse 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes btnPulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--terracotta) 50%, transparent); }
  70%  { box-shadow: 0 0 0 18px color-mix(in srgb, var(--terracotta) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--terracotta) 0%, transparent); }
}
.btn--hero-fiesta.btn--pulse::after { animation-name: btnPulseYellow; }
@keyframes btnPulseYellow {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--yellow) 60%, transparent); }
  70%  { box-shadow: 0 0 0 18px color-mix(in srgb, var(--yellow) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--yellow) 0%, transparent); }
}
@media (prefers-reduced-motion: reduce) { .btn--pulse::after { animation: none; } }
/* Botones del hero: MISMO pulso (anillo) que el header pero más rápido.
   Antes el ::after lo usaba el "sheen" y overflow:hidden recortaba el anillo → no se veía.
   Aquí dejamos overflow visible y convertimos el ::after en el anillo del pulso. */
.hero-cta-row .btn--hero { overflow: visible; }
.hero-cta-row .btn--hero::after,
.hero-cta-row .btn--hero:hover::after {
  content: ""; position: absolute; inset: 0;
  top: 0; right: 0; bottom: 0; left: 0; width: auto; height: auto;
  background: none; transform: none;
  border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--terracotta) 55%, transparent);
  animation: btnPulse 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.hero-cta-row .btn--hero-fiesta::after,
.hero-cta-row .btn--hero-fiesta:hover::after { animation-name: btnPulseYellow; }
@media (prefers-reduced-motion: reduce) { .hero-cta-row .btn--hero::after { animation: none; } }

/* "Tu fiesta" más hermoso */
.btn--hero-fiesta {
  background: linear-gradient(135deg, #F7D680, #E5B547) !important;
  color: var(--ink, #1f2a14) !important;
  border: none !important;
  box-shadow: 0 14px 30px -14px rgba(229, 181, 71, 0.75) !important;
}
.btn--hero-fiesta:hover {
  background: linear-gradient(135deg, #FAE092, #E9BC52) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 20px 38px -16px rgba(229, 181, 71, 0.88) !important;
}

/* Tarjeta Características: fondo = póster de mascotas → capa más clara para que se vean */
#solCards .sol-card:nth-child(3) .sol-overlay {
  background: linear-gradient(180deg, rgba(20,18,14,0.12) 0%, rgba(20,18,14,0.22) 48%, rgba(20,18,14,0.6) 100%) !important;
}
#solCards .sol-card:nth-child(3) .sol-num,
#solCards .sol-card:nth-child(3) .sol-vertical { text-shadow: 0 1px 10px rgba(0,0,0,0.55); }

/* Características expandida: solo las características como chips (sin repetir las mascotas) */
.sol-mascots--text { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.sol-mascots--text li { display: inline-flex; flex-direction: row; }
.sol-mascots--text li span {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 0.36em 0.78em; border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Tarjetas EYFS=ciclo (1) y Áreas (4): la imagen es un diagrama → mostrarlo completo (contain) sobre crema */
#solCards .sol-card:nth-child(1) .sol-bg,
#solCards .sol-card:nth-child(2) .sol-bg {
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-color: #faf7ef !important;
}
#solCards .sol-card:nth-child(1) .sol-overlay,
#solCards .sol-card:nth-child(2) .sol-overlay {
  background: linear-gradient(180deg, rgba(20,18,14,0) 58%, rgba(20,18,14,0.5) 100%) !important;
}
#solCards .sol-card:nth-child(1) .sol-num,
#solCards .sol-card:nth-child(1) .sol-vertical,
#solCards .sol-card:nth-child(2) .sol-num,
#solCards .sol-card:nth-child(2) .sol-vertical { color: var(--ink) !important; text-shadow: 0 1px 6px rgba(255,255,255,0.6); }

/* Lightbox para ampliar imágenes de las tarjetas de método */
.img-lightbox[hidden] { display: none !important; }
.img-lightbox {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(15, 18, 12, 0.88);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 0.3s ease;
}
.img-lightbox.is-open { opacity: 1; }
.img-lightbox__img {
  max-width: min(92vw, 1000px); max-height: 90vh;
  border-radius: 14px; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7);
  transform: scale(0.96); transition: transform 0.35s cubic-bezier(0.16, 0.84, 0.3, 1);
}
.img-lightbox.is-open .img-lightbox__img { transform: scale(1); }
.img-lightbox__close {
  position: absolute; top: 18px; right: 22px;
  width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255, 255, 255, 0.92); color: #1f2a14; font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
}

/* Metodología EYFS: línea de significado del EYFS bajo el título */
.method-eyfs {
  margin: 1rem 0 0;
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  color: var(--ink-soft);
  line-height: 1.5;
}
.method-eyfs strong { color: var(--olive-deep); letter-spacing: 0.02em; }

/* EYFS más cerca de las sol-cards: gap más corto arriba */
.methodology { padding-top: clamp(2rem, 4vw, 3.2rem); }

/* Grados escolares: título a la izquierda, descripción a la derecha */
.programmes-head--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  text-align: left;
}
.programmes-head--split .programmes-title { margin-bottom: 0; }
.programmes-head--split .programmes-lede { margin: 0; max-width: 46ch; }
@media (max-width: 820px) {
  .programmes-head--split { grid-template-columns: 1fr; gap: 1rem; align-items: start; }
}
