/* ==========================================================================
   Magnòlia Llar d'Infants Sant Cugat
   ========================================================================== */

:root {
  --azul: #4674a2;
  --azul-oscuro: #2c4f74;
  --azul-noche: #1d3550;
  --azul-claro: #e8f0f8;
  --amarillo: #ffe14d;
  --amarillo-suave: #fff6c9;
  --crema: #fbf8f1;
  --blanco: #ffffff;
  --tinta: #1f2d3d;
  --texto: #445365;
  --suave: #6b7887;
  --linea: #e7e2d6;
  --verde-wa: #25d366;

  --fuente-titulos: "Fraunces", Georgia, "Times New Roman", serif;
  --fuente-texto: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radio: 22px;
  --radio-grande: 36px;
  --sombra: 0 1px 2px rgba(29, 53, 80, .06), 0 8px 24px rgba(29, 53, 80, .08);
  --sombra-alta: 0 2px 4px rgba(29, 53, 80, .06), 0 18px 48px rgba(29, 53, 80, .14);
  --ancho: 1200px;
  --margen: clamp(16px, 4vw, 40px);
  --cabecera: 76px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--cabecera) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--fuente-texto);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--texto);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--azul); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--azul-oscuro); }
h1, h2, h3, h4 {
  font-family: var(--fuente-titulos);
  color: var(--tinta);
  line-height: 1.15;
  font-weight: 600;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.4rem); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
strong { color: var(--tinta); }
:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--amarillo); color: var(--tinta); }

.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.saltar { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--tinta); color: #fff; padding: 10px 16px; border-radius: 10px; }
.saltar:focus { top: 12px; }

.contenedor { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 var(--margen); }
.estrecho { max-width: 820px; }

/* ---------- buttons ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: 700 1rem/1.2 var(--fuente-texto);
  padding: .85em 1.5em;
  border-radius: 999px;
  border: 2px solid var(--azul);
  background: var(--azul); color: #fff;
  text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.boton:hover { background: var(--azul-oscuro); border-color: var(--azul-oscuro); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(70, 116, 162, .3); }
.boton svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.boton--amarillo { background: var(--amarillo); border-color: var(--amarillo); color: var(--tinta); }
.boton--amarillo:hover { background: #ffd61a; border-color: #ffd61a; color: var(--tinta); box-shadow: 0 10px 24px rgba(255, 210, 0, .35); }
.boton--borde { background: transparent; color: var(--azul); }
.boton--borde:hover { background: var(--azul); color: #fff; }
.boton--claro { background: #fff; border-color: #fff; color: var(--azul-oscuro); }
.boton--claro:hover { background: var(--amarillo); border-color: var(--amarillo); color: var(--tinta); }
.boton--grande { font-size: 1.08rem; padding: 1em 1.8em; }
.botones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }

.enlace-flecha { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .4em; }
.enlace-flecha::after { content: "→"; transition: transform .2s ease; }
.enlace-flecha:hover::after { transform: translateX(4px); }

/* ---------- header ---------- */
.cabecera {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.cabecera.con-sombra { border-bottom-color: var(--linea); box-shadow: 0 4px 20px rgba(29, 53, 80, .06); }
.cabecera__dentro {
  max-width: 1320px; margin: 0 auto; padding: 0 var(--margen);
  height: var(--cabecera); display: flex; align-items: center; gap: 24px;
}
.cabecera__logo img { width: 176px; height: auto; }
.nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.nav__lista { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav__item { position: relative; }
.nav__enlace {
  display: inline-flex; align-items: center; gap: 4px;
  font: 700 .97rem/1 var(--fuente-texto); color: var(--tinta);
  padding: 10px 12px; border-radius: 999px; text-decoration: none;
  background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.nav__enlace svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; transition: transform .2s ease; }
.nav__enlace:hover, .nav__enlace[aria-current], .nav__item--activo > .nav__enlace { color: var(--azul); background: var(--azul-claro); }
.nav__sub {
  list-style: none; margin: 0; padding: 8px;
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px;
  background: #fff; border-radius: 18px; box-shadow: var(--sombra-alta); border: 1px solid var(--linea);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all .18s ease;
}
.nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav__sub a { display: block; padding: 10px 14px; border-radius: 12px; color: var(--tinta); font-weight: 700; text-decoration: none; font-size: .97rem; }
.nav__sub a:hover, .nav__sub a[aria-current] { background: var(--crema); color: var(--azul); }
.nav__item--grupo:hover .nav__sub, .nav__item--grupo.abierto .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__item--grupo.abierto > .nav__enlace svg { transform: rotate(180deg); }
.nav__extra { display: flex; align-items: center; gap: 14px; }
.idiomas { list-style: none; margin: 0; padding: 3px; display: flex; gap: 2px; background: var(--crema); border-radius: 999px; }
.idiomas a { display: block; font: 900 .78rem/1 var(--fuente-texto); letter-spacing: .04em; padding: 8px 10px; border-radius: 999px; color: var(--suave); text-decoration: none; }
.idiomas a:hover { color: var(--azul); }
.idiomas a[aria-current] { background: #fff; color: var(--azul); box-shadow: 0 1px 4px rgba(29, 53, 80, .12); }
.nav__cta { padding: .7em 1.2em; font-size: .95rem; white-space: nowrap; }

.cabecera__menu { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--crema); cursor: pointer; place-items: center; }
.cabecera__hamburguesa, .cabecera__hamburguesa::before, .cabecera__hamburguesa::after {
  display: block; width: 20px; height: 2.5px; border-radius: 2px; background: var(--tinta); position: relative; transition: transform .25s ease, background-color .25s ease;
}
.cabecera__hamburguesa::before, .cabecera__hamburguesa::after { content: ""; position: absolute; left: 0; }
.cabecera__hamburguesa::before { top: -6.5px; }
.cabecera__hamburguesa::after { top: 6.5px; }
.menu-abierto .cabecera__hamburguesa { background: transparent; }
.menu-abierto .cabecera__hamburguesa::before { transform: translateY(6.5px) rotate(45deg); }
.menu-abierto .cabecera__hamburguesa::after { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 1240px) {
  :root { --cabecera: 68px; }
  .cabecera__logo img { width: 156px; }
  /* backdrop-filter would turn the header into the containing block of the fixed menu panel */
  .cabecera { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .cabecera__menu { display: grid; }
  .nav {
    position: fixed; inset: var(--cabecera) 0 0 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 12px var(--margen) 32px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all .22s ease;
  }
  .menu-abierto .nav { opacity: 1; visibility: visible; transform: none; }
  .menu-abierto { overflow: hidden; }
  .nav__lista { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--linea); }
  .nav__enlace { width: 100%; justify-content: space-between; padding: 18px 4px; font-size: 1.15rem; border-radius: 0; }
  .nav__enlace:hover, .nav__enlace[aria-current], .nav__item--activo > .nav__enlace { background: none; }
  .nav__sub { position: static; box-shadow: none; border: 0; padding: 0 0 12px; min-width: 0; opacity: 1; visibility: visible; transform: none; display: none; }
  .nav__item--grupo:hover .nav__sub { display: none; }
  .nav__item--grupo.abierto .nav__sub { display: block; }
  .nav__sub a { font-size: 1.05rem; padding: 12px 14px; }
  .nav__extra { flex-direction: column; align-items: stretch; gap: 18px; margin-top: 24px; }
  .idiomas { align-self: flex-start; }
  .idiomas a { font-size: .9rem; padding: 10px 16px; }
  .nav__cta { font-size: 1.05rem; padding: 1em; }
}

/* ---------- sections ---------- */
.seccion { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.seccion--crema { background: var(--crema); }
.seccion--azul { background: var(--azul); color: #e9f0f7; }
.seccion--azul h2, .seccion--azul h3, .seccion--azul strong { color: #fff; }
.seccion--azul a:not(.boton) { color: #fff; }
.seccion--centro { text-align: center; }
.seccion--centro .entradilla { margin-left: auto; margin-right: auto; }
.seccion--ajustada { padding-top: 0; }

.antetitulo {
  display: inline-flex; align-items: center; gap: .6em;
  font: 900 .8rem/1.2 var(--fuente-texto); letter-spacing: .14em; text-transform: uppercase;
  color: var(--azul); margin-bottom: 1em;
}
.antetitulo::before { content: ""; width: 22px; height: 10px; border-radius: 10px; background: var(--amarillo); }
.seccion--azul .antetitulo { color: var(--amarillo); }
.entradilla { font-size: clamp(1.1rem, 1.6vw, 1.28rem); line-height: 1.6; max-width: 62ch; color: var(--texto); }
.seccion--azul .entradilla { color: #dfe9f3; }
.cabecera-seccion { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.seccion--centro .cabecera-seccion, .cabecera-seccion--centro { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- home hero ---------- */
.portada { position: relative; overflow: hidden; padding: clamp(32px, 5vw, 72px) 0 clamp(64px, 8vw, 110px); background: linear-gradient(180deg, #fff 0%, var(--crema) 100%); }
.portada__rejilla { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.portada h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin-bottom: .35em; }
.portada h1 em { font-style: normal; color: var(--azul); position: relative; z-index: 0; white-space: nowrap; }
.portada h1 em::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: .06em; height: .28em; background: var(--amarillo); border-radius: 999px; z-index: -1; }
.portada__media { position: relative; }
.portada__foto { border-radius: 48% 52% 46% 54% / 55% 46% 54% 45%; overflow: hidden; aspect-ratio: 1 / 1; box-shadow: var(--sombra-alta); position: relative; z-index: 1; }
.portada__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.portada__mancha { position: absolute; width: 46%; aspect-ratio: 1; background: var(--amarillo); border-radius: 50%; right: -8%; top: -6%; z-index: 0; }
.portada__mancha--2 { width: 22%; background: var(--azul-claro); left: -6%; right: auto; top: auto; bottom: 2%; }
.sello {
  position: absolute; z-index: 2; background: #fff; border-radius: 20px; box-shadow: var(--sombra-alta);
  padding: 12px 16px; display: flex; align-items: center; gap: 12px; font-size: .92rem; line-height: 1.3; color: var(--tinta);
}
.sello strong { display: block; font-family: var(--fuente-titulos); font-size: 1.35rem; line-height: 1.1; }
.sello--1 { left: -4%; top: 12%; }
.sello--2 { right: 0; bottom: 6%; }
.sello__icono { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--amarillo-suave); flex: none; }
.sello__icono svg { width: 24px; height: 24px; fill: none; stroke: var(--azul); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.estrellas { color: #f5b400; letter-spacing: 1px; font-size: .95rem; }

@media (max-width: 860px) {
  .portada__rejilla { grid-template-columns: 1fr; }
  .portada__media { max-width: 520px; margin: 8px auto 0; width: 100%; }
  .sello--1 { left: 0; }
}

/* ---------- facts strip ---------- */
.datos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(-56px, -5vw, -40px); position: relative; z-index: 3; }
.dato { background: #fff; border-radius: var(--radio); padding: 22px 22px 20px; box-shadow: var(--sombra); border: 1px solid var(--linea); }
.dato strong { display: block; font-family: var(--fuente-titulos); font-size: clamp(1.5rem, 2.4vw, 1.9rem); color: var(--azul); line-height: 1.1; margin-bottom: 6px; font-weight: 600; }
.dato span { font-size: .96rem; color: var(--texto); line-height: 1.4; display: block; }
@media (max-width: 900px) { .datos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .datos { grid-template-columns: 1fr; } }

/* ---------- inner page hero ---------- */
.cabecera-pagina { background: var(--crema); padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); position: relative; overflow: hidden; }
.cabecera-pagina::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, var(--amarillo-suave) 0%, rgba(255, 246, 201, 0) 70%);
}
.cabecera-pagina .contenedor { position: relative; z-index: 1; }
.cabecera-pagina h1 { max-width: 18ch; }
.cabecera-pagina--foto .contenedor { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.cabecera-pagina__foto { border-radius: var(--radio-grande); overflow: hidden; box-shadow: var(--sombra-alta); aspect-ratio: 4 / 3; }
.cabecera-pagina__foto img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) { .cabecera-pagina--foto .contenedor { grid-template-columns: 1fr; } }
.migas { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; font-size: .9rem; color: var(--suave); }
.migas li + li::before { content: "/"; margin-right: 6px; color: var(--linea); }
.migas a { color: var(--suave); text-decoration: none; }
.migas a:hover { color: var(--azul); }

/* ---------- cards ---------- */
.rejilla { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.rejilla--3 { grid-template-columns: repeat(3, 1fr); }
.rejilla--2 { grid-template-columns: repeat(2, 1fr); }
.rejilla--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .rejilla--3, .rejilla--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .rejilla--3, .rejilla--2, .rejilla--4 { grid-template-columns: 1fr; } }

.tarjeta {
  background: #fff; border-radius: var(--radio); border: 1px solid var(--linea);
  padding: clamp(24px, 3vw, 32px); box-shadow: var(--sombra);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column;
}
.tarjeta:hover { transform: translateY(-4px); box-shadow: var(--sombra-alta); }
.tarjeta p:last-child, .tarjeta ul:last-child { margin-bottom: 0; }
.tarjeta__icono { width: 64px; height: 64px; border-radius: 50%; margin-bottom: 18px; background: var(--azul-claro); }
.tarjeta__icono img { width: 100%; height: 100%; object-fit: contain; }
.tarjeta ul { padding-left: 0; list-style: none; }
.tarjeta ul li { padding-left: 1.5em; position: relative; margin-bottom: .3em; }
.tarjeta ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: .6em; height: .6em; border-radius: 50%; background: var(--amarillo); }
.tarjeta--foto { padding: 0; overflow: hidden; }
.tarjeta--foto .tarjeta__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--azul-claro); position: relative; }
.tarjeta--foto .tarjeta__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tarjeta--foto:hover .tarjeta__media img { transform: scale(1.04); }
.tarjeta--foto .tarjeta__cuerpo { padding: clamp(22px, 2.6vw, 28px); display: flex; flex-direction: column; flex: 1; }
.tarjeta__chapa { position: absolute; left: 18px; bottom: -26px; width: 56px; height: 56px; border-radius: 50%; background: #fff; padding: 4px; box-shadow: var(--sombra); z-index: 1; }
.tarjeta__chapa img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.tarjeta--con-chapa .tarjeta__media { overflow: visible; }
.tarjeta--con-chapa .tarjeta__media > img { border-radius: var(--radio) var(--radio) 0 0; }
.tarjeta--con-chapa .tarjeta__cuerpo { padding-top: 40px; }
.tarjeta__pie { margin-top: auto; padding-top: 14px; }

/* ---------- split block ---------- */
.bloque { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.bloque--invertido > :first-child { order: 2; }
.bloque__media { border-radius: var(--radio-grande); overflow: hidden; box-shadow: var(--sombra-alta); position: relative; }
.bloque__media img, .bloque__media video { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .bloque { grid-template-columns: 1fr; } .bloque--invertido > :first-child { order: 0; } }

.marco-video { border-radius: var(--radio-grande); overflow: hidden; box-shadow: var(--sombra-alta); background: var(--azul-noche); aspect-ratio: 16 / 9; }
.marco-video video, .marco-video iframe { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }

/* ---------- services list ---------- */
.servicio { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: start; padding: 28px 0; border-top: 1px solid var(--linea); }
.servicio:last-child { border-bottom: 1px solid var(--linea); }
.servicio__img { width: 120px; height: 120px; border-radius: 28px; overflow: hidden; }
.servicio__img img { width: 100%; height: 100%; object-fit: cover; }
.servicio h3 { margin-bottom: .35em; }
.servicio p { margin: 0; }
@media (max-width: 560px) { .servicio { grid-template-columns: 1fr; gap: 14px; } .servicio__img { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--radio); } }

/* sample menu (tabs by age, CSS only) and calendar dates inside a service */
.servicio .boton { margin-top: 16px; }
.menu-ejemplo { margin-top: 18px; border: 1px solid var(--linea); border-radius: 18px; background: #fff; }
.menu-ejemplo > summary { list-style: none; cursor: pointer; padding: 14px 20px; font-weight: 700; color: var(--azul); }
.menu-ejemplo > summary::-webkit-details-marker { display: none; }
.menu-ejemplo > summary::before { content: "+"; display: inline-block; width: 1.2em; font-weight: 900; }
.menu-ejemplo[open] > summary::before { content: "–"; }
.menu-ejemplo__cuerpo { padding: 0 20px 20px; }
.pestanas { display: flex; flex-wrap: wrap; gap: 6px; }
.pestanas > input { position: absolute; opacity: 0; pointer-events: none; }
.pestanas > label { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--linea); font-weight: 700; font-size: .9rem; color: var(--tinta); cursor: pointer; }
.pestanas > input:checked + label { background: var(--azul); border-color: var(--azul); color: #fff; }
.pestanas > input:focus-visible + label { outline: 3px solid var(--amarillo); outline-offset: 2px; }
.pestana { display: none; flex-basis: 100%; margin-top: 12px; }
#menu-1:checked ~ .pestana--1, #menu-2:checked ~ .pestana--2, #menu-3:checked ~ .pestana--3 { display: block; }
.menu-semana { list-style: none; padding: 0; margin: 0; }
.menu-semana li { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--linea); font-size: .95rem; }
.menu-semana li:first-child { border-top: 0; }
.menu-semana strong { color: var(--tinta); }
.menu-semana span { display: block; color: var(--suave); }
.menu-nota { margin-top: 12px !important; font-size: .9rem; color: var(--suave); }
.calidad { margin: 14px 0 0; padding: 16px 18px 16px 34px; border-radius: 16px; background: var(--amarillo-suave); font-size: .95rem; }
.calidad li { margin: 3px 0; }
.fechas { list-style: none; padding: 0; margin: 14px 0 0; }
.fechas li { padding: 8px 0; border-top: 1px dashed var(--linea); }
.fechas li:first-child { border-top: 0; }
@media (max-width: 560px) { .menu-semana li { grid-template-columns: 1fr; gap: 2px; } }

.indice { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.indice a { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--linea); color: var(--tinta); font-weight: 700; font-size: .92rem; text-decoration: none; }
.indice a:hover { border-color: var(--azul); color: var(--azul); }

/* ---------- team ---------- */
.equipo { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: clamp(16px, 2vw, 24px); }
.persona { margin: 0; text-align: center; }
.persona__foto { aspect-ratio: 5 / 6; border-radius: 28px; overflow: hidden; background: var(--crema); margin-bottom: 14px; box-shadow: var(--sombra); }
.persona__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; transition: transform .5s ease; }
.persona:hover .persona__foto img { transform: scale(1.04); }
.persona figcaption strong { display: block; font-family: var(--fuente-titulos); font-size: 1.2rem; font-weight: 600; }
.persona figcaption span { color: var(--suave); font-size: .95rem; }
.persona--destacada .persona__foto { box-shadow: 0 0 0 4px var(--amarillo), var(--sombra); }

/* ---------- testimonials ---------- */
.valoracion { display: inline-flex; align-items: center; gap: 14px; background: #fff; border-radius: 999px; padding: 10px 20px 10px 12px; box-shadow: var(--sombra); color: var(--tinta); }
.valoracion__g { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--crema); font: 900 1.1rem/1 var(--fuente-texto); color: var(--azul); }
.valoracion strong { font-size: 1.2rem; }
.opiniones { margin-top: 40px; }
.opiniones__pista { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, calc((100% - 48px) / 3)); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 24px; scrollbar-width: none; }
.opiniones__pista::-webkit-scrollbar { display: none; }
@media (max-width: 900px) { .opiniones__pista { grid-auto-columns: minmax(280px, 82%); } }
.opinion { margin: 0; scroll-snap-align: start; background: #fff; border-radius: var(--radio); padding: 28px; box-shadow: var(--sombra); display: flex; flex-direction: column; position: relative; }
.opinion::before { content: "“"; font-family: var(--fuente-titulos); font-size: 4.5rem; line-height: .7; color: var(--amarillo); height: 34px; }
.opinion blockquote { margin: 0 0 18px; font-size: 1rem; color: var(--texto); display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.opinion.expandida blockquote { -webkit-line-clamp: unset; }
.opinion figcaption { margin-top: auto; font-weight: 900; color: var(--tinta); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.opinion figcaption::after { content: "★★★★★"; color: #f5b400; letter-spacing: 1px; font-size: .85rem; }
.leer-mas { background: none; border: 0; padding: 0; margin: -8px 0 14px; color: var(--azul); font: 700 .92rem var(--fuente-texto); cursor: pointer; align-self: flex-start; }
.opiniones__controles { display: flex; gap: 10px; justify-content: center; }
.opiniones__google { display: flex; justify-content: center; margin: 0 0 18px; }
.campo__ayuda { font-size: .88rem; color: var(--suave); }
.pie__otro-centro { font-weight: 700; color: var(--amarillo) !important; }
.redondo { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--linea); background: #fff; display: grid; place-items: center; cursor: pointer; transition: all .2s ease; }
.redondo:hover { border-color: var(--azul); background: var(--azul); }
.redondo svg { width: 20px; height: 20px; fill: none; stroke: var(--tinta); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.redondo:hover svg { stroke: #fff; }

/* ---------- CTA band ---------- */
.llamada { background: var(--amarillo); border-radius: var(--radio-grande); padding: clamp(36px, 6vw, 72px); color: var(--tinta); display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.llamada::before { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: rgba(255, 255, 255, .35); right: -120px; bottom: -180px; }
.llamada h2 { color: var(--tinta); margin-bottom: .3em; }
/* inside the yellow band the main button turns blue so it stands out */
.llamada .boton--amarillo { background: var(--azul); border-color: var(--azul); color: #fff; }
.llamada .boton--amarillo:hover { background: var(--azul-oscuro); border-color: var(--azul-oscuro); color: #fff; box-shadow: 0 10px 24px rgba(70, 116, 162, .3); }
.llamada p { margin: 0; font-size: 1.1rem; }
.llamada .botones { margin: 0; position: relative; }
@media (max-width: 980px) { .llamada { grid-template-columns: 1fr; } }

/* ---------- instagram ---------- */
.instagram { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; background: var(--amarillo-suave); border-radius: var(--radio-grande); padding: clamp(28px, 4vw, 48px); }
.instagram h2 { margin: 0; }
.instagram p { margin: .4em 0 0; }

/* ---------- admissions ---------- */
.pasos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: paso; }
@media (max-width: 980px) { .pasos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pasos { grid-template-columns: 1fr; } }
.paso { counter-increment: paso; background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); padding: 26px 24px 24px; box-shadow: var(--sombra); }
.paso::before { content: counter(paso); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--amarillo); color: var(--tinta); font: 600 1.3rem/1 var(--fuente-titulos); margin-bottom: 16px; }
.paso p { margin: 0; }
.tabla-precios { overflow-x: auto; border-radius: var(--radio); box-shadow: var(--sombra); border: 1px solid var(--linea); background: #fff; }
.tabla-precios table { width: 100%; border-collapse: collapse; min-width: 620px; }
.tabla-precios th, .tabla-precios td { padding: 16px 18px; text-align: center; border-bottom: 1px solid var(--linea); }
.tabla-precios thead th { background: var(--azul); color: #fff; font-size: .95rem; vertical-align: top; }
.tabla-precios thead th small { display: block; font-weight: 400; font-size: .8rem; opacity: .9; margin-top: 4px; }
.tabla-precios tbody th { text-align: left; color: var(--tinta); }
.tabla-precios td { font: 600 1.25rem/1.2 var(--fuente-titulos); color: var(--azul); }
.tabla-precios tbody tr:last-child > * { border-bottom: 0; }

/* ---------- Instagram feed ---------- */
.insta__cabecera { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.insta__cabecera h2 { margin-bottom: .2em; }
.insta__cabecera p:last-child { margin: 0; }
.insta__rejilla { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
@media (max-width: 900px) { .insta__rejilla { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .insta__rejilla { grid-template-columns: repeat(2, 1fr); gap: 8px; } }
.insta__rejilla a { display: block; position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--crema); }
.insta__rejilla img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.insta__rejilla a::after {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .25s ease;
  background: rgba(29, 53, 80, .45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4.2'/%3E%3C/svg%3E") center / 34px no-repeat;
}
.insta__rejilla a:hover img { transform: scale(1.06); }
.insta__rejilla a:hover::after { opacity: 1; }

/* ---------- FAQ ---------- */
.faq-grupo { margin-bottom: 48px; }
.faq-grupo h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.faq-grupo h2::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--amarillo); flex: none; }
.pregunta { background: #fff; border: 1px solid var(--linea); border-radius: 18px; margin-bottom: 10px; transition: box-shadow .2s ease, border-color .2s ease; }
.pregunta[open] { box-shadow: var(--sombra); border-color: transparent; }
.pregunta summary { list-style: none; cursor: pointer; padding: 20px 60px 20px 24px; font: 700 1.08rem/1.4 var(--fuente-texto); color: var(--tinta); position: relative; }
.pregunta summary::-webkit-details-marker { display: none; }
.pregunta summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: var(--azul-claro) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234674a2' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .25s ease; }
.pregunta[open] summary::after { transform: rotate(45deg); }
.pregunta summary:hover { color: var(--azul); }
.pregunta > div { padding: 0 24px 22px; }
.pregunta > div p { margin: 0; }

/* ---------- activities ---------- */
.horarios { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 0 0 8px; padding: 0; list-style: none; }
.horarios li { background: var(--crema); border-radius: 16px; padding: 16px 18px; }
.horarios strong { display: block; font-family: var(--fuente-titulos); font-size: 1.15rem; font-weight: 600; }
.horarios span { display: block; font-size: .95rem; }
@media (max-width: 560px) { .horarios { grid-template-columns: 1fr; } }
.precios { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.precios li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--linea); }
.precios li strong { font-family: var(--fuente-titulos); font-size: 1.4rem; color: var(--azul); white-space: nowrap; }
.tarjeta ul.precios li { padding-left: 0; margin-bottom: 0; }
.tarjeta ul.precios li::before { display: none; }
.nota { background: var(--amarillo-suave); border-radius: 16px; padding: 16px 20px; font-size: .97rem; }
.nota p:last-child { margin: 0; }

/* ---------- videos & gallery ---------- */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: clamp(20px, 3vw, 32px); }
@media (max-width: 400px) { .videos { grid-template-columns: 1fr; } }
.video { margin: 0; }
.video video, .video iframe { border: 0; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radio); background: var(--azul-noche); box-shadow: var(--sombra); }
.video figcaption { font-family: var(--fuente-titulos); font-size: 1.25rem; color: var(--tinta); margin-top: 12px; font-weight: 600; }
.galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; grid-auto-flow: dense; }
.galeria a { display: block; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--crema); }
.galeria a:nth-child(5n+1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 560px) { .galeria { grid-template-columns: 1fr 1fr; } .galeria a:nth-child(5n+1) { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 3; } }
.galeria img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.galeria a:hover img { transform: scale(1.05); }
.visor { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); max-height: 92vh; }
.visor::backdrop { background: rgba(15, 26, 40, .88); }
.visor img { max-height: 86vh; width: auto; margin: 0 auto; border-radius: 16px; }
.visor__cerrar { position: fixed; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.visor__nav { position: fixed; top: 50%; margin-top: -24px; }
.visor__nav--ant { left: 16px; }
.visor__nav--sig { right: 16px; }

/* ---------- contact ---------- */
.contacto { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .contacto { grid-template-columns: 1fr; } }
.datos-contacto { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.datos-contacto li { display: flex; gap: 16px; align-items: flex-start; background: #fff; border-radius: 18px; padding: 18px; border: 1px solid var(--linea); }
.datos-contacto .icono { width: 46px; height: 46px; border-radius: 14px; background: var(--azul-claro); display: grid; place-items: center; flex: none; }
.datos-contacto .icono svg { width: 22px; height: 22px; fill: none; stroke: var(--azul); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.datos-contacto small { display: block; color: var(--suave); font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.datos-contacto a { color: var(--tinta); font-weight: 700; text-decoration: none; }
.datos-contacto a:hover { color: var(--azul); }
.mapa { border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); aspect-ratio: 4 / 3; background: var(--crema); }
.mapa iframe { width: 100%; height: 100%; border: 0; }
.mapa { position: relative; }
.mapa__capa { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px; text-align: center; background: var(--azul-claro); }
.mapa__capa p { margin: 0; max-width: 34ch; font-size: .95rem; color: var(--texto); }
.caja-form { background: #fff; border-radius: var(--radio-grande); padding: clamp(24px, 4vw, 44px); box-shadow: var(--sombra-alta); border: 1px solid var(--linea); }
.caja-form h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }

/* ---------- form ---------- */
.formulario { display: grid; gap: 16px; }
.formulario__fila { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .formulario__fila { grid-template-columns: 1fr; } }
.campo { display: grid; gap: 6px; }
.campo span { font-weight: 700; font-size: .95rem; color: var(--tinta); }
.campo input, .campo select, .campo textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--tinta);
  padding: 14px 16px; border: 1.5px solid var(--linea); border-radius: 14px; background: var(--crema);
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.campo textarea { resize: vertical; min-height: 130px; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: 0; border-color: var(--azul); background: #fff; box-shadow: 0 0 0 4px rgba(70, 116, 162, .15); }
.formulario.validado :invalid { border-color: #d0453b; }
.casilla { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; }
.casilla input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--azul); flex: none; }
.formulario.validado .casilla input:invalid { outline: 2px solid #d0453b; outline-offset: 2px; }
.formulario .boton { justify-self: start; }
.formulario__estado { margin: 0; font-weight: 700; }
.formulario__estado.ok { color: #1f7a4d; }
.formulario__estado.error { color: #b3362d; }

/* ---------- legal pages ---------- */
.prosa { max-width: 780px; }
.prosa h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-top: 1.8em; }
.prosa h3 { margin-top: 1.4em; }
.prosa li { margin-bottom: .4em; }
.prosa table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prosa th, .prosa td { border: 1px solid var(--linea); padding: 10px 12px; text-align: left; vertical-align: top; }
.prosa th { background: var(--crema); color: var(--tinta); }
.prosa a { word-break: break-word; }

/* ---------- footer ---------- */
.pie { background: var(--azul); color: #eef4fa; position: relative; margin-top: 80px; padding: 72px 0 120px; font-size: .97rem; }
.pie__curva { position: absolute; left: 0; right: 0; top: -60px; height: 61px; background: var(--azul); clip-path: ellipse(70% 100% at 50% 100%); }
.pie a { color: #fff; text-decoration: none; }
.pie a:hover { color: var(--amarillo); }
.pie__rejilla { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .25); }
@media (max-width: 760px) { .pie__rejilla { grid-template-columns: 1fr; } }
.pie__marca img { width: 130px; margin-bottom: 24px; }
.pie__titulo { font: 900 .82rem/1 var(--fuente-texto); letter-spacing: .14em; text-transform: uppercase; color: var(--amarillo); margin-bottom: 20px; }
.pie__enlaces, .pie__contacto { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.pie__enlaces { grid-template-columns: 1fr 1fr; column-gap: 20px; }
.redes { list-style: none; padding: 0; margin: 0; display: flex; gap: 10px; }
.redes a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .18); transition: background-color .2s ease; }
.redes a:hover { background: var(--amarillo); }
.redes svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; }
.redes svg .relleno { fill: #fff; stroke: none; }
.redes a:hover svg { stroke: var(--tinta); }
.redes a:hover svg .relleno { fill: var(--tinta); }
.pie__sellos { display: flex; flex-wrap: wrap; gap: 28px 40px; align-items: flex-end; padding: 40px var(--margen); border-bottom: 1px solid rgba(255, 255, 255, .25); }
.pie__sellos figure { margin: 0; display: flex; flex-direction: column-reverse; gap: 10px; max-width: 220px; }
.pie__sellos img { max-height: 54px; width: auto; }
.pie__sellos figcaption { font-size: .78rem; line-height: 1.4; color: #e3ecf5; }
.pie__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; font-size: .88rem; color: #e3ecf5; }
.pie__legal ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.pie__legal a { color: #e3ecf5; }
.pie__legal p { margin: 0; }

/* ---------- floating ---------- */
.whatsapp {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 58px; height: 58px; border-radius: 50%;
  background: var(--verde-wa); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37, 211, 102, .4);
  transition: transform .2s ease;
}
.whatsapp:hover { transform: scale(1.08); }
.whatsapp svg { width: 32px; height: 32px; fill: #fff; }

.cookies {
  position: fixed; left: 20px; bottom: 20px; z-index: 60; max-width: 440px; margin-right: 96px;
  background: #fff; border-radius: var(--radio); padding: 22px; box-shadow: var(--sombra-alta); border: 1px solid var(--linea); font-size: .95rem;
}
.cookies p { margin: 0 0 16px; }
.cookies__botones { display: flex; gap: 10px; flex-wrap: wrap; }
.cookies .boton { padding: .7em 1.3em; font-size: .95rem; }
@media (max-width: 560px) { .cookies { left: 12px; right: 12px; bottom: 12px; margin-right: 0; max-width: none; } }

/* ---------- reveal animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .aparece { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
  .aparece.visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- highlighted quote ---------- */
.cita { font-family: var(--fuente-titulos); font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.4; color: var(--tinta); max-width: 40ch; margin: 1.4em 0 0; padding-left: 22px; border-left: 5px solid var(--amarillo); }
.cita strong { color: var(--azul); font-weight: 600; }
