/* ==============================
   VARIABLES & BASE
============================== */

:root {
    --primary: #304b38;        /* Verde profundo marca */
    --dark: #111111;
    --light: #ffffff;
    --cream: #f9f7f2;
    --gray-light: #eaeaea;

    --font-serif: 'Cinzel', serif;
    --font-sans: 'Montserrat', sans-serif;

    --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

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

body {
    background-color: var(--cream);
    color: var(--dark);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
}

/* ==============================
   LOADER
============================== */

#loader {
    position: fixed;
    inset: 0;
    background: var(--light);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s var(--ease), visibility 0.8s var(--ease);
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo img {
    width: 200px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* ==============================
   NAVBAR PREMIUM
============================== */
.navbar-premium {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    z-index: 1000;
    transition: transform 0.4s ease;
}

.nav-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.nav-links-centered {
    list-style: none;
    display: flex;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.nav-item {
    text-decoration: none;
    color: #ffffff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 400;
    position: relative;
    padding: 10px 0;
    transition: all 0.3s ease;
}

/* Línea */
.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: #ffffff;
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

.nav-item:hover::after {
    width: 100%;
}


/* Evita que el contenido quede debajo del navbar */
main,
.hero-offset {
    padding-top: 90px;
}

/* ==============================
   TIPOGRAFÍA GLOBAL
============================== */

h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 400;
}

p {
    line-height: 1.6;
}

/* ==============================
   ANIMACIONES SCROLL
============================== */

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1.2s var(--ease);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}