/* =========================================================
   WEB PÚBLICA - VIVIENDA VACACIONAL
   Mobile first
   ========================================================= */

:root {
    --primary: #176b63;
    --primary-dark: #0f504a;
    --primary-light: #e9f4f2;

    --accent: #d79b47;
    --accent-light: #fff6e9;

    --text: #24302f;
    --text-soft: #65706f;

    --background: #f7f8f7;
    --surface: #ffffff;
    --border: #e2e7e5;

    --success: #197447;
    --success-bg: #eaf7ef;

    --danger: #a92d2d;
    --danger-bg: #fff0f0;

    --warning: #8b6417;
    --warning-bg: #fff8e5;

    --shadow:
        0 8px 28px rgba(22, 45, 42, .08);

    --shadow-large:
        0 16px 45px rgba(22, 45, 42, .14);

    --radius: 18px;
    --radius-small: 12px;

    --max-width: 1180px;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0 0 78px;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    color: var(--text);
    background: var(--background);

    line-height: 1.5;

    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}


/* =========================================================
   CONTENEDOR
   ========================================================= */

.page-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
}


/* =========================================================
   CABECERA
   ========================================================= */

.public-header {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 20;

    width: 100%;

    color: white;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 66px;
    padding: 0 16px;
}

.brand {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.3px;

    text-shadow:
        0 1px 5px rgba(0, 0, 0, .4);
}

.header-reserve {
    display: none;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;

    min-height: 540px;

    display: flex;
    align-items: flex-end;

    overflow: hidden;

    color: white;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, .08) 20%,
            rgba(0, 0, 0, .72) 100%
        ),
        url("/assets/images/hero.webp")
        center / cover no-repeat,
        linear-gradient(
            135deg,
            #487b76,
            #153f3c
        );
}

.hero::after {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, .18),
            transparent 45%
        );
}

.hero-content {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: var(--max-width);

    margin: 0 auto;

    padding:
        100px
        20px
        48px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    margin-bottom: 14px;

    padding: 7px 11px;

    border: 1px solid rgba(255,255,255,.4);
    border-radius: 999px;

    background: rgba(0,0,0,.20);

    backdrop-filter: blur(6px);

    font-size: 13px;
    font-weight: 700;
}

.hero h1 {
    max-width: 700px;

    margin:
        0
        0
        10px;

    font-size: clamp(34px, 10vw, 58px);
    line-height: .98;

    letter-spacing: -1.8px;
}

.hero-subtitle {
    max-width: 600px;

    margin:
        0
        0
        22px;

    color: rgba(255,255,255,.92);

    font-size: 17px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-bottom: 25px;
}

.hero-meta span {
    padding: 7px 10px;

    border-radius: 999px;

    background: rgba(0,0,0,.26);

    backdrop-filter: blur(5px);

    font-size: 13px;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 0 20px;

    border-radius: 999px;

    background: white;
    color: var(--primary-dark);

    text-decoration: none;

    font-weight: 800;

    box-shadow:
        0 8px 25px rgba(0,0,0,.18);
}


/* =========================================================
   BARRA DE CONFIANZA
   ========================================================= */

.trust-bar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.trust-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    max-width: 700px;

    margin: auto;

    padding: 13px 10px;
}

.trust-item {
    padding: 2px 7px;

    text-align: center;

    font-size: 11px;
    font-weight: 700;

    color: var(--text-soft);
}

.trust-icon {
    display: block;

    margin-bottom: 2px;

    color: var(--primary);

    font-size: 17px;
}


/* =========================================================
   SECCIONES
   ========================================================= */

.section {
    padding: 54px 0;
}

.section-white {
    background: var(--surface);
}

.section-soft {
    background: var(--primary-light);
}

.section-heading {
    margin-bottom: 26px;
}

.section-eyebrow {
    display: block;

    margin-bottom: 6px;

    color: var(--primary);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.section-title {
    margin: 0;

    font-size: 28px;
    line-height: 1.12;

    letter-spacing: -.7px;
}

.section-description {
    max-width: 650px;

    margin:
        10px
        0
        0;

    color: var(--text-soft);

    font-size: 15px;
}


/* =========================================================
   MOTOR DE RESERVAS
   ========================================================= */

.booking-section {
    position: relative;
    z-index: 5;

    padding:
        32px
        0
        54px;
}

.booking-card {
    padding: 20px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: var(--surface);

    box-shadow: var(--shadow);
}

.booking-title {
    margin:
        0
        0
        4px;

    font-size: 23px;
}

.booking-subtitle {
    margin:
        0
        0
        20px;

    color: var(--text-soft);

    font-size: 14px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 12px;
}

.form-field {
    min-width: 0;
}

.form-field-full {
    grid-column: 1 / -1;
}

label {
    display: block;

    margin-bottom: 6px;

    color: var(--text);

    font-size: 13px;
    font-weight: 700;
}

input,
select {
    width: 100%;
    min-height: 48px;

    padding: 10px 11px;

    border: 1px solid #ccd5d2;
    border-radius: 10px;

    outline: none;

    background: white;
    color: var(--text);

    font-size: 16px;

    transition:
        border-color .2s,
        box-shadow .2s;
}

input:focus,
select:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(23,107,99,.12);
}

input::placeholder {
    color: #9ca6a4;
}

.booking-action {
    margin-top: 17px;
}


/* =========================================================
   BOTONES
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: 100%;
    min-height: 50px;

    padding: 11px 18px;

    border: 0;
    border-radius: 11px;

    cursor: pointer;

    text-decoration: none;

    font-weight: 800;

    transition:
        transform .12s,
        opacity .2s,
        background .2s;
}

.btn:active {
    transform: scale(.985);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    border: 1px solid var(--border);

    background: white;
    color: var(--text);
}

.btn:disabled {
    cursor: not-allowed;
    opacity: .55;
}


/* =========================================================
   MENSAJES
   ========================================================= */

.error {
    display: none;

    margin-top: 14px;

    padding: 12px 14px;

    border: 1px solid #f1caca;
    border-radius: 10px;

    background: var(--danger-bg);
    color: var(--danger);

    font-size: 14px;
}

.aviso {
    margin: 15px 0;

    padding: 13px;

    border-radius: 10px;

    background: var(--warning-bg);
    color: var(--warning);

    font-size: 14px;
}


/* =========================================================
   RESULTADO RESERVA
   ========================================================= */

.booking-result {
    display: none;

    margin-top: 18px;

    padding: 20px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: var(--surface);

    box-shadow: var(--shadow);
}

.disponible {
    display: flex;
    align-items: center;
    gap: 7px;

    margin-bottom: 13px;

    color: var(--success);

    font-weight: 800;
}

.linea {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;

    padding: 10px 0;

    border-bottom: 1px solid var(--border);

    font-size: 14px;
}

.linea:last-child {
    border-bottom: 0;
}

.total {
    margin-top: 16px;

    text-align: right;

    color: var(--primary-dark);

    font-size: 24px;
    font-weight: 900;
}

.booking-result-action {
    margin-top: 18px;
}


/* =========================================================
   DATOS HUÉSPED
   ========================================================= */

.guest-card {
    display: none;

    margin-top: 18px;

    padding: 20px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: white;

    box-shadow: var(--shadow);
}

.guest-card h2 {
    margin:
        0
        0
        18px;

    font-size: 22px;
}


/* =========================================================
   RESERVA TEMPORAL
   ========================================================= */

.pending-card {
    display: none;

    margin-top: 18px;

    padding: 20px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: white;

    box-shadow: var(--shadow-large);
}

.pending-card h2 {
    margin-top: 0;
}

.contador {
    margin: 22px 0;

    text-align: center;

    color: var(--primary-dark);

    font-size: 38px;
    font-weight: 900;

    letter-spacing: 1px;
}


/* =========================================================
   PRESENTACIÓN DEL ALOJAMIENTO
   ========================================================= */

.intro-grid {
    display: grid;
    gap: 28px;
}

.intro-text {
    color: var(--text-soft);

    font-size: 16px;
    line-height: 1.7;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 10px;
}

.feature-card {
    padding: 15px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: white;
}

.feature-icon {
    margin-bottom: 8px;

    font-size: 23px;
}

.feature-title {
    font-size: 14px;
    font-weight: 800;
}

.feature-text {
    margin-top: 2px;

    color: var(--text-soft);

    font-size: 12px;
}


/* =========================================================
   GALERÍA
   ========================================================= */

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 7px;

    overflow: hidden;

    border-radius: var(--radius);
}

.gallery-item {
    position: relative;

    min-height: 150px;

    overflow: hidden;

    cursor: pointer;

    background:
        linear-gradient(
            135deg,
            #dce7e5,
            #b7ceca
        );
}

.gallery-item:first-child {
    grid-column: 1 / -1;

    min-height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;

    position: absolute;
    inset: 0;

    object-fit: cover;

    transition: transform .35s;
}

.gallery-item:hover img {
    transform: scale(1.025);
}

.gallery-placeholder {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #66827d;

    font-size: 13px;
    font-weight: 700;
}


/* =========================================================
   EQUIPAMIENTO
   ========================================================= */

.amenities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 10px;
}

.amenity {
    display: flex;
    align-items: center;
    gap: 10px;

    min-height: 58px;

    padding: 11px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: white;
}

.amenity-icon {
    width: 30px;

    text-align: center;

    font-size: 20px;
}

.amenity-text {
    font-size: 13px;
    font-weight: 700;
}


/* =========================================================
   VÍDEO
   ========================================================= */

.video-wrapper {
    position: relative;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    border-radius: var(--radius);

    background:
        linear-gradient(
            135deg,
            #234e4a,
            #112d2b
        );

    box-shadow: var(--shadow);
}

.video-wrapper video,
.video-wrapper iframe {
    width: 100%;
    height: 100%;

    border: 0;

    object-fit: cover;
}

.video-placeholder {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    color: white;
}

.video-play {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 62px;
    height: 62px;

    margin-bottom: 10px;

    border-radius: 50%;

    background: rgba(255,255,255,.95);
    color: var(--primary);

    font-size: 24px;
}

.video-placeholder span {
    font-size: 13px;
    opacity: .85;
}


/* =========================================================
   EXPERIENCIAS
   ========================================================= */

.reviews-grid {
    display: grid;
    gap: 13px;
}

.review-card {
    padding: 20px;

    border: 1px solid var(--border);
    border-radius: 15px;

    background: white;

    box-shadow:
        0 4px 18px rgba(22,45,42,.05);
}

.review-stars {
    margin-bottom: 10px;

    color: var(--accent);

    letter-spacing: 2px;
}

.review-text {
    margin: 0 0 14px;

    color: var(--text);

    font-size: 15px;
    line-height: 1.6;
}

.review-person {
    font-size: 13px;
    font-weight: 800;
}

.review-location {
    color: var(--text-soft);

    font-size: 12px;
}


/* =========================================================
   ENTORNO
   ========================================================= */

.experience-grid {
    display: grid;
    gap: 12px;
}

.experience-card {
    position: relative;

    min-height: 180px;

    display: flex;
    align-items: flex-end;

    overflow: hidden;

    padding: 18px;

    border-radius: 15px;

    background:
        linear-gradient(
            0deg,
            rgba(0,0,0,.68),
            rgba(0,0,0,.08)
        ),
        linear-gradient(
            135deg,
            #568a83,
            #244b47
        );

    color: white;
}

.experience-card h3 {
    margin:
        0
        0
        3px;

    font-size: 18px;
}

.experience-card p {
    margin: 0;

    color: rgba(255,255,255,.85);

    font-size: 13px;
}


/* =========================================================
   RESERVA DIRECTA
   ========================================================= */

.direct-booking {
    padding: 28px 20px;

    border-radius: var(--radius);

    background:
        linear-gradient(
            135deg,
            var(--primary-dark),
            var(--primary)
        );

    color: white;

    box-shadow: var(--shadow-large);
}

.direct-booking h2 {
    margin:
        0
        0
        9px;

    font-size: 27px;
}

.direct-booking p {
    margin:
        0
        0
        20px;

    color: rgba(255,255,255,.85);
}

.direct-benefits {
    display: grid;
    gap: 9px;

    margin-bottom: 22px;
}

.direct-benefit {
    font-size: 14px;
}

.direct-booking .btn {
    background: white;
    color: var(--primary-dark);
}


/* =========================================================
   CONTACTO / FOOTER
   ========================================================= */

.contact-grid {
    display: grid;
    gap: 12px;
}

.contact-card {
    padding: 18px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: white;
}

.contact-card strong {
    display: block;

    margin-bottom: 4px;
}

.contact-card span {
    color: var(--text-soft);

    font-size: 14px;
}

.public-footer {
    padding: 30px 16px;

    background: #18302e;
    color: rgba(255,255,255,.75);

    text-align: center;

    font-size: 12px;
}


/* =========================================================
   BARRA RESERVA MÓVIL
   ========================================================= */

.mobile-booking-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;

    z-index: 100;

    padding:
        9px
        12px
        calc(9px + env(safe-area-inset-bottom));

    border-top: 1px solid var(--border);

    background: rgba(255,255,255,.96);

    backdrop-filter: blur(12px);

    box-shadow:
        0 -5px 20px rgba(0,0,0,.08);
}

.mobile-booking-inner {
    display: flex;
    align-items: center;
    gap: 12px;

    max-width: 600px;

    margin: auto;
}

.mobile-booking-text {
    flex: 1;

    min-width: 0;

    font-size: 11px;

    color: var(--text-soft);
}

.mobile-booking-text strong {
    display: block;

    color: var(--text);

    font-size: 14px;
}

.mobile-booking-button {
    width: auto;
    min-width: 128px;
    min-height: 44px;

    padding: 8px 16px;
}


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

.lightbox {
    position: fixed;
    inset: 0;

    z-index: 500;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 50px 15px;

    background: rgba(0,0,0,.94);
}

.lightbox.visible {
    display: flex;
}

.lightbox img {
    max-width: 100%;
    max-height: 85vh;

    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 12px;
    right: 14px;

    width: 44px;
    height: 44px;

    border: 0;
    border-radius: 50%;

    background: rgba(255,255,255,.12);
    color: white;

    cursor: pointer;

    font-size: 27px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (min-width: 700px) {

    body {
        padding-bottom: 0;
    }

    .page-container {
        padding:
            0
            28px;
    }

    .header-inner {
        max-width: var(--max-width);

        margin: auto;

        padding:
            0
            28px;
    }

    .header-reserve {
        display: inline-flex;

        padding: 9px 15px;

        border: 1px solid rgba(255,255,255,.55);
        border-radius: 999px;

        background: rgba(0,0,0,.18);

        color: white;

        text-decoration: none;

        font-size: 13px;
        font-weight: 800;

        backdrop-filter: blur(6px);
    }

    .hero {
        min-height: 620px;
    }

    .hero-content {
        padding:
            130px
            28px
            65px;
    }

    .section {
        padding:
            72px
            0;
    }

    .section-title {
        font-size: 36px;
    }

    .booking-section {
        margin-top: -42px;

        padding-top: 0;
    }

    .booking-card {
        padding: 26px;
    }

    .form-grid {
        grid-template-columns:
            repeat(4, 1fr);
    }

    .form-field-full {
        grid-column: auto;
    }

    .promo-field {
        grid-column: span 2;
    }

    .booking-action {
        display: flex;
        justify-content: flex-end;
    }

    .booking-action .btn {
        width: auto;
        min-width: 250px;
    }

    .intro-grid {
        grid-template-columns:
            1.2fr
            1fr;

        align-items: start;
    }

    .feature-grid {
        grid-template-columns:
            1fr
            1fr;
    }

    .gallery-grid {
        grid-template-columns:
            2fr
            1fr
            1fr;

        grid-template-rows:
            220px
            220px;
    }

    .gallery-item,
    .gallery-item:first-child {
        min-height: 0;
    }

    .gallery-item:first-child {
        grid-column: auto;
        grid-row: 1 / 3;
    }

    .amenities-grid {
        grid-template-columns:
            repeat(4, 1fr);
    }

    .reviews-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .experience-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .experience-card {
        min-height: 250px;
    }

    .contact-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .direct-booking {
        padding: 42px;
    }

    .mobile-booking-bar {
        display: none;
    }
}


/* =========================================================
   ESCRITORIO
   ========================================================= */

@media (min-width: 1050px) {

    .hero {
        min-height: 680px;
    }

    .hero-content {
        padding-bottom: 90px;
    }

    .hero h1 {
        font-size: 62px;
    }

    .booking-section {
        margin-top: -65px;
    }

    .booking-card {
        padding: 30px;
    }

    .form-grid {
        grid-template-columns:
            1.25fr
            1.25fr
            .75fr
            .75fr
            1.2fr;
    }

    .promo-field {
        grid-column: auto;
    }

    .section-title {
        font-size: 40px;
    }
}

/* Galería real y visor */
.gallery-photo { padding:0; border:0; width:100%; }
.gallery-actions { margin-top:16px; display:flex; justify-content:center; }
.gallery-all-button { width:auto; min-width:210px; }
.lightbox-figure { margin:0; max-width:min(1100px, calc(100vw - 80px)); text-align:center; color:white; }
.lightbox-figure img { max-height:82vh; margin:auto; }
#lightboxCaption { margin-top:10px; font-size:13px; color:rgba(255,255,255,.8); }
.lightbox-nav { position:absolute; top:50%; transform:translateY(-50%); width:46px; height:46px; border:0; border-radius:50%; align-items:center; justify-content:center; background:rgba(255,255,255,.14); color:white; font-size:34px; cursor:pointer; z-index:2; }
.lightbox-prev { left:10px; }
.lightbox-next { right:10px; }
.lifestyle-grid { display:grid; gap:12px; margin-bottom:18px; }
.lifestyle-card { position:relative; min-height:220px; padding:0; border:0; border-radius:15px; overflow:hidden; cursor:pointer; background:#173f3b; }
.lifestyle-card img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.lifestyle-card::after { content:""; position:absolute; inset:0; background:linear-gradient(to top, rgba(0,0,0,.68), transparent 55%); }
.lifestyle-card span { position:absolute; left:16px; right:16px; bottom:14px; z-index:1; color:white; text-align:left; font-weight:800; }
.review-placeholder { margin-top:0; }
@media (min-width:700px) { .lifestyle-grid { grid-template-columns:repeat(3,1fr); } .lifestyle-card { min-height:270px; } }

/* =========================================================
   GALERÍA FOTOGRÁFICA
   ========================================================= */

.photo-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    border-radius: 16px;
    overflow: hidden;
    margin-top: 24px;
}

.photo-gallery-item {
    position: relative;
    overflow: hidden;
    background: #e9ecef;
    cursor: pointer;
    min-height: 145px;
}

.photo-gallery-item:first-child {
    grid-column: 1 / -1;
    min-height: 260px;
}

.photo-gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-more-wrapper {
    text-align: center;
    margin-top: 18px;
}

.gallery-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border: 1px solid #176b63;
    border-radius: 24px;
    background: #fff;
    color: #176b63;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
}

.gallery-more:hover {
    background: #176b63;
    color: #fff;
}


/* =========================================================
   LIGHTBOX
   ========================================================= */

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 55px 12px 35px;

    background: rgba(0, 0, 0, 0.94);
}

.gallery-lightbox.visible {
    display: flex;
}

.gallery-lightbox-content {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;
    max-width: 1400px;
}

.gallery-lightbox-image {
    display: block;

    max-width: 100%;
    max-height: calc(100vh - 130px);

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 6px;
}

.gallery-lightbox-caption {
    min-height: 30px;
    margin-top: 12px;

    color: #fff;
    text-align: center;
    font-size: 0.9rem;
}


/* Cerrar */

.gallery-lightbox-close {
    position: absolute;
    top: 12px;
    right: 14px;

    z-index: 10002;

    width: 42px;
    height: 42px;

    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.14);
    color: #fff;

    font-size: 28px;
    line-height: 42px;

    cursor: pointer;
}

.gallery-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}


/* Navegación */

.lightbox-nav {
    position: absolute;
    top: 50%;

    z-index: 10001;

    width: 44px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: translateY(-50%);

    border: 0;
    border-radius: 8px;

    background: rgba(0, 0, 0, 0.45);
    color: #fff;

    font-size: 34px;

    cursor: pointer;
}

.lightbox-prev {
    left: 4px;
}

.lightbox-next {
    right: 4px;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.7);
}


/* =========================================================
   EXPERIENCIAS VISUALES
   ========================================================= */

.experience-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 24px;
}

.experience-photo {
    position: relative;

    min-height: 260px;

    overflow: hidden;
    border-radius: 14px;

    cursor: pointer;
}

.experience-photo img {
    display: block;

    width: 100%;
    height: 100%;

    min-height: 260px;

    object-fit: cover;

    transition: transform 0.3s ease;
}

.experience-photo:hover img {
    transform: scale(1.025);
}

.experience-label {
    position: absolute;

    left: 12px;
    right: 12px;
    bottom: 12px;

    padding: 10px 12px;

    border-radius: 9px;

    background: rgba(0, 0, 0, 0.55);
    color: #fff;

    font-size: 0.9rem;
    font-weight: 600;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (min-width: 700px) {

    .photo-gallery {
        grid-template-columns: 2fr 1fr 1fr;
        grid-template-rows: 190px 190px;
        gap: 8px;
    }

    .photo-gallery-item {
        min-height: 0;
    }

    .photo-gallery-item:first-child {
        grid-column: auto;
        grid-row: 1 / 3;
        min-height: 0;
    }

    .experience-gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .experience-photo,
    .experience-photo img {
        min-height: 300px;
    }

    .lightbox-prev {
        left: 18px;
    }

    .lightbox-next {
        right: 18px;
    }
}


/* =========================================================
   ESCRITORIO
   ========================================================= */

@media (min-width: 1050px) {

    .photo-gallery {
        grid-template-rows: 230px 230px;
    }

    .gallery-lightbox {
        padding-left: 70px;
        padding-right: 70px;
    }

    .lightbox-nav {
        width: 54px;
        height: 64px;
    }

    .lightbox-prev {
        left: 24px;
    }

    .lightbox-next {
        right: 24px;
    }
}

/* =========================================================
   MOTOR DE RESERVAS - UX POR PASOS
   ========================================================= */

.booking-step {
    margin-top: 16px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
}

.booking-step:first-of-type {
    margin-top: 0;
}

.booking-step-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.booking-step-heading > div {
    min-width: 0;
}

.booking-step-heading strong,
.booking-step-heading span {
    display: block;
}

.booking-step-heading strong {
    font-size: 15px;
}

.booking-step-heading > div > span {
    margin-top: 2px;
    color: var(--text-soft);
    font-size: 12px;
}

.booking-step-number {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
}

.date-summary {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 12px;
    background: var(--primary-light);
}

.date-summary-item {
    min-width: 0;
}

.date-summary-item span {
    display: block;
    margin-bottom: 2px;
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 700;
}

.date-summary-item strong {
    display: block;
    overflow: hidden;
    color: var(--primary-dark);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.date-summary-arrow {
    color: var(--primary);
    font-size: 20px;
    font-weight: 900;
}

.date-summary-nights {
    grid-column: 1 / -1;
    padding-top: 8px;
    border-top: 1px solid rgba(23,107,99,.15);
    color: var(--primary-dark);
    text-align: center;
    font-size: 12px;
    font-weight: 800;
}

.native-date-fallback {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.native-date-fallback.visible {
    display: grid;
}

.calendar-field {
    margin-top: 0;
}

.calendar-trigger {
    border-color: rgba(23,107,99,.30);
    background: #fff;
}

.guest-promo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.guest-promo-grid .promo-field {
    grid-column: 1 / -1;
}

.booking-step-action {
    background: #fbfcfc;
}

.booking-step-action .booking-action {
    margin-top: 0;
}

.booking-step-action .btn-primary {
    min-height: 54px;
}

@media (min-width: 700px) {
    .booking-step {
        padding: 18px;
    }

    .date-summary {
        grid-template-columns: 1fr auto 1fr auto;
    }

    .date-summary-nights {
        grid-column: auto;
        padding: 0 0 0 12px;
        border-top: 0;
        border-left: 1px solid rgba(23,107,99,.15);
        white-space: nowrap;
    }

    .guest-promo-grid {
        grid-template-columns: 1fr 1fr 2fr;
    }

    .guest-promo-grid .promo-field {
        grid-column: auto;
    }
}


/* =========================================================
   CALENDARIO DE DISPONIBILIDAD
   ========================================================= */

.booking-calendar {
    margin-top: 12px;
    padding: 14px;
    background: #fff;
    border: 1px solid #dfe7e5;
    border-radius: 14px;
}

.calendar-topbar {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.calendar-month-title {
    text-align: center;
    font-size: 17px;
    font-weight: 800;
    text-transform: capitalize;
    color: #24302f;
}

.calendar-nav {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: #e9f4f2;
    color: #176b63;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.calendar-nav:disabled {
    opacity: .30;
    cursor: default;
}

.calendar-weekdays {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    width: 100%;
    margin-bottom: 6px;
}

.calendar-weekdays span {
    display: block;
    min-width: 0;
    text-align: center;
    color: #687775;
    font-size: 12px;
    font-weight: 800;
    line-height: 28px;
}

.calendar-days {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    gap: 4px !important;
    width: 100%;
}

.calendar-day {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-width: 0 !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0;
    border-radius: 10px;
    background: #f3f5f4;
    color: #24302f;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-sizing: border-box;
}

.calendar-day:hover:not(:disabled) {
    background: #e9f4f2;
}

.calendar-day.other-month {
    color: #bdc5c3;
    background: transparent;
}

.calendar-day.past {
    color: #bdc5c3;
    background: #fafafa;
}

.calendar-day.unavailable,
.calendar-day.range-blocked {
    color: #a5adaa;
    background: #eeeeee;
    text-decoration: line-through;
    cursor: not-allowed;
}

.calendar-day.selected-start,
.calendar-day.selected-end {
    background: #176b63 !important;
    color: #fff !important;
}

.calendar-day.in-range {
    background: #e9f4f2;
    color: #0f504a;
}

.calendar-day.today:not(.selected-start):not(.selected-end) {
    box-shadow: inset 0 0 0 2px #176b63;
}

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
    color: #687775;
    font-size: 11px;
}

.calendar-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.legend-available {
    background: #f3f5f4;
    border: 1px solid #ccd6d3;
}

.legend-selected {
    background: #176b63;
}

.legend-unavailable {
    background: #eeeeee;
}

.calendar-status {
    margin-top: 12px;
    color: #52605e;
    text-align: center;
    font-size: 12px;
    line-height: 1.4;
}

.calendar-error {
    color: #a33;
}

@media (max-width: 420px) {
    .booking-calendar {
        padding: 10px;
    }

    .calendar-days {
        gap: 3px !important;
    }

    .calendar-day {
        height: 40px !important;
        min-height: 40px !important;
        font-size: 13px;
    }

    .calendar-weekdays span {
        font-size: 11px;
    }
}

