:root {
    --navy: #12263f;
    --navy-soft: #203b5c;
    --gold: #b89b5e;
    --gold-light: #d8c79f;
    --paper: #ffffff;
    --mist: #f3f4f4;
    --warm: #f8f6f1;
    --ink: #24303c;
    --muted: #66717d;
    --border: #dfe3e5;
    --success: #2d7a52;
    --warning: #9a6b13;
    --shadow: 0 18px 50px rgba(18, 38, 63, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    color: var(--ink);
    background: var(--paper);
    font-family: "DM Sans", system-ui, sans-serif;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: .2em; }
h1, h2, h3, h4, .navbar-brand, .footer-brand {
    color: var(--navy);
    font-family: "Manrope", system-ui, sans-serif;
    letter-spacing: -.025em;
}

.skip-link {
    position: fixed;
    top: .5rem;
    left: .5rem;
    z-index: 1100;
    padding: .65rem 1rem;
    color: #fff;
    background: var(--navy);
    transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
.site-header {
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(18, 38, 63, .08);
    backdrop-filter: blur(14px);
}
.navbar { min-height: 74px; }
.navbar-brand { display: flex; gap: .65rem; align-items: center; font-weight: 700; }
.brand-mark {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    color: #fff;
    background: var(--navy);
    border-radius: 50%;
    font-size: .72rem;
    letter-spacing: .08em;
}
.nav-link { color: var(--ink); font-weight: 600; }
.nav-link:hover, .nav-link:focus, .nav-link.active { color: var(--gold); }
.btn { border-radius: 999px; font-weight: 700; padding: .75rem 1.25rem; }
.btn-primary { background: var(--navy); border-color: var(--navy); }
.btn-primary:hover, .btn-primary:focus { background: var(--navy-soft); border-color: var(--navy-soft); }
.btn-outline-primary { color: var(--navy); border-color: var(--navy); }
.btn-outline-primary:hover { background: var(--navy); border-color: var(--navy); }

.hero {
    min-height: min(780px, calc(100vh - 74px));
    display: grid;
    align-items: center;
    background: linear-gradient(90deg, rgba(248,246,241,.98) 0%, rgba(248,246,241,.9) 44%, rgba(248,246,241,.08) 75%), url('../img/casa-luna-hero.png') center/cover no-repeat;
}
.hero-content { max-width: 660px; padding-block: 5rem; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1rem;
    color: var(--gold);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 2rem; height: 1px; background: currentColor; }
.display-title { font-size: clamp(2.65rem, 8vw, 5.5rem); line-height: 1.02; }
.hero-lead { max-width: 580px; color: #43505c; font-size: clamp(1.1rem, 2vw, 1.35rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section-soft { background: var(--mist); }
.section-warm { background: var(--warm); }
.section-heading { max-width: 680px; margin-bottom: 2.5rem; }
.section-heading h2 { font-size: clamp(2rem, 5vw, 3.25rem); }
.section-heading p { color: var(--muted); font-size: 1.08rem; }

.benefit-card, .service-card, .room-card, .contact-card {
    height: 100%;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 1.1rem;
    box-shadow: 0 8px 30px rgba(18, 38, 63, .05);
}
.benefit-card, .service-card { padding: 1.5rem; }
.icon-box {
    display: grid;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1.25rem;
    place-items: center;
    color: var(--navy);
    background: var(--warm);
    border: 1px solid var(--gold-light);
    border-radius: .9rem;
    font-size: 1.35rem;
}
.benefit-card h3, .service-card h3 { font-size: 1.08rem; }
.benefit-card p, .service-card p { margin: 0; color: var(--muted); }
.room-card { overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.room-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.room-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.room-card-body { padding: 1.5rem; }
.room-meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.status-pill { border-radius: 999px; padding: .35rem .7rem; font-size: .77rem; font-weight: 700; }
.status-available { color: #165b38; background: #dff3e8; }
.status-reserved { color: #76500b; background: #fff0c8; }
.status-soon { color: #59616a; background: #e8eaec; }
.price { color: var(--navy); font-weight: 700; }
.editable-note { color: var(--muted); font-size: .82rem; }

.page-hero { padding-block: clamp(4.5rem, 10vw, 7.5rem); background: var(--warm); }
.page-hero h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); }
.page-hero p { max-width: 650px; color: var(--muted); font-size: 1.2rem; }
.split-image { width: 100%; min-height: 420px; object-fit: cover; border-radius: 1.25rem; box-shadow: var(--shadow); }
.gallery-grid { columns: 1; column-gap: 1rem; }
.gallery-item { display: block; width: 100%; margin-bottom: 1rem; padding: 0; overflow: hidden; background: none; border: 0; border-radius: 1rem; cursor: zoom-in; }
.gallery-item img { width: 100%; transition: transform .35s ease; }
.gallery-item:hover img, .gallery-item:focus img { transform: scale(1.025); }
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    padding: 4rem 1rem 1rem;
    place-items: center;
    background: rgba(10, 20, 32, .94);
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: calc(100vh - 5rem); border-radius: .5rem; object-fit: contain; }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; color: #fff; background: transparent; border: 0; font-size: 2.5rem; }

.accordion-item { margin-bottom: .75rem; overflow: hidden; border: 1px solid var(--border) !important; border-radius: .8rem !important; }
.accordion-button { color: var(--navy); font-weight: 700; }
.accordion-button:not(.collapsed) { color: var(--navy); background: var(--warm); box-shadow: none; }
.contact-card { padding: clamp(1.5rem, 5vw, 2.5rem); }
.form-control { min-height: 3rem; border-color: #cbd1d5; border-radius: .65rem; }
textarea.form-control { min-height: 9rem; }
.form-control:focus { border-color: var(--gold); box-shadow: 0 0 0 .2rem rgba(184,155,94,.2); }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.cta-panel { padding: clamp(2rem, 6vw, 4rem); color: #fff; background: var(--navy); border-radius: 1.4rem; }
.cta-panel h2 { color: #fff; }
.cta-panel p { color: #dbe2e9; }

.site-footer { padding-top: 4.5rem; color: #dbe2e9; background: #0d1d31; }
.footer-brand { color: #fff; font-size: 1.5rem; font-weight: 700; text-decoration: none; }
.footer-title { color: #fff; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-links { padding: 0; list-style: none; }
.footer-links a { color: #dbe2e9; text-decoration: none; }
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-block: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }
.whatsapp-float {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1050;
    display: grid;
    width: 3.5rem;
    height: 3.5rem;
    place-items: center;
    color: #fff;
    background: #218a57;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(0,0,0,.22);
    font-weight: 800;
    text-decoration: none;
}
.whatsapp-pending { background: var(--navy); }

@media (min-width: 768px) {
    .gallery-grid { columns: 2; }
}
@media (min-width: 992px) {
    .navbar-nav { gap: .2rem; }
    .gallery-grid { columns: 3; }
}
@media (max-width: 767.98px) {
    .hero { min-height: 720px; align-items: end; background: linear-gradient(0deg, rgba(248,246,241,1) 0%, rgba(248,246,241,.92) 48%, rgba(248,246,241,.1) 78%), url('../img/casa-luna-hero.png') 65% center/cover no-repeat; }
    .hero-content { padding-top: 18rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.panel-body { min-height: 100vh; background: var(--mist); }
.panel-header { background: #fff; border-bottom: 1px solid var(--border); }
.panel-header small { color: var(--muted); font-family: "DM Sans", sans-serif; font-size: .72rem; letter-spacing: .02em; }
.panel-card {
    padding: clamp(1.25rem, 4vw, 2rem);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 1rem;
    box-shadow: 0 8px 30px rgba(18, 38, 63, .05);
}
.panel-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: .55rem;
    background: var(--mist);
}
.panel-preview {
    width: min(100%, 520px);
    max-height: 360px;
    object-fit: cover;
    border-radius: .8rem;
    background: var(--mist);
}
.panel-body .table > :not(caption) > * > * { padding-block: .85rem; }
@media (max-width: 767.98px) {
    .panel-body .table { min-width: 760px; }
}
