/* =========================================================
   El Coto Kids · Sistema de diseño "Jardín del Coto"
   ========================================================= */

/* ---------- Tipografías alojadas en la propia web (sin conexión a Google · RGPD) ---------- */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 500 700; font-display: swap; src: url(fonts/fraunces.woff2) format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 400 800; font-stretch: 100%; font-display: swap; src: url(fonts/nunito-sans.woff2) format('woff2'); }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/caveat-600.woff2) format('woff2'); }

:root {
  /* Paleta (contrastes WCAG comprobados) */
  --bg: #FBF6EE;              /* crema papel */
  --bg-alt: #F3EBDD;          /* crema tostado */
  --surface: #FFFFFF;
  --ink: #3B2F26;             /* texto: 12:1 sobre --bg */
  --ink-soft: #5E5046;        /* texto secundario: 7,2:1 */
  --green: #3F5E3A;           /* verde bosque: 6,8:1 */
  --green-dark: #2F4A2B;
  --terracotta: #B8434B;      /* rojo del logo suavizado · botones con texto blanco: 5,3:1 */
  --terracotta-dark: #9C343C; /* texto de acento: 6,0:1 sobre --bg-alt */
  --mustard: #E8B04B;         /* solo decoración o texto oscuro encima */
  --sage: #A9BFA0;
  --sky: #BCD5E0;
  --whatsapp: #1A7F4B;        /* 5:1 con blanco */

  /* Tintes para fondos de iconos y tarjetas */
  --tint-terracotta: #F7E0E0;
  --tint-sage: #E4EDDF;
  --tint-mustard: #FBEBC9;
  --tint-sky: #E3EEF3;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Nunito Sans', system-ui, sans-serif;
  --font-hand: 'Caveat', cursive;

  /* Escala de espaciado (4/8) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  --radius-lg: 32px;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow-sm: 0 1px 2px rgba(59, 47, 38, .05), 0 4px 14px rgba(59, 47, 38, .06);
  --shadow: 0 2px 4px rgba(59, 47, 38, .04), 0 14px 34px rgba(59, 47, 38, .09);
  --shadow-lg: 0 4px 8px rgba(59, 47, 38, .05), 0 26px 56px rgba(59, 47, 38, .14);

  --header-h: 84px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-weight: 600;
  color: var(--green);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.28rem; }
p { text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--terracotta-dark);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--green); color: #fff; padding: 10px 18px; border-radius: 999px;
  font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.15em; height: 1.15em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -0.2em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-body); font-weight: 800; font-size: 1rem; line-height: 1.2;
  text-decoration: none; text-align: center;
  transition: background-color .2s, color .2s, box-shadow .25s var(--ease-out), transform .25s var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--terracotta); color: #fff;
  box-shadow: 0 6px 18px rgba(184, 67, 75, .28);
}
.btn-primary:hover { background: var(--terracotta-dark); box-shadow: 0 10px 24px rgba(156, 52, 60, .32); transform: translateY(-2px); }
.btn-ghost {
  color: var(--green); background: transparent;
  box-shadow: inset 0 0 0 2px var(--green);
}
.btn-ghost:hover { background: var(--green); color: #fff; }
.btn-sm { min-height: 44px; padding: 10px 20px; font-size: .95rem; }
.nav-cta { white-space: nowrap; }
.btn-lg { min-height: 60px; padding: 16px 32px; font-size: 1.08rem; }

.text-link {
  color: var(--terracotta-dark); font-weight: 700;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px;
  text-decoration-color: rgba(156, 52, 60, .35);
  transition: text-decoration-color .2s;
}
.text-link:hover { text-decoration-color: currentColor; }
.text-link--arrow { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; min-height: 44px; }
.text-link--arrow .icon { transition: transform .25s var(--ease-out); }
.text-link--arrow:hover .icon { transform: translateX(4px); }

/* ---------- Etiquetas e iconos ---------- */
.eyebrow, .section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--terracotta-dark);
}
.section-tag { margin-bottom: var(--s-3); }
.section-tag--light { color: var(--tint-mustard); }

.icon-badge {
  display: inline-grid; place-items: center; flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 46% 54% 42% 58% / 55% 45% 55% 45%; /* forma orgánica */
}
.icon-badge svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-badge--sm { width: 46px; height: 46px; }
.icon-badge--sm svg { width: 22px; height: 22px; }
.icon-badge--terracotta { background: var(--tint-terracotta); color: var(--terracotta-dark); }
.icon-badge--sage { background: var(--tint-sage); color: var(--green); }
.icon-badge--mustard { background: var(--tint-mustard); color: #7A5410; }
.icon-badge--sky { background: var(--tint-sky); color: #2F5568; }
.icon-badge--light { background: rgba(255, 255, 255, .16); color: #fff; }

.pending {
  display: inline-flex; align-items: center;
  margin-left: 6px; padding: 2px 10px;
  font-size: .72rem; font-weight: 800; letter-spacing: .02em;
  color: var(--ink); background: var(--tint-mustard);
  border: 1.5px dashed #B98A2A; border-radius: 999px;
  white-space: nowrap;
}
.pending-banner {
  display: flex; gap: 10px; align-items: flex-start;
  max-width: 680px; margin-top: var(--s-5); padding: 14px 18px;
  font-size: .95rem; text-align: left;
  background: var(--tint-mustard); border: 2px dashed #B98A2A; border-radius: var(--radius-sm);
}
.pending-banner .icon { margin-top: 3px; color: #7A5410; }

/* =========================================================
   MENÚ (adaptado de "Resizable Navbar" + "Navbar 5")
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 12px 16px 0;
  pointer-events: none;
}
.header-bar {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: 1240px; margin-inline: auto;
  min-height: 68px; padding: 8px 12px 8px 20px;
  border-radius: 999px;
  background: rgba(251, 246, 238, 0);
  transition: max-width .5s var(--ease-out), background-color .35s, box-shadow .35s, transform .5s var(--ease-out);
}
.site-header.is-scrolled .header-bar {
  max-width: 1120px;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  box-shadow: 0 1px 0 rgba(59, 47, 38, .06), 0 12px 32px rgba(59, 47, 38, .12);
}
.logo { display: flex; align-items: center; min-height: 48px; flex-shrink: 0; border-radius: 12px; }
.logo img { height: 52px; width: auto; transition: height .4s var(--ease-out); }
.site-header.is-scrolled .logo img { height: 44px; }

.main-nav { display: flex; align-items: center; gap: 12px; }
.main-nav ul { display: flex; align-items: center; gap: 2px; }
.main-nav ul a {
  display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap;
  padding: 8px 12px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; color: var(--ink); text-decoration: none;
  transition: background-color .2s, color .2s;
}
.main-nav ul a:hover { background: var(--tint-sage); color: var(--green); }
.main-nav ul a[aria-current="true"] { color: var(--green); background: var(--tint-sage); }

.nav-toggle { display: none; }

@media (max-width: 1199px) {
  .nav-toggle {
    display: inline-grid; place-items: center;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--green); color: #fff;
  }
  .nav-toggle-bars { position: relative; width: 20px; height: 14px; }
  .nav-toggle-bars span {
    position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor;
    transition: transform .3s var(--ease-out), opacity .2s, top .3s var(--ease-out);
  }
  .nav-toggle-bars span:nth-child(1) { top: 0; }
  .nav-toggle-bars span:nth-child(2) { top: 6px; }
  .nav-toggle-bars span:nth-child(3) { top: 12px; }
  .menu-open .nav-toggle-bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
  .menu-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
  .menu-open .nav-toggle-bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

  /* Panel que baja desde arriba (Navbar 5) */
  .main-nav {
    position: absolute; top: calc(100% + 8px); left: 16px; right: 16px;
    flex-direction: column; align-items: stretch; gap: 12px;
    padding: 16px;
    background: var(--surface); border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .25s, transform .35s var(--ease-out), visibility 0s linear .35s;
    pointer-events: auto;
    max-height: calc(100dvh - 110px); overflow-y: auto;
  }
  .menu-open .main-nav {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .25s, transform .35s var(--ease-out), visibility 0s;
  }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav ul a { width: 100%; min-height: 48px; padding: 10px 16px; font-size: 1.05rem; }
  .nav-cta { width: 100%; }
  .menu-open .header-bar { background: rgba(255, 255, 255, .96); box-shadow: var(--shadow); }
}

/* =========================================================
   HERO (adaptado de "Editorial Collage Hero")
   ========================================================= */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 40px) 0 var(--s-6);
  overflow: hidden;
}
.hero::before { /* mancha de acuarela de fondo */
  content: ""; position: absolute; z-index: -1;
  width: 720px; height: 720px; right: -220px; top: -160px;
  background: radial-gradient(closest-side, rgba(169, 191, 160, .35), rgba(169, 191, 160, 0));
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s-8); align-items: center;
}
.hero-copy .eyebrow { margin-bottom: var(--s-4); }
.hero h1 { margin-bottom: var(--s-5); }
.scribble { position: relative; white-space: nowrap; }
.scribble svg {
  position: absolute; left: -2%; bottom: -0.12em; width: 104%; height: .32em;
  fill: none; stroke: var(--mustard); stroke-width: 6; stroke-linecap: round;
  overflow: visible;
}
.hero-text { font-size: 1.15rem; color: var(--ink-soft); max-width: 36em; margin-bottom: var(--s-6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-bottom: var(--s-6); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-facts li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--surface); box-shadow: var(--shadow-sm);
  font-weight: 700; font-size: .92rem;
}
.hero-facts .icon { color: var(--green); }

.hero-collage { position: relative; aspect-ratio: 5 / 5.4; max-width: 540px; justify-self: end; width: 100%; }
.collage-wash {
  position: absolute; inset: 8% 0 4% 10%;
  background: var(--tint-sage);
  border-radius: 58% 42% 55% 45% / 45% 55% 45% 55%;
  transform: rotate(-6deg);
}
.collage-main {
  position: absolute; top: 0; right: 4%; width: 74%; height: 88%;
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.collage-main img { width: 100%; height: 100%; object-fit: cover; }
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .8s ease;
}
.hero-video.is-ready { opacity: 1; }
.hero-video-toggle {
  position: absolute; z-index: 2; right: 2%; top: 4%;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--green); box-shadow: var(--shadow-sm);
}
.hero-video-toggle[hidden] { display: none; }
.hero-video-toggle .icon { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.hero-video-toggle .icon-play, .hero-video-toggle.is-paused .icon-pause { display: none; }
.hero-video-toggle.is-paused .icon-play { display: inline; }
.collage-second {
  position: absolute; left: 0; bottom: 2%; width: 46%; aspect-ratio: 1;
  border-radius: 50%; overflow: hidden;
  border: 6px solid var(--bg); box-shadow: var(--shadow);
}
.collage-second img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.collage-note {
  position: absolute; right: -2%; bottom: 0;
  font-family: var(--font-hand); font-size: 1.9rem; line-height: 1.05; color: var(--terracotta-dark);
  transform: rotate(-5deg); text-align: right;
}
.collage-sprig {
  position: absolute; left: 6%; top: 2%; width: 64px;
  fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  transform: rotate(-14deg);
}

/* Formas orgánicas para fotos */
.blob-a { border-radius: 62% 38% 46% 54% / 52% 44% 56% 48%; }
.blob-b { border-radius: 42% 58% 60% 40% / 48% 38% 62% 52%; }
.blob-c { border-radius: 55% 45% 38% 62% / 44% 56% 44% 56%; }

/* =========================================================
   SECCIONES
   ========================================================= */
.section { position: relative; padding: var(--s-9) 0; }
.section--compact { padding: var(--s-8) 0; }
.section--alt { background: var(--bg-alt); margin-block: 60px; }
.section--green { background: var(--green); color: #fff; margin-block: 60px; }
.section--green h2, .section--green h3 { color: #fff; }

.wave { position: absolute; left: 0; right: 0; height: 60px; line-height: 0; pointer-events: none; }
.wave svg { width: 100%; height: 100%; }
.wave--top { top: -59px; }
.wave--bottom { bottom: -59px; }
.section--alt .wave path { fill: var(--bg-alt); }
.section--green .wave path { fill: var(--green); }

.section-head { max-width: 760px; margin-bottom: var(--s-7); }
.section-head h2 { margin-bottom: var(--s-4); }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head--split {
  max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-5);
}
.section-head--split > div { max-width: 700px; }
.section-intro { font-size: 1.1rem; color: var(--ink-soft); }
.section--green .section-intro { color: #F3EBDD; }

/* ---------- Sobre nosotros ---------- */
.about-grid {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--s-8); align-items: center;
  margin-bottom: var(--s-8);
}
.about-copy h2 { margin-bottom: var(--s-5); }
.about-copy p + p { margin-top: var(--s-4); }
.about-copy p:not(.section-tag) { color: var(--ink-soft); }
.photo-frame { overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3.3; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 30%; }
.hand-note {
  margin-top: var(--s-4); text-align: center;
  font-family: var(--font-hand); font-size: 1.6rem; color: var(--terracotta-dark);
  transform: rotate(-2deg);
}

.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
.value-card, .bento-card, .method-card, .pedagogy-card, .room-card, .t-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.value-card { padding: var(--s-6) var(--s-5); transition: transform .3s var(--ease-out), box-shadow .3s; }
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value-card h3 { margin: var(--s-4) 0 var(--s-2); }
.value-card p { color: var(--ink-soft); font-size: 1rem; }

/* ---------- Metodología ---------- */
.pedagogy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); margin-bottom: var(--s-8); }
.pedagogy-card { position: relative; padding: var(--s-7) var(--s-6); overflow: hidden; }
.pedagogy-card::after { /* hoja decorativa */
  content: ""; position: absolute; right: -30px; top: -30px; width: 150px; height: 150px;
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%; opacity: .6;
}
.pedagogy-card--montessori::after { background: var(--tint-terracotta); }
.pedagogy-card--reggio::after { background: var(--tint-mustard); }
.pedagogy-card--waldorf::after { background: var(--tint-sage); }
.pedagogy-head { position: relative; z-index: 1; display: flex; align-items: center; gap: var(--s-4); margin-bottom: var(--s-5); }
.pedagogy-label {
  font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--terracotta-dark);
}
.pedagogy-card h3 { font-size: 1.9rem; }
.pedagogy-card > p { color: var(--ink-soft); }
.pedagogy-card > p, .pedagogy-card > ul { position: relative; z-index: 1; } /* el texto siempre por encima de la hoja decorativa */
.chips-title { margin: var(--s-5) 0 var(--s-3); font-weight: 800; font-size: .95rem; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-list li {
  padding: 6px 14px; border-radius: 999px; font-size: .92rem; font-weight: 700;
}
.pedagogy-card--montessori .chip-list li { background: var(--tint-terracotta); color: var(--terracotta-dark); }
.pedagogy-card--reggio .chip-list li { background: var(--tint-mustard); color: #7A5410; }
.pedagogy-card--waldorf .chip-list li { background: var(--tint-sage); color: var(--green); }

.project-block {
  display: grid; grid-template-columns: .85fr 1.15fr; gap: var(--s-8); align-items: center;
  margin-bottom: var(--s-8);
}
.project-media { position: relative; max-width: 440px; }
.project-main { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; box-shadow: var(--shadow-lg); }
.project-inset {
  position: absolute; right: -8%; bottom: -6%; width: 48%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-sm); border: 6px solid var(--bg-alt); box-shadow: var(--shadow);
  transform: rotate(4deg);
}
.project-copy h3 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin: var(--s-2) 0 var(--s-5); }
.tick-list li { position: relative; padding-left: 36px; color: var(--ink-soft); }
.tick-list li + li { margin-top: var(--s-4); }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--tint-sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233F5E3A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.tick-list strong { color: var(--ink); }

.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.method-card { padding: var(--s-6); }
.method-card h3 { margin: var(--s-4) 0 var(--s-3); }
.method-card p { color: var(--ink-soft); }
.method-card p + p { margin-top: var(--s-3); }
.age-steps { margin-top: var(--s-4); display: grid; gap: 10px; }
.age-steps li { display: flex; align-items: baseline; gap: 12px; color: var(--ink-soft); }
.age-pill {
  flex-shrink: 0; min-width: 84px; text-align: center;
  padding: 3px 10px; border-radius: 999px;
  background: var(--tint-sky); color: #2F5568; font-weight: 800; font-size: .88rem;
}

/* ---------- Servicios (bento) ---------- */
.bento {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4);
  grid-auto-flow: dense;
}
.bento-card {
  display: flex; flex-direction: column; gap: var(--s-2);
  padding: var(--s-5); min-height: 190px;
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.bento-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.bento-card .icon-badge { margin-bottom: var(--s-2); }
.bento-card h3 { font-size: 1.15rem; }
.bento-card p { color: var(--ink-soft); font-size: .98rem; }
.bento-card--wide { grid-column: span 2; }
.bento-card--tall { grid-row: span 2; }
.bento-card--green { background: var(--green); }
.bento-card--green h3, .bento-card--green p { color: #fff; }
.bento-big {
  font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-weight: 600;
  font-size: clamp(2.2rem, 4vw, 3rem) !important; line-height: 1.05; color: var(--mustard) !important;
}
.bento-card--cream { background: var(--tint-mustard); box-shadow: none; }
.bento-card--cream p { color: var(--ink); }
.bento-card--photo { position: relative; padding: 0; overflow: hidden; justify-content: flex-end; }
.bento-card--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bento-card--photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(43, 37, 32, .88) 0%, rgba(43, 37, 32, .35) 45%, rgba(43, 37, 32, 0) 70%);
}
.bento-photo-copy { position: relative; z-index: 1; padding: var(--s-5); }
.bento-photo-copy h3, .bento-photo-copy p { color: #fff; }

/* ---------- Aulas y horarios ---------- */
.rooms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); margin-bottom: var(--s-6); }
.room-card { position: relative; padding: var(--s-6); overflow: hidden; }
.room-card::before {
  content: ""; position: absolute; left: -40px; top: -50px; width: 170px; height: 170px;
  border-radius: 55% 45% 60% 40% / 45% 55% 45% 55%;
}
.room-card--terracotta::before { background: var(--tint-terracotta); }
.room-card--sage::before { background: var(--tint-sage); }
.room-card--sky::before { background: var(--tint-sky); }
.room-age {
  position: relative; display: flex; align-items: baseline; gap: 8px; margin-bottom: var(--s-5);
  font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-weight: 600;
  font-size: 3rem; line-height: 1; color: var(--green);
}
.room-age span { font-family: var(--font-body); font-size: 1rem; font-weight: 800; color: var(--ink-soft); }
.room-facts { position: relative; display: grid; gap: 10px; }
.room-facts li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 700; }
.room-facts .icon { color: var(--green); }

.schedule {
  display: flex; align-items: center; gap: var(--s-5);
  padding: var(--s-5) var(--s-6);
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.schedule h3 { margin-bottom: 2px; }
.schedule p { color: var(--ink-soft); }
.schedule strong { color: var(--ink); }

/* =========================================================
   CARRUSEL (adaptado de "Gallery with Image Cards")
   ========================================================= */
.carousel-controls { display: flex; gap: 10px; flex-shrink: 0; }
.carousel-btn {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--surface); color: var(--green); box-shadow: var(--shadow-sm);
  transition: background-color .2s, color .2s, opacity .2s, transform .2s;
}
.carousel-btn .icon { width: 24px; height: 24px; }
.carousel-btn:hover:not(:disabled) { background: var(--green); color: #fff; }
.carousel-btn:active:not(:disabled) { transform: scale(.94); }
.carousel-btn:disabled { opacity: .4; cursor: default; }

.carousel { margin-bottom: var(--s-7); }
.carousel-track {
  display: flex; gap: var(--s-5);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(20px, calc((100vw - var(--container)) / 2 + 20px));
  padding: 8px max(20px, calc((100vw - var(--container)) / 2 + 20px)) 20px;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline-offset: -3px; border-radius: var(--radius); }
.slide {
  position: relative; flex: 0 0 auto;
  width: min(78vw, 380px); aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg); overflow: hidden;
  scroll-snap-align: start;
  box-shadow: var(--shadow);
}
.slide img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.slide:hover img { transform: scale(1.04); }
.slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(43, 37, 32, .86) 0%, rgba(43, 37, 32, .3) 40%, rgba(43, 37, 32, 0) 62%);
}
.slide-caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: var(--s-5); color: #fff; }
.slide-caption h3 { color: #fff; margin-bottom: 4px; }
.slide-caption p { font-size: .98rem; }

.carousel-dots { display: flex; justify-content: center; gap: 4px; }
.carousel-dots button {
  display: grid; place-items: center; width: 32px; height: 44px;
}
.carousel-dots button::before {
  content: ""; width: 10px; height: 10px; border-radius: 999px; background: #CDBFA9;
  transition: width .3s var(--ease-out), background-color .3s;
}
.carousel-dots button[aria-current="true"]::before { width: 26px; background: var(--green); }

.facilities-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
.facility { display: flex; gap: var(--s-3); align-items: flex-start; }
.facility h3 { font-size: 1.08rem; margin-bottom: 2px; }
.facility p { color: var(--ink-soft); font-size: .96rem; }

/* =========================================================
   TESTIMONIOS (adaptado de "Testimonials Columns")
   ========================================================= */
.testimonials {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5);
  height: 620px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}
.t-col { display: flex; flex-direction: column; gap: var(--s-5); animation: t-scroll var(--dur, 40s) linear infinite; }
.testimonials:hover .t-col, .testimonials:focus-within .t-col, .testimonials.is-paused .t-col { animation-play-state: paused; }
.t-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: var(--s-3);
  padding: 8px 16px; border-radius: 999px;
  font-weight: 700; font-size: .92rem; color: var(--green);
  box-shadow: inset 0 0 0 2px var(--tint-sage);
  transition: background-color .2s;
}
.t-toggle:hover { background: var(--tint-sage); }
.t-toggle .icon { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.t-toggle .icon-play, .t-toggle.is-paused .icon-pause { display: none; }
.t-toggle.is-paused .icon-play { display: inline; }
.t-list { display: flex; flex-direction: column; gap: var(--s-5); }
@keyframes t-scroll { to { transform: translateY(calc(-50% - var(--s-5) / 2)); } }
.t-card { position: relative; padding: var(--s-6) var(--s-5) var(--s-5); }
.t-card::before {
  content: "\201C"; position: absolute; top: 4px; left: 20px;
  font-family: var(--font-display); font-size: 3.4rem; line-height: 1; color: var(--mustard);
}
.t-card blockquote p { color: var(--ink); font-size: 1rem; }
.t-author { margin-top: var(--s-4); font-weight: 800; color: var(--green); }

/* =========================================================
   PROCESO DE ADMISIÓN (adaptado de "How It Works")
   ========================================================= */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.steps::before { /* camino punteado "a mano" que une los números */
  content: ""; position: absolute; left: 16.6%; right: 16.6%; top: 8px; height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 40' preserveAspectRatio='none'%3E%3Cpath d='M4 22c50-16 100-18 148-6s98 20 148 6 100-22 148-8 36 10 48 6' fill='none' stroke='%233F5E3A' stroke-width='3' stroke-linecap='round' stroke-dasharray='1 11'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.step-num {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: var(--s-4);
  border-radius: 50%; background: var(--green); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1.4rem;
  box-shadow: 0 0 0 8px var(--bg);
}
.step-body {
  flex: 1; width: 100%; padding: var(--s-6) var(--s-5);
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.step .icon-badge { margin-bottom: var(--s-4); }
.step h3 { margin-bottom: var(--s-2); }
.step p { color: var(--ink-soft); }

/* =========================================================
   CONTACTO (adaptado de "Contact Page")
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s-8); align-items: start; }
.contact-cta h2 { margin-bottom: var(--s-4); }
.cta-card {
  margin-top: var(--s-6); padding: var(--s-5) var(--s-5) var(--s-6);
  background: var(--bg); color: var(--ink); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); text-align: center;
}
.cta-card img { width: 100%; max-width: 360px; margin: 0 auto var(--s-4); mix-blend-mode: multiply; border-radius: var(--radius); }
.cta-card .btn { width: 100%; }
.cta-card .cta-second { margin-top: var(--s-3); }
.cta-alt { margin-top: var(--s-4); color: var(--ink-soft); }
.cta-alt a { color: var(--terracotta-dark); font-weight: 700; text-underline-offset: 3px; }

.contact-list { display: grid; gap: var(--s-3); }
/* Teléfonos y email sueltos: zona táctil más alta sin mover el texto */
.contact-list a[href^="tel:"], .contact-list a[href^="mailto:"], .site-footer address a {
  display: inline-block; padding-block: 10px; margin-block: -10px;
}
.nowrap { white-space: nowrap; }
.contact-item {
  display: flex; gap: var(--s-4); align-items: flex-start;
  padding: var(--s-4) var(--s-5);
  background: rgba(255, 255, 255, .08); border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .14);
}
.contact-icon {
  display: grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255, 255, 255, .14); color: var(--mustard);
}
.contact-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.contact-item h3 { font-family: var(--font-body); font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #E4EDDF; margin-bottom: 2px; }
.contact-item p { color: #fff; }
.contact-item a { color: #fff; text-underline-offset: 3px; }
.contact-item p a { font-weight: 700; }
.contact-link, .copy-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-weight: 700; font-size: .95rem; color: var(--tint-mustard) !important; text-decoration: none;
}
.contact-link:hover, .copy-btn:hover { text-decoration: underline; }
.copy-btn .icon-done { display: none; }
.copy-btn.is-copied .icon-copy { display: none; }
.copy-btn.is-copied .icon-done { display: inline; }
.social { display: flex; flex-wrap: wrap; gap: var(--s-4); }
.social a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.section--green :focus-visible { outline-color: var(--mustard); }

/* ---------- Trabaja con nosotros ---------- */
.work {
  display: flex; align-items: center; gap: var(--s-6);
  padding: var(--s-6); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.work h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-bottom: var(--s-2); }
.work p { color: var(--ink-soft); }
.work .btn { flex-shrink: 0; }

/* ---------- Pie ---------- */
.site-footer { background: var(--bg-alt); padding: var(--s-8) 0 var(--s-8); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: var(--s-7); padding-bottom: var(--s-6); }
.footer-brand img { width: 200px; }
.footer-motto { margin-top: var(--s-3); font-family: var(--font-hand); font-size: 1.7rem; color: var(--terracotta-dark); }
.footer-title { font-family: var(--font-body); font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: var(--s-3); }
.site-footer ul a, .site-footer address a { text-decoration: none; }
.site-footer ul a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-soft); font-weight: 600; }
.site-footer ul a:hover, .site-footer address a:hover { color: var(--green); text-decoration: underline; }
.site-footer address { font-style: normal; color: var(--ink-soft); line-height: 1.9; }
.site-footer address a { color: var(--ink); font-weight: 700; }
.footer-social { display: flex; gap: 10px; margin-top: var(--s-4); }
.footer-social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface); color: var(--green); box-shadow: var(--shadow-sm);
  transition: background-color .2s, color .2s;
}
.footer-social a:hover { background: var(--green); color: #fff; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2);
  padding-top: var(--s-5); border-top: 1px solid #DDD0BC;
  font-size: .9rem; color: var(--ink-soft);
}
.footer-bottom .icon { color: var(--terracotta-dark); }

/* ---------- Botón flotante de WhatsApp (propio) ---------- */
.whatsapp-fab {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 90;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 60px; padding: 0 22px 0 18px;
  border-radius: 999px;
  background: var(--whatsapp); color: #fff; text-decoration: none; font-weight: 800;
  box-shadow: 0 8px 24px rgba(26, 127, 75, .38);
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.whatsapp-fab .icon { width: 28px; height: 28px; stroke-width: 2; }
.whatsapp-fab:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(26, 127, 75, .45); }
.whatsapp-fab:focus-visible { outline-color: var(--green-dark); }

/* =========================================================
   FOTO PENDIENTE (propio): hueco diseñado para sustituir
   después por una foto real. Buscar "FOTO PENDIENTE" en el HTML.
   ========================================================= */
.ph {
  position: relative; display: grid; place-content: center; justify-items: center; gap: 10px;
  width: 100%; height: 100%; min-height: 180px; overflow: hidden;
  background-color: var(--ph-bg, var(--tint-sage)); color: var(--ph-ink, var(--green));
  background-image: radial-gradient(currentColor 1.2px, transparent 1.6px);
  background-size: 18px 18px;
}
.ph::before { /* marco discontinuo interior */
  content: ""; position: absolute; inset: 12px;
  border: 2px dashed currentColor; border-radius: calc(var(--radius) - 8px); opacity: .35;
}
.ph > * { position: relative; }
.ph-icon {
  width: 64px; height: 64px; padding: 14px; border-radius: 50%;
  background: var(--ph-bg, var(--tint-sage)); box-shadow: 0 0 0 10px var(--ph-bg, var(--tint-sage));
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.ph-label {
  padding: 2px 12px; border-radius: 999px; background: var(--ph-bg, var(--tint-sage));
  font-family: var(--font-hand); font-size: 1.45rem; line-height: 1.3;
}
.ph--terracotta { --ph-bg: var(--tint-terracotta); --ph-ink: var(--terracotta-dark); }
.ph--mustard { --ph-bg: var(--tint-mustard); --ph-ink: #7A5410; }
.ph--sky { --ph-bg: var(--tint-sky); --ph-ink: #2F5568; }

/* =========================================================
   NUESTRA ESENCIA (propio)
   ========================================================= */
.essence { position: relative; }
.essence-photo {
  position: relative; height: clamp(320px, 58vw, 620px); overflow: hidden;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 600' preserveAspectRatio='none'%3E%3Cpath d='M0 40C240 0 480 0 720 26s480 40 720 4v520c-240 40-480 44-720 18S240 520 0 560z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 600' preserveAspectRatio='none'%3E%3Cpath d='M0 40C240 0 480 0 720 26s480 40 720 4v520c-240 40-480 44-720 18S240 520 0 560z'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
}
.essence-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.essence-card {
  position: relative; z-index: 1;
  max-width: 720px; margin: -140px auto var(--s-8);
  padding: var(--s-7) var(--s-7) var(--s-6);
  background: var(--bg); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  text-align: center;
}
.essence-card h2 { margin-bottom: var(--s-4); }
.essence-card p:not(.section-tag) { color: var(--ink-soft); font-size: 1.1rem; }
.hand-accent {
  font-family: var(--font-hand); font-weight: 600; font-size: 1.3em; line-height: .8;
  color: var(--terracotta-dark);
}
.essence-subtitle {
  text-align: center; margin-bottom: var(--s-6);
  font-family: var(--font-hand); font-weight: 600; font-size: 2rem; color: var(--terracotta-dark);
}
.essence-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6) var(--s-7); }
.essence-list li { display: flex; gap: var(--s-4); align-items: flex-start; }
.essence-list h4 {
  font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-weight: 600;
  font-size: 1.2rem; color: var(--green); margin: 4px 0 6px;
}
.essence-list p { color: var(--ink-soft); font-size: 1rem; }

/* ---------- Fotos en tarjetas de metodología ---------- */
.method-card {
  --pad-y: var(--s-6); --pad-x: var(--s-6);
  display: flex; flex-direction: column; align-items: flex-start; overflow: hidden;
  padding: var(--pad-y) var(--pad-x);
}
.method-photo {
  width: calc(100% + 2 * var(--pad-x)); margin: calc(-1 * var(--pad-y)) calc(-1 * var(--pad-x)) -28px;
  aspect-ratio: 16 / 10; overflow: hidden;
}
.method-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.method-card:hover .method-photo img { transform: scale(1.04); }
.method-photo.ph { min-height: 0; }
.method-card .icon-badge { position: relative; z-index: 1; box-shadow: 0 0 0 5px var(--surface); background-clip: padding-box; }

/* ---------- Lengua de signos: clip en bucle + tarjetas que abren el vídeo completo ---------- */
.method-clip { position: relative; background: var(--tint-terracotta); }
.method-clip video { width: 100%; height: 100%; object-fit: cover; display: block; }
.clip-toggle {
  position: absolute; right: 12px; top: 12px; z-index: 2;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--green);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
  transition: transform .2s var(--ease-out), background-color .2s;
}
.clip-toggle:hover { transform: scale(1.08); background: #fff; }
.clip-toggle .icon { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.clip-toggle .icon-play, .method-clip.is-paused .clip-toggle .icon-pause { display: none; }
.method-clip.is-paused .clip-toggle .icon-play { display: inline; }

/* Toda la tarjeta es clicable: el botón estira su zona de clic sobre ella */
.card-link-host { position: relative; cursor: pointer; }
.card-link { padding: 0; text-align: left; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-link .icon { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.card-link-host:hover .card-link { text-decoration-color: currentColor; }
.essence-list .card-link { margin-top: var(--s-1); }

/* ---------- Bento: tarjeta de precios a lo ancho ---------- */
.bento-card--full {
  grid-column: 1 / -1; min-height: 0;
  flex-direction: row; align-items: center; justify-content: space-between; gap: var(--s-5);
  padding: var(--s-5) var(--s-6);
}
.bento-card--full .text-link--arrow { margin-top: 0; flex-shrink: 0; }
.bento-card--photo h3 { font-size: 1.3rem; }
/* Botones de vídeo sobre la foto de "Huerto y granja escuela" */
.photo-video-links { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.video-pill {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px;
  border: 0; border-radius: 999px; background: rgba(255,255,255,.94); color: #2b2b2b;
  font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer;
  transition: transform .2s var(--ease-out), background-color .2s;
}
.video-pill .icon { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.video-pill:hover { background: #fff; transform: translateY(-2px); }
.video-pill:active { transform: scale(.97); }
.video-pill:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* ---------- Equipo (propio) ---------- */
.team {
  display: grid; grid-template-columns: .8fr 1.2fr; gap: var(--s-8); align-items: center;
  margin-bottom: var(--s-6);
}
.team-photo { aspect-ratio: 4 / 4.4; overflow: hidden; box-shadow: var(--shadow-lg); max-width: 420px; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.team-copy h3 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin: var(--s-2) 0 var(--s-4); }
.team-copy p:not(.pedagogy-label) { color: var(--ink-soft); }
.hand-note--left { text-align: left; }
.team-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3) var(--s-5); margin-top: var(--s-5); }
.team-list li { display: flex; flex-direction: column; padding-left: var(--s-4); border-left: 3px solid var(--sage); }
.team-list strong { font-family: var(--font-display); font-size: 1.2rem; color: var(--green); }
.team-list span { font-size: .92rem; color: var(--ink-soft); line-height: 1.4; }
.team-list .team-list-cook { border-left-color: var(--mustard); }
@media (max-width: 639px) { .team-list { grid-template-columns: 1fr; } }

/* ---------- Carrusel: diapositivas pendientes ---------- */
.slide--ph .ph { position: absolute; inset: 0; padding-bottom: 90px; }

/* =========================================================
   UN CURSO LLENO DE VIDA (propio)
   ========================================================= */
.life .section-intro { margin-inline: auto; }
.reels { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); margin-bottom: var(--s-9); }
.reel h3 { font-size: 1.2rem; margin-bottom: 2px; }
.reel p:not(.reel-tag) { color: #E4EDDF; font-size: .98rem; }
.reel-tag {
  margin: var(--s-4) 0 4px;
  font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--tint-mustard);
}
.reel-media {
  position: relative; aspect-ratio: 9 / 16; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--green-dark);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .1), 0 24px 48px rgba(0, 0, 0, .28);
  transition: transform .4s var(--ease-out);
}
.reel:nth-child(odd) .reel-media { transform: rotate(-1.5deg); }
.reel:nth-child(even) .reel-media { transform: rotate(1.5deg) translateY(18px); }
.reel:hover .reel-media { transform: none; }
.reel-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel-toggle {
  position: absolute; right: 12px; bottom: 12px;
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--green);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  transition: transform .2s var(--ease-out), background-color .2s;
}
.reel-toggle:hover { transform: scale(1.08); background: #fff; }
.reel-toggle .icon { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.reel-toggle .icon-pause, .reel.is-playing .reel-toggle .icon-play { display: none; }
.reel.is-playing .reel-toggle .icon-pause { display: inline; }

.album { display: grid; grid-template-columns: .8fr 1.2fr; gap: var(--s-8); align-items: center; }
.album-copy h3 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin-bottom: var(--s-4); }
.album-copy p { color: #F3EBDD; margin-bottom: var(--s-5); }
.btn-light { background: var(--bg); color: var(--green); }
.btn-light:hover { background: var(--tint-mustard); transform: translateY(-2px); }

.polaroids { position: relative; display: flex; justify-content: center; align-items: center; min-height: 380px; }
.polaroid {
  position: relative; width: 29%; max-width: 230px; padding: 12px 12px 8px;
  background: #fff; border-radius: 6px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
  transition: transform .45s var(--ease-out), z-index 0s;
}
.polaroid + .polaroid { margin-left: -5%; }
.polaroid:nth-child(1) { transform: rotate(-7deg) translateY(10px); }
.polaroid:nth-child(2) { transform: rotate(3deg) translateY(-24px); z-index: 1; }
.polaroid:nth-child(3) { transform: rotate(8deg) translateY(22px); }
.polaroid:nth-child(4) { transform: rotate(-4deg) translateY(-14px); z-index: 1; }
.polaroid:hover { transform: rotate(0) scale(1.05); z-index: 2; }
.polaroid::before { /* cinta adhesiva */
  content: ""; position: absolute; top: -12px; left: 50%; width: 84px; height: 26px;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(232, 176, 75, .75); border-radius: 3px;
}
.polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.polaroid p {
  padding-top: 6px; text-align: center;
  font-family: var(--font-hand); font-size: 1.5rem; line-height: 1.2; color: var(--ink);
}

/* ---------- Aparición al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1099px) {
  .values-grid, .facilities-grid { grid-template-columns: repeat(2, 1fr); }
  .essence-list { grid-template-columns: repeat(2, 1fr); }
  .reels { gap: var(--s-4); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-card--tall { grid-row: span 2; }
  /* Tres tarjetas no caben en paralelo: se apilan a lo ancho, texto a la izquierda y etiquetas a la derecha */
  .pedagogy-grid { grid-template-columns: 1fr; }
  .pedagogy-card {
    display: grid; grid-template-columns: 1.1fr 1fr; column-gap: var(--s-7);
    grid-template-areas: "head chips-title" "text chips";
    align-items: start;
  }
  .pedagogy-head { grid-area: head; }
  .pedagogy-card > p:not(.chips-title) { grid-area: text; }
  .pedagogy-card .chips-title { grid-area: chips-title; align-self: end; margin-top: 0; }
  .pedagogy-card .chip-list { grid-area: chips; }
}
@media (max-width: 639px) {
  .pedagogy-card { display: block; }
  .pedagogy-card .chips-title { margin-top: var(--s-5); }
}

@media (max-width: 899px) {
  :root { --header-h: 76px; }
  .section { padding: var(--s-8) 0; }
  .hero { padding-bottom: var(--s-8); }
  .hero-grid, .about-grid, .project-block, .contact-grid { grid-template-columns: 1fr; gap: var(--s-7); }
  .hero-collage { justify-self: center; max-width: 460px; }
  .about-media { max-width: 520px; }
  .project-media { max-width: 380px; margin-inline: auto 12%; }
  .pedagogy-grid, .method-grid { grid-template-columns: 1fr; }
  .rooms-grid { grid-template-columns: 1fr; }
}
/* Tablet: aulas en fila y fotos de metodología más bajas para no ocupar toda la pantalla */
@media (min-width: 640px) and (max-width: 899px) {
  .rooms-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
  .rooms-grid .room-card { padding: var(--s-5); }
  .method-photo { aspect-ratio: 16 / 7; }
}
@media (max-width: 899px) {
  .steps { grid-template-columns: 1fr; gap: var(--s-7); max-width: 480px; margin-inline: auto; }
  .steps::before { display: none; }
  .testimonials { grid-template-columns: 1fr 1fr; }
  .testimonials .t-col:nth-child(3) { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .work { flex-direction: column; align-items: flex-start; }
  .essence-card { margin-top: -90px; padding: var(--s-6) var(--s-5); }
  .team, .album { grid-template-columns: 1fr; gap: var(--s-6); }
  .team-photo { max-width: 360px; }
  .reels {
    display: flex; gap: var(--s-4); overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: -20px; padding: 8px 20px 28px; scrollbar-width: none; margin-bottom: var(--s-7);
  }
  .reels::-webkit-scrollbar { display: none; }
  .reel { flex: 0 0 min(62vw, 260px); scroll-snap-align: center; }
  .reel:nth-child(even) .reel-media { transform: rotate(1.5deg); }
}

@media (max-width: 639px) {
  body { font-size: 1rem; }
  .container { padding-inline: 16px; }
  .site-header { padding: 8px 10px 0; }
  .header-bar { padding: 6px 8px 6px 14px; min-height: 60px; }
  .logo img, .site-header.is-scrolled .logo img { height: 42px; }
  .main-nav { left: 10px; right: 10px; }
  .hero-actions .btn { width: 100%; }
  .collage-note { font-size: 1.55rem; }
  .values-grid, .facilities-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; gap: 12px; }
  .bento-card { min-height: 0; padding: 18px 16px; }
  .bento-card h3 { font-size: 1.02rem; }
  .bento-card p { font-size: .94rem; }
  .bento-card .icon-badge { width: 46px; height: 46px; }
  .bento-card .icon-badge svg { width: 22px; height: 22px; }
  .bento-card--wide, .bento-card--tall { grid-column: 1 / -1; grid-row: auto; }
  .bento-card--tall { min-height: 300px; }
  .bento-card--wide, .bento-photo-copy { padding: var(--s-5); }
  .site-footer { padding-bottom: 96px; }
  .section-head--split { flex-direction: column; align-items: flex-start; }
  .carousel-controls { display: none; }
  .schedule { flex-direction: column; align-items: flex-start; gap: var(--s-3); }
  .pedagogy-card, .method-card, .room-card { padding: var(--s-6) var(--s-5); }
  .project-inset { right: -4%; }
  .method-card { --pad-x: var(--s-5); padding: var(--pad-y) var(--pad-x); }
  .essence-list { grid-template-columns: 1fr; gap: var(--s-5); }
  .essence-subtitle { font-size: 1.75rem; }
  .bento-card--full { flex-direction: column; align-items: flex-start; padding: var(--s-5); }
  .reels { margin-inline: -16px; padding-inline: 16px; }
  .polaroids { min-height: 0; padding-top: var(--s-4); flex-wrap: wrap; row-gap: var(--s-5); }
  .polaroid { width: 46%; padding: 8px 8px 4px; }
  .polaroid:nth-child(3) { margin-left: 0; }
  .polaroid p { font-size: 1.15rem; }
  /* Testimonios estáticos en una columna */
  .testimonials { display: block; height: auto; -webkit-mask-image: none; mask-image: none; }
  .t-col { animation: none; gap: var(--s-4); }
  .t-col + .t-col { margin-top: var(--s-4); }
  .testimonials .t-col:nth-child(3) { display: flex; }
  .t-dup { display: none; }
  .t-list { gap: var(--s-4); }
  .t-toggle { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .whatsapp-fab { right: 14px; bottom: 14px; width: 60px; padding: 0; justify-content: center; }
  .whatsapp-label { display: none; }
  .cta-card { padding: var(--s-4) var(--s-4) var(--s-5); }
  .btn-lg { padding: 14px 20px; font-size: 1rem; }
}

/* =========================================================
   RESERVA DE VISITA (ventana propia con la agenda de Google)
   ========================================================= */
.visita {
  width: min(760px, calc(100% - 32px)); max-height: calc(100dvh - 32px);
  margin: auto; padding: 0; border: 0;
  background: var(--bg); color: var(--ink);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  overflow: auto; overscroll-behavior: contain;
}
.visita::backdrop { background: rgba(47, 74, 43, .55); backdrop-filter: blur(3px); }
.visita[open] { animation: visita-in .35s var(--ease-out); }
@keyframes visita-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.visita-inner { padding: var(--s-6); }
.visita-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-4); margin-bottom: var(--s-4); }
.visita-head .section-tag { margin-bottom: var(--s-1); }
.visita-close {
  flex-shrink: 0; display: grid; place-items: center; width: 48px; height: 48px;
  border: 0; border-radius: 50%; background: var(--bg-alt); color: var(--ink); cursor: pointer;
  transition: background-color .2s;
}
.visita-close:hover { background: var(--tint-terracotta); }
.visita-close .icon { width: 22px; height: 22px; }
.visita-info { display: grid; gap: var(--s-2); margin: 0 0 var(--s-5); padding: 0; list-style: none; color: var(--ink-soft); }
.visita-info li { display: flex; gap: var(--s-3); align-items: flex-start; }
.visita-info .icon { margin-top: 3px; color: var(--green); }
.visita-info strong { color: var(--ink); }
.visita-frame {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden;
}
.visita-frame iframe { display: block; width: 100%; height: min(640px, 62dvh); border: 0; }
.visita-pending {
  padding: var(--s-5); background: var(--tint-sage); border-radius: var(--radius);
}
.visita-pending-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-4); }
.visita-foot { margin-top: var(--s-5); color: var(--ink-soft); text-align: center; }
html.visita-abierta { overflow: hidden; }

/* Ventana del vídeo completo de lengua de signos (vídeo vertical) */
.visita--video { width: min(460px, calc(100% - 32px)); }
.visita--video .visita-head h2 { font-size: clamp(1.35rem, 3.5vw, 1.7rem); }
.signos-player {
  border-radius: var(--radius); overflow: hidden; background: var(--green-dark); box-shadow: var(--shadow-sm);
}
.signos-player video {
  display: block; width: 100%; aspect-ratio: 352 / 624; max-height: calc(100dvh - 210px); object-fit: contain;
}
.visita--video-wide { width: min(820px, calc(100% - 32px)); }
.signos-player--wide video { aspect-ratio: 16 / 9; }
@media (max-width: 639px) {
  .visita { width: 100%; max-width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .visita-inner { padding: var(--s-5) var(--s-4); }
  .visita-frame iframe { height: 70dvh; }
  .visita-pending-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .testimonials { height: auto; -webkit-mask-image: none; mask-image: none; }
  .t-dup { display: none; }
  .t-toggle, .hero-video-toggle { display: none !important; }
}

/* Los teléfonos no se parten en dos líneas */
a[href^="tel:"] { white-space: nowrap; }

/* ---------- Páginas legales (aviso-legal, privacidad, cookies) ---------- */
.legal-header { background: var(--bg-alt); border-bottom: 1px solid rgba(59, 47, 38, .08); }
.legal-header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 76px; }
.legal-header img { height: 48px; width: auto; }
.legal { max-width: 760px; margin-inline: auto; padding: var(--s-8) 20px var(--s-9); }
.legal h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); margin-bottom: var(--s-3); }
.legal .legal-updated { color: var(--ink-soft); margin-bottom: var(--s-7); }
.legal h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin: var(--s-7) 0 var(--s-3); }
.legal p, .legal ul { margin-bottom: var(--s-4); }
.legal ul { padding-left: 1.3em; }
.legal li { margin-bottom: var(--s-2); }
.legal a { color: var(--terracotta-dark); text-underline-offset: 3px; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: var(--s-2) var(--s-5); background: var(--surface); border-radius: var(--radius-sm); padding: var(--s-5); box-shadow: var(--shadow-sm); margin-bottom: var(--s-5); }
.legal dt { font-weight: 700; }
.legal table { width: 100%; border-collapse: collapse; margin-bottom: var(--s-5); font-size: .95rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: var(--s-3); border-bottom: 1px solid rgba(59, 47, 38, .12); }
.legal th { background: var(--bg-alt); }
.legal-table-wrap { overflow-x: auto; }
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); list-style: none; }
.footer-legal a { color: inherit; }
@media (max-width: 560px) {
  .legal dl { grid-template-columns: 1fr; gap: 2px; }
  .legal dd { margin-bottom: var(--s-3); }
}
