:root {
    --primary: #001C44;
    --accent-yellow: #FFCC00;
    --accent-gold: #D4AF37;
    --ferrari-red: #E31B23;
    --text-light: #FFFFFF;
    --top-bar-h: 30px;
    --header-h: 60px;
    --transition: all 0.4s ease;
    --bg-start: rgba(0, 0, 0, 0.15);
    --bg-end: rgba(0, 0, 0, 0.9);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #F7F4EF;
    color: #1A1A1A;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn-primary-outline {
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: var(--transition);
}

.btn-primary-outline:hover {
    background: var(--accent-gold);
    color: var(--secondary);
}

/* Main Content Area */
main {
    min-height: 100vh;
    padding-top: calc(var(--top-bar-h) + var(--header-h) + var(--nanocheckout-h, 70px));
}

/* Home's hero handles its own offset (see .hero below) so its background can
   extend full-bleed behind the translucent header/checkout bars — cancel main's
   generic offset only for that route. Toggled by router.js's applyHeroBodyClass(). */
body.route-home main {
    padding-top: 0;
}

/* Sections */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('https://teotihuacan.com.mx/wp-content/uploads/2023/12/pyramid-mexico-aztec-5295070.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-top: calc(var(--top-bar-h) + var(--header-h) + var(--nanocheckout-h, 70px));
}

.hero-content {
    width: 100%;
    max-width: 1200px;
    margin: 15% auto auto auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 20px;
    line-height: 1.1;
    color: #FFFFFF;
}

.hero p.hero-eyebrow {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-yellow);
    margin-bottom: 8px;
    text-shadow: 1px 1px black;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    max-width: 600px;
    font-weight: 700;
    color: #FFFFFF;
}

.hero p.hero-subtitle {
    margin-bottom: 20px;
}

.hero-price-tag {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 25px;
}

.hero-price-tag .desde {
    font-size: 1rem;
    color: #FFFFFF;
    opacity: 0.85;
}

.hero-price-tag .precio {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--accent-yellow);
    text-shadow: 1px 1px black;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.btn-outline-white {
    background: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
    font-weight: 900;
    padding: 12px 30px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.9rem;
    display: inline-block;
    text-decoration: none;
}

.btn-solid-white {
    background: #FFFFFF;
    color: gray;
    border: 2px solid #FFFFFF;
    font-weight: 900;
    padding: 12px 30px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.9rem;
    display: inline-block;
    text-decoration: none;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-solid-white:hover {
    background: #f0f0f0;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--secondary);
    border: 1px solid var(--accent-gold);
    padding: 30px;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.btn-close-modal {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    margin-top: 10px;
}

/* Loader */
.loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50vh;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(212, 175, 55, 0.1);
    border-top: 5px solid var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-content {
        margin-top: 15%;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.2rem;
    }
}