/* ==========================================================================
   VARIABLES
   ========================================================================== */
   :root {
    /* Colors */
    --c-green: #113826;     /* Dark Mexican Green */
    --c-green-light: #1b5e40;
    --c-red: #C1272D;       /* Mexican Red */
    --c-cream: #F5EFEB;     /* Cream / Paper */
    --c-black: #1A1A1A;
    --c-earth: #C39953;     /* Earth / Ocher */
    --c-yellow: #F9A03F;    /* Warm yellow for kids/details */
    
    /* Fonts */
    --font-heading: 'Anton', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* Spacing */
    --section-pad: 80px 20px;
}

/* ==========================================================================
   RESET & BASIC STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--c-black);
    background-color: var(--c-cream);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.text-center { text-align: center; }
.text-green { color: var(--c-green); }
.text-red { color: var(--c-red); }
.text-dark { color: var(--c-black); }
.mb-5 { margin-bottom: 3rem; }
.mt-4 { margin-top: 2rem; }

/* Backgrounds */
.dark-bg { background-color: var(--c-black); color: var(--c-cream); }
.light-bg { background-color: var(--c-cream); color: var(--c-black); }
.red-bg { background-color: var(--c-red); color: var(--c-cream); }
.yellow-bg { background-color: var(--c-yellow); color: var(--c-black); }
.green-bg { background-color: var(--c-green); color: var(--c-cream); }

/* Typography */
h1, h2, h3, .hero-title, .section-title {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--c-red);
    color: var(--c-cream);
    border: 3px solid var(--c-red);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--c-red);
    border-color: var(--c-red);
}

.btn-secondary {
    background-color: var(--c-black);
    color: var(--c-cream);
    border: 3px solid var(--c-black);
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--c-black);
    border-color: var(--c-black);
}

.btn-large {
    font-size: 2rem;
    padding: 20px 40px;
}

/* ==========================================================================
   HEADER & NAV
   ========================================================================== */
#main-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 0;
    background-color: transparent;
    transition: background-color 0.3s ease, padding 0.3s ease;
    z-index: 100;
}

#main-header.scrolled {
    background-color: rgba(17, 56, 38, 0.95); /* green */
    padding: 10px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-logo {
    height: 40px;
    width: auto;
}

#nav-menu ul {
    display: flex;
    gap: 20px;
}

#nav-menu a {
    color: var(--c-cream);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

#nav-menu a:hover {
    color: var(--c-earth);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--c-cream);
    transition: all 0.3s ease;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    background-color: var(--c-green);
    color: var(--c-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    position: relative;
}

.hero-logo {
    max-width: 350px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 5rem;
    color: var(--c-cream);
    text-shadow: 2px 2px 0 var(--c-black), 4px 4px 0 var(--c-red);
    margin-bottom: 20px;
}

.hero-title span {
    color: var(--c-earth);
    font-size: 3.5rem;
    text-shadow: 2px 2px 0 var(--c-black);
}

.hero-date-location {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    letter-spacing: 2px;
    margin-bottom: 25px;
    color: var(--c-earth);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.hero-date-location p {
    margin: 0;
}

.hero-date-location .location {
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    padding-left: 15px;
    text-align: left;
    line-height: 1.2;
}

.hero-subtitle {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 30px;
    color: var(--c-earth);
}

.hero-phrase {
    font-size: 1.2rem;
    font-weight: 400;
    font-style: italic;
    opacity: 0.9;
    margin-bottom: 40px;
}

.kids-free-notice {
    margin-top: 20px;
    font-weight: 800;
    color: var(--c-earth);
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* Countdown */
.countdown {
    margin-bottom: 40px;
}

.countdown-label {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--c-earth);
}

.time-blocks {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.time-block {
    background-color: var(--c-black);
    padding: 10px 15px;
    border: 2px solid var(--c-earth);
    border-radius: 5px;
    min-width: 80px;
}

.time-block span {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--c-red);
}

.time-block small {
    display: block;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--c-cream);
}

#countdown-finished {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--c-red);
}
.hidden { display: none !important; }

/* Subtle Aztec/Mayan fret pattern overlay */
.pattern-bg {
    background-image: url('data:image/svg+xml;utf8,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><path d="M0 30h15v-15h15v30h15v-15h15" stroke="rgba(255,255,255,0.04)" stroke-width="2" fill="none"/><path d="M0 60h30v-15h30" stroke="rgba(255,255,255,0.04)" stroke-width="2" fill="none"/></svg>');
    background-repeat: repeat;
}

/* ==========================================================================
   SECTIONS GENERAL
   ========================================================================== */
section {
    padding: var(--section-pad);
}

.section-kicker {
    font-weight: 800;
    color: var(--c-earth);
    letter-spacing: 2px;
    margin-bottom: 10px;
}

/* Lucha Libre */
.lucha-keywords {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--c-red);
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 40px 0;
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border: 3px solid var(--c-earth);
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.03);
}

.section-highlight {
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 40px;
}

.coming-soon-box {
    border: 3px dashed var(--c-earth);
    padding: 30px;
    max-width: 400px;
    margin: 0 auto;
}

.coming-soon-box h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.coming-soon-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--c-red);
}

/* Transition */
.transition-section {
    background-color: var(--c-green);
    color: var(--c-cream);
    padding: 100px 20px;
}

.transition-text {
    font-size: 4rem;
}

.transition-text.highlight {
    color: var(--c-red);
    text-shadow: 2px 2px 0 var(--c-black);
}

/* Mercado */
.section-desc {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.mercado-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.mercado-item {
    background-color: var(--c-black);
    color: var(--c-cream);
    padding: 40px 20px;
    text-align: center;
    border-bottom: 5px solid var(--c-red);
    transition: transform 0.3s ease;
}

.mercado-item:hover {
    transform: translateY(-5px);
}

.mercado-item h3 {
    font-size: 1.8rem;
}

.no-foodtrucks {
    font-weight: 600;
    font-size: 1.1rem;
    border-top: 1px solid var(--c-black);
    padding-top: 20px;
    max-width: 600px;
    margin: 0 auto;
}

/* Kids */
.kids-free-box {
    background-color: var(--c-black);
    color: var(--c-cream);
    display: inline-block;
    padding: 20px 40px;
    margin: 30px 0;
    border-radius: 10px;
    transform: rotate(-2deg);
}

.kids-free-box h3 {
    font-size: 1.5rem;
}

.free-text {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--c-red);
}

.coming-soon-text-small {
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

/* Entradas */
.entradas-phrase {
    font-size: 3.5rem;
    margin-bottom: 50px;
    color: var(--c-black);
}

.entradas-promo-vip {
    display: flex;
    flex-wrap: wrap;
    background-color: var(--c-green);
    border: 4px solid var(--c-earth);
    border-radius: 15px;
    max-width: 900px;
    margin: 0 auto 50px auto;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.promo-details {
    flex: 1;
    min-width: 300px;
    padding: 50px 40px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.promo-badge {
    display: inline-block;
    background-color: var(--c-earth);
    color: var(--c-black);
    font-family: var(--font-heading);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 1.2rem;
    margin-bottom: 20px;
    align-self: flex-start;
}

.promo-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--c-cream);
    line-height: 1.1;
    margin-bottom: 10px;
}

.promo-price {
    font-family: var(--font-heading);
    font-size: 6rem;
    color: var(--c-red);
    line-height: 1;
    margin-top: 30px;
    margin-bottom: 15px;
    text-shadow: 3px 3px 0 var(--c-black);
}

.promo-desc {
    font-size: 1.2rem;
    color: var(--c-cream);
    opacity: 0.9;
}

.promo-gift {
    flex: 1;
    min-width: 300px;
    background-color: var(--c-earth);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gift-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    z-index: 1;
}

.sombrero-img-large {
    max-width: 340px;
    position: relative;
    z-index: 2;
    transform: rotate(-10deg);
    filter: drop-shadow(0 15px 15px rgba(0,0,0,0.4));
    transition: transform 0.4s ease;
}

.entradas-promo-vip:hover .sombrero-img-large {
    transform: rotate(0deg) scale(1.1);
}

.gift-tag {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background-color: var(--c-red);
    color: var(--c-cream);
    font-family: var(--font-heading);
    padding: 10px 20px;
    border: 3px solid var(--c-black);
    transform: rotate(-15deg);
    z-index: 3;
    box-shadow: 4px 4px 0 var(--c-black);
    text-align: center;
}

.coming-soon-tickets {
    font-family: var(--font-heading);
    font-size: 3rem;
    background-color: var(--c-red);
    color: var(--c-cream);
    display: inline-block;
    padding: 25px 60px;
    border-radius: 10px;
    border: 4px solid var(--c-black);
    box-shadow: 6px 6px 0 var(--c-black);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Programa */
.programa-list {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    line-height: 1.5;
    margin: 30px 0;
}

.programa-list li {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 10px 0;
}

/* Ubicación */
.ubicacion-details {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin: 30px 0;
}

.ubicacion-date {
    color: var(--c-black);
    font-size: 3rem;
}

/* FAQ */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--c-green);
    margin-bottom: 10px;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 15px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--c-green);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding-bottom: 15px;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-item.active .icon {
    transform: rotate(45deg);
}

.icon {
    transition: transform 0.3s ease;
    font-size: 1.5rem;
}

/* Final */
.final-section {
    padding: 100px 20px;
}

.final-title {
    font-size: 4rem;
}

.highlight-red {
    color: var(--c-red);
}

.final-brand {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--c-earth);
    margin-top: 30px;
}

/* Footer */
.main-footer {
    background-color: var(--c-black);
    color: var(--c-cream);
    padding: 60px 20px 20px;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 10px;
}

.footer-subtitle {
    font-family: var(--font-heading);
    color: var(--c-earth);
    margin-bottom: 30px;
}

.footer-info {
    font-weight: 600;
    margin-bottom: 30px;
}

.social-links {
    margin-bottom: 30px;
}

.social-links a {
    display: inline-block;
    margin: 0 10px;
    font-weight: bold;
    text-transform: uppercase;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.social-links a:hover {
    border-color: var(--c-cream);
}

.footer-contact {
    margin-bottom: 40px;
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.6;
}

/* ==========================================================================
   ANIMATIONS & EFFECTS
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

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

/* ==========================================================================
   LIGHTBOX GALLERY
   ========================================================================== */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border: 5px solid var(--c-earth);
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
    animation: zoomIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: var(--c-cream);
    font-size: 4rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--c-red);
}

@keyframes zoomIn {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

/* ==========================================================================
   RESPONSIVE (Mobile First approach handled via max-width queries for adjustments)
   ========================================================================== */
@media (max-width: 992px) {
    .mercado-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title { font-size: 5rem; }
    .hero-subtitle { font-size: 2rem; }
    .mercado-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .photo-gallery {
        grid-template-columns: 1fr;
    }
    
    .hamburger {
        display: flex;
    }

    #nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--c-green);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        z-index: 100;
    }

    #nav-menu.active {
        right: 0;
    }

    #nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    #nav-menu a {
        font-size: 1.5rem;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Adjust typography for mobile */
    .hero-title { font-size: 3.5rem; }
    .hero-title span { font-size: 2.5rem; }
    .section-title, .transition-text, .final-title { font-size: 2.5rem; }
    
    .hero-date-location {
        flex-direction: column;
        gap: 5px;
    }
    .hero-date-location .location {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding-left: 0;
        padding-top: 5px;
        text-align: center;
    }
    
    .time-block span { font-size: 1.8rem; }
    .time-block { min-width: 60px; padding: 10px; }
    
    .sombrero-promo { flex-direction: column; text-align: center; }
    .sombrero-text { text-align: center; }
}

@media (max-width: 480px) {
    .mercado-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.8rem; }
    .hero-title span { font-size: 2rem; }
    .section-title, .transition-text, .final-title { font-size: 2rem; }
    .promo-price { font-size: 4rem; }
    .btn { font-size: 1.2rem; padding: 12px 20px; }
    .btn-large { font-size: 1.5rem; }
    .coming-soon-tickets { font-size: 1.8rem; padding: 15px 20px; border-width: 3px; box-shadow: 4px 4px 0 var(--c-black); }
    
    .time-blocks { gap: 10px; }
    .time-block { min-width: 50px; }
}
