/* sitio.css · lo que el kit no trae: el logo del cliente, el pie, los lienzos de pixel art y el mapa */
:root { --t-h2: clamp(26px, 1.4vw + 20px, 40px); }
.nav__logo img { display: block; height: 40px; width: auto; }
.footer__brand { display: flex; gap: var(--s-6); align-items: flex-start; }
.footer__brand img { display: block; height: 48px; width: auto; flex: none; }
.footer__copy { margin-left: auto; color: var(--muted); font-weight: 400; }

/* pixel art: un lienzo de baja resolución escalado sin suavizar */
canvas[data-pixel] { display: block; width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; }
[data-pixel-host] { position: relative; background: var(--p-inv-bg); overflow: hidden; }
.hero__media[data-pixel-host] canvas { position: absolute; inset: 0; }
.panel[data-pixel-host] canvas { position: absolute; inset: 0; }

/* el mapa de la costa: los pines llevan su número en el lienzo; la leyenda, debajo, en texto vivo */
.mapa { position: relative; height: 420px; border-radius: var(--r-lg); }
.mapa-wrap { position: relative; }
.mapa__lugares { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin: var(--s-5) 0 0; padding: 0; list-style: none; counter-reset: lugar; }
.mapa__lugar { counter-increment: lugar; font: 500 15px/1.4 var(--font-text); color: var(--ink); }
.mapa__lugar::before { content: counter(lugar); display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: var(--s-2); border-radius: 4px; background: var(--p-gold, #c4a35a); color: var(--p-ink); font-size: 13px; }
.mapa__lugar[data-hub]::before { background: var(--ink); color: var(--bg); }

/* las fotos en muro */
.wall { display: grid; gap: 2px; margin-top: var(--s-6); }
.wall--3 { grid-template-columns: repeat(3, 1fr); }
.wall--2 { grid-template-columns: repeat(2, 1fr); }
.wall > img { display: block; width: 100%; height: auto; object-fit: cover; }
.wall--3 > img { aspect-ratio: 1; }
.wall--2 > img { aspect-ratio: 4 / 3; }

@media (max-width: 639px) {
  .nav__logo img { height: 32px; }
  .mapa { height: 260px; }
  .mapa__lugar { font-size: 14px; }
  .wall { grid-template-columns: 1fr 1fr; }
  .wall > img { aspect-ratio: 1; }
  .wall--3 > img:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
}

/* portada de cine: recuadro translúcido sobre la imagen y texto más pequeño (pedido del cliente) */
.hero--film .hero__over > :first-child { max-width: 600px; padding: var(--s-7); background: rgb(20 17 16 / .58); -webkit-backdrop-filter: blur(16px) saturate(1.15); backdrop-filter: blur(16px) saturate(1.15); border: 1px solid rgb(246 241 231 / .14); }
.hero--film .hero__over h1 { font-size: clamp(28px, 2.4vw + 18px, 52px); line-height: 1.08; max-width: 20ch; }
.hero--film .hero__over .hero__lead { font-size: 16px; line-height: 1.55; }
.hero--film .ly-play__label { background: rgb(20 17 16 / .88); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }

.ratio-43 { --ratio: 75%; }
.ratio-11 { --ratio: 100%; }

/* efectos: agua sobre la foto, día y noche, foto en puntos (js/efectos.js) */
.agua__gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero__media[data-agua] { cursor: crosshair; touch-action: pan-y; }
.antes-despues { position: relative; height: min(600px, calc(100svh - 300px)); border-radius: var(--r-lg); overflow: hidden; cursor: ew-resize; touch-action: pan-y; --pos: 50%; }
.antes-despues > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.antes-despues .ad__dia { transform: scale(1.1) translate(1%, 2%); transform-origin: 50% 40%; }
.antes-despues .ad__noche { clip-path: inset(0 0 0 var(--pos)); }
.ad__linea { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--p-inv-ink); pointer-events: none; }
.ad__linea::after { content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--p-inv-ink); box-shadow: 0 2px 10px rgb(0 0 0 / .3); }
.ad__linea::before { content: ""; position: absolute; top: 50%; left: 50%; z-index: 1; width: 16px; height: 8px; margin: -4px 0 0 -8px; border-left: 2px solid var(--p-ink); border-right: 2px solid var(--p-ink); }
.antes-despues input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: transparent; }
.antes-despues input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 44px; background: transparent; border: 0; }
.antes-despues input[type="range"]::-moz-range-thumb { width: 44px; height: 44px; background: transparent; border: 0; }
.antes-despues input[type="range"]:focus-visible { outline: 2px solid var(--action); outline-offset: -6px; border-radius: var(--r-lg); }
.puntos { height: min(560px, calc(100svh - 300px)); border-radius: var(--r-lg); overflow: hidden; background: var(--p-inv-bg); }
.puntos canvas { display: block; width: 100%; height: 100%; }
@media (max-width: 639px) { .antes-despues, .puntos { height: 440px; }
}

/* Foto junto a las preguntas frecuentes (una por página) */
.faq-foto { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin-top: var(--s-7); border-radius: var(--r-lg); }
/* Hero de foto: en celular solo dos datos, para que el hero quepa en la primera pantalla */
@media (max-width: 639px) { .hero--photo .hero__facts { display: none; } }
@media (max-width: 639px) { .hero--photo h1 { font-size: 30px; } .hero--photo .hero__lead { font-size: 16px; } }

/* Conversación de WhatsApp hecha en HTML (página de automatización) */
.chat { display: flex; flex-direction: column; justify-content: center; gap: 12px; height: 100%; min-height: 460px; padding: var(--s-7); border-radius: var(--r-lg); background: #0b141a; }
.chat__msg { max-width: 80%; margin: 0; padding: 10px 14px 6px; border-radius: 14px; font-size: 16px; line-height: 1.45; color: #e9edef; }
.chat__msg--in { align-self: flex-start; background: #202c33; border-top-left-radius: 4px; }
.chat__msg--out { align-self: flex-end; background: #005c4b; border-top-right-radius: 4px; }
.chat__time { display: block; margin-top: 2px; font-size: 12px; text-align: right; color: #aebac1; }

/* Muro de fotos como columna de un split: arriba, a la altura del título */
.grid--top > .wall { margin-top: 0; align-self: start; }
