/* ==========================================================================
   EL FOGÓN DE MORE — Gatekeeper
   ========================================================================== */

:root {
    --color-bg: #0d0906;
    --color-gold: #c9a04e;
    --color-text: #f5f0e8;
    --color-text-muted: rgba(245, 240, 232, 0.5);
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition-elegant: cubic-bezier(0.77, 0, 0.175, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
    position: fixed;
    width: 100%; height: 100vh; max-width: 100%; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

/* Loading */
.loading-screen {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--color-bg);
    display: flex; align-items: center; justify-content: center; flex-direction: column;
    transition: opacity 0.8s var(--transition-elegant), visibility 0.8s var(--transition-elegant);
}
.loading-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loading-logo {
    font-family: var(--font-display); font-size: 2rem; font-weight: 400;
    letter-spacing: 0.15em; text-transform: uppercase;
    margin-bottom: 2rem; opacity: 0;
    animation: fadeInUp 1s var(--transition-elegant) 0.2s forwards;
}
.loading-bar { width: 120px; height: 1px; background: rgba(255,255,255,0.06); position: relative; overflow-x: hidden; }
.loading-bar::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: var(--color-gold); animation: loadingProgress 1.8s var(--transition-elegant) 0.4s forwards;
}
@keyframes loadingProgress { to { left: 0; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Full background */
.gk-bg-full {
    position: fixed; inset: 0; z-index: 0;
    background-image: url('assets/images/tavernes/tavernes-exterior.jpg');
    background-size: cover; background-position: center;
}
.gk-bg-full::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
}

/* Fire video */
.gk-fire-wrap {
    position: fixed; inset: 0; z-index: 1;
    pointer-events: none;
    display: flex; align-items: center; justify-content: center;
}
.gk-fire-wrap video {
    width: 100%; height: 100%;
    object-fit: cover;
    mix-blend-mode: screen;
    opacity: 0.6;
}

/* Brand top */
.gk-brand {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; justify-content: center;
    padding: 2.5rem 2rem 1rem;
    pointer-events: none;
}
.gk-brand-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--color-text); opacity: 0.18; text-align: center;
    animation: fadeInUp 1.2s var(--transition-elegant) 0.5s both;
}

/* Clickable text zones */
.gk-click-left, .gk-click-right {
    position: fixed; z-index: 10; pointer-events: none;
}
.gk-click-left { left: 5%; top: 30%; }
.gk-click-right { right: 5%; top: 30%; }
.gk-zone {
    display: flex; flex-direction: column; align-items: center;
    text-decoration: none; pointer-events: auto; cursor: pointer;
}
.gk-zone-name {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 400; letter-spacing: 0.08em;
    color: var(--color-text);
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
    transition: transform 0.5s var(--transition-elegant), text-shadow 0.5s ease;
    display: inline-block;
}
.gk-zone-tag {
    font-family: var(--font-body);
    font-size: clamp(0.7rem, 0.9vw, 0.9rem);
    font-weight: 300; letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
    transition: transform 0.5s var(--transition-elegant), opacity 0.5s ease;
    display: inline-block;
}
.gk-zone:hover .gk-zone-name {
    transform: scale(1.15);
    text-shadow: 0 4px 30px rgba(201, 160, 78, 0.3);
}
.gk-zone:hover .gk-zone-tag { transform: scale(1.1); opacity: 1; }

/* Bottom */
.gk-bottom {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
    text-align: center;
    padding: 1.5rem 2rem 2.5rem;
    pointer-events: none;
}
.gk-slogan {
    font-family: var(--font-display);
    font-size: clamp(0.85rem, 1.2vw, 1.1rem);
    font-style: italic; color: var(--color-gold);
    letter-spacing: 0.05em; margin-bottom: 0.6rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    animation: fadeInUp 1.2s var(--transition-elegant) 0.8s both;
}
.gk-contact {
    font-size: clamp(0.55rem, 0.75vw, 0.7rem);
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--color-text-muted);
    animation: fadeInUp 1.2s var(--transition-elegant) 1s both;
}

/* Mobile */
@media (max-width: 768px) {
    .gk-fire-wrap video { opacity: 0.35; }
    .gk-click-left { left: 5%; top: 20%; }
    .gk-click-right { right: 5%; top: 55%; }
    .gk-brand { padding: 1.2rem 1rem 0.5rem; }
    .gk-brand-title { font-size: 1.3rem; opacity: 0.12; }
    .gk-zone-name { font-size: 1.8rem; }
    .gk-zone-tag { font-size: 0.6rem; }
    .gk-bottom { padding: 1rem 1.5rem 1.5rem; }
    .gk-slogan { font-size: 0.75rem; }
    .gk-contact { font-size: 0.5rem; line-height: 1.8; }
}
@media (max-width: 480px) {
    .gk-brand-title { font-size: 1rem; opacity: 0.1; }
    .gk-zone-name { font-size: 1.4rem; }
    .gk-zone-tag { font-size: 0.55rem; }
    .gk-slogan { font-size: 0.65rem; }
    .gk-contact { font-size: 0.45rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
