/* ── Variables ── */
:root {
    --gold: #d4af37;
    --gold-dark: #b8860b;
    --copper: #977a5a;
    --dark: #0a0806;
    --dark2: #120f0a;
    --cream: #f9e3ba;
    --white: #EEEDEB;
    --text-muted: rgba(238, 237, 235, 0.62);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--dark);
    color: var(--white);
    overflow-x: hidden;
    min-height: 100vh;
}

/* ── GRAIN ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 900;
    opacity: 0.4;
}

/* ── FONDO ── */
.bg-scene {
    position: fixed;
    inset: 0;
    background: url("../img/fondo atardecer 4k.jpeg") center/cover no-repeat;
    z-index: 0;
}

.bg-scene::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg,
            rgba(10, 8, 6, 0.95) 0%, rgba(10, 8, 6, 0.62) 40%,
            rgba(151, 122, 90, 0.12) 70%, rgba(10, 8, 6, 0.97) 100%);
}

.bg-scene::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 25%, rgba(212, 175, 55, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 85% 75%, rgba(151, 122, 90, 0.08) 0%, transparent 50%);
}

/* ── HEADER ── */
.encabezado {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    padding: 0 5%;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 8, 6, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.logo {
    width: 180px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.3));
}

nav ul {
    list-style: none;
    display: flex;
    gap: 6px;
    align-items: center;
}

nav ul li a {
    color: rgba(238, 237, 235, 0.75);
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: var(--gold);
}

/* ── HERO ── */
.hero {
    position: relative;
    z-index: 5;
    min-height: 52vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 5% 60px;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.68rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 22px;
    animation: fadeUp 1s 0.1s both;
}

.hero-label span {
    display: block;
    width: 32px;
    height: 1px;
    background: var(--gold);
}

h1.subtitulo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3.8rem, 10vw, 8rem);
    line-height: 0.95;
    letter-spacing: 0.03em;
    color: var(--cream);
    text-shadow: 0 0 80px rgba(212, 175, 55, 0.1);
    animation: fadeUp 1s 0.2s both;
    margin-bottom: 18px;
}

h1.subtitulo em {
    display: block;
    font-style: normal;
    -webkit-text-stroke: 1px rgba(212, 175, 55, 0.45);
    color: transparent;
    font-size: 0.65em;
}

.hero-sub {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(249, 227, 186, 0.72);
    letter-spacing: 0.05em;
    animation: fadeUp 1s 0.4s both;
    max-width: 500px;
}

/* ── BAND ── */
.band {
    position: relative;
    z-index: 5;
    background: var(--gold);
    padding: 11px 0;
    overflow: hidden;
    white-space: nowrap;
    margin-top: 72px;
}

.band-track {
    display: inline-flex;
    gap: 48px;
    animation: marquee 26s linear infinite;
}

.band-track span {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    color: var(--dark);
}

.band-dot {
    width: 5px;
    height: 5px;
    background: var(--dark);
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ── BLOQUES ── */
.bloques-wrapper {
    position: relative;
    z-index: 5;
    max-width: 1060px;
    margin: 0 auto;
    padding: 80px 5% 60px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.bloque {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 370px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.12);
    position: relative;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.4s;
}

.bloque.visible {
    opacity: 1;
    transform: translateY(0);
}

.bloque:hover {
    border-color: rgba(212, 175, 55, 0.3);
}

.bloque.invertido {
    direction: rtl;
}

.bloque.invertido>* {
    direction: ltr;
}

/* ── Imagen ── */
.lugar-img-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.lugar-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.7s ease;
    filter: brightness(0.82) saturate(0.88);
}

.bloque:hover .lugar-img-wrapper img {
    transform: scale(1.05);
    filter: brightness(0.9) saturate(1);
}

.lugar-img-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent 60%, rgba(10, 8, 6, 0.7) 100%);
    pointer-events: none;
}

.bloque.invertido .lugar-img-wrapper::after {
    background: linear-gradient(to left, transparent 60%, rgba(10, 8, 6, 0.7) 100%);
}

.lugar-num {
    position: absolute;
    bottom: 16px;
    left: 20px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 5rem;
    line-height: 1;
    color: rgba(212, 175, 55, 0.18);
    z-index: 2;
    pointer-events: none;
}

.img-tooltip {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(10, 8, 6, 0.9), transparent);
    color: rgba(249, 227, 186, 0.75);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    padding: 24px 14px 10px;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 3;
}

.lugar-img-wrapper:hover .img-tooltip {
    opacity: 1;
    transform: translateY(0);
}

/* ── Panel texto ── */
.texto {
    background: rgba(14, 11, 8, 0.92);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: none;
    padding: 32px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    min-height: 0;
    transition: background 0.4s;
}

.bloque:hover .texto {
    background: rgba(18, 14, 11, 0.96);
}

.texto::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.bloque:hover .texto::before {
    opacity: 1;
}

.texto-tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 3px;
    padding: 3px 10px;
    width: fit-content;
}

.texto h2 {
    font-family: 'Playfair Display', serif;
    color: var(--cream);
    font-size: clamp(1.1rem, 1.8vw, 1.45rem);
    font-weight: 700;
    line-height: 1.2;
}

.texto p {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.72;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

/* ── Botones ── */
.btn-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 6px;
    flex-wrap: wrap;
}

.btn-maps-img {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-maps-img img {
    width: 28px;
    height: auto;
    transition: transform 0.3s ease;
}

.btn-maps-img:hover {
    background: rgba(212, 175, 55, 0.12);
    border-color: var(--gold);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.2);
}

.btn-maps-img:hover img {
    transform: scale(1.12);
}

/* ── BOTÓN RESEÑA ── */
.btn-reserva {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold));
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 6px;
    color: var(--dark);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-reserva:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35);
}

/* ── FOOTER ── */
footer {
    position: relative;
    z-index: 5;
    background: linear-gradient(to bottom,
            rgba(10, 8, 6, 0.0) 0%, rgba(10, 8, 6, 0.82) 18%,
            #0a0806 55%, #0a0806 100%);
    border-top: 1px solid rgba(212, 175, 55, 0.12);
    padding: 52px 8% 26px;
    box-shadow: 0 -1px 40px rgba(212, 175, 55, 0.04);
    margin-top: 60px;
}

.footer-contenido {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 36px;
}

.footer-col h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: 12px;
}

.footer-col p,
.footer-col a {
    display: block;
    color: rgba(238, 237, 235, 0.50);
    font-size: 0.85rem;
    line-height: 2;
    text-decoration: none;
    transition: color 0.3s, padding-left 0.3s;
}

.footer-col a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.footer-copy {
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.08);
    padding-top: 20px;
    color: rgba(238, 237, 235, 0.22);
    font-size: 0.75rem;
    letter-spacing: 0.07em;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {

    .bloque,
    .bloque.invertido {
        grid-template-columns: 1fr;
        height: auto;
        direction: ltr;
    }

    .lugar-img-wrapper {
        height: 240px;
        width: 100%;
    }

    .lugar-img-wrapper::after,
    .bloque.invertido .lugar-img-wrapper::after {
        background: linear-gradient(to bottom, transparent 60%, rgba(10, 8, 6, 0.7) 100%);
    }

    .texto {
        padding: 28px 24px;
    }

    .texto p {
        -webkit-line-clamp: 8;
    }

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

    nav ul li a {
        font-size: 0.62rem;
        padding: 6px 9px;
    }

    .btn-reserva {
        padding: 9px 16px;
        font-size: 0.68rem;
    }
}

@media (max-width: 600px) {
    h1.subtitulo {
        font-size: clamp(3rem, 15vw, 5rem);
    }

    .texto {
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {
    .hero { padding: 90px 4% 40px; min-height: 40vh; }
    h1.subtitulo { font-size: clamp(2.5rem, 18vw, 3.5rem); }
    .texto { padding: 20px 16px; }
    .texto p { -webkit-line-clamp: 6; }
    .lugar-img-wrapper { height: 180px; }
    .btn-reserva { width: 100%; justify-content: center; padding: 8px 14px; font-size: 0.65rem; }
    .btn-actions { flex-direction: column; align-items: stretch; }
    .btn-maps-img { width: 100%; height: 38px; }
    .footer-contenido { gap: 16px; }
    footer { padding: 36px 5% 20px; }
}
