/* ============================================================
   ZURI — Estilos comunes (portada, páginas de sector, calendario)
   Cada tema define sus variables en infancias.css / multiespacios.css
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fondo, #fff);
  color: var(--texto, #222);
  font-family: var(--fuente-texto, system-ui, sans-serif);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.envoltura { width: min(1180px, 100% - 40px); margin-inline: auto; }
.oculto { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Aviso modo demo ---------- */
.aviso-demo {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 999;
  background: #2B2B4A; color: #fff; font: 14px/1.3 system-ui, sans-serif;
  padding: 10px 12px 10px 16px; border-radius: 999px; display: flex; gap: 10px; align-items: center;
  box-shadow: 0 6px 24px rgba(0,0,0,.25); max-width: calc(100% - 24px);
}
.aviso-demo button { background: rgba(255,255,255,.15); border: 0; color: #fff; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-size: 18px; line-height: 1; }

/* =========================================================
   PORTADA (index.html)
   ========================================================= */
video { max-width: 100%; }
.portada { min-height: 100vh; display: flex; }
body:has(.redes--portada) { position: relative; }
.portada__mitad {
  position: relative; flex: 1 1 50%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  gap: 28px; padding: 48px 32px 9vh; text-decoration: none; transition: flex-grow .5s ease; overflow: hidden;
}
.portada__mitad:hover, .portada__mitad:focus-visible { flex-grow: 1.35; }
/* Logo formal: centrado a la misma altura que el cartel infantil */
.portada__logo {
  position: absolute; top: 45%; left: 50%; z-index: 1; width: min(660px, 66%);
  transform: translate(-50%, -50%); transition: transform .5s ease;
}
.portada__mitad:hover .portada__logo { transform: translate(-50%, -50%) scale(1.04); }

/* Glow amarillo del logo de Multiespacio (en toda la página): intensidad fija, sin latir,
   con un movimiento lento y suave. --g escala el brillo según el tamaño del logo. */
.logo-glow { --g: 1; --glow1: rgba(255, 196, 64, .55); --glow2: rgba(255, 184, 40, .30); animation: zuri-glow 9s ease-in-out infinite; }
.logo-glow--chico { --g: .45; }
@keyframes zuri-glow { /* la luz se corre apenas alrededor del logo, sin cambiar de fuerza */
  0%, 100% { filter: drop-shadow(calc(-3px * var(--g)) calc(-1px * var(--g)) calc(10px * var(--g)) var(--glow1)) drop-shadow(calc(-6px * var(--g)) calc(-2px * var(--g)) calc(28px * var(--g)) var(--glow2)); }
  25%      { filter: drop-shadow(0px calc(-3px * var(--g)) calc(10px * var(--g)) var(--glow1)) drop-shadow(0px calc(-6px * var(--g)) calc(28px * var(--g)) var(--glow2)); }
  50%      { filter: drop-shadow(calc(3px * var(--g)) calc(1px * var(--g)) calc(10px * var(--g)) var(--glow1)) drop-shadow(calc(6px * var(--g)) calc(2px * var(--g)) calc(28px * var(--g)) var(--glow2)); }
  75%      { filter: drop-shadow(0px calc(3px * var(--g)) calc(10px * var(--g)) var(--glow1)) drop-shadow(0px calc(6px * var(--g)) calc(28px * var(--g)) var(--glow2)); }
}
/* =========================================================
   INICIO (index.html): logo grande arriba y dos opciones abajo
   ========================================================= */
/* Fondo caramelo, letras y logos en negro */
.pagina-inicio { background: #DFB28D; color: #111111; }
/* sobre caramelo el logo grande usa un glow claro y cálido */
.pagina-inicio .logo-glow { --glow1: rgba(255, 249, 240, .80); --glow2: rgba(255, 240, 222, .55); }
.pagina-inicio .portada__halo { background: radial-gradient(closest-side, rgba(255, 244, 232, .45), rgba(255, 244, 232, .14) 55%, transparent 100%); }
.inicio {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(36px, 7vh, 72px); padding: 72px 24px 56px;
}
.inicio__marca { position: relative; width: min(640px, 78vw); display: grid; place-items: center; }
.inicio__marca .portada__halo { top: 50%; width: 120%; }
.inicio__logo { position: relative; z-index: 1; width: 100%; }
.inicio__opciones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; width: min(960px, 100%); }

/* Cada opción es un botón grande */
.acceso {
  position: relative; overflow: hidden; isolation: isolate; text-decoration: none; color: #FFFFFF;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 14px;
  min-height: 400px; padding: 26px 22px 28px; border-radius: 14px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.acceso:hover, .acceso:focus-visible { transform: translateY(-4px); }
.acceso:focus-visible { outline: 3px solid #111111; outline-offset: 3px; }
.acceso__sub { position: relative; z-index: 2; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; }
.acceso__cta {
  position: relative; z-index: 2; display: inline-flex; flex-direction: row; flex-wrap: nowrap; white-space: nowrap; align-items: center; gap: 10px;
  padding: 12px 24px; border-radius: 6px; font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.acceso__cta svg { flex: none; display: block; width: 17px; height: 17px; transition: transform .3s; }
.acceso:hover .acceso__cta svg { transform: translateX(4px); }

/* ZURI Eventos: fondo oscuro, logo con glow tenue que late despacio */
.acceso--eventos {
  background: #0B0B0B; border: 1px solid rgba(247, 231, 206, .22); font-family: 'Space Grotesk', system-ui, sans-serif; color: #FFFFFF;
  box-shadow: 0 10px 28px rgba(50, 28, 10, .30), 0 2px 6px rgba(50, 28, 10, .16);
}
.acceso--eventos:hover { border-color: rgba(247, 231, 206, .40); box-shadow: 0 16px 36px rgba(50, 28, 10, .36), 0 3px 8px rgba(50, 28, 10, .18); }
.acceso__logo { position: absolute; top: 42%; left: 50%; transform: translate(-50%, -50%); width: 80%; max-width: 380px; }
.acceso--eventos .acceso__sub { color: #D9D2C7; }
/* glow amarillo más marcado para que resalte sobre el negro */
.acceso--eventos .logo-pulso { --p1a: rgba(255, 200, 70, .40); --p1b: rgba(255, 186, 40, .20); --p2a: rgba(255, 204, 80, .85); --p2b: rgba(255, 186, 40, .45); }
/* botón champagne */
.acceso--eventos .acceso__cta { background: #F7E7CE; color: #111111; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.acceso--eventos:hover .acceso__cta { background: #FFF3E0; }
.logo-pulso {
  --p1a: rgba(255, 196, 64, .22); --p1b: rgba(255, 184, 40, .10); --p2a: rgba(255, 196, 64, .50); --p2b: rgba(255, 184, 40, .26);
  animation: zuri-pulso 3.6s ease-in-out infinite alternate;
}
@keyframes zuri-pulso {
  from { filter: drop-shadow(0 0 4px var(--p1a)) drop-shadow(0 0 14px var(--p1b)); }
  to   { filter: drop-shadow(0 0 7px var(--p2a)) drop-shadow(0 0 22px var(--p2b)); }
}

/* ZURI Infancias: el cartel animado ocupa toda la opción */
.acceso--infantil { background: #1F5A2A; border: 1px solid rgba(60, 35, 15, .22); font-family: 'Fredoka', system-ui, sans-serif; box-shadow: 0 10px 28px rgba(70, 40, 15, .22), 0 2px 6px rgba(70, 40, 15, .12); }
.acceso--infantil:hover { box-shadow: 0 16px 36px rgba(70, 40, 15, .28), 0 3px 8px rgba(70, 40, 15, .14); }
/* el cartel ocupa toda la tarjeta; el texto y el botón van encima, abajo, con una sombra suave */
.acceso__escena { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 50%; z-index: -1; transform: translateY(-8%) scale(1.04); transition: transform .5s ease; }
.acceso--infantil:hover .acceso__escena { transform: translateY(-8%) scale(1.08); }
.acceso--infantil::after { content: ""; position: absolute; inset: auto 0 0 0; height: 34%; z-index: -1; background: linear-gradient(to top, rgba(8, 36, 16, .92), rgba(8, 36, 16, .55) 55%, rgba(8, 36, 16, 0)); }
.acceso--infantil .acceso__sub { text-shadow: 0 2px 8px rgba(0, 0, 0, .6); letter-spacing: .16em; }
.acceso--infantil .acceso__cta { background: #5285AE; color: #FFFFFF; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); letter-spacing: .1em; }

/* Redes en la portada: arriba a la derecha */
.pagina-inicio .redes--portada { left: auto; right: 18px; top: 16px; transform: none; background: rgba(255, 248, 240, .55); box-shadow: 0 2px 10px rgba(70, 40, 15, .15); }
.pagina-inicio .redes--portada .redes__link { color: #111111; }
.pagina-inicio .redes--portada .redes__link:hover { background: #111111; color: #DFB28D; }

@media (max-width: 760px) {
  .inicio { justify-content: flex-start; padding: 70px 16px 32px; gap: 30px; }
  .inicio__marca { width: min(420px, 86vw); }
  .inicio__opciones { grid-template-columns: 1fr; gap: 16px; }
  .acceso { min-height: 320px; }
  .acceso__logo { top: 38%; width: 78%; }
  .acceso__logo { width: min(240px, 72%); }
  .pagina-inicio .redes--portada { top: 12px; right: 12px; }
}

/* Halo cálido detrás del logo que se desplaza muy despacio */
.portada__halo {
  position: absolute; top: 45%; left: 50%; z-index: 0; pointer-events: none;
  width: min(760px, 80%); aspect-ratio: 2.2; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 190, 50, .20), rgba(255, 190, 50, .07) 55%, transparent 100%);
  filter: blur(18px); transform: translate(-50%, -50%);
  animation: zuri-halo 14s ease-in-out infinite;
}
@keyframes zuri-halo {
  0%, 100% { transform: translate(-53%, -50%); }
  50%      { transform: translate(-47%, -52%); }
}

.portada__cta {
  position: relative; z-index: 2; font-weight: 600; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-size: 15px; letter-spacing: .14em; text-transform: uppercase;
}
.portada__cta svg { width: 18px; height: 18px; transition: transform .3s; }
.portada__mitad:hover .portada__cta svg { transform: translateX(4px); }
.portada__sub { position: relative; z-index: 2; margin: -8px 0 0; font-size: 15px; letter-spacing: .2em; text-transform: uppercase; opacity: .8; }

.portada__formal { background: #000000; color: #F2EFEA; }
.portada__formal .portada__cta { background: #F2EFEA; color: #000000; font-family: 'Tinos', serif; }
.portada__formal .portada__sub { opacity: .9; }
.portada__formal .portada__sub { font-family: 'Tinos', serif; }

/* Mitad infantil: la escena animada (cartel en la selva) ocupa toda la mitad */
.portada__infantil { background: #1F5A2A; color: #fff; }
.portada__mitad .portada__escena {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: 50% 32%; z-index: 0; transform: none; display: block;
}
.portada__mitad:hover .portada__escena { transform: scale(1.03); }
.portada__infantil::after { /* sombra abajo para que se lea el texto */
  content: ""; position: absolute; inset: auto 0 0 0; height: 42%; pointer-events: none;
  background: linear-gradient(to top, rgba(10, 40, 18, .82), rgba(10, 40, 18, 0));
}
.portada__infantil .portada__sub, .portada__infantil .portada__cta { z-index: 2; }
.portada__infantil .portada__cta { background: #5285AE; color: #fff; font-family: 'Fredoka', sans-serif; font-weight: 600; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.portada__infantil .portada__sub { font-family: 'Fredoka', sans-serif; color: #fff; opacity: 1; text-shadow: 0 2px 8px rgba(0, 0, 0, .6); }

@media (max-width: 760px), (orientation: portrait) {
  .portada { flex-direction: column; }
  .portada__mitad { padding-bottom: 22px; gap: 14px; }
  .portada__logo { width: min(520px, 74%); top: 42%; }
  .portada__halo { top: 42%; width: 86%; }
  .portada__mitad .portada__escena { object-position: 50% 22%; }
  .portada__mitad { min-height: 50vh; }
  .portada__mitad:hover { flex-grow: 1; }
}

/* =========================================================
   PÁGINAS DE SECTOR
   ========================================================= */
.cabecera {
  position: sticky; top: 0; z-index: 50; background: var(--cabecera-fondo, var(--fondo));
  border-bottom: 1px solid var(--borde);
}
.cabecera .envoltura { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; padding-block: 8px; }
.cabecera .envoltura { justify-content: flex-start; }
.cabecera__logo { margin-right: auto; }
.cabecera__logo img { height: 44px; width: auto; }

/* ---------- Redes sociales ---------- */
.redes { display: flex; gap: 8px; align-items: center; }
.cabecera .redes { padding-left: 14px; border-left: 1px solid var(--borde); }
.redes__link {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  color: var(--texto); border: 1.5px solid var(--borde); transition: background .2s, color .2s, border-color .2s;
}
.redes__link svg { width: 22px; height: 22px; }
.redes__link:hover, .redes__link:focus-visible { background: var(--acento); color: var(--sobre-acento); border-color: var(--acento); }
.tema-infancias .redes__instagram:hover { background: #D09FAF; border-color: #D09FAF; }
.tema-infancias .redes__facebook:hover { background: #5285AE; border-color: #5285AE; }
.redes--portada {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%); z-index: 10;
  background: rgba(255, 255, 255, .92); padding: 6px; border-radius: 999px; box-shadow: 0 4px 18px rgba(0, 0, 0, .18);
}
.redes--portada .redes__link { color: #141414; border-color: transparent; }
.redes--portada .redes__link:hover { background: #14244A; color: #fff; }
@media (max-width: 760px), (orientation: portrait) {
  .redes--portada { top: 14px; }
}
@media (max-width: 760px) {
  .cabecera .redes { border-left: 0; padding-left: 0; order: 2; }
  .cabecera nav { order: 3; width: 100%; }
  .redes__link { width: 40px; height: 40px; }
}
.cabecera nav { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.cabecera nav a { text-decoration: none; padding: 10px 14px; border-radius: var(--radio-boton); font-size: 15px; }
.cabecera nav a:hover { background: var(--suave); }
.cabecera nav a.boton { background: var(--acento); color: var(--sobre-acento); }

.hero { padding: 72px 0 56px; text-align: center; }
.hero__logo { width: min(520px, 86%); margin: 0 auto 28px; }
.hero h1 { font-family: var(--fuente-titulo); font-weight: var(--peso-titulo); font-size: clamp(28px, 4.4vw, 48px); line-height: 1.15; margin: 0 0 14px; }
.hero p { max-width: 640px; margin: 0 auto 28px; color: var(--texto-suave); font-size: 19px; }
.boton-grande {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 28px; border: 0; cursor: pointer;
  background: var(--acento); color: var(--sobre-acento); border-radius: var(--radio-boton);
  font-family: var(--fuente-titulo); font-weight: var(--peso-titulo); letter-spacing: var(--espaciado-boton); text-decoration: none; font-size: 15px;
}
.boton-grande:hover { filter: brightness(1.06); }

.seccion { padding: 64px 0; }
.seccion__titulo { font-family: var(--fuente-titulo); font-weight: var(--peso-titulo); font-size: clamp(24px, 3vw, 34px); text-align: center; margin: 0 0 8px; }
.seccion__bajada { text-align: center; color: var(--texto-suave); margin: 0 auto 36px; max-width: 620px; }

/* ---------- Tarjetas de información (estructura de la imagen de referencia) ---------- */
.tarjetas { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.tarjeta { background: var(--tarjeta-fondo); border-radius: var(--radio); overflow: hidden; display: flex; flex-direction: column; }
.tarjeta__cabeza { height: 150px; display: grid; place-items: center; background: var(--tarjeta-cabeza); }
.tarjeta__icono { width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; background: var(--icono-fondo); color: var(--icono-color); }
.tarjeta__icono svg { width: 60px; height: 60px; }
.tema-infancias .tarjeta__icono svg { width: 70px; height: 70px; }
.tarjeta__icono.con-imagen { overflow: hidden; position: relative; }
.icono-img { width: 100%; height: 100%; display: block; user-select: none; }
.tarjeta__cuerpo { padding: 26px 28px 32px; flex: 1; }
.tarjeta__cuerpo h3 { margin: 0 0 14px; font-family: var(--fuente-titulo); font-weight: var(--peso-titulo); font-size: 19px; letter-spacing: var(--espaciado-titulo-tarjeta); }
.tarjeta__cuerpo ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; color: var(--tarjeta-texto); }

/* ---------- Galería ---------- */
.galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.galeria img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radio); cursor: zoom-in; }
.visor { position: fixed; inset: 0; background: rgba(0,0,0,.85); display: grid; place-items: center; z-index: 200; padding: 20px; cursor: zoom-out; }
.visor img { max-height: 90vh; border-radius: 8px; }

/* =========================================================
   CALENDARIO PÚBLICO
   ========================================================= */
.reserva { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 880px) { .reserva { grid-template-columns: 1fr; } }
.cal { background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio); padding: 22px; }
.cal__cab { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 8px; }
.cal__mes { font-family: var(--fuente-titulo); font-weight: var(--peso-titulo); font-size: 20px; text-transform: capitalize; margin: 0; text-align: center; }
.cal__nav { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--borde); background: transparent; cursor: pointer; display: grid; place-items: center; }
.cal__nav:hover:not(:disabled) { background: var(--suave); }
.cal__nav:disabled { opacity: .3; cursor: default; }
.cal__nav svg { width: 18px; height: 18px; }
.cal__grilla { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal__dsem { text-align: center; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--texto-suave); padding-bottom: 4px; }
/* Colores de estado: sombreados con texto legible.
   Tema claro (Infancias) por defecto; el tema formal los redefine más abajo. */
:root {
  --c-libre-bg: #DDF5E8;    --c-libre-tx: #0F5E37;    --c-libre-bd: #9ED9B8;
  --c-parcial-bg: #FFF0C2;  --c-parcial-tx: #6E4A00;  --c-parcial-bd: #EEC65E;
  --c-lleno-bg: #FFDAD6;    --c-lleno-tx: #962A22;    --c-lleno-bd: #EEA29A;
  --c-cerr-bg: #EDEAE5;     --c-cerr-tx: #5E5A54;     --c-cerr-bd: #D8D3CB;
  --c-limp-bg: #ECE5FA;     --c-limp-tx: #4E3D85;     --c-limp-bd: #CBBCF0;
  --c-naranja-bg: #FFE2C8;  --c-naranja-tx: #8A4300;  --c-naranja-bd: #F5B67C;
  --rayas: repeating-linear-gradient(-45deg, transparent 0 5px, rgba(0,0,0,.06) 5px 10px);
}
.tema-formal {
  --c-libre-bg: rgba(76, 190, 128, .2);   --c-libre-tx: #A9EBC6;   --c-libre-bd: rgba(76, 190, 128, .5);
  --c-parcial-bg: rgba(230, 175, 80, .24); --c-parcial-tx: #F6D59C; --c-parcial-bd: rgba(230, 175, 80, .55);
  --c-lleno-bg: rgba(225, 95, 85, .24);   --c-lleno-tx: #F7B6AF;   --c-lleno-bd: rgba(225, 95, 85, .55);
  --c-cerr-bg: rgba(255, 255, 255, .05);  --c-cerr-tx: #8D877F;    --c-cerr-bd: #3A3632;
  --c-limp-bg: rgba(160, 135, 230, .24);  --c-limp-tx: #D5C8FB;    --c-limp-bd: rgba(160, 135, 230, .55);
  --c-naranja-bg: rgba(240, 140, 60, .24); --c-naranja-tx: #FFC9A0; --c-naranja-bd: rgba(240, 140, 60, .55);
  --rayas: repeating-linear-gradient(-45deg, transparent 0 5px, rgba(255,255,255,.05) 5px 10px);
}

/* Días del mes */
.cal__dia {
  min-height: 58px; border-radius: var(--radio-dia); border: 1.5px solid transparent; background: var(--dia-fondo);
  cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; position: relative; padding: 4px 2px;
  color: var(--texto); font: inherit;
}
.cal__num { font-size: 16px; font-weight: 600; line-height: 1.1; }
.cal__etq { font-size: 10.5px; font-weight: 700; letter-spacing: .02em; line-height: 1.1; white-space: nowrap; }
.cal__fer { position: absolute; top: 3px; right: 4px; font-size: 9px; font-weight: 800; color: var(--acento); }
.cal__dia.d-libre { background: var(--c-libre-bg); color: var(--c-libre-tx); border-color: var(--c-libre-bd); }
.cal__dia.d-parcial { background: var(--c-parcial-bg); color: var(--c-parcial-tx); border-color: var(--c-parcial-bd); }
.cal__dia.d-completo { background: var(--c-lleno-bg); color: var(--c-lleno-tx); border-color: var(--c-lleno-bd); }
.cal__dia.d-cerrado { background: var(--rayas), var(--c-cerr-bg); color: var(--c-cerr-tx); border-color: var(--c-cerr-bd); }
.cal__dia.d-pasado { background: transparent; opacity: .35; cursor: default; }
.cal__dia:hover:not(:disabled) { box-shadow: 0 0 0 2px var(--acento); }
.cal__dia.vacio { visibility: hidden; }
.cal__dia.hoy .cal__num { text-decoration: underline; text-underline-offset: 3px; }
.cal__dia.sel { box-shadow: 0 0 0 3px var(--acento); transform: scale(1.04); z-index: 1; }

/* Leyendas */
.leyenda { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13.5px; color: var(--texto-suave); }
.leyenda li { display: inline-flex; align-items: center; gap: 7px; }
.leyenda b { color: var(--texto); font-weight: 600; }
.leyenda .sw { width: 22px; height: 16px; border-radius: 5px; border: 1.5px solid transparent; display: inline-grid; place-items: center; font-style: normal; flex-shrink: 0; }
.leyenda--chica { margin-top: 12px; font-size: 12.5px; gap: 6px 12px; }
.leyenda--chica .sw { width: 16px; height: 12px; }
.sw.d-libre, .sw.t-libre, .sw.h-libre { background: var(--c-libre-bg); border-color: var(--c-libre-bd); }
.sw.d-parcial { background: var(--c-parcial-bg); border-color: var(--c-parcial-bd); }
.sw.d-completo, .sw.t-ocupado, .sw.h-ocupado { background: var(--c-lleno-bg); border-color: var(--c-lleno-bd); }
.sw.d-cerrado, .sw.t-bloqueado, .sw.h-bloqueado { background: var(--rayas), var(--c-cerr-bg); border-color: var(--c-cerr-bd); }
.sw.h-limpieza { background: var(--c-limp-bg); border-color: var(--c-limp-bd); }
.sw.h-sel { background: var(--acento); border-color: var(--acento); }
.sw.h-sin-guarderia { background: var(--c-naranja-bg); border-color: var(--c-naranja-bd); }
.sw.sw-fer { font-size: 10px; font-weight: 800; color: var(--acento); border-color: var(--borde); }

/* Panel del día */
.turnos { background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio); padding: 22px; min-height: 200px; }
.turnos h3 { margin: 0 0 4px; font-family: var(--fuente-titulo); font-weight: var(--peso-titulo); font-size: 18px; }
.turnos__fecha { margin: 0 0 10px; color: var(--texto-suave); }
.turnos__fecha::first-letter { text-transform: uppercase; }
.turnos__nota { margin: 0 0 14px; font-size: 14.5px; color: var(--texto-suave); }
.turnos__nota b { color: var(--texto); }
.aviso-feriado { display: inline-block; margin: 0 0 12px; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--c-parcial-bg); color: var(--c-parcial-tx); }
.turnos__lista { display: grid; gap: 10px; }
.turno {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 18px;
  border-radius: var(--radio-boton); border: 1.5px solid var(--borde); cursor: pointer; text-align: left; width: 100%; font: inherit;
}
.turno__hora { font-weight: 700; font-size: 17px; }
.turno__estado { font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.turno.t-libre { background: var(--c-libre-bg); color: var(--c-libre-tx); border-color: var(--c-libre-bd); }
.turno.t-libre:hover { box-shadow: 0 0 0 2px var(--acento); }
.turno.t-libre .turno__estado::after { content: " · Reservar"; }
.turno.t-ocupado { background: var(--c-lleno-bg); color: var(--c-lleno-tx); border-color: var(--c-lleno-bd); cursor: default; }
.turno.t-bloqueado { background: var(--rayas), var(--c-cerr-bg); color: var(--c-cerr-tx); border-color: var(--c-cerr-bd); cursor: default; }
.turno.t-pasado { background: transparent; color: var(--texto-suave); opacity: .55; cursor: default; }
.turnos__vacio { color: var(--texto-suave); margin: 24px 0; text-align: center; }

/* Horas (Multiespacio) */
.horas { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 7px; }
.hora {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 54px; padding: 4px;
  border-radius: var(--radio-boton); border: 1.5px solid transparent; cursor: pointer; font: inherit; line-height: 1.15;
}
.hora__h { font-weight: 700; font-size: 16px; }
.hora__e { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.hora.h-libre { background: var(--c-libre-bg); color: var(--c-libre-tx); border-color: var(--c-libre-bd); }
.hora.h-libre:hover { box-shadow: 0 0 0 2px var(--acento); }
.hora.h-sel { background: var(--acento); color: var(--sobre-acento); border-color: var(--acento); box-shadow: 0 3px 0 rgba(0,0,0,.18); }
.hora.h-limp-prev { background: repeating-linear-gradient(-45deg, var(--c-limp-bg) 0 6px, transparent 6px 12px), var(--c-limp-bg); color: var(--c-limp-tx); border: 1.5px dashed var(--c-limp-bd); cursor: default; }
.hora.h-ocupado { background: var(--c-lleno-bg); color: var(--c-lleno-tx); border-color: var(--c-lleno-bd); cursor: default; }
.hora.h-limpieza { background: var(--c-limp-bg); color: var(--c-limp-tx); border-color: var(--c-limp-bd); cursor: default; }
.hora.h-bloqueado { background: var(--rayas), var(--c-cerr-bg); color: var(--c-cerr-tx); border-color: var(--c-cerr-bd); cursor: default; }
.hora.h-pasado { background: transparent; color: var(--texto-suave); opacity: .5; cursor: default; }
.hora.h-sin-guarderia { background: var(--c-naranja-bg); color: var(--c-naranja-tx); border-color: var(--c-naranja-bd); cursor: default; }
.hora:focus-visible, .turno:focus-visible, .cal__dia:focus-visible { outline: 3px solid var(--acento); outline-offset: 2px; }

.resumen-sel { margin-top: 16px; padding: 14px 16px; border-radius: var(--radio); background: var(--suave); border: 1px solid var(--borde); }
.resumen-sel p { margin: 0 0 6px; }
.resumen-sel__limp { font-size: 14px; color: var(--c-limp-tx); }
.resumen-sel__acc { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 10px; }
.boton-sec { min-height: 48px; padding: 0 18px; border-radius: var(--radio-boton); border: 1.5px solid var(--borde); background: transparent; cursor: pointer; font: inherit; color: var(--texto); }
.boton-grande:disabled { opacity: .45; cursor: not-allowed; filter: none; }

/* Guardería + ayuda */
.guarderia { display: flex; align-items: center; gap: 8px; margin: 4px 0 14px; padding: 12px 14px; border-radius: var(--radio); border: 1.5px solid var(--acento); background: var(--suave); }
.guarderia__chk { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; letter-spacing: .08em; }
.guarderia__chk input { width: 22px; height: 22px; accent-color: var(--acento); }
.ayuda { position: relative; display: inline-flex; }
.ayuda__btn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--acento); cursor: help; display: grid; place-items: center; padding: 0; }
.ayuda__btn svg { width: 22px; height: 22px; }
.ayuda__globo {
  position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); width: max-content; max-width: min(280px, 80vw);
  background: #1E1E22; color: #fff; font-size: 14px; line-height: 1.4; padding: 10px 12px; border-radius: 10px; box-shadow: 0 10px 26px rgba(0,0,0,.3);
  opacity: 0; visibility: hidden; transition: opacity .15s; z-index: 20; font-family: system-ui, sans-serif; letter-spacing: 0; text-transform: none; font-weight: 400;
}
.ayuda__globo::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -6px; border: 6px solid transparent; border-top-color: #1E1E22; }
.ayuda:hover .ayuda__globo, .ayuda:focus-within .ayuda__globo, .ayuda.abierta .ayuda__globo { opacity: 1; visibility: visible; }

/* Opciones de catering */
.opciones { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.opciones legend { font-size: 14px; font-weight: 600; margin-bottom: 6px; padding: 0; }
.opcion { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--borde); cursor: pointer; background: var(--campo-fondo); }
.opcion input { width: 20px; height: 20px; accent-color: var(--acento); flex-shrink: 0; }
.opcion span { display: grid; gap: 2px; }
.opcion small { color: var(--texto-suave); font-size: 13px; }
.opcion:has(input:checked) { border-color: var(--acento); box-shadow: 0 0 0 1px var(--acento); }

/* ---------- Modal de reserva ---------- */
.modal { position: fixed; inset: 0; z-index: 300; background: rgba(10,10,20,.55); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.modal__caja { background: var(--superficie); color: var(--texto); width: min(520px, 100%); border-radius: var(--radio); padding: 28px; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.modal__cerrar { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--suave); cursor: pointer; font-size: 22px; line-height: 1; }
.modal h3 { margin: 0 44px 6px 0; font-family: var(--fuente-titulo); font-weight: var(--peso-titulo); font-size: 22px; }
.modal__resumen { margin: 0 0 20px; color: var(--texto-suave); }
.campos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.campo { display: grid; gap: 6px; }
.campo.ancho { grid-column: 1 / -1; }
.campo label { font-size: 14px; font-weight: 600; }
.campo input, .campo textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--borde); background: var(--campo-fondo);
}
.campo textarea { min-height: 90px; resize: vertical; }
.campo input:focus, .campo textarea:focus { outline: 2px solid var(--acento); outline-offset: 1px; border-color: transparent; }
.campo__ayuda { font-size: 13px; color: var(--texto-suave); text-align: right; }
.campo__ayuda.limite { color: var(--ocupado-texto); }
.form__error { color: #C0392B; background: #FDECEA; padding: 10px 12px; border-radius: 10px; font-size: 15px; margin: 14px 0 0; }
.form__acciones { margin-top: 20px; display: flex; justify-content: flex-end; }
@media (max-width: 520px) { .campos { grid-template-columns: 1fr; } }

.ticket-ok { text-align: center; }
.ticket-ok__codigo { display: inline-block; font-size: 28px; font-weight: 700; letter-spacing: .08em; padding: 10px 22px; border: 2px dashed var(--acento); border-radius: 12px; margin: 14px 0; }

/* ---------- Pie ---------- */
.pie { padding: 40px 0; border-top: 1px solid var(--borde); color: var(--texto-suave); font-size: 15px; }
.pie .envoltura { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.pie a { text-decoration: none; }
.pie a:hover { text-decoration: underline; }
.pie__datos { display: flex; gap: 18px; flex-wrap: wrap; }
.wsp-flotante {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.wsp-flotante svg { width: 30px; height: 30px; }

/* =========================================================
   CELULAR — página pública
   ========================================================= */
.cta-movil, .menu-btn { display: none; }
@media (max-width: 760px) {
  body { font-size: 16px; }
  /* Cabecera en una sola línea: logo · redes · Reservar · menú */
  .cabecera .envoltura { flex-wrap: nowrap; min-height: 60px; gap: 8px; position: relative; }
  .cabecera__logo img { height: 36px; }
  .cabecera .redes { order: 1; padding: 0; border: 0; gap: 4px; }
  .cta-movil { order: 2; }
  .menu-btn { order: 3; }
  .cabecera .redes__link { width: 36px; height: 36px; }
  .cabecera .redes__link svg { width: 18px; height: 18px; }
  .cta-movil {
    display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: var(--radio-boton);
    background: var(--acento); color: var(--sobre-acento); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap;
  }
  .tema-formal .cta-movil { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
  .menu-btn {
    display: inline-grid; place-content: center; gap: 4px; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--borde);
    background: transparent; cursor: pointer; flex-shrink: 0;
  }
  .menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--texto); transition: transform .2s, opacity .2s; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .cabecera nav {
    display: none; position: absolute; top: 100%; left: -20px; right: -20px; width: auto; order: 5;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 14px;
    background: var(--fondo); border-bottom: 1px solid var(--borde); box-shadow: 0 14px 24px rgba(0,0,0,.18);
  }
  .cabecera nav.abierto { display: flex; }
  .cabecera nav a { padding: 14px 8px; border-radius: 10px; font-size: 17px; border-bottom: 1px solid var(--borde); }
  .cabecera nav a:last-child { border-bottom: 0; }
  .cabecera nav a.boton { display: none; }

  .hero { padding: 36px 0 40px; }
  .hero__logo { width: min(320px, 82%); margin-bottom: 18px; }
  .hero p { font-size: 17px; margin-bottom: 22px; }
  .boton-grande { min-height: 50px; padding: 0 22px; }
  .seccion { padding: 44px 0; }
  .seccion__bajada { margin-bottom: 24px; }
  .envoltura { width: min(1180px, 100% - 28px); }

  /* Tarjetas: más bajas y a lo ancho */
  .tarjetas { gap: 14px; }
  .tarjeta__cabeza { height: 112px; }
  .tarjeta__icono { width: 84px; height: 84px; }
  .tarjeta__icono svg { width: 48px; height: 48px; }
  .tema-infancias .tarjeta__icono svg { width: 56px; height: 56px; }
  .tarjeta__cuerpo { padding: 18px 20px 22px; }

  /* Calendario y turnos */
  .cal, .turnos { padding: 14px; }
  .cal__grilla { gap: 4px; }
  .cal__dia { min-height: 50px; padding: 3px 1px; }
  .cal__etq { font-size: 9px; }
  .cal__num { font-size: 14px; }
  .horas { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
  .hora { min-height: 50px; }
  .hora__h { font-size: 14.5px; }
  .hora__e { font-size: 9px; }
  .ayuda__globo { left: auto; right: -40px; transform: none; }
  .ayuda__globo::after { left: auto; right: 52px; }
  .turno { min-height: 58px; padding: 0 14px; }
  .turno__estado { font-size: 11.5px; padding: 3px 8px; }

  /* Formulario de reserva como hoja desde abajo */
  .modal { place-items: end center; padding: 0; }
  .modal__caja {
    width: 100%; border-radius: 20px 20px 0 0; padding: 22px 18px calc(18px + env(safe-area-inset-bottom));
    max-height: 94vh; overflow-y: auto;
  }
  .modal__caja::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--borde); margin: -10px auto 12px; }
  .campo input, .campo textarea { font-size: 16px; } /* evita el zoom automático del iPhone */
  .form__acciones .boton-grande { width: 100%; justify-content: center; }

  .galeria { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pie { padding: 28px 0 96px; }
  .pie .envoltura { flex-direction: column; align-items: flex-start; }
  .wsp-flotante { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); width: 54px; height: 54px; }

  /* Portada */
  .portada__mitad { padding: 40px 24px 28px; gap: 14px; }
  .portada__logo { width: min(330px, 80%); }
  .portada__cta { padding: 12px 22px; }
}

/* =========================================================
   CARRUSEL DE FOTOS EN TARJETAS · VISOR · MAPA
   ========================================================= */
.carrusel { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #000; }
.carrusel__foto { position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: zoom-in; opacity: 0; transition: opacity .7s ease; }
.carrusel__foto.activa { opacity: 1; z-index: 1; }
.carrusel__foto img { width: 100%; height: 100%; object-fit: cover; }
.carrusel__foto:focus-visible { outline: 3px solid var(--acento); outline-offset: -3px; }
.carrusel__lupa { position: absolute; top: 8px; right: 8px; z-index: 2; width: 32px; height: 32px; border-radius: 50%; background: rgba(0,0,0,.5); color: #fff; display: grid; place-items: center; pointer-events: none; }
.carrusel__lupa svg { width: 17px; height: 17px; }
.carrusel__puntos { position: absolute; left: 0; right: 0; bottom: 6px; z-index: 2; display: flex; justify-content: center; gap: 2px; }
.carrusel__puntos button { width: 28px; height: 28px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; padding: 0; }
.carrusel__puntos button::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.55); box-shadow: 0 0 0 1px rgba(0,0,0,.25); transition: transform .2s; }
.carrusel__puntos button.activo::before { background: #fff; transform: scale(1.25); }

.galeria__item { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radio); overflow: hidden; }
.galeria__item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }

.visor { position: fixed; inset: 0; background: rgba(8,8,10,.92); display: grid; place-items: center; z-index: 400; padding: 56px 16px 24px; cursor: zoom-out; }
.visor__fig { margin: 0; display: grid; gap: 10px; justify-items: center; cursor: default; }
.visor__fig img { max-width: min(1100px, 100%); max-height: calc(100vh - 120px); border-radius: 8px; object-fit: contain; }
.visor__fig figcaption { color: #ddd; font-size: 14px; font-family: system-ui, sans-serif; }
.visor__cerrar, .visor__nav { position: fixed; border: 0; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; display: grid; place-items: center; font-size: 30px; line-height: 1; }
.visor__cerrar { top: 12px; right: 12px; width: 46px; height: 46px; border-radius: 50%; }
.visor__nav { top: 50%; transform: translateY(-50%); width: 50px; height: 64px; border-radius: 12px; font-size: 40px; }
.visor__ant { left: 10px; } .visor__sig { right: 10px; }
.visor__cerrar:hover, .visor__nav:hover { background: rgba(255,255,255,.26); }

.mapa { border-radius: var(--radio); overflow: hidden; border: 1px solid var(--borde); aspect-ratio: 16 / 7; min-height: 280px; background: var(--suave); }
.mapa iframe { width: 100%; height: 100%; border: 0; display: block; }
.tema-formal .mapa iframe { filter: grayscale(.4) contrast(1.05); }
.mapa__acciones { text-align: center; margin: 18px 0 0; }
@media (max-width: 760px) {
  .mapa { aspect-ratio: 4 / 5; min-height: 0; }
  .visor__nav { width: 42px; height: 54px; font-size: 32px; }
}

/* Casillas y opciones dentro del formulario (no heredan el estilo de los campos de texto) */
.campo input[type=checkbox], .campo input[type=radio] { width: 22px; height: 22px; min-height: 0; padding: 0; flex-shrink: 0; border: 0; }
.campo input[type=checkbox]:focus, .campo input[type=radio]:focus { outline: 2px solid var(--acento); outline-offset: 2px; }
.campo .guarderia { margin: 0; }
.campo .form__error { margin-top: 8px; }
.modal .ayuda__globo { left: 0; transform: none; }
.modal .ayuda__globo::after { left: 18px; margin-left: 0; }
