/* ==========================================================================
   Cabañas La Maite — Playa Sámara, Costa Rica
   Estilo: sobrio · playero · alegre  |  Paleta: #000 #FFF verde arena
   Fuente: Roboto
   ========================================================================== */

:root {
    /* Paleta */
    --ink: #0d0d0d;
    --paper: #ffffff;
    --arena: #f6f2e9;          /* fondo cálido tipo arena */
    --arena-2: #ece5d6;

    --verde-950: #0b1f12;
    --verde-900: #112a19;
    --verde-800: #163520;
    --verde-700: #1d452a;
    --verde-600: #265a38;      /* verde bosque principal */
    --verde-500: #41754f;
    --verde-300: #a3bfa9;

    --tan-600: #8a6536;        /* arena oscura (hover) */
    --tan-500: #a97d45;        /* arena — acento principal (del logo) */

    --gris-600: #5b635e;
    --gris-400: #9aa39d;

    /* Tipografía */
    --font: 'Roboto', system-ui, -apple-system, sans-serif;

    /* Sombras */
    --shadow-sm: 0 2px 10px rgba(13, 13, 13, 0.06);
    --shadow-md: 0 14px 40px rgba(13, 13, 13, 0.10);
    --shadow-lg: 0 24px 60px rgba(13, 13, 13, 0.16);

    /* Radios */
    --r-sm: 12px;
    --r-md: 18px;
    --r-lg: 26px;
    --r-pill: 999px;

    --header-h: 76px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    font-weight: 400;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--tan-500); color: var(--verde-950); }

.container {
    width: min(1180px, 100% - 48px);
    margin-inline: auto;
}

section { position: relative; }

/* ---------- Tipografía utilitaria ---------- */
.eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--verde-600);
}

.text-tan { color: var(--tan-500); }
.text-green { color: var(--verde-600); }

.section { padding-block: clamp(72px, 10vw, 120px); }

.section-head {
    max-width: 720px;
    margin-bottom: clamp(40px, 6vw, 64px);
}

.section-head.center { margin-inline: auto; text-align: center; }

.section-head h2 {
    margin: 14px 0 16px;
    font-size: clamp(2rem, 4.4vw, 3rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.section-head p.sub {
    color: var(--gris-600);
    font-size: 1.05rem;
    max-width: 56ch;
}

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: var(--r-pill);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 2px solid transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
    white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
    background: var(--tan-500);
    color: var(--verde-950);
    box-shadow: 0 10px 26px rgba(169, 125, 69, 0.35);
}
.btn-primary:hover { background: var(--tan-600); box-shadow: 0 14px 30px rgba(138, 101, 54, 0.45); }

.btn-green {
    background: var(--verde-600);
    color: #fff;
    box-shadow: 0 10px 26px rgba(29, 107, 71, 0.32);
}
.btn-green:hover { background: var(--verde-700); }

.btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

.btn-outline-dark {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}
.btn-outline-dark:hover { background: var(--ink); color: #fff; }

.btn-sm { padding: 11px 22px; font-size: 0.88rem; }

/* ---------- Header / Navegación ---------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.site-header.scrolled {
    background: rgba(10, 24, 17, 0.88);
    backdrop-filter: blur(14px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.logo-img {
    height: 46px;
    width: auto;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.6vw, 34px);
}

.nav-links a:not(.nav-cta) {
    position: relative;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 6px 0;
    transition: color 0.2s ease;
}

.nav-links a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--tan-500);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.nav-links a:not(.nav-cta):hover { color: #fff; }
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }

.nav-cta {
    padding: 10px 22px;
    border-radius: var(--r-pill);
    background: var(--tan-500);
    color: var(--verde-950) !important;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 8px 20px rgba(169, 125, 69, 0.35);
    transition: background 0.2s ease, transform 0.2s ease;
}
.nav-cta:hover { background: var(--tan-600); transform: translateY(-1px); }

/* Selector de idioma ES/EN */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    margin-left: 4px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(6px);
}

.lang-btn {
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.75);
    font-family: inherit;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    padding: 7px 13px;
    border-radius: var(--r-pill);
    transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn:hover { color: #fff; }
.lang-btn.active { background: var(--tan-500); color: var(--verde-950); }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: 0;
    z-index: 110;
}
.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    padding-top: var(--header-h);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.06);
    animation: heroZoom 18s ease-out forwards;
}

@keyframes heroZoom {
    from { transform: scale(1.12); }
    to   { transform: scale(1.04); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10, 22, 15, 0.55) 0%, rgba(10, 22, 15, 0.30) 45%, rgba(10, 22, 15, 0.82) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 0 140px;
    max-width: 900px;
}

.hero .eyebrow {
    color: var(--verde-300);
    display: inline-block;
    padding: 9px 20px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--r-pill);
    background: rgba(10, 22, 15, 0.35);
    backdrop-filter: blur(6px);
    margin-bottom: 26px;
}

.hero h1 {
    font-size: clamp(2.9rem, 8vw, 5.4rem);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}

.hero h1 .accent { color: var(--tan-500); }

.hero-tagline {
    margin: 22px auto 36px;
    max-width: 560px;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-rating {
    margin-top: 34px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 22px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(8px);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.92);
}

.rating-badge {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--verde-500);
    color: #fff;
    font-weight: 900;
    font-size: 1.05rem;
    box-shadow: 0 6px 16px rgba(65, 117, 79, 0.5);
}

.scroll-cue {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.72rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}
.scroll-cue:hover { color: #fff; }
.scroll-cue .wheel {
    width: 22px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    position: relative;
}
.scroll-cue .wheel::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    width: 3px;
    height: 7px;
    margin-left: -1.5px;
    border-radius: 2px;
    background: var(--tan-500);
    animation: cue 1.8s ease-in-out infinite;
}

@keyframes cue {
    0%, 100% { transform: translateY(0); opacity: 1; }
    60%      { transform: translateY(10px); opacity: 0; }
}

/* ---------- Franja de datos ---------- */
.stats {
    background: var(--verde-950);
    color: #fff;
    padding: clamp(28px, 4vw, 44px) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 6px 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.stat:first-child { border-left: 0; }

.stat-icon {
    flex: none;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(65, 117, 79, 0.18);
    border: 1px solid rgba(65, 117, 79, 0.4);
    font-size: 1.25rem;
}

.stat strong {
    display: block;
    font-size: 1.22rem;
    font-weight: 900;
    line-height: 1.15;
}

.stat span { font-size: 0.86rem; color: rgba(255, 255, 255, 0.65); }

/* ---------- Lofts (editorial) ---------- */
.lofts { background: var(--arena); }

.loft-row {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(32px, 6vw, 80px);
    align-items: center;
    margin-bottom: clamp(56px, 8vw, 96px);
}
.loft-row:last-child { margin-bottom: 0; }
.loft-row.reversed .loft-media { order: 2; }

.loft-media {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 3.1;
}

.loft-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.loft-media:hover img { transform: scale(1.06); }

.loft-tag {
    position: absolute;
    top: 18px;
    left: 18px;
    padding: 8px 16px;
    border-radius: var(--r-pill);
    background: var(--tan-500);
    color: var(--verde-950);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 8px 18px rgba(169, 125, 69, 0.45);
}

.loft-info h3 {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin: 12px 0 18px;
    line-height: 1.12;
}

.loft-info > p.desc {
    color: var(--gris-600);
    font-size: 1.02rem;
    margin-bottom: 24px;
    max-width: 52ch;
}

.price-line {
    margin: -12px 0 20px;
    font-size: 1rem;
    color: var(--gris-600);
}

.price-line strong {
    color: var(--tan-600);
    font-size: 1.3rem;
}

.feature-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.feature-chips li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: var(--r-pill);
    background: var(--paper);
    border: 1px solid var(--arena-2);
    box-shadow: var(--shadow-sm);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--verde-900);
}

.feature-chips li svg { width: 15px; height: 15px; stroke: var(--verde-600); flex: none; }

.loft-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--verde-600);
    font-size: 0.98rem;
    transition: gap 0.2s ease, color 0.2s ease;
}
.loft-link:hover { gap: 14px; color: var(--tan-500); }

/* ---------- Galería (mosaico) ---------- */
.galeria {
    background: var(--verde-950);
    color: #fff;
}

.galeria .eyebrow { color: var(--verde-300); }
.galeria .section-head h2 { color: #fff; }
.galeria .section-head p.sub { color: rgba(255, 255, 255, 0.66); }

.mosaic {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 150px;
    grid-auto-flow: dense;
    gap: 14px;
}

.mosaic figure {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-md);
    cursor: zoom-in;
    background: var(--verde-900);
}

.mosaic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1), opacity 0.4s ease;
}

.mosaic figure:hover img { transform: scale(1.07); }

.mosaic figure::after {
    content: '⤢';
    position: absolute;
    right: 14px;
    bottom: 12px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(10, 22, 15, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 1rem;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mosaic figure:hover::after { opacity: 1; transform: translateY(0); }

.g-wide   { grid-column: span 4; grid-row: span 2; }
.g-tall   { grid-column: span 2; grid-row: span 2; }
.g-square { grid-column: span 2; grid-row: span 1; }

/* ---------- Ubicación ---------- */
.ubicacion { background: var(--paper); }

.ubicacion-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: clamp(36px, 6vw, 72px);
    align-items: center;
}

.ubicacion-text h2 {
    font-size: clamp(1.9rem, 3.6vw, 2.7rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.12;
    margin: 14px 0 18px;
}

.ubicacion-text > p {
    color: var(--gris-600);
    font-size: 1.04rem;
    margin-bottom: 30px;
    max-width: 52ch;
}

.highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.highlight {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    background: var(--arena);
    border-radius: var(--r-md);
    border: 1px solid transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.highlight:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--verde-300);
}

.highlight-icon {
    flex: none;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(65, 117, 79, 0.14);
    font-size: 1.25rem;
}

.highlight strong { display: block; font-size: 0.98rem; color: var(--ink); }
.highlight span:not(.highlight-icon) { font-size: 0.85rem; color: var(--gris-600); }

.ubicacion-map {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 8px solid #fff;
    outline: 1px solid var(--arena-2);
    min-height: 420px;
}

.ubicacion-map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-badge {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: var(--r-sm);
    background: rgba(10, 24, 17, 0.88);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.88rem;
    box-shadow: var(--shadow-md);
}
.map-badge svg { width: 20px; height: 20px; color: var(--tan-500); flex: none; }
.map-badge strong { display: block; font-size: 0.95rem; }

/* ---------- Reservar ---------- */
.reservar {
    background:
        radial-gradient(1100px 500px at 85% -10%, rgba(169, 125, 69, 0.16), transparent 60%),
        radial-gradient(900px 500px at 0% 110%, rgba(65, 117, 79, 0.22), transparent 55%),
        var(--verde-950);
    color: #fff;
}

.reservar .eyebrow { color: var(--verde-300); }
.reservar .section-head h2 { color: #fff; }
.reservar .section-head p.sub { color: rgba(255, 255, 255, 0.66); }
.reservar .section-head.center { margin-inline: auto; }

.reservar-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(28px, 4vw, 44px);
    align-items: start;
}

.reservar-cards { display: grid; gap: 20px; }

.reservar-card {
    display: block;
    background: #fff;
    color: var(--ink);
    border-radius: var(--r-lg);
    padding: 26px;
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

.reservar-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.reservar-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--tan-500), var(--verde-500));
}

.reservar-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.reservar-card h3 { font-size: 1.22rem; font-weight: 800; display: flex; align-items: center; gap: 10px; }

.reservar-card h3 .icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(65, 117, 79, 0.12);
    font-size: 1.1rem;
}

.reservar-card p { color: var(--gris-600); font-size: 0.95rem; margin-bottom: 18px; }

.reservar-card .go {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--verde-600);
    font-size: 0.92rem;
    transition: gap 0.2s ease, color 0.2s ease;
}
.reservar-card:hover .go { gap: 14px; color: var(--tan-500); }

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--r-sm);
    background: var(--arena);
    border: 1px solid var(--arena-2);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--verde-900);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--tan-500);
}

.social-link svg {
    width: 18px;
    height: 18px;
    color: var(--verde-600);
    flex: none;
}

/* Formulario */
.contact-form {
    background: #fff;
    color: var(--ink);
    border-radius: var(--r-lg);
    padding: clamp(26px, 4vw, 40px);
    box-shadow: var(--shadow-lg);
}

.contact-form h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.contact-form .form-intro {
    font-size: 0.9rem;
    color: var(--gris-600);
    margin-bottom: 24px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group { margin-bottom: 16px; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--verde-900);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid var(--arena-2);
    border-radius: var(--r-sm);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--arena);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23265a38' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gris-400); }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--tan-500);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(169, 125, 69, 0.14);
}

.contact-form .btn { width: 100%; }

/* Reserva directa */
.direct-summary {
    margin: 18px 0 16px;
    padding: 14px 16px;
    background: var(--arena);
    border-radius: var(--r-sm);
    border: 1px solid var(--arena-2);
    display: grid;
    gap: 8px;
}

.direct-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.92rem;
    color: var(--gris-600);
}

.direct-line strong { color: var(--ink); font-size: 0.98rem; }

.direct-line.direct-deposit {
    border-top: 1px dashed var(--arena-2);
    padding-top: 8px;
    color: var(--verde-700);
    font-weight: 700;
}

.direct-line.direct-deposit strong { color: var(--tan-600); font-size: 1.1rem; }

.btn.disabled {
    opacity: 0.45;
    pointer-events: none;
    box-shadow: none;
    transform: none !important;
}

.direct-note {
    margin-top: 14px;
    font-size: 0.82rem;
    color: var(--gris-600);
    text-align: center;
}

.direct-fee {
    margin: 12px 0 0;
    font-size: 0.8rem;
    color: var(--gris-600);
}

.paypal-hosted {
    display: none;
    margin-top: 16px;
}

.paypal-hosted.ready {
    display: block;
}

.hidden-by-hosted {
    display: none !important;
}

.direct-pay-status {
    display: none;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: var(--r-sm);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

.direct-pay-status.success {
    display: block;
    background: #e5f4ec;
    color: var(--verde-700);
    border: 1px solid #b7e2cc;
}

.direct-pay-status.error {
    display: block;
    background: #f7ead2;
    color: var(--tan-600);
    border: 1px solid #e5cf9f;
}

.form-message {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: var(--r-sm);
    text-align: center;
    font-size: 0.92rem;
    font-weight: 500;
    display: none;
}

.form-message.success { display: block; background: #e5f4ec; color: var(--verde-700); border: 1px solid #b7e2cc; }
.form-message.error { display: block; background: #f7ead2; color: var(--tan-600); border: 1px solid #e5cf9f; }

/* ---------- Footer ---------- */
footer { background: #070d0a; color: rgba(255, 255, 255, 0.72); }

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    padding: clamp(48px, 7vw, 72px) 0 40px;
}

.footer-brand .brand { margin-bottom: 14px; }

.footer-brand .logo-img {
    height: 62px;
    border-radius: 12px;
}

.footer-brand p { font-size: 0.92rem; max-width: 34ch; color: rgba(255, 255, 255, 0.6); }

.footer-col h4 {
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.footer-col ul { display: grid; gap: 10px; }

.footer-col a { font-size: 0.93rem; color: rgba(255, 255, 255, 0.72); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--tan-500); }

.footer-social { display: flex; gap: 12px; margin-top: 20px; }

.footer-social a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.footer-social a:hover { background: var(--tan-500); border-color: var(--tan-500); transform: translateY(-2px); }

.footer-social svg { width: 18px; height: 18px; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
}

.footer-bottom a { color: rgba(255, 255, 255, 0.6); }
.footer-bottom a:hover { color: var(--tan-500); }

/* ==========================================================================
   Páginas de detalle (loft-1 / loft-2)
   ========================================================================== */
.page-hero {
    min-height: 68vh;
    display: flex;
    align-items: flex-end;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.page-hero .hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }

.page-hero .hero-overlay {
    background: linear-gradient(180deg, rgba(10, 22, 15, 0.35) 0%, rgba(10, 22, 15, 0.85) 100%);
}

.page-hero-content {
    position: relative;
    z-index: 2;
    padding: 90px 0 56px;
    width: 100%;
}

.crumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 22px;
    transition: color 0.2s ease;
}
.crumb:hover { color: var(--tan-500); }

.page-hero h1 {
    font-size: clamp(2.6rem, 6vw, 4.2rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.02;
    text-shadow: 0 4px 26px rgba(0, 0, 0, 0.4);
}

.page-hero .tagline {
    margin-top: 16px;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.92);
    max-width: 56ch;
}

.detail-intro { background: var(--arena); }

.detail-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: clamp(36px, 6vw, 72px);
    align-items: start;
}

.detail-copy h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 14px 0 20px;
}

.detail-copy > p { color: var(--gris-600); font-size: 1.04rem; margin-bottom: 16px; }

.detail-copy .lead {
    font-size: 1.12rem;
    color: var(--ink);
    font-weight: 400;
}

.specs {
    background: var(--verde-950);
    color: #fff;
    border-radius: var(--r-lg);
    padding: clamp(24px, 3vw, 36px);
    position: sticky;
    top: calc(var(--header-h) + 24px);
    box-shadow: var(--shadow-lg);
}

.specs h3 {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--verde-300);
    margin-bottom: 22px;
}

.specs dl { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }

.specs dt {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 4px;
}

.specs dd { font-size: 1.05rem; font-weight: 700; color: #fff; }

.specs .btn { width: 100%; margin-top: 26px; }

.spec-note {
    margin-top: 16px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

.amenities { background: var(--paper); }

.amenities h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin: 14px 0 8px;
}

.amenities .sub { color: var(--gris-600); margin-bottom: 36px; }

.amenity-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
}

.amenity-card {
    background: var(--arena);
    border-radius: var(--r-md);
    padding: 24px;
    border: 1px solid transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.amenity-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--verde-300);
}

.amenity-card h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.amenity-card h4 .icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: rgba(65, 117, 79, 0.14);
    font-size: 1.05rem;
    flex: none;
}

.amenity-card ul { display: grid; gap: 8px; }
.amenity-card li { font-size: 0.9rem; color: var(--gris-600); display: flex; gap: 8px; align-items: baseline; }
.amenity-card li::before { content: '·'; color: var(--tan-500); font-weight: 900; }

.detail-gallery { background: var(--arena); }

.detail-gallery h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin: 14px 0 8px;
}

.detail-gallery .sub { color: var(--gris-600); margin-bottom: 36px; }

.detail-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-flow: dense;
    gap: 14px;
}

.detail-gallery-grid figure {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-md);
    cursor: zoom-in;
    aspect-ratio: 3 / 4;
    background: var(--arena-2);
}

.detail-gallery-grid figure:nth-child(4n+1),
.detail-gallery-grid figure:nth-child(4n+2) { aspect-ratio: 4 / 3; }

.detail-gallery-grid figure:nth-child(6n+3) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }

.detail-gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.detail-gallery-grid figure:hover img { transform: scale(1.06); }

.detail-gallery-grid figure::after {
    content: '⤢';
    position: absolute;
    right: 12px;
    bottom: 10px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(10, 22, 15, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.detail-gallery-grid figure:hover::after { opacity: 1; transform: translateY(0); }

.cta-band {
    background:
        radial-gradient(900px 420px at 12% 0%, rgba(65, 117, 79, 0.25), transparent 60%),
        radial-gradient(800px 420px at 90% 100%, rgba(169, 125, 69, 0.2), transparent 55%),
        var(--verde-950);
    color: #fff;
    text-align: center;
}

.cta-band h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.cta-band p { color: rgba(255, 255, 255, 0.72); max-width: 52ch; margin: 0 auto 34px; }

.cta-band .btn { margin: 0 8px 10px; }

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(7, 13, 10, 0.94);
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 24px;
}

.lightbox.open { opacity: 1; pointer-events: auto; }

.lightbox img {
    max-width: min(1080px, 92vw);
    max-height: 84vh;
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
    object-fit: contain;
}

.lightbox button {
    position: absolute;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.3rem;
    transition: background 0.2s ease;
}
.lightbox button:hover { background: var(--tan-500); border-color: var(--tan-500); }

.lightbox .lb-close { top: 20px; right: 20px; }
.lightbox .lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

.lb-count {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    letter-spacing: 0.12em;
}

/* ---------- Animaciones de aparición ---------- */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
    transition-delay: var(--d, 0s);
}

.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-bg { animation: none; }
    .reveal { opacity: 1; transform: none; transition: none; }
    * { animation-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .stat:nth-child(3) { border-left: 0; }

    .ubicacion-grid { grid-template-columns: 1fr; }
    .ubicacion-map { min-height: 360px; }

    .detail-grid { grid-template-columns: 1fr; }
    .specs { position: static; }

    .detail-gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .detail-gallery-grid figure:nth-child(4n+1),
    .detail-gallery-grid figure:nth-child(4n+2) { aspect-ratio: 3 / 4; }
    .detail-gallery-grid figure:nth-child(3n+1) { aspect-ratio: 4 / 3; }
    .detail-gallery-grid figure:nth-child(6n+3) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
}

@media (max-width: 860px) {
    .nav-toggle { display: flex; }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(320px, 84vw);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 26px;
        padding: 80px 36px;
        background: var(--verde-950);
        box-shadow: -20px 0 60px rgba(0, 0, 0, 0.4);
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.2, 0.6, 0.2, 1);
    }

    .nav-links.open { transform: translateX(0); }

    .nav-links a:not(.nav-cta) { font-size: 1.15rem; }

    .loft-row, .loft-row.reversed { grid-template-columns: 1fr; gap: 26px; }
    .loft-row.reversed .loft-media { order: 0; }

    .mosaic { grid-auto-rows: 120px; gap: 10px; }
    .g-wide { grid-column: span 6; }
    .g-tall { grid-column: span 3; }
    .g-square { grid-column: span 3; }

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

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

@media (max-width: 560px) {
    .container { width: calc(100% - 36px); }

    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat { border-left: 0; flex-direction: column; align-items: flex-start; gap: 10px; padding: 8px; }

    .form-row { grid-template-columns: 1fr; }

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

    .mosaic { grid-auto-rows: 110px; }
    .g-tall, .g-square { grid-column: span 6; }
    .g-wide { grid-row: span 2; }

    .detail-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .detail-gallery-grid figure, .detail-gallery-grid figure:nth-child(4n+1),
    .detail-gallery-grid figure:nth-child(4n+2), .detail-gallery-grid figure:nth-child(3n+1) { aspect-ratio: 3 / 4; }
    .detail-gallery-grid figure:nth-child(6n+3) { grid-column: span 2; grid-row: span 1; aspect-ratio: 16 / 10; }

    .specs dl { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; gap: 30px; }

    .hero-buttons .btn { width: 100%; }
}
