/* ============================================================
   Guardería Lubilú — Lorca
   Estilo inspirado en el ritmo de MindMarket: paneles de color
   pleno con esquinas muy redondeadas, cabecera en tarjeta blanca
   flotante, titular enorme y muy apretado. Identidad propia:
   amarillo sol + verde hoja (su mascota es un elefante amarillo),
   acentos coral y azul cielo sobre crema. Móvil primero.
   Sin dependencias externas: fuente (Gabarito) y GSAP alojados aquí.
   ============================================================ */

/* ---- Fuente propia, alojada en la web (sin Google Fonts) ---- */
@font-face {
  font-family: "Gabarito Variable";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fuentes/gabarito-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Gabarito Variable";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fuentes/gabarito-var-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --sol: #FFC73C;          /* amarillo mascota — fondo portada */
  --sol-2: #F2B32A;
  --crema: #FBF4E6;        /* fondo claro alterno */
  --crema-2: #F3EAD6;
  --tinta: #2C2822;        /* texto, casi negro cálido */
  --tinta-2: #5C564C;
  --coral: #FF6F5E;        /* botón de acción */
  --coral-oscuro: #E8584A;
  --hoja: #46AE78;         /* verde */
  --hoja-oscuro: #2F8E5E;
  --cielo: #3DA5E6;        /* azul */
  --lila: #B79CF0;
  --blanco: #ffffff;
  --linea: #ECE2CE;
  --sombra-card: 0 10px 30px -14px rgba(44,40,34,.28);
  --sombra-flota: 0 22px 50px -26px rgba(44,40,34,.45);
  --fuente: "Gabarito Variable", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ancho: 1180px;
  --radio-panel: 44px;
  --alto-cabecera: 92px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--crema);
  color: var(--tinta);
  font: 500 17px/1.6 var(--fuente);
  letter-spacing: -.01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: 84px; /* hueco para la barra fija del móvil */
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--tinta); outline-offset: 3px; border-radius: 10px; }

.envoltura { width: min(100% - 32px, var(--ancho)); margin-inline: auto; }
.seccion { padding: 64px 0; scroll-margin-top: calc(var(--alto-cabecera) + 8px); }
.hero { scroll-margin-top: 0; }

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

/* ===================== BOTONES ===================== */
.boton {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 13px 16px 13px 22px;
  background: var(--tinta); color: var(--crema);
  border-radius: 999px; border: none;
  font: 700 1.02rem/1 var(--fuente); letter-spacing: -.01em;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.boton .flecha {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--hoja); color: #fff; transition: transform .18s ease;
}
.boton:hover { transform: translateY(-2px); box-shadow: var(--sombra-card); }
.boton:hover .flecha { transform: translateX(3px); }
.boton--coral { background: var(--coral); color: #fff; }
.boton--coral .flecha { background: #fff; color: var(--coral); }
.boton--coral:hover { background: var(--coral-oscuro); }
.boton--claro { background: var(--blanco); color: var(--tinta); }
.boton--claro .flecha { background: var(--hoja); color:#fff; }
.boton--contorno { background: transparent; color: var(--tinta); box-shadow: inset 0 0 0 2px rgba(44,40,34,.2); }
.boton.grande { padding: 18px 30px; font-size: 1.2rem; }

/* ===================== CABECERA FLOTANTE ===================== */
.cabecera {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  padding: 14px 0 6px;
}
.cabecera-fila { display: flex; align-items: center; gap: 12px; }
.tarjeta {
  background: var(--blanco);
  border-radius: 20px;
  box-shadow: var(--sombra-flota);
}
.tarjeta-nav {
  flex: 1;
  display: flex; align-items: center; gap: 18px;
  padding: 10px 14px 10px 16px;
  min-width: 0;
}
.tarjeta-cta { padding: 8px; display: none; }

.marca { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.marca-icono { flex-shrink: 0; }
.marca-texto {
  display: flex; flex-direction: column; line-height: 1;
  font-weight: 800; font-size: 1.34rem; letter-spacing: -.02em;
}
.marca-texto small {
  font-weight: 600; font-size: .62rem; letter-spacing: .04em;
  text-transform: uppercase; color: var(--tinta-2); margin-top: 3px;
}

.nav { display: none; }
.nav a {
  font-weight: 600; font-size: .98rem; color: var(--tinta-2);
  padding: 8px 10px; border-radius: 10px; transition: color .15s, background .15s;
}
.nav a:hover { color: var(--tinta); background: var(--crema-2); }

.hamburguesa {
  position: relative; z-index: 60;
  margin-left: auto; flex-shrink: 0;
  width: 46px; height: 46px; border-radius: 50%;
  border: none; background: var(--sol); display: grid; place-items: center; gap: 4px;
  cursor: pointer; padding: 0;
}
.hamburguesa span {
  display: block; width: 20px; height: 2.4px; border-radius: 2px; background: var(--tinta);
  transition: transform .25s, opacity .2s;
}
.hamburguesa[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.4px) rotate(45deg); }
.hamburguesa[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburguesa[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.4px) rotate(-45deg); }

.menu-movil {
  position: fixed; inset: 0; z-index: 55;
  background: var(--crema);
  padding: 96px 24px 40px;
  display: flex; flex-direction: column; gap: 10px;
}
.menu-movil[hidden] { display: none; }
.menu-movil nav { display: flex; flex-direction: column; }
.menu-movil nav a {
  font-weight: 800; font-size: 2rem; letter-spacing: -.02em;
  padding: 14px 6px; border-bottom: 2px solid var(--linea);
}
.menu-movil .boton { margin-top: 20px; justify-content: center; }

/* ===================== PORTADA (HERO) ===================== */
.hero {
  position: relative;
  background: var(--sol);
  border-radius: 0 0 var(--radio-panel) var(--radio-panel);
  padding: 96px 0 0;
  overflow: hidden;
  isolation: isolate;
}
.hero-contenido { position: relative; z-index: 3; text-align: center; padding-top: 18px; }

.etiqueta {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.55);
  border: 1.5px solid rgba(44,40,34,.12);
  padding: 8px 16px; border-radius: 999px;
  font-weight: 600; font-size: .92rem; color: var(--tinta);
  margin: 0 0 22px;
}
.etiqueta .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); }

.titular {
  margin: 0;
  font-weight: 800;
  font-size: clamp(3.2rem, 15.5vw, 9rem);
  line-height: .9;
  letter-spacing: -.045em;
  color: var(--tinta);
}
.titular .linea { display: block; }
/* «jugando»: cada letra es una pegatina de color, como los bloques de juguete.
   paint-order pinta el contorno por debajo del relleno (sin trazos internos de la fuente variable) */
.titular .linea-acento { letter-spacing: -.012em; padding-bottom: .06em; }
.titular .letra {
  display: inline-block;
  color: var(--c);
  -webkit-text-stroke: .075em var(--tinta);
  paint-order: stroke fill;
  text-shadow: 0 .07em 0 var(--tinta);
  transform: rotate(var(--r)) translateY(var(--y, 0));
  transition: transform .3s cubic-bezier(.3, 1.6, .5, 1);
}
.titular .letra:nth-child(1) { --c: var(--coral); --r: -4deg; }
.titular .letra:nth-child(2) { --c: var(--cielo); --r: 3deg;  --y: .03em; }
.titular .letra:nth-child(3) { --c: var(--hoja);  --r: -2deg; }
.titular .letra:nth-child(4) { --c: var(--blanco); --r: 4deg; --y: .02em; }
.titular .letra:nth-child(5) { --c: var(--lila);  --r: -3deg; }
.titular .letra:nth-child(6) { --c: var(--coral); --r: 2deg;  --y: .03em; }
.titular .letra:nth-child(7) { --c: var(--cielo); --r: -4deg; }
@media (hover: hover) {
  .titular .letra:hover { transform: rotate(0deg) translateY(-.08em); }
}

.subtitular {
  margin: 22px auto 0;
  max-width: 24ch;
  font-size: clamp(1.1rem, 3.4vw, 1.5rem);
  font-weight: 500; color: var(--tinta);
  letter-spacing: -.02em;
}

.chips {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}
.chips li {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blanco); color: var(--tinta);
  padding: 9px 15px; border-radius: 999px;
  font-weight: 600; font-size: .9rem;
  box-shadow: var(--sombra-card);
}
.chips .chip-emoji { font-size: 1.05rem; }

.hero-decor { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-decor .nube { position: absolute; opacity: .85; }
.nube-1 { width: 120px; top: 110px; left: 6%; }
.nube-2 { width: 86px; top: 180px; right: 8%; }
.hero-decor .estrella { position: absolute; width: 26px; }
.estrella-1 { top: 200px; left: 14%; }
.estrella-2 { top: 140px; right: 20%; }
.hero-decor .punto { position: absolute; width: 12px; height: 12px; border-radius: 50%; }
.punto-1 { background: var(--hoja); top: 270px; left: 26%; }
.punto-2 { background: var(--cielo); top: 120px; left: 42%; }
.punto-3 { background: var(--lila); top: 250px; right: 28%; }

/* Centrada con márgenes (no con transform: GSAP reescribe transform al animarla) */
.ilustracion {
  --ancho-ilus: min(1200px, 118%);
  position: relative; z-index: 2;
  width: var(--ancho-ilus);
  margin: -8px 0 -2px calc((100% - var(--ancho-ilus)) / 2);
  pointer-events: none;
}

/* ===================== ENCABEZADOS DE SECCIÓN ===================== */
.seccion-cab { max-width: 40ch; margin: 0 auto 36px; text-align: center; }
.antetitulo {
  font-weight: 700; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--hoja-oscuro); margin: 0 0 14px;
}
.seccion-titulo {
  margin: 0; font-weight: 800; letter-spacing: -.03em; line-height: 1.02;
  font-size: clamp(2.1rem, 7vw, 3.4rem);
}
.seccion-intro { margin: 16px 0 0; font-size: 1.1rem; color: var(--tinta-2); }

/* paneles de color pleno (esquinas redondeadas sobre la crema) */
.panel { border-radius: var(--radio-panel); }
.panel--hoja { background: var(--hoja); color: var(--tinta); }
.panel--hoja .antetitulo { color: rgba(255,255,255,.95); }
.panel--sol { background: var(--sol); color: var(--tinta); }
.panel--sol .antetitulo { color: var(--hoja-oscuro); }

/* ===================== PROGRAMAS / SERVICIOS ===================== */
.rejilla-servicios {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
.tarjeta-servicio {
  background: var(--blanco); border-radius: 24px; padding: 26px 24px;
  box-shadow: var(--sombra-card); border: 1.5px solid var(--linea);
}
.tarjeta-servicio .ico {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  margin-bottom: 16px; color: #fff;
}
.ico svg { width: 28px; height: 28px; }
.ico.sol { background: var(--sol-2); } .ico.hoja { background: var(--hoja); }
.ico.cielo { background: var(--cielo); } .ico.coral { background: var(--coral); }
.ico.lila { background: var(--lila); }
.tarjeta-servicio h3 { margin: 0 0 6px; font-size: 1.28rem; font-weight: 800; letter-spacing: -.02em; }
.tarjeta-servicio p { margin: 0; color: var(--tinta-2); }

/* ===================== EL CENTRO ===================== */
.centro-texto { max-width: 46ch; margin: 0 auto; text-align: center; }
.centro-frase { font-size: clamp(1.2rem, 3.4vw, 1.6rem); font-weight: 600; letter-spacing: -.02em; margin: 14px 0 0; }
.centro-chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 0; margin: 26px 0 0; }
.centro-chips li { background: rgba(255,255,255,.75); border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: .92rem; }

/* ===================== GALERÍA ===================== */
.galeria {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: clamp(140px, 42vw, 220px); grid-auto-flow: dense; gap: 12px;
}
.galeria .foto {
  position: relative; overflow: hidden;
  border-radius: 22px; background: var(--crema-2); box-shadow: var(--sombra-card);
}
.galeria img, .galeria video { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.galeria .foto:hover img { transform: scale(1.04); }
.foto--ancha { grid-column: span 2; }
.foto--alta { grid-row: span 2; }
.pie-foto {
  position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px);
  background: rgba(255,255,255,.92); color: var(--tinta);
  font-weight: 700; font-size: .82rem; line-height: 1.2;
  padding: 6px 12px; border-radius: 999px;
}
.foto--alta .pie-foto { bottom: auto; top: 10px; } /* en los vídeos, arriba: abajo van los controles */
.galeria-mas { text-align: center; margin: 28px 0 0; }

/* ===================== HORARIOS E INFORMACIÓN ===================== */
.rejilla-info { display: grid; grid-template-columns: 1fr; gap: 16px; }
.caja {
  background: var(--blanco); border-radius: 24px; padding: 26px 24px;
  box-shadow: var(--sombra-card); border: 1.5px solid var(--linea);
}
.caja h3 { margin: 0 0 16px; font-size: 1.28rem; font-weight: 800; letter-spacing: -.02em; }
.horario-fila { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1.5px dashed var(--linea); }
.horario-fila:last-child { border-bottom: none; }
.horario-fila .dia { font-weight: 700; }
.horario-fila .hora { color: var(--tinta-2); font-weight: 600; }
.horario-fila .hora.cerrado { color: var(--coral); }
.aviso-festivos { margin: 14px 0 0; font-size: .92rem; color: var(--tinta-2); }
.lista-info { list-style: none; margin: 0; padding: 0; }
.lista-info li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1.5px dashed var(--linea); }
.lista-info li:last-child { border-bottom: none; }
.lista-info .ico-mini { width: 26px; flex-shrink: 0; color: var(--hoja-oscuro); }
.lista-info b { display: block; font-weight: 700; }
.lista-info span { color: var(--tinta-2); font-size: .96rem; }
.lista-info a { color: var(--hoja-oscuro); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ===================== OPINIONES ===================== */
.opiniones-caja { text-align: center; max-width: 36ch; margin: 0 auto; }
.opiniones-stat { font-weight: 800; font-size: clamp(3.4rem, 14vw, 6rem); line-height: 1; letter-spacing: -.04em; }
.opiniones-sub { font-size: 1.15rem; font-weight: 600; margin: 8px 0 24px; }
.opiniones-fuente { margin: 18px 0 0; font-size: .85rem; color: rgba(44,40,34,.6); }

/* ===================== CONTACTO ===================== */
.contacto-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0 0 32px; }
.rejilla-contacto { display: grid; grid-template-columns: 1fr; gap: 16px; }
.contacto-caja { background: var(--blanco); border-radius: 22px; padding: 22px 24px; box-shadow: var(--sombra-card); border: 1.5px solid var(--linea); }
.contacto-caja h3 { margin: 0 0 6px; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--hoja-oscuro); }
.contacto-caja a, .contacto-caja p { font-weight: 700; font-size: 1.12rem; margin: 2px 0; display: block; }
.contacto-caja .pequeno { font-weight: 500; font-size: .95rem; color: var(--tinta-2); }
.redes { display: flex; gap: 12px; margin: 8px 0 0; }
.redes a {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--crema-2); color: var(--tinta); transition: transform .15s, background .15s;
}
.redes a:hover { transform: translateY(-2px); background: var(--sol); }
.redes svg { width: 22px; height: 22px; }

/* ===================== PIE ===================== */
.pie {
  background: var(--tinta); color: #E9E2D6;
  border-radius: var(--radio-panel) var(--radio-panel) 0 0;
  padding: 56px 0 120px;
}
.pie-rejilla { display: grid; grid-template-columns: 1fr; gap: 32px; }
.pie-marca { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.pie-marca .marca-texto small { color: rgba(255,255,255,.6); }
.pie p { margin: 14px 0 0; color: rgba(255,255,255,.7); max-width: 34ch; }
.pie h4 { margin: 0 0 12px; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.pie-col a, .pie-col span { display: block; color: #E9E2D6; margin: 6px 0; font-weight: 600; }
.pie-col a:hover { color: var(--sol); }
.pie-legal {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between;
  font-size: .9rem; color: rgba(255,255,255,.6);
}
.pie-legal nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.pie-legal a:hover { color: var(--sol); }

/* ===================== BARRA MÓVIL ===================== */
.barra-movil {
  position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 50;
  display: flex; gap: 10px;
  transition: transform .3s ease, opacity .3s ease;
}
.barra-movil.oculta { transform: translateY(140%); opacity: 0; pointer-events: none; }
.barra-movil a {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 12px; border-radius: 16px; font-weight: 800; font-size: 1rem;
  box-shadow: var(--sombra-flota);
}
.barra-movil .llamar { background: var(--tinta); color: #fff; }
.barra-movil .wasap { background: #25D366; color: #06331a; }
.barra-movil svg { width: 20px; height: 20px; }

/* aparición al hacer scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===================== ESCRITORIO ===================== */
@media (min-width: 880px) {
  :root { --radio-panel: 60px; --alto-cabecera: 104px; }
  .cabecera { padding: 20px 0 6px; }
  .hamburguesa { display: none; }
  .nav { display: flex; margin: 0 auto; }
  .tarjeta-nav { padding: 12px 14px 12px 20px; gap: 10px; }
  .tarjeta-cta { padding: 10px; display: flex; }
  .marca { margin-right: 8px; }
  .hero { padding-top: 120px; }
  .hero-contenido { padding-top: 30px; }
  .subtitular { font-size: clamp(1.3rem, 2vw, 1.7rem); }
  .chips li { font-size: 1rem; padding: 11px 18px; }
  .ilustracion { --ancho-ilus: min(1200px, 100%); margin-top: -30px; }
  .seccion { padding: 88px 0; }
  .rejilla-servicios { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .galeria { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 18px; }
  .foto--grande { grid-row: span 2; }
  .pie-foto { font-size: .9rem; left: 14px; bottom: 14px; }
  .foto--alta .pie-foto { bottom: auto; top: 14px; }
  .rejilla-info { grid-template-columns: 1fr 1fr; gap: 20px; }
  .rejilla-contacto { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .pie-rejilla { grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
  .pie { padding: 72px 0 56px; }
  .barra-movil { display: none; }
  body { padding-bottom: 0 !important; }
}

/* respeto por quien prefiere menos movimiento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
