/* SUMO · landings de gran apertura (/apertura/<slug>, docs/sumo-web.md "Aperturas"). Móvil primero (390 px), patrón de app:
   carruseles con scroll-snap, hojas inferiores y barra fija de dos botones. Tokens y botones de v4.css; hojas de hoja.css.
   Sin degradados ni brillos; naranja solo de detalle (botones con texto negro, sello, insignia). */
.ap-top { display: flex; justify-content: center; align-items: center; min-height: 64px; background: var(--cream); border-bottom: var(--line); }
.ap-top img { height: 42px; width: auto; }
.ap h2 { font-size: clamp(2.3rem, 11.5vw, 3.5rem); line-height: .92; }
.ap h3 { font-size: 1.5rem; line-height: 1; }
.ap-k { font-family: var(--f-display); font-stretch: 100%; font-weight: 800; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-ink); margin-bottom: 8px; }
.ap-bajada { margin-top: 8px; color: var(--ink-soft); font-size: 1rem; }

/* ---------- Hero ---------- */
.ap-hero { position: relative; overflow: hidden; background: var(--kraft); padding: 24px 0 30px; text-align: center; isolation: isolate; }
.ap-kata { position: absolute; z-index: -1; left: -4%; right: -4%; top: 38%; font-family: var(--f-kata); font-weight: 900; font-size: clamp(7rem, 38vw, 15rem); line-height: 1; white-space: nowrap; text-align: center; color: rgba(110, 60, 15, .08); letter-spacing: .04em; user-select: none; pointer-events: none; }
.ap-hero-in { display: grid; justify-items: center; gap: 0; max-width: 560px; margin-inline: auto; padding-inline: var(--pad); }
.ap-hero-txt { display: grid; justify-items: center; width: 100%; }
.ap-sello { display: inline-block; background: var(--ink); color: #fff; margin: 0; padding: .08em .34em .02em; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-stretch: 62%; font-size: clamp(2rem, 9.5vw, 3.2rem); line-height: 1; transform: rotate(-2.6deg); clip-path: polygon(0 3%, 100% 0, 99% 97%, 1% 100%); }
.ap-sello b { color: var(--orange); font-weight: inherit; }
.ap-h1 { margin-top: 16px; font-size: clamp(4rem, 21.5vw, 8rem); line-height: .86; }
.ap-plaza { margin-top: 12px; font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.ap-fecha { margin-top: 6px; font-family: var(--f-display); font-stretch: 100%; font-weight: 900; text-transform: uppercase; font-size: clamp(1.2rem, 6vw, 1.7rem); line-height: 1.1; }
.ap-fecha span { color: var(--orange-ink); }
.ap-cuenta { margin-top: 16px; min-width: 210px; border: 2px solid var(--ink); border-radius: 18px; background: var(--cream); padding: 10px 16px 12px; box-shadow: 5px 6px 0 var(--ink); }
.ap-cuenta:has(.ap-cuenta-n li:only-child) { display: flex; align-items: center; justify-content: center; gap: 12px; min-width: 0; padding: 8px 18px 8px; }
.ap-cuenta:has(.ap-cuenta-n li:only-child) .ap-cuenta-n { margin: 0; }
.ap-cuenta:has(.ap-cuenta-n li:only-child) li { display: flex; align-items: baseline; gap: 6px; }
.ap-cuenta-t { font-family: var(--f-display); font-stretch: 100%; font-weight: 800; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; }
.ap-cuenta-n { list-style: none; padding: 0; margin: 4px 0 0; display: flex; justify-content: center; gap: 14px; }
.ap-cuenta-n li { display: grid; justify-items: center; min-width: 44px; }
.ap-cuenta-n b { font-family: var(--f-display); font-stretch: 100%; font-weight: 900; font-size: 2.2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.ap-cuenta-n span { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.ap-insignia { margin-top: 16px; display: inline-block; background: var(--orange); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 7px 16px 6px; font-family: var(--f-display); font-stretch: 85%; font-weight: 900; text-transform: uppercase; letter-spacing: .02em; font-size: clamp(.95rem, 4.5vw, 1.3rem); line-height: 1.1; white-space: nowrap; transform: rotate(-2deg); }
.ap-h1--regreso { font-size: clamp(3.2rem, 15.5vw, 6rem); line-height: .9; text-wrap: balance; }
.ap-h1--regreso + .ap-plaza { text-wrap: balance; }
.ap-plaza-kids { color: var(--orange-ink); }
.ap-plaza b { font-family: var(--f-display); font-stretch: 100%; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.ap-hero-art { width: 100%; margin-top: 16px; }
.ap-hero-art img { width: min(92%, 380px); margin-inline: auto; filter: drop-shadow(0 12px 0 rgba(20, 18, 16, .1)); }
.ap-cta { width: 100%; max-width: 440px; margin-top: 18px; display: grid; gap: 12px; }
.ap-cta .btn { width: 100%; }

/* ---------- Promo de un día (bajo el hero; solo si `promoDia` sigue vigente) ---------- */
.ap-promo { padding: 28px 0 0; }
.ap-promo-c { border: 2px solid var(--ink); border-radius: var(--r); background: #fff; padding: 20px 18px 18px; text-align: center; }
.ap-promo-c .ap-k { margin-bottom: 10px; }
.ap-promo-c h2 { font-size: clamp(2rem, 10vw, 3rem); text-wrap: balance; }
.ap-promo-c .ap-detalle { margin-inline: auto; }
.ap-promo-legal { margin: 14px auto 0; font-size: .8rem; line-height: 1.45; color: var(--ink-soft); max-width: 36rem; }

/* ---------- Destacado (foto real + título + texto; solo si `destacado`; va tras la promo o el hero) ---------- */
/* Celular: foto cuadrada a sangre entre dos líneas de tinta, texto debajo. Escritorio: foto a la izquierda y texto a la derecha. */
.ap-dest { margin-top: 28px; }
.ap-dest-f { margin: 0; border-block: 2px solid var(--ink); background: #1c1713; }
.ap-dest-f img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.ap-dest-c { padding: 22px var(--pad) 0; }
.ap-dest-c h2 { font-size: clamp(2rem, 10vw, 3rem); text-wrap: balance; }

/* ---------- Secciones ---------- */
.ap-sec { padding: 42px 0 8px; }
.ap-sec:not(.ap-sec--car):not(.ap-sec--tinta):not(.ap-sec--exp) { padding-bottom: 36px; }
.ap-sec--chica { padding-top: 0; }
.ap-sec--tinta { background: var(--ink); color: var(--cream); padding: 40px 0 44px; margin-top: 28px; }
.ap-sec--tinta .ap-k { color: var(--orange); }
.ap-sec--tinta h2 { color: #fff; }
.ap-sec--tinta .btn { border-color: var(--cream); }
.ap-detalle { margin-top: 12px; font-size: 1.12rem; line-height: 1.45; max-width: 36rem; }
.ap-legal { margin-top: 16px; font-size: .86rem; line-height: 1.45; color: rgba(251, 244, 234, .72); max-width: 36rem; }

.ap-pasos { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.ap-pasos li { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center; border: 2px solid var(--ink); border-radius: 20px; background: #fff; padding: 14px 16px; }
.ap-pasos b { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--orange); color: var(--ink); border: 2px solid var(--ink); font-family: var(--f-display); font-stretch: 100%; font-weight: 900; font-size: 1.7rem; line-height: 1; }
.ap-pasos p { margin-top: 4px; font-size: 1rem; line-height: 1.35; color: var(--ink-soft); }
.ap-precio { margin-top: 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.ap-precio b { display: inline-block; background: var(--orange); color: #fff; text-shadow: .035em .045em 0 var(--ink); border: 3px solid var(--ink); border-radius: 16px; padding: .02em .16em 0; box-shadow: 5px 6px 0 var(--ink); font-family: var(--f-display); font-stretch: 112%; font-weight: 900; font-size: clamp(3.4rem, 17vw, 5rem); line-height: .95; letter-spacing: -.03em; }
.ap-precio span { font-family: var(--f-display); font-stretch: 100%; font-weight: 900; text-transform: uppercase; font-size: clamp(.9rem, 4vw, 1.1rem); text-wrap: balance; line-height: 1.15; }

/* ---------- Express (Apertura.experiencia = 'express'): azul rey de la submarca (--royal, #384698) solo como acento; la plantilla no cambia ---------- */
.ap-express { margin-top: 12px; display: inline-block; background: var(--royal); color: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 5px 14px 4px; font-family: var(--f-display); font-stretch: 100%; font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; line-height: 1.1; }
.ap--express .ap-insignia { background: var(--royal); color: #fff; }
.ap--express .ap-k, .ap--express .ap-c-et { color: var(--royal); }
.ap--express .ap-sec--tinta .ap-k { color: #fff; }
.ap--express .ap-pasos b { background: var(--royal); color: #fff; }
.ap--express .ap-precio b { background: var(--royal); }
.ap--express .ap-sello b { color: #fff; }

/* ---------- Carruseles ---------- */
.ap-car { list-style: none; margin: 14px 0 0; padding: 4px var(--pad) 16px; display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.ap-car::-webkit-scrollbar { display: none; }
.ap-car > li { flex: 0 0 min(68vw, 270px); scroll-snap-align: start; display: flex; }
.ap-car-fl { display: none; }
.ap-fl { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 2px solid var(--ink); border-radius: 50%; background: var(--orange); color: var(--ink); cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease; }
.ap-fl:hover { transform: translateY(-2px); box-shadow: 0 4px 0 var(--ink); }
.ap-fl:active { transform: translateY(0); box-shadow: none; }
.ap-fl:focus-visible { outline: 3px solid var(--royal); outline-offset: 3px; }
.ap-fl[aria-disabled="true"] { opacity: .35; cursor: default; transform: none; box-shadow: none; }
.ap-c { position: relative; /* contiene el .sr absoluto: sin esto ensancha la página */ width: 100%; display: grid; grid-template-rows: auto 1fr; text-align: left; padding: 0; overflow: hidden; background: #fff; border: 2px solid var(--ink); border-radius: 20px; }
.ap-c:active { transform: translateY(1px); }
.ap-c-ph { display: block; position: relative; aspect-ratio: 4 / 3; background: #F7EEDD; }
.ap-c-ph img { position: absolute; inset: 6% 8%; width: 84%; height: 88%; object-fit: contain; filter: drop-shadow(0 10px 8px rgba(20, 18, 16, .25)); }
.ap-c-b { display: grid; align-content: start; gap: 2px; padding: 12px 14px 14px; }
.ap-c-et { font-family: var(--f-display); font-stretch: 100%; font-weight: 800; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-ink); }
.ap-c-n { font-family: var(--f-display); font-stretch: 62%; font-weight: 900; text-transform: uppercase; font-size: 1.7rem; line-height: .95; }
.ap-c-d { margin-top: 4px; font-size: .9rem; line-height: 1.3; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ap-c-p { margin-top: 6px; font-family: var(--f-display); font-stretch: 100%; font-weight: 900; font-size: 1.15rem; }
.ap-menu-cta { padding-top: 6px; padding-bottom: 6px; display: grid; gap: 12px; justify-items: center; text-align: center; }
.ap-menu-cta .btn { width: 100%; max-width: 440px; }
.ap-nota { font-size: .82rem; color: var(--ink-soft); }

/* ---------- Experiencia: "Así se vive Sumo" ---------- */
/* Galería pura: fotos a sangre separadas por una línea de tinta de 2 px, sin texto encima. Celular: mosaico de 2 columnas (las "completas"
   a todo el ancho; la proporción de cada recorte va en --c). Escritorio: dos filas, cada foto con su proporción real (--r) y todas las
   de una fila a la misma altura. */
.ap-sec--exp { padding-bottom: 0; }
.ap-exp-w { margin-top: 18px; border-block: 2px solid var(--ink); }
.ap-exp { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--ink); }
.ap-exp-g { display: contents; list-style: none; margin: 0; padding: 0; }
.ap-exp-i { min-width: 0; }
.ap-exp-i--completa { grid-column: 1 / -1; }
.ap-exp-i img { display: block; width: 100%; height: auto; aspect-ratio: var(--c); object-fit: cover; background: #1c1713; }

/* ---------- Ubicación, horario, kids ---------- */
.ap-tarjeta { margin-top: 16px; border: 2px solid var(--ink); border-radius: var(--r); background: #fff; padding: 20px 18px 22px; display: grid; gap: 4px; }
.ap-lugar { font-family: var(--f-display); font-stretch: 62%; font-weight: 900; text-transform: uppercase; font-size: 2.2rem; line-height: .95; }
.ap-tarjeta address { font-style: normal; font-size: 1.08rem; line-height: 1.4; margin-top: 6px; }
.ap-muni { color: var(--ink-soft); font-weight: 700; }
.ap-mapa { position: relative; margin-top: 14px; height: 230px; border: 2px solid var(--ink); border-radius: 16px; overflow: hidden; background: var(--kraft); }
.ap-mapa[hidden] { display: none; }
.ap-pin { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--orange); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(20, 18, 16, .4); }
.ap-pin img { display: block; height: 26px; width: auto; }
.ap-acts { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ap-acts .btn { min-height: 56px; padding: 0 12px; font-size: 1.08rem; text-align: center; line-height: 1.05; }
.ap-horario { margin: 14px 0 0; display: grid; gap: 10px; }
.ap-horario > div { display: flex; justify-content: space-between; gap: 12px; border-bottom: var(--line); padding-bottom: 8px; }
.ap-horario dt { font-weight: 800; }
.ap-horario dd { margin: 0; text-align: right; }
.ap-kids { display: flex; gap: 12px; align-items: center; border: 2px dashed var(--ink); border-radius: 16px; padding: 12px 14px; font-weight: 600; }

/* ---------- Cierre y pie ---------- */
.ap-cierre .btn--xl { margin-top: 20px; max-width: 440px; }
.ap-k--redes { margin-top: 28px; }
.ap-redes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ap-redes a { display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 76px; padding: 8px 6px; border: 2px solid var(--cream); border-radius: 18px; text-decoration: none; font-weight: 800; font-size: .95rem; }
.ap-redes a:hover { background: var(--cream); color: var(--ink); }
.ap-pie { background: var(--ink); color: rgba(251, 244, 234, .7); padding: 0 0 calc(96px + env(safe-area-inset-bottom)); }
.ap-pie small { display: block; padding-top: 18px; font-size: .8rem; line-height: 1.5; }
.ap-pie a { color: inherit; }

/* ---------- Barra inferior fija ---------- */
.ap-barra { position: fixed; z-index: 54; left: 0; right: 0; bottom: 0; padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom)); background: var(--cream); border-top: 2px solid var(--ink); }
.ap-barra-in { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 520px; margin-inline: auto; }
.ap-barra .btn { min-height: 54px; padding: 0 10px; font-size: 1.15rem; width: 100%; }
.ap-barra .btn:hover { transform: none; box-shadow: none; }

/* ---------- Hojas (contenido) ---------- */
.ap-h-ph { display: block; position: relative; aspect-ratio: 4 / 3; border-radius: 20px; background: #F7EEDD; margin: 4px 0 16px; }
.ap-h-ph img { position: absolute; inset: 6% 8%; width: 84%; height: 88%; object-fit: contain; filter: drop-shadow(0 12px 10px rgba(20, 18, 16, .25)); }
.ap-h-pr { margin-bottom: 10px; }
.ap-h-pp { font-family: var(--f-display); font-weight: 900; font-stretch: 100%; font-size: 1.7rem; line-height: 1; }
.hoja-d { font-size: 1.02rem; line-height: 1.45; margin: 0 0 12px; }
.ap-h-dentro { display: grid; gap: 6px; margin: 0 0 12px; }
.ap-h-dentro p { font-size: 1rem; line-height: 1.4; }
.ap-h-dentro b { font-family: var(--f-display); font-stretch: 100%; font-weight: 800; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-ink); display: block; }
.ap-h-metas { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; list-style: none; padding: 0; }
.ap-h-metas li { border: 1.5px solid var(--ink); background: #fff; border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: .88rem; }
.ap-h-ver, .ap-agenda .btn { width: 100%; margin-top: 8px; }
.ap-agenda { display: grid; gap: 10px; margin-top: 16px; }
.ap-agenda .btn { margin-top: 0; text-align: center; line-height: 1.1; padding-block: 8px; }

/* ---------- Escritorio ---------- */
@media (min-width: 900px) {
  .ap-hero { padding: 48px 0 56px; }
  .ap-hero-in { max-width: calc(var(--wrap) + var(--pad) * 2); grid-template-columns: 1.1fr .9fr; grid-template-areas: "txt art" "cta art"; align-items: center; column-gap: 56px; text-align: left; }
  .ap-hero-txt { grid-area: txt; justify-items: start; }
  .ap-hero-art { grid-area: art; margin-top: 0; }
  .ap-hero-art img { width: 100%; max-width: 460px; }
  .ap-cta { grid-area: cta; grid-template-columns: 1fr 1fr; max-width: 560px; align-self: start; justify-self: start; }
  .ap-cta .btn { min-height: 56px; font-size: 1.15rem; white-space: nowrap; }
  .ap-h1 { font-size: clamp(6rem, 9vw, 9rem); }
  .ap-h1.ap-h1--regreso { font-size: clamp(4.5rem, 7vw, 7rem); }
  .ap-promo-c { max-width: 720px; margin-inline: auto; padding: 28px 32px 24px; }
  .ap-dest { display: grid; grid-template-columns: 440px 1fr; align-items: center; gap: 48px; max-width: calc(var(--wrap) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); margin-top: 40px; }
  .ap-dest-f { border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; }
  .ap-dest-c { padding: 0; }
  .ap-sec { padding-top: 64px; }
  .ap-sec--chica { padding-top: 0; }
  .ap-pasos { grid-template-columns: repeat(4, 1fr); }
  .ap--express .ap-pasos { grid-template-columns: repeat(3, 1fr); }
  .ap-pasos li { grid-template-columns: 1fr; justify-items: start; align-content: start; padding: 20px; }
  .ap-precio { align-items: flex-start; text-align: left; }
  .ap-car { padding-inline: max(var(--pad), calc((100vw - var(--wrap)) / 2)); scroll-padding-inline: max(var(--pad), calc((100vw - var(--wrap)) / 2)); }
  .ap-car > li { flex-basis: 270px; }
  .ap-exp { display: flex; flex-direction: column; max-width: 1440px; margin-inline: auto; }
  .ap-exp-g { display: flex; gap: 2px; }
  .ap-exp-i { flex: 1 1 0; flex-grow: var(--r); }
  .ap-exp-i img { aspect-ratio: var(--r); }
  .ap-tarjeta { max-width: 560px; }
  /* Con mapa (yaAbierta/regreso): a todo el ancho, datos y botones a la izquierda, mapa grande a la derecha. Si el mapa
     falla (queda [hidden]), vuelve a la tarjeta angosta. */
  .ap-tarjeta:has(.ap-mapa:not([hidden])) { max-width: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); grid-template-rows: auto auto auto 1fr; column-gap: 36px; padding: 28px 28px 28px 32px; }
  .ap-tarjeta:has(.ap-mapa:not([hidden])) > * { grid-column: 1; }
  .ap-tarjeta:has(.ap-mapa:not([hidden])) .ap-mapa { grid-column: 2; grid-row: 1 / 5; margin-top: 0; height: auto; min-height: 340px; }
  .ap-tarjeta:has(.ap-mapa:not([hidden])) .ap-acts { align-self: end; margin-top: 24px; }
  .ap-barra { left: 50%; right: auto; width: min(520px, 100% - 40px); bottom: 16px; transform: translateX(-50%); border: 2px solid var(--ink); border-radius: 22px; padding: 10px; box-shadow: 5px 6px 0 var(--ink); }
  .ap-pie { padding-bottom: 120px; }
}
/* Escritorio con mouse: flechas junto al título; sin snap para que el movimiento por scroll de la página (apertura.client.ts) sea continuo. */
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  .ap-car-cab { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
  .ap-car-fl { display: flex; gap: 10px; flex: none; padding-bottom: 4px; }
  .ap-car { scroll-snap-type: none; }
}
@media (prefers-reduced-motion: reduce) { .ap-c, .ap-fl, .ap-barra .btn { transition: none; } }
