/* Piezas comunes de las dos muestras de Green Park (solo estructura; los colores salen de cada marca.css). */

/* ---------- visor de fotos ---------- */
.visor { width: 100vw; height: 100svh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgb(6 18 28 / .96); color: #f3eee4; }
.visor::backdrop { background: rgb(6 18 28 / .6); }
.visor__cabeza { position: absolute; inset: 0 0 auto; z-index: 2; display: flex; align-items: center; gap: 1rem;
  padding: 14px var(--pad); }
.visor__titulo { font: 400 1.5rem/1.1 var(--serif); font-style: italic; }
.visor__cuenta { margin-left: auto; font: 500 .82rem/1 var(--sans); letter-spacing: .14em; }
.visor__cerrar { width: 48px; height: 48px; border-radius: 50%; font-size: 1.9rem; line-height: 1;
  background: rgb(255 255 255 / .1); }
.visor__marco { position: absolute; inset: 72px var(--pad) 72px; display: grid; place-items: center; }
.visor__foto { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 14px; opacity: 0;
  transition: opacity .45s var(--curva); }
.visor__foto.is-lista { opacity: 1; }
.visor__flecha { position: absolute; top: 50%; z-index: 2; width: 58px; height: 58px; margin-top: -29px;
  border-radius: 50%; font-size: 2.2rem; line-height: 1; background: rgb(255 255 255 / .12); }
.visor__flecha:hover, .visor__cerrar:hover { background: rgb(255 255 255 / .22); }
.visor__flecha--ant { left: clamp(8px, 2vw, 28px); }
.visor__flecha--sig { right: clamp(8px, 2vw, 28px); }
@media (max-width: 700px) { .visor__flecha { top: auto; bottom: 10px; margin: 0; } .visor__marco { inset: 64px 8px 80px; } }
html.visor-abierto { overflow: hidden; }

/* ---------- fila con flechas (carril) ---------- */
.carril { position: relative; --m-izq: 0px; --m-der: 0px; }
.carril:not(.en-inicio) { --m-izq: 48px; }
.carril:not(.en-fin) { --m-der: 96px; }
.carril__pista { display: flex; gap: clamp(14px, 1.6vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; overscroll-behavior-x: contain; padding: 4px 0 12px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--m-izq), #000 calc(100% - var(--m-der)), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 var(--m-izq), #000 calc(100% - var(--m-der)), transparent); }
.carril__pista::-webkit-scrollbar { display: none; }
.carril__pista > * { scroll-snap-align: start; flex: none; }
.carril__pista.is-arrastrando { scroll-snap-type: none; cursor: grabbing; }
.carril__pista.is-arrastrando * { pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .carril__pista { cursor: grab; } }
.carril.sin-carril .carril__pista { -webkit-mask-image: none; mask-image: none; }
.carril__flecha { position: absolute; z-index: 3; top: var(--flecha-y, 40%); width: 58px; height: 58px; margin-top: -29px;
  border-radius: 50%; display: grid; place-items: center; transition: transform .3s var(--curva), opacity .3s; }
.carril__flecha svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.carril__flecha--ant { left: -8px; }
.carril__flecha--sig { right: -8px; }
.carril__flecha:disabled { opacity: 0; pointer-events: none; transform: scale(.8); }
.carril.sin-carril .carril__flecha, .carril.sin-carril .carril__pie { display: none; }
.carril__pie { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.1rem; margin-top: .6rem; }
.carril__barra { flex: 0 1 240px; height: 4px; border-radius: 4px; overflow: hidden; }
.carril__barra i { display: block; height: 100%; width: calc(var(--visible, .3) * 100%); border-radius: 4px;
  transform: translateX(calc(var(--avance, 0) * (1 / var(--visible, .3) - 1) * 100%)); }
.solo-tacto { display: none; }
@media (hover: none) { .solo-tacto { display: inline; } .solo-mouse { display: none; } .carril__flecha { display: none; } }

/* ---------- videos (reels del cliente): se reproducen solos en pantalla, con pausa visible ---------- */
.video { position: relative; overflow: hidden; }
.video video { width: 100%; height: 100%; object-fit: cover; }
.video__pausa { position: absolute; right: 12px; bottom: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  background: rgb(8 24 36 / .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.video__pausa::before, .video__pausa::after { content: ''; position: absolute; top: 13px; width: 4px; height: 14px; border-radius: 2px; background: #fff; }
.video__pausa::before { left: 14px; } .video__pausa::after { right: 14px; }
.video.is-pausado .video__pausa::before { left: 16px; width: 0; height: 0; border-radius: 0; background: none;
  border-left: 12px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.video.is-pausado .video__pausa::after { display: none; }
html:not(.mov) .video__pausa { display: none; }

/* fechas en castellano sobre el input nativo (transparente encima: abre el calendario del sistema) */
label:has(.fecha__input) { position: relative; cursor: pointer; }
.fecha__input { position: absolute !important; inset: 0; width: 100% !important; height: 100%; opacity: 0; cursor: pointer; z-index: 1; }
.fecha__input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.fecha__ver { display: block; font: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 380px) { .campo .fecha__ver { font-size: .84rem !important; } }
.fecha__ver::first-letter { text-transform: uppercase; }
.fecha__ver.is-vacia { opacity: .72; }
label:has(.fecha__input:focus-visible) { outline: 2px solid var(--turquesa, #02CAE1); outline-offset: -2px; }

/* contador de personas */
.contador { display: flex; align-items: center; gap: 2px; }
.contador button { width: 30px; height: 30px; border-radius: 50%; font-size: 1.15rem; line-height: 1; flex: none; }
.contador input { width: 2.4ch; text-align: center; border: 0; background: none; font: inherit; color: inherit; -moz-appearance: textfield; padding: 0; }
.contador input::-webkit-inner-spin-button, .contador input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* pie: que el mail y la dirección largos corten en celular */
.pie__lista > * { min-width: 0; overflow-wrap: anywhere; }
