/* ═══════════════════════════════════════════════════════════
   PLANO DEL RECINTO
   Las posiciones vienen en % desde la tabla `sites`, así que el
   plano escala sin recalcular nada.
   ═══════════════════════════════════════════════════════════ */

.plano { width: 100%; }

.plano__lienzo {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    min-height: 21rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--espresso);
    border: 1px solid var(--color-border-strong);
}

/* ====== FRANJAS DEL TERRENO ====== */

.plano__capa { position: absolute; left: 0; right: 0; }
.plano__capa span {
    position: absolute; left: 50%; transform: translateX(-50%);
    font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
    white-space: nowrap;
}

.plano__capa--acceso {
    top: 0; height: 21%;
    background: linear-gradient(180deg, #2b3a33, #223029);
    border-bottom: 2px dashed rgba(214, 188, 140, .35);
}
.plano__capa--acceso span { top: .7rem; color: rgba(246, 242, 233, .55); }

.plano__capa--bosque {
    top: 21%; height: 55%;
    background:
        radial-gradient(circle at 18% 30%, rgba(71, 121, 125, .16) 0 22%, transparent 23%),
        radial-gradient(circle at 82% 62%, rgba(71, 121, 125, .14) 0 20%, transparent 21%),
        linear-gradient(180deg, #1b3227, #16261f);
}

.plano__capa--playa {
    top: 76%; height: 10%;
    background: linear-gradient(180deg, #6d6555, #574f42);
}
.plano__capa--playa span { top: .5rem; color: rgba(246, 242, 233, .8); }

.plano__capa--lago {
    top: 86%; bottom: 0;
    background: linear-gradient(180deg, var(--lago-claro), var(--lago));
}
.plano__capa--lago span { bottom: .7rem; color: rgba(246, 242, 233, .9); }

/* ====== HITOS ====== */

.plano__hito {
    position: absolute; transform: translate(-50%, -50%);
    display: flex; flex-direction: column; align-items: center; gap: .2rem;
    color: rgba(246, 242, 233, .62);
    pointer-events: none;
}
.plano__hito svg { width: 18px; height: 18px; }
.plano__hito span {
    font-size: .6rem; letter-spacing: .1em; text-transform: uppercase;
    white-space: nowrap;
}

/* ====== SITIOS ====== */

.plano__sitio {
    position: absolute;
    transform: translate(-50%, -50%);
    display: grid; place-items: center;
    width: 2.35rem; height: 2.35rem;
    border-radius: 50%;
    font-size: .7rem; font-weight: 600; letter-spacing: -.01em;
    border: 1.5px solid transparent;
    transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}
.plano__sitio--libre {
    background: rgba(246, 242, 233, .94);
    color: var(--espresso);
    border-color: rgba(246, 242, 233, .5);
}
.plano__sitio--ocupado {
    background: rgba(22, 38, 31, .55);
    color: rgba(246, 242, 233, .45);
    border-color: rgba(246, 242, 233, .22);
    text-decoration: line-through;
}

/* Modo selección: el sitio libre es un control real */
.plano--elegir .plano__sitio--libre { cursor: pointer; }
.plano--elegir .plano__sitio--libre:hover {
    transform: translate(-50%, -50%) scale(1.12);
    border-color: var(--gold);
}
.plano__sitio input {
    position: absolute; opacity: 0; width: 100%; height: 100%;
    margin: 0; cursor: pointer; border-radius: 50%;
}
.plano__sitio input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.plano__sitio.is-elegido,
.plano__sitio:has(input:checked) {
    background: var(--gold);
    color: #fff;
    border-color: #fff;
    transform: translate(-50%, -50%) scale(1.12);
}

/* ====== LEYENDA ====== */

.plano__leyenda {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: .5rem 1.4rem;
    margin: 1.1rem 0 0; padding: 0; list-style: none;
    font-size: .8rem; color: var(--color-text-muted);
}
.plano__leyenda li { display: flex; align-items: center; gap: .45rem; }
.plano__muestra {
    width: 13px; height: 13px; border-radius: 50%; flex: none;
    border: 1.5px solid var(--color-border-strong);
}
.plano__muestra--libre    { background: #fff; }
.plano__muestra--ocupado  { background: #b9b3a6; border-color: #b9b3a6; }
.plano__muestra--elegido  { background: var(--gold); border-color: var(--gold); }

/* ====== RESPONSIVE ====== */

@media (max-width: 720px) {
    .plano__lienzo { aspect-ratio: 3 / 4; min-height: 26rem; }
    .plano__sitio { width: 2rem; height: 2rem; font-size: .62rem; }
    .plano__hito span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .plano__sitio { transition: none; }
    .plano--elegir .plano__sitio--libre:hover { transform: translate(-50%, -50%); }
}

/* ====== BLOQUE PLANO + INFORMACIÓN ====== */

.plano-bloque {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: clamp(1.5rem, 3.5vw, 3rem);
    align-items: start;
}

.plano-bloque__info {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: clamp(1.4rem, 2.5vw, 2rem);
}
.plano-bloque__titulo {
    margin: 0 0 .9rem;
    font-family: var(--camping-display);
    font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em;
}
.plano-bloque__info > p {
    margin: 0 0 1.4rem;
    font-size: .94rem; line-height: 1.68;
    color: var(--color-text-muted);
}

.plano-bloque__hileras { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.plano-bloque__hileras li {
    display: flex; align-items: flex-start; gap: .8rem;
    padding: .75rem 0;
    border-bottom: 1px solid var(--color-border);
}
.plano-bloque__hileras li:last-child { border-bottom: 0; }
.plano-bloque__letra {
    display: grid; place-items: center; flex: none;
    width: 1.9rem; height: 1.9rem;
    border-radius: 50%;
    background: var(--espresso); color: var(--ivory);
    font-size: .78rem; font-weight: 600;
}
.plano-bloque__hileras b { display: block; font-size: .92rem; font-weight: 600; }
.plano-bloque__hileras small {
    display: block; margin-top: .1rem;
    font-size: .8rem; line-height: 1.5; color: var(--color-text-muted);
}

.plano-bloque__datos { margin: 0 0 1.4rem; }
.plano-bloque__datos > div {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 1rem; padding: .55rem 0;
    border-bottom: 1px dotted var(--color-border-strong);
}
.plano-bloque__datos dt { font-size: .85rem; color: var(--color-text-muted); }
.plano-bloque__datos dd { margin: 0; font-size: .85rem; font-weight: 600; color: var(--espresso); }

.plano-bloque__nota {
    margin: 0 0 1.2rem;
    font-size: .84rem; line-height: 1.6;
    color: var(--gold-deep);
}
.plano-bloque__info .btn { width: 100%; justify-content: center; }

@media (max-width: 960px) {
    .plano-bloque { grid-template-columns: 1fr; }
}

/* ====== GALERÍA DEL INICIO ====== */

.mosaico {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 11.5rem;
    gap: clamp(.6rem, 1.2vw, 1rem);
}
.mosaico__pieza {
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--ivory-2);
}
.mosaico__pieza img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .7s var(--ease-out-quart, ease);
}
.mosaico__pieza:hover img { transform: scale(1.05); }
.mosaico__pieza--grande { grid-column: span 2; grid-row: span 2; }
.mosaico__pieza--alta   { grid-row: span 2; }

@media (max-width: 820px) {
    .mosaico { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 9rem; }
    .mosaico__pieza--grande { grid-column: span 2; grid-row: span 1; }
    .mosaico__pieza--alta { grid-row: span 1; }
}
@media (prefers-reduced-motion: reduce) {
    .mosaico__pieza img { transition: none; }
    .mosaico__pieza:hover img { transform: none; }
}

/* La cifra del bloque de testimonios ya no es una puntuación: es la cantidad
   de años. Se le quita la escala tipográfica de "5,0" y se ordena a dos líneas. */
/* La sección de reseñas va sobre fondo oscuro: este dato tiene que ir claro,
   no en el verde del texto normal. */
.reviews-rating__label--fuerte {
    font-weight: 500;
    color: rgba(246, 242, 233, .92);
    letter-spacing: -.005em;
    text-transform: none;
    font-size: .95rem;
}
.reviews-rating { margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.reviews-rating__score { font-size: clamp(2.4rem, 5vw, 3.2rem); }

/* ====== PLANO DENTRO DEL FORMULARIO DE RESERVA ====== */

.booking-form__plano {
    margin: 1.2rem 0;
    padding-top: 1.2rem;
    border-top: 1px solid var(--color-border);
}
.booking-form__plano-tit {
    margin: 0 0 .8rem;
    font-size: .82rem; font-weight: 600; letter-spacing: .02em;
    color: var(--espresso);
}
.booking-form__plano-tit small {
    display: block; margin-top: .15rem;
    font-weight: 400; font-size: .76rem; color: var(--color-text-muted);
}
.booking-form__plano .plano__lienzo { min-height: 15rem; aspect-ratio: 4 / 3; }
.booking-form__plano .plano__sitio { width: 1.8rem; height: 1.8rem; font-size: .58rem; }
.booking-form__plano .plano__hito span,
.booking-form__plano .plano__capa span { display: none; }
.booking-form__plano .plano__leyenda { font-size: .74rem; gap: .4rem .9rem; margin-top: .8rem; }
.booking-form__plano-nota {
    margin: .7rem 0 0;
    font-size: .76rem; line-height: 1.55;
    color: var(--color-text-muted);
}

/* ====== VISOR DE LA GALERÍA ====== */

/* La pieza del mosaico ahora es un botón: se le quita el aspecto de control. */
.mosaico__pieza {
    position: relative;
    display: block; padding: 0;
    border: 0; cursor: zoom-in;
    font: inherit; color: inherit;
    width: 100%; height: 100%;
}
.mosaico__lupa {
    position: absolute; right: .7rem; bottom: .7rem;
    display: grid; place-items: center;
    width: 2.1rem; height: 2.1rem; border-radius: 50%;
    background: rgba(22, 38, 31, .62);
    color: #fff;
    opacity: 0; transform: translateY(4px);
    transition: opacity .25s ease, transform .25s ease;
    backdrop-filter: blur(6px);
}
.mosaico__lupa svg { width: 16px; height: 16px; }
.mosaico__pieza:hover .mosaico__lupa,
.mosaico__pieza:focus-visible .mosaico__lupa { opacity: 1; transform: none; }

.visor {
    position: fixed; inset: 0; z-index: 200;
    display: grid; place-items: center;
}
.visor[hidden] { display: none; }
.visor__fondo {
    position: absolute; inset: 0;
    background: rgba(9, 18, 14, .93);
    backdrop-filter: blur(6px);
}

/* Carril con scroll y anclaje: se pasa de foto arrastrando, con la rueda,
   con las flechas del teclado o con los botones. */
.visor__carril {
    position: relative;
    display: flex;
    width: 100%; height: 100%;
    overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    outline: none;
    overscroll-behavior: contain;
}
.visor__carril::-webkit-scrollbar { display: none; }

.visor__pieza {
    flex: 0 0 100%;
    scroll-snap-align: center;
    margin: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 1rem;
    padding: clamp(3.5rem, 8vh, 5.5rem) clamp(1rem, 6vw, 5rem);
}
.visor__pieza img {
    max-width: 100%;
    max-height: 74vh;
    width: auto; height: auto;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
}
.visor__pieza figcaption {
    max-width: 46ch; text-align: center;
    font-size: .86rem; line-height: 1.55;
    color: rgba(246, 242, 233, .78);
}

.visor__cerrar, .visor__nav {
    position: absolute; z-index: 2;
    display: grid; place-items: center;
    width: 2.9rem; height: 2.9rem;
    border-radius: 50%;
    border: 1px solid rgba(246, 242, 233, .28);
    background: rgba(22, 38, 31, .55);
    color: var(--ivory);
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background-color .2s ease, border-color .2s ease;
}
.visor__cerrar:hover, .visor__nav:hover {
    background: var(--gold); border-color: var(--gold); color: #fff;
}
.visor__cerrar svg, .visor__nav svg { width: 20px; height: 20px; }
.visor__cerrar { top: clamp(.8rem, 2.5vh, 1.6rem); right: clamp(.8rem, 2.5vw, 1.6rem); }
.visor__nav--prev { left: clamp(.6rem, 2vw, 1.6rem); }
.visor__nav--next { right: clamp(.6rem, 2vw, 1.6rem); }

.visor__contador {
    position: absolute; bottom: clamp(.9rem, 3vh, 1.8rem); left: 50%;
    transform: translateX(-50%); margin: 0; z-index: 2;
    font-size: .78rem; letter-spacing: .14em;
    color: rgba(246, 242, 233, .6);
}

@media (max-width: 620px) {
    .visor__nav { display: none; }
    .visor__pieza img { max-height: 66vh; }
}
@media (prefers-reduced-motion: reduce) {
    .visor__carril { scroll-behavior: auto; }
    .mosaico__lupa { transition: none; }
}

/* ====== TESTIMONIOS EN CARRIL ====== */

.reviews-carril {
    display: flex;
    gap: 1.25rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: .3rem .3rem 1.2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}
.reviews-carril::-webkit-scrollbar { display: none; }

/* En el carril la tarjeta se apila en vertical, así que las medidas del
   starter (pensadas para una tarjeta ancha y horizontal) quedan enormes.
   Acá se compactan. */
.reviews-carril .review-card {
    flex: 0 0 clamp(13.5rem, 42%, 22rem);
    scroll-snap-align: center;
    margin: 0;
    /* La regla base usa fila con gap 2xl; en vertical ese gap deja un hueco
       enorme entre el nombre y la cita. */
    display: flex; flex-direction: column; align-items: stretch;
    gap: 0;
    padding: 1.15rem 1.25rem 1.3rem;
}
.reviews-carril .review-card__mark { font-size: 3.2rem; top: -.15rem; right: .8rem; }
.reviews-carril .review-card__head {
    flex: none;
    flex-direction: row; align-items: center; gap: .65rem;
    padding: 0 0 .8rem;
    margin-bottom: .85rem;
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
}
.reviews-carril .review-card__avatar {
    width: 34px; height: 34px; font-size: .95rem;
    box-shadow: none;
}
.reviews-carril .review-card__name { font-size: .88rem; line-height: 1.25; }
.reviews-carril .review-card__role { font-size: .63rem; letter-spacing: .08em; line-height: 1.35; }
.reviews-carril .review-card__quote {
    flex: 0 1 auto;
    font-family: var(--font-family);
    font-size: .84rem;
    line-height: 1.6;
    font-style: normal;
    color: var(--color-text-muted);
}

/* En escritorio entran exactamente tres por pantalla; a partir de la cuarta
   el carril arranca a desplazarse en vez de encoger las tarjetas. */
@media (min-width: 900px) {
    /* El -1px absorbe el redondeo del navegador: sin él, tres tarjetas suman
       unos pocos píxeles de más y aparece un scroll que no debería estar. */
    .reviews-carril .review-card { flex: 0 0 calc((100% - 2 * 1.25rem) / 3 - 1px); }
}


.reviews-controles {
    display: flex; justify-content: center; gap: .6rem;
    margin-top: .4rem;
}
.reviews-flecha {
    display: grid; place-items: center;
    width: 2.6rem; height: 2.6rem;
    border-radius: 50%;
    border: 1px solid var(--color-border-strong);
    background: transparent;
    color: var(--espresso);
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.reviews-flecha svg { width: 18px; height: 18px; }
.reviews-flecha:hover {
    background: var(--espresso); border-color: var(--espresso); color: var(--ivory);
}

@media (max-width: 620px) {
    .reviews-carril .review-card { flex-basis: 74%; }
}
@media (prefers-reduced-motion: reduce) {
    .reviews-carril { scroll-behavior: auto; }
}

/* ====== ENCABEZADO ANCHO ====== */

/* .section__head está capado en 640px, que para un párrafo de dos frases
   deja una columna alta y flaca. Esta variante lo ensancha y comprime el
   espacio de arriba, para que las fotos entren antes en pantalla. */
.section__head--ancho {
    max-width: 68rem;
    margin-bottom: clamp(1.6rem, 3vw, 2.2rem);
}
/* El título también puede respirar más ancho: con el texto corto, dejarlo en
   dos líneas en vez de tres sube toda la sección. */
.section__head--ancho .section__title { max-width: 22ch; margin-left: auto; margin-right: auto; }
.section__head--ancho .section__lead {
    max-width: 88ch;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.05rem;
    line-height: 1.65;
}
.galeria-arriba { padding-top: clamp(2.5rem, 5vw, 4rem); }
