:root {
    --negro: #050807;
    --negro-profundo: #020403;
    --verde-pato: #0d5b53;
    --verde-oscuro: #072f2b;
    --dorado: #d4af37;
    --ambar: #ffcf70;
    --gris: #d7d5ce;
    --gris-suave: #a9a59c;
    --blanco: #f7f5ef;
    --linea: rgba(212, 175, 55, 0.24);
    --sombra-xl: 0 24px 60px rgba(0, 0, 0, 0.52);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--gris);
    background:
        radial-gradient(1200px 700px at 85% -10%, rgba(212, 175, 55, 0.16), transparent 45%),
        radial-gradient(900px 500px at -15% 35%, rgba(13, 91, 83, 0.32), transparent 50%),
        linear-gradient(165deg, var(--negro-profundo) 0%, var(--negro) 50%, #061411 100%);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3 {
    font-family: "Cormorant Garamond", Georgia, serif;
    color: var(--dorado);
    letter-spacing: 0.02em;
}

img,
video {
    max-width: 100%;
}

.skip-link {
    position: absolute;
    left: 8px;
    top: -40px;
    background: var(--dorado);
    color: #000;
    padding: 8px 12px;
    border-radius: 6px;
    z-index: 1100;
}

.skip-link:focus {
    top: 8px;
}

.main-nav {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1120px, calc(100% - 28px));
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: rgba(3, 8, 7, 0.82);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 999px;
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    z-index: 1000;
}

.brand {
    color: var(--blanco);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.35rem;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
}

.nav-links a {
    color: var(--gris);
    font-size: 0.94rem;
    font-weight: 600;
    padding: 0.52rem 0.8rem;
    border-radius: 999px;
    transition: color 0.25s ease, background-color 0.25s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: #101010;
    background: linear-gradient(90deg, var(--dorado), var(--ambar));
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: rgba(0, 0, 0, 0.25);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.nav-toggle span {
    width: 17px;
    height: 2px;
    background: var(--blanco);
    border-radius: 999px;
}

.hero {
    min-height: 100vh;
    position: relative;
    display: grid;
    place-items: center;
    padding: 120px 16px 80px;
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("img/zona3.jpg") center 20% / cover no-repeat;
    filter: saturate(1.1) contrast(1.05) brightness(0.62);
    z-index: -2;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(2, 4, 3, 0.4) 5%, rgba(2, 4, 3, 0.82) 72%, rgba(2, 4, 3, 0.98) 100%),
        radial-gradient(circle at 30% 20%, rgba(212, 175, 55, 0.18), transparent 35%);
    z-index: -1;
}

.hero-content {
    max-width: 860px;
    text-align: center;
    padding: 2.2rem;
    border: 1px solid var(--linea);
    background: linear-gradient(145deg, rgba(8, 17, 15, 0.78), rgba(0, 0, 0, 0.5));
    box-shadow: var(--sombra-xl);
    border-radius: 26px;
}

.hero-eyebrow {
    text-transform: uppercase;
    color: var(--ambar);
    letter-spacing: 0.22em;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.hero h1 {
    font-size: clamp(2.3rem, 6.2vw, 5.4rem);
    line-height: 0.95;
    margin-bottom: 1rem;
}

.hero-subtitle {
    max-width: 680px;
    margin: 0 auto 1.5rem;
    color: #e8e4d8;
    font-size: clamp(1rem, 2.3vw, 1.22rem);
    line-height: 1.68;
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn-sponsors,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.75rem 1.45rem;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.75rem 1.45rem;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #f4fff8;
    background: linear-gradient(125deg, #0d8f54, #18b164);
    box-shadow: 0 0 20px rgba(24, 177, 100, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 0 28px rgba(24, 177, 100, 0.62);
    filter: brightness(1.04);
}

.btn-sponsors {
    background: linear-gradient(125deg, var(--dorado), var(--ambar));
    color: #0f0f0f;
    box-shadow: 0 0 24px rgba(212, 175, 55, 0.38);
}

.btn-sponsors:hover,
.btn-sponsors:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 0 32px rgba(212, 175, 55, 0.56);
}

.btn-ghost {
    border: 1px solid var(--linea);
    color: var(--blanco);
    background: rgba(12, 34, 31, 0.45);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
    background: rgba(212, 175, 55, 0.18);
    color: var(--blanco);
}

main {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

section {
    padding: 94px 0;
}

section h2 {
    font-size: clamp(1.95rem, 3.8vw, 3rem);
    margin-bottom: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
}

section p {
    color: #ddd8cc;
    line-height: 1.78;
    max-width: 850px;
    margin: 0 auto 0.9rem;
    text-align: center;
}

.opening-highlight {
    margin-top: 26px;
    padding: 58px 28px;
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 24px;
    background:
        radial-gradient(1000px 420px at 100% -10%, rgba(212, 175, 55, 0.14), transparent 45%),
        linear-gradient(145deg, rgba(7, 21, 18, 0.94), rgba(2, 6, 5, 0.88));
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.38);
}

.opening-kicker {
    margin-bottom: 0.45rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--ambar);
}

.opening-copy {
    max-width: 720px;
}

.opening-meta {
    margin: 1.3rem auto 0;
    max-width: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.opening-meta span {
    color: var(--blanco);
    font-size: 0.9rem;
    border: 1px solid rgba(212, 175, 55, 0.26);
    border-radius: 999px;
    padding: 0.5rem 0.9rem;
    background: rgba(255, 255, 255, 0.03);
}

.opening-actions {
    margin-top: 1.4rem;
}

.accent {
    color: var(--dorado);
    font-weight: 700;
}

#ambientes,
#contacto {
    border-top: 1px solid rgba(212, 175, 55, 0.12);
}

.galeria {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 220px;
    gap: 16px;
    margin-top: 40px;
}

.galeria-ambientes .foto:nth-child(1) {
    grid-column: span 7;
    grid-row: span 2;
}

.galeria-ambientes .foto:nth-child(2) {
    grid-column: span 5;
    grid-row: span 1;
}

.galeria-ambientes .foto:nth-child(3) {
    grid-column: span 5;
    grid-row: span 1;
}

.galeria-ambientes .foto:nth-child(4) {
    grid-column: span 4;
    grid-row: span 1;
}

.galeria-ambientes .foto:nth-child(5) {
    grid-column: span 8;
    grid-row: span 1;
}

.galeria-principal .foto:nth-child(1) {
    grid-column: span 7;
    grid-row: span 2;
}

.galeria-principal .foto:nth-child(2) {
    grid-column: span 5;
    grid-row: span 1;
}

.galeria-principal .foto:nth-child(3) {
    grid-column: span 5;
    grid-row: span 1;
}

.foto {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(212, 175, 55, 0.17);
    background: radial-gradient(circle at center, #12322e 0%, #07110f 58%, #000 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    isolation: isolate;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.foto img,
.foto video {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.6s ease;
}

.foto-clickable {
    cursor: zoom-in;
}

.foto-poster img {
    object-fit: contain;
    background: #000;
}

.foto-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 25px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.62) 30%, rgba(0, 0, 0, 0.16) 58%, transparent 72%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
}

.foto-overlay span {
    color: var(--dorado);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    line-height: 1;
    margin-bottom: 0.45rem;
}

.foto-overlay h3 {
    margin: 0;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.foto:hover .foto-overlay {
    opacity: 1;
}

.foto:hover img,
.foto:hover video {
    transform: scale(1.04);
    filter: brightness(0.76) saturate(1.08);
}

.foto:hover {
    border-color: rgba(212, 175, 55, 0.65);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.65), 0 0 28px rgba(212, 175, 55, 0.16);
}

.foto:has(video):hover .foto-overlay {
    opacity: 0;
}

.lightbox {
    margin: auto;
    width: min(1000px, calc(100% - 24px));
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 16px;
    background: rgba(2, 6, 5, 0.96);
    color: var(--blanco);
    padding: 1rem;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}

.lightbox::backdrop {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.5);
    color: var(--blanco);
    cursor: pointer;
}

.lightbox-content {
    margin: 0;
}

.lightbox-content img {
    width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 10px;
    background: #000;
}

#lightboxCaption {
    margin-top: 0.7rem;
    color: var(--gris);
    text-align: center;
}

.lightbox-cta {
    margin: 0.8rem auto 0.2rem;
    width: fit-content;
}

.lightbox-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}

#ubicacion iframe {
    width: 100%;
    height: 350px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 14px;
    margin-top: 20px;
}

.contacto-premium {
    text-align: center;
}

.contacto-premium h2 {
    margin-bottom: 60px;
}

.horarios-box {
    display: flex;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.horario-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.25);
    backdrop-filter: blur(8px);
    padding: 26px;
    border-radius: 18px;
    width: 280px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.36);
}

.horario-card:hover {
    transform: translateY(-6px);
    border-color: var(--dorado);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.34);
}

.horario-card .dia {
    display: block;
    color: var(--dorado);
    font-size: 1.05rem;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.horario-card .hora {
    color: var(--blanco);
    font-size: 1.24rem;
    font-weight: 500;
}

.cta-sponsors {
    max-width: 700px;
    margin: auto;
}

.cta-sponsors p {
    font-size: 1.06rem;
    margin-bottom: 25px;
    color: #ddd;
}

.btn-comunidad {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    align-items: center;
}

.footer-premium {
    background: #020403;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    padding: 50px 20px 30px;
    text-align: center;
}

.footer-logo img {
    width: 90px;
    opacity: 0.9;
    margin-bottom: 30px;
    filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.4));
}

.footer-contacto {
    display: flex;
    justify-content: center;
    gap: 34px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ddd;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.contact-item i {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dorado);
    font-size: 1.1rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

.contact-item:hover {
    color: var(--dorado);
}

.contact-item:hover i {
    background: var(--dorado);
    color: #000;
    transform: scale(1.08);
}

.footer-copy {
    color: #8c887f;
    font-size: 0.84rem;
    margin-top: 20px;
    letter-spacing: 0.06em;
}

[data-animado] {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.85s ease, transform 0.85s ease;
}

[data-animado].visible {
    opacity: 1;
    transform: translateY(0);
}

#topBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(125deg, var(--dorado), var(--ambar));
    color: #000;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.45);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

#topBtn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#topBtn:hover,
#topBtn:focus-visible {
    box-shadow: 0 0 28px rgba(212, 175, 55, 0.7);
}

:focus-visible {
    outline: 2px solid var(--ambar);
    outline-offset: 3px;
}

@media (min-width: 481px) and (max-width: 900px) {
    .galeria {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 220px;
        gap: 12px;
    }

    .galeria-ambientes .foto:nth-child(1),
    .galeria-principal .foto:nth-child(1) {
        grid-column: span 2;
        grid-row: span 2;
    }

    .galeria-ambientes .foto:nth-child(2),
    .galeria-ambientes .foto:nth-child(3),
    .galeria-ambientes .foto:nth-child(4),
    .galeria-principal .foto:nth-child(2),
    .galeria-principal .foto:nth-child(3) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .galeria-ambientes .foto:nth-child(5) {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .main-nav {
        border-radius: 18px;
        top: 10px;
        padding: 0.65rem;
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .brand {
        font-size: 1.2rem;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-links {
        display: none;
        grid-column: 1 / -1;
        width: 100%;
        margin-top: 0.45rem;
        flex-direction: column;
        gap: 0.3rem;
    }

    .main-nav.is-open .nav-links {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
    }

    .hero {
        min-height: 88vh;
        padding-top: 150px;
    }

    .hero-content {
        padding: 1.5rem;
    }

    section {
        padding: 72px 0;
    }

    .opening-highlight {
        padding: 34px 16px;
        border-radius: 18px;
    }
}

@media (max-width: 480px) {
    main {
        width: calc(100% - 22px);
    }

    .galeria {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: 16px;
        width: 100%;
    }

    .galeria .foto {
        grid-column: 1 !important;
        grid-row: auto !important;
        width: 100%;
        height: 270px;
        margin: 0 !important;
        border-radius: 14px;
    }

    .galeria-ambientes .foto:nth-child(1),
    .galeria-principal .foto:nth-child(1) {
        height: 350px;
    }

    .galeria .foto-overlay {
        padding: 18px;
    }

    .galeria .foto-overlay h3 {
        font-size: 1.1rem;
    }

    .footer-contacto {
        gap: 18px;
    }

    .btn-whatsapp,
    .btn-sponsors,
    .btn-ghost {
        width: 100%;
    }

    .hero-actions,
    .lightbox-actions,
    .btn-comunidad {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    [data-animado] {
        opacity: 1;
        transform: none;
    }
}