/* ============== Base Styles (shared across all pages) ============== */
 :root{
    --bg: #DEB887;
    --bg-alt: #E2C49C;
    --text:#121212;
    --muted: #6b6b6b;
    --brand: #8a9a5b;
    --brand-2:#6F4E37;
    --white:#fff;
    --radius:12px;

    --step--1: clamp(0.88rem, 0.83rem + 0.2vw, 0.98rem);
    --step-0: clamp(1.00rem, 0.95rem + 0.4vw, 1.15rem);
    --step-1: clamp(1.25rem, 1.12rem + 0.8vw, 1.6rem);
    --step-2: clamp(1.55rem, 1.35rem + 1.2vw, 2.1rem);
    --step-3: clamp(2.0rem, 1.7rem + 1.8vw, 2.8rem);
    --step-4: clamp(2.6rem, 2.2rem + 2.6vw, 3.6rem);

    --space-s: clamp(12px, 1.4vw, 16px);
    --space-m: clamp(20px, 2.2vw, 28px);
    --space-1: clamp(32px, 3.8vw, 56px);
    --space-x1: clamp(48px, 6vw, 96px);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
    margin:0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
    color:var(--text);
    background:linear-gradient(180deg, var(--bg) 0%, color-mix(in oklab, var(--bg), #fff 18%) 100%);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-size: var(--step-0);
    line-height: 1.5;
}

/* ============== Header / Nav ============== */
header{
    position:sticky; top:0; z-index:200;
    display: flex; align-items:center; justify-content: space-between;
    padding: var(--space-s) clamp(12px, 3vw, 28px);
    background: color-mix(in oklab, var(--bg), #fff 12%);
    backdrop-filter: saturate(120%) blur(6px);
}
.logo img{height:100px; width:auto; mix-blend-mode: multiply}
.nav-toggle{display:none;background:none; border:0;font-size:1.6rem;padding:.5rem; color: #000; cursor: pointer; 
    -webkit-appearance: none; appearance: none;
}

header nav{
    position: static;
    inset: auto;
    transform: none;
    background: transparent;
    padding: 0;
}
header nav ul{list-style: none; display: flex; gap: 10px; margin: 0;padding: 0}
header nav a{
    display: inline-block; padding: 10px 12px; border-radius: 10px; font-weight: 600;
    color: #222; text-decoration: none;
}
header nav a:hover, header nav a[aria-current="page"]{color:var(--brand)}

/* ---------- Mobile menu ---------- */
@media (max-width: 900px){
    :root{--header-h:100px;}
    header{min-height: var(--header-h);}

    .nav-toggle{display: inline-grid; place-items: center;}

    header nav{
        position: fixed;
        top: calc(var(--header-h) + 30px);
        left: 0; right: 0;
        background: color-mix(in oklab, var(--bg), #000 10%);
        padding: 16px;
        max-height: calc(100dvh - var(--header-h));
        overflow: auto;
        z-index: 190;

        transform: translateY(0);
        clip-path: inset(0 0 100% 0);
        will-change: clip-path;
        transition: clip-path .25s ease;
    }
    header nav.open{clip-path: inset(0 0 0 0);}
    header nav ul{flex-direction: column;}
    header nav a {color: #fff; font-size: 1.05rem;}
}

/* ---------- Layout Utilities ---------- */
.container{max-width: 1600px; margin-inline: auto;}
.container--wide{max-width: min(1440px, 96vw)}
.section{padding: clamp(28px, 5vw, 70px) clamp(16px, 7vw, 80px)}
.section--alt{background: color-mix(in oklab, var(--bg-alt), #fff 15%)}

/* ---------- Modern Type Rythm ---------- */
h1 {font-size: var(--step-4); line-height: 1.1; margin: 0 0 var(--space-m)}
h2 {font-size: var(--step-3); line-height: 1.15; margin: 0 0 var(--space-s)}
h3 {font-size: var(--step-2); line-height: 1.2; margin: 0 0 6px}

/* ---------- Stack & Grids ---------- */
.stack {display: flex; flex-direction: column; gap: var(--space-m)}
.stack--tight {gap:0.5rem;}
.stack ul{ margin-top: -0.25em; margin-bottom: -0.25em; }
.stack > ul { margin-block: 0; }
.section li{ margin: 2px 0; }

.grid { display: grid; gap: clamp(16px, 3vw, 36px); }
.grid-2{ grid-template-columns: 1fr 1fr }
.grid-2.reverse > :first-child{ order:2 }
.section .grid-2 { align-items: center; }
@media (max-width:980px){
    .grid-2{ grid-template-columns: 1fr }
    .grid-2.reverse > :first-child{ order: unset; }
}

/* Media that blends to rounded edges */
.media{
    border-radius: clamp(12px, 1.4vw, 20px);
    overflow: hidden; position: relative;
    aspect-ratio: 3 / 2;
    max-height: clamp(260px, 40vw, 900px);
}
.media > img, .media > video{
    display: block; width: 100%; height: 100%; object-fit: cover;
}

/* ---------- Buttons ---------- */
.button {
    display: inline-flex; align-items: center; gap: 10px;
    background: linear-gradient(180deg, color-mix(in oklab, var(--brand), #fff 4%), var(--brand));
    color:#fff; border:0; border-radius:999px; padding:12px 20px; font-weight:700;
    text-decoration: none; cursor: pointer;
}
.button:hover{ filter:brightness(.97) }

/* ---------- Hero ---------- */
.hero{
    position:relative; height:min(85vh, 860px); overflow: hidden;

    display: flex; align-items: center; justify-content: center; text-align: center;
}
.hero .video, .hero img{
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter:brightness(.72) saturate(110%);
}
.hero h1{
    position: relative; margin: 0; color: var(--white); font-family: "Dancing Script", cursive, system-ui;
    font-size: clamp(36px, 7vw, 64px); text-align: center; font-weight: 700; width: 100%;
}

/* ---------- Map frame ---------- */
.full-bleed{
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    padding: 0;
}

.map-frame iframe{
    width:100%; height: 100%; border: 0; display: block; border-radius: 0;
}

/* ---------- Footer ---------- */
footer{
    display: grid; gap: 10px; justify-items: center; text-align: center;
    background: color-mix(in oklab, var(--bg), #000 8%); color:#222;
    padding: var(--space-1) clamp(12px, 3vw, 28px);
}
footer a{color:#222; text-decoration: underline; text-underline-offset: 2px;}

/*  Respect reduced motion  */
@media (prefers-reduced-motion: reduce){
    *{animation:none !important; transition: none !important; scroll-behavior: auto !important}
    .hero video{display: none;}
}

/* ---------- Images ---------- */
img[loading="lazy"], iframe[loading="lazy"]{background:#f3f3f3}

/* ---------- Form Styles ---------- */
form#consultasForm {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: clamp(20px, 3.2vw, 40px);
    padding: clamp(20px, 3vw, 36px);
    background: color-mix(in oklab, #fff, var(--bg) 10%);
    border-radius: clamp(12px, 1.3vw, 18px);
    border: 1px solid rgba(0,0,0,.06);
    margin: var(--space-x1) auto;
    max-width: min(1280px, 92vw); 
    width: 100%;
}

form#consultasForm .sub-entry{
    display: flex;
    flex-direction: column;
    gap: 14px;
}

form#consultasForm h2 {
    margin: 0 0 2px;
    font-size: var(--step-2);
    color: var(--brand-2);
}

form#consultasForm label {
    font-weight: 600;
    color: color-mix(in oklab, var(--brand-2), #000 12%);
}

form#consultasForm input[type="text"],
form#consultasForm input[type="tel"],
form#consultasForm input[type="email"],
form#consultasForm input[type="date"],
form#consultasForm select,
form#consultasForm textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(0,0,0,.18);
    border-radius: 10px;
    font-size: var(--step-0);
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}

form#consultasForm input:focus,
form#consultasForm select:focus,
form#consultasForm textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand), #fff 70%);
    outline: none;
}

form#consultas textarea {
    resize: vertical;
    min-height: 120px;
}

form#consultasForm .button,
form#consultasForm input[type="submit"]{
    background: var(--brand-2);
    border-radius: 999px;
    color: #fff;
    padding: 12px 22px;
    font-weight: 700;
}

form#consultasForm input[type="submit"]:hover {
    filter: brightness(.97);
}

.hidden{ display: none !important; }

/* Form image on the side */
form#consultasForm .sub-entry-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

form#consultasForm .sub-entry-image img {
    border-radius: clamp(12px, 1.3vw, 18px);
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 600px;
}

#submitForm {
    font-size: 16px;
}

/* Responsive: stack on small screens */
@media (max-width: 900px) {
    form#consultasForm {
        grid-template-columns: 1fr;
    }
    form#consultasForm .sub-entry-image {
        order: -1;
    }
}

.section:nth-of-type(odd) {
    background: var(--bg);
}

.section:nth-of-type(even){
    background: var(--bg-alt);
}

html, body{overflow-x:clip;}

/* ---------- Slider (lightweight, no libs) ---------- */
.slider{
    position: relative;
    display: grid;
    grid-template-rows: auto auto;
    grid-template-columns: 1fr;
    margin: 0 auto;
    max-width: 1000px;
    user-select: none;
    overflow: clip;
    --slide-h: clamp(340px, 62vh, 700px);
}
.slider__viewport{
    grid-row: 1;
    grid-column: 1;
    position: relative;
    width: 100%;
    height: var(--slide-h);
    overflow: hidden;
    border-radius: clamp(12px, 1.4vw, 20px);
}
.slider__track{
    position: absolute; inset: 0;
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: inline mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}
.slider__track::-webkit-scrollbar { display: none; }
.slide{
    flex: 0 0 100%;
    height: 100%;
    scroll-snap-align: start;
}
.slide img{
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.slider__btn{
    grid-row: 1;
    grid-column: 1;
    position: absolute;
    top: calc(var(--slide-h) / 2);
    transform: translateY(-50%);
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    display: grid;
    place-items: center;
    cursor: pointer;
}
.slider__btn:hover{ filter: brightness(1.1); }
.slider__btn--prev{ left: 10px; }
.slider__btn--next{ right: 10px; }  

.slider__dots{
    grid-row: 2;
    grid-column: 1;
    display: flex;
    gap: 8px; 
    justify-content: center;
    align-items: center;  
    padding-top: 12px;
    margin: 0;
}
.slider__dots button{
    width: 8px; height: 8px; border-radius: 999px; border: 0; cursor: pointer;
    background: rgba(0,0,0,.25);
    transition: transform .15s ease, background-color .15s ease;
}
.slider__dots button[aria-current="true"]{
    background: var(--brand-2);
    transform: scale(1.3);
}

/* Hide scrollbar thumbs where possible (track still scrolls) */
.slider__track{
    scrollbar-width: none;
}
.slider__track::-webkit-scrollbar{
    display: none;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
    .slider__track{ scroll-behavior: auto; }
}

@media (max-width: 600px){
    .slider__dots {
       margin-top: 0px;
  }
}

@media (max-width: 380px){
    .slider{ --slide-h: clamp(360px, 66vh, 780px); }
}

/* ---------- Divider Label ---------- */
.divider{
    display: flex;
    align-items: center;
    justify-content: center;
    margin: var(--space-1) auto;
    font-weight: 700;
    font-size: var(--step-1);
    color: var(--brand-2);
    width: 100%;
    max-width: 800px;
}
.divider p{
    padding: 0 2rem;
    white-space: nowrap;
}
.divider::before,
.divider::after{
    content: "";
    flex: 20;
    height: 1px;
    background: rgba(0,0,0,.35);
}

/* =============== Images Page ============== */
#myBtnContainer{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px auto;
    max-width: 1200px;
    padding: 0 16px;
    justify-content: center;
}
#myBtnContainer .btn {
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 999px;
    padding: 15px 26px;
    background: #fff;
    cursor: pointer;
    font-weight: 600;
    font-size: var(--step-0);
}
#myBtnContainer .btn.active{
    background: var(--brand-2);
    color: #fff;
    border-color: transparent;
}

/* Uniform responsive gird */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(10px, 2.2vw, 20px);
}

/* Giving tiles the same box size */
.gallery-container.w-3,
.gallery-item,
.gallery-item .image{
    aspect-ratio: 4 / 3;
    border-radius: clamp(12px, 1.4vw, 20px);
    overflow: hidden;
    position: relative;
}

/* Media fills and crops */
.gallery-item .image img,
.gallery-item .image video{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .25s ease;
}
.gallery-item:hover .image img,
.gallery-item:hover .image video{
    transform: scale(1.03);
}

/* Filter show/hide behavior */
.filterDiv { display: none; }
.filterDiv.show { display: block; }

@media (max-width: 980px){
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px){
    .gallery {
        grid-template-columns: 1fr;
    }
}

/* Tarifas */
td {
    text-align: center;
}
.rate-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: clamp(12px, 1.3vw, 18px);
    overflow: hidden;
    box-shadow: 0 1px 0 rgba(0,0,0,.06);
    font-size: var(--step-0);
    min-width: 760px;
}
.rate-table__caption{
    text-align: left;
    font-weight: 700;
    color: var(--brand-2);
    padding: clamp(14px, 2vw, 18px) clamp(14px, 2vw, 20px);
    background: color-mix(in oklab, var(--bg), #fff 25%);
    border-bottom: 1px solid rgba(0,0,0,.06);
}
.rate-table thead th{
    background: color-mix(in oklab, var(--bg), #000 6%);
    color: #222;
    text-align: left;
    padding: 14px 16px;
    vertical-align: bottom;
    border-bottom: 1px solid rgba(0,0,0,.1);
}
.rate-table thead .th-note{
    display: block;
    font-weight: 500;
    color: var(--muted);
    font-size: 0.9em;
    margin-top: 2px;
}
.rate-table tbody th[scope="row"],
.rate-table tbody td{
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0,0,0,.06);
    vertical-align: middle;
}
.rate-table tbody tr:nth-child(even){
    background: color-mix(in oklab, #fff, var(--bg) 6%);
}
.col-pax,
.row-pax {
    white-space: nowrap;
    font-weight: 700;
    color: color-mix(in oklab, var(--brand-2), #000 8%);
}
.tarifas__cta{
    margin-top: var(--space-m);
    display: flex;
    justify-content: center;
}
.tarifas__cta .reservar-btn {
    background: var(--brand-2);
}
.table-scroll{
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch
}

@media (max-width: 760px){
    .rate-table thead {
        position: absolute;
        left: -9999px;
        top: -9999px;
        height: 0;
        overflow: hidden;
    }
    .rate-table,
    .rate-table tbody,
    .rate-table tr,
    .rate-table td,
    .rate-table th[scope="row"] {
        display: block;
        width: 100%;
    }

    .rate-table tbody tr {
        background: #fff;
        border: 1px solid rgba(0,0,0,.08);
        border-radius: 12px;
        margin: 0 0 12px;
        padding: 6px 0;
    }
    .rate-table tbody th[scope="row"]{
        padding: 12px 16px;
        border: 0;
        font-size: var(--step-1);
        color: var(--brand-2);
    }
    .rate-table tbody td {
        border: 0;
        border-top: 1px solid rgba(0,0,0,.06);
        position: relative;
        padding: 12px 16px 12px 44%;
        min-height: 44px;
        background: transparent;
    }

    .rate-table tbody td::before{
        content: attr(data-label);
        position: absolute;
        left: 16px;
        top: 12px;
        width: 40%;
        font-weight: 600;
        color: #222;
        white-space: normal;
    }
    .rate-table__caption{
        border-radius: 12px;
    }

}