/* Portada pública de nexukids.es (es y /ca/). Hoja propia, escrita a mano: las páginas
   legales y contacto siguen con site.css (Tailwind compilado), que no se toca.
   La CSP de la landing solo admite fuentes de 'self': Manrope va autoalojada en /assets. */

@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url("/assets/manrope-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 500; font-display: swap; src: url("/assets/manrope-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url("/assets/manrope-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url("/assets/manrope-latin-700-normal.woff2") format("woff2"); }

/* Los colores salen de la propia app: crema de fondo, verde azulado, naranja y azul noche. */
:root {
  --crema: #fbf7f1;
  --crema-2: #f4ece0;
  --linea: #e6dccd;
  --noche: #0e2449;
  --texto: #14243b;
  --suave: #56657a;
  --verde: #155e59;
  --verde-claro: #d9ece8;
  --naranja: #e07b4c;
  --naranja-hover: #c9663a;
  --ancho: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--crema);
  color: var(--texto);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; }
p { margin: 0; }
[hidden] { display: none !important; }

.contenedor { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 48rem) { .contenedor { padding: 0 2rem; } }

.saltar { position: absolute; left: -999px; top: 0.5rem; background: #fff; padding: 0.5rem 1rem; z-index: 100; }
.saltar:focus { left: 0.5rem; }
:focus-visible { outline: 3px solid var(--naranja); outline-offset: 3px; }

/* Cabecera: azul noche porque el logo lleva ese fondo pintado. */
.cabecera { position: sticky; top: 0; z-index: 50; background: var(--noche); }
.cabecera__fila { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.cabecera__logo img { height: 2.6rem; width: auto; }
.menu { display: none; align-items: center; gap: 0.25rem; }
.menu a { color: #d6deea; text-decoration: none; font-size: 0.95rem; font-weight: 600; padding: 0.5rem 0.75rem; border-radius: 0.5rem; }
.menu a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.menu .menu__idioma { color: #9fb0c8; font-weight: 500; }
.cabecera__acciones { display: flex; align-items: center; gap: 0.5rem; }
.boton-entrar { color: var(--noche); background: #fff; text-decoration: none; font-weight: 700; font-size: 0.95rem; padding: 0.6rem 1.1rem; border-radius: 999px; }
.boton-entrar:hover { background: var(--verde-claro); }
.boton-menu { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 0.5rem; background: transparent; color: #fff; cursor: pointer; }
.menu-movil { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 0.5rem 0 1rem; }
.menu-movil a { display: block; color: #d6deea; text-decoration: none; font-weight: 600; padding: 0.8rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
@media (min-width: 60rem) {
  .menu { display: flex; }
  .boton-menu, .menu-movil { display: none !important; }
}

/* Botones */
.boton { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 700; border-radius: 999px; padding: 0.95rem 1.6rem; font-size: 1rem; transition: background-color 0.2s; }
.boton--naranja { background: var(--naranja); color: #fff; }
.boton--naranja:hover { background: var(--naranja-hover); }
.enlace-flecha { font-weight: 700; color: var(--verde); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; text-decoration-color: rgba(21, 94, 89, 0.3); }
.enlace-flecha:hover { text-decoration-color: var(--verde); }

/* Marco de móvil para las capturas: mismo azul noche que las fichas de Google Play. */
.movil { background: var(--noche); padding: 0.55rem; border-radius: 2.4rem; box-shadow: 0 30px 60px -30px rgba(14, 36, 73, 0.45); width: 100%; max-width: 20rem; }
.movil img { border-radius: 1.9rem; width: 100%; }

/* Portada */
.portada { padding: 3.5rem 0 4.5rem; overflow: hidden; }
.portada__rejilla { display: grid; gap: 3rem; align-items: center; }
.portada h1 { font-size: clamp(2.3rem, 6.2vw, 4.1rem); max-width: 16ch; }
.portada__entrada { margin-top: 1.5rem; font-size: 1.15rem; color: var(--suave); max-width: 36rem; }
.portada__acciones { margin-top: 2.2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem 1.6rem; }
.portada__precio { margin-top: 1.6rem; font-size: 0.98rem; color: var(--suave); }
.portada__precio a { color: var(--texto); font-weight: 700; }
.portada__movil { display: flex; justify-content: center; }
.portada__movil .movil { max-width: 19rem; transform: rotate(2.5deg); }
@media (min-width: 60rem) {
  .portada { padding: 5rem 0 6rem; }
  .portada__rejilla { grid-template-columns: 1.35fr 1fr; gap: 4rem; }
  .portada__movil { justify-content: flex-end; padding-right: 2rem; }
}

/* Un día en la escoleta */
.dia { background: #fff; border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); padding: 4.5rem 0 2rem; }
.dia > .contenedor > h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); max-width: 20ch; }
.dia__intro { margin-top: 1rem; color: var(--suave); max-width: 38rem; font-size: 1.1rem; }
/* Las escenas cuelgan de una línea vertical con un punto por hora, como la línea del día en la app. */
.escenas { position: relative; margin-top: 1rem; }
.escena { position: relative; display: grid; gap: 2rem; align-items: center; padding: 3.5rem 0; border-bottom: 1px solid var(--linea); }
.escena:last-child { border-bottom: 0; }
.escena__texto h3 { font-size: clamp(1.45rem, 2.8vw, 2rem); max-width: 22ch; }
.escena__texto h3 .hora { color: var(--naranja); font-variant-numeric: tabular-nums; }
.escena__texto p { margin-top: 1rem; color: var(--suave); max-width: 32rem; }
.escena__imagen { display: flex; justify-content: center; }
.escena__imagen .movil { max-width: 17rem; }
@media (min-width: 52rem) {
  .escenas::before { content: ""; position: absolute; left: 50%; top: 3rem; bottom: 3rem; width: 2px; margin-left: -1px; background: var(--linea); }
  .escena { grid-template-columns: 1fr 1fr; gap: 6rem; padding: 3rem 0; border-bottom: 0; }
  .escena::after { content: ""; position: absolute; left: 50%; top: 50%; width: 1.1rem; height: 1.1rem; margin: -0.55rem 0 0 -0.55rem; border-radius: 50%; background: #fff; border: 3px solid var(--naranja); }
  .escena--derecha .escena__imagen { order: 2; }
  .escena__texto { padding: 0 1rem; }
}

/* Dirección: lista con filetes, sin cajas. */
.direccion { background: var(--verde); color: #eef6f4; padding: 5rem 0; }
.direccion__cabeza { display: grid; gap: 1rem; }
.direccion h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); color: #fff; }
.direccion__cabeza p { color: #c6e0db; max-width: 34rem; font-size: 1.1rem; }
.direccion__lista { margin: 3rem 0 0; padding: 0; list-style: none; display: grid; column-gap: 4rem; }
.direccion__lista li { padding: 1.4rem 0; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.direccion__lista strong { display: block; color: #fff; font-size: 1.15rem; margin-bottom: 0.35rem; }
.direccion__lista span { color: #c6e0db; }
@media (min-width: 52rem) {
  .direccion__cabeza { grid-template-columns: 1fr 1fr; align-items: end; gap: 4rem; }
  .direccion__lista { grid-template-columns: 1fr 1fr; }
}

/* Precio */
.precio { padding: 5rem 0; }
.precio__rejilla { display: grid; gap: 2.5rem; }
.precio h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.precio__cifra { margin-top: 1.6rem; display: flex; align-items: baseline; gap: 0.9rem; flex-wrap: wrap; }
.precio__cifra b { font-size: clamp(5rem, 14vw, 8.5rem); line-height: 0.9; letter-spacing: -0.05em; color: var(--verde); }
.precio__cifra span { font-size: 1.15rem; color: var(--suave); max-width: 11rem; line-height: 1.35; }
.precio__detalle p + p { margin-top: 1rem; }
.precio__detalle { color: var(--suave); max-width: 34rem; }
.precio__detalle strong { color: var(--texto); }
.precio__ejemplos { margin: 1.8rem 0 2rem; padding: 0; list-style: none; border-top: 1px solid var(--linea); }
.precio__ejemplos li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--linea); color: var(--texto); }
.precio__ejemplos li span:last-child { font-weight: 700; font-variant-numeric: tabular-nums; }
@media (min-width: 52rem) {
  .precio__rejilla { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
  .precio__detalle { padding-top: 0.6rem; }
}

/* Quién hay detrás */
.detras { background: var(--crema-2); padding: 4.5rem 0; }
.detras__rejilla { display: grid; gap: 2rem; }
.detras h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.detras__texto p { color: var(--suave); max-width: 36rem; margin-top: 1rem; }
.detras__contacto { font-size: 1.1rem; }
.detras__contacto a { display: block; text-decoration: none; font-weight: 700; padding: 0.3rem 0; }
.detras__contacto a:hover { color: var(--verde); }
.detras__contacto .grande { font-size: clamp(1.6rem, 3.4vw, 2.2rem); letter-spacing: -0.01em; }
@media (min-width: 52rem) { .detras__rejilla { grid-template-columns: 1.4fr 1fr; gap: 4rem; align-items: center; } }

/* Preguntas: desplegables separados por filetes. */
.preguntas { padding: 5rem 0; }
.preguntas__rejilla { display: grid; gap: 2rem; }
.preguntas h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.preguntas__lado p { margin-top: 1rem; color: var(--suave); }
.preguntas details { border-bottom: 1px solid var(--linea); }
.preguntas details:first-child { border-top: 1px solid var(--linea); }
.preguntas summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 0; font-weight: 700; font-size: 1.08rem; }
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after { content: "+"; font-size: 1.6rem; font-weight: 500; color: var(--verde); line-height: 1; transition: transform 0.2s; }
.preguntas details[open] summary::after { transform: rotate(45deg); }
.preguntas details p { padding: 0 0 1.4rem; color: var(--suave); max-width: 40rem; }
@media (min-width: 52rem) { .preguntas__rejilla { grid-template-columns: 1fr 2fr; gap: 4rem; } }

/* Cierre y pie */
.cierre { background: var(--noche); color: #fff; padding: 4.5rem 0; }
.cierre__fila { display: grid; gap: 1.8rem; align-items: center; }
.cierre h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); max-width: 22ch; }
.cierre p { color: #b8c5d8; margin-top: 0.8rem; }
@media (min-width: 52rem) { .cierre__fila { grid-template-columns: 1fr auto; } }

.pie { background: var(--noche); color: #9fb0c8; font-size: 0.92rem; border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 2.5rem 0 2rem; }
.pie__fila { display: grid; gap: 1.8rem; }
.pie img.pie__logo { height: 2.4rem; width: auto; }
.pie ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.pie a { color: #c9d4e3; text-decoration: none; }
.pie a:hover { color: #fff; }
.pie__base { margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; font-size: 0.85rem; }
.pie__tramuntana { display: inline-flex; align-items: center; gap: 0.6rem; }
.pie__tramuntana img { height: 1.3rem; width: auto; opacity: 0.8; }
.pie__tramuntana:hover img { opacity: 1; }
@media (min-width: 52rem) { .pie__fila { grid-template-columns: auto 1fr; align-items: center; } .pie ul { justify-content: flex-end; } }

/* Entrada suave al hacer scroll. Sin JS, o con movimiento reducido, todo se ve desde el principio. */
.js .aparece { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .aparece.visto { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .aparece { opacity: 1; transform: none; transition: none; }
  .portada__movil .movil { transform: none; }
}
