/* =========================================================
   MOTIVACIÓN SALSERA
   Events Page Styles
========================================================= */


/* =========================================================
   1. EVENTS PAGE
========================================================= */

.events-page {
    min-height: 100vh;
    background: var(--cream);
}


/* =========================================================
   2. EVENTS HERO
========================================================= */

.events-hero {
    position: relative;
    padding: 90px 20px 70px;
    background:
        linear-gradient(
            135deg,
            #fffaf5 0%,
            #fff7f0 50%,
            #f8e9df 100%
        );
    text-align: center;
    overflow: hidden;
}

.events-hero::before,
.events-hero::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(169, 0, 32, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.events-hero::before {
    width: 420px;
    height: 420px;
    top: -250px;
    left: -190px;
}

.events-hero::after {
    width: 360px;
    height: 360px;
    right: -190px;
    bottom: -240px;
}

.events-hero-content {
    position: relative;
    z-index: 2;
    width: min(760px, 100%);
    margin: 0 auto;
}

.events-hero .eyebrow {
    margin-bottom: 15px;
}

.events-hero h1 {
    margin: 0 0 20px;
    color: var(--black);
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 1;
    letter-spacing: -2px;
}

.events-hero h1 .accent {
    color: var(--orange);
}

.events-hero p:not(.eyebrow) {
    max-width: 620px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.75;
}


/* =========================================================
   3. EVENTS SECTION
========================================================= */

.events-section {
    padding: 80px 20px 100px;
    background: var(--cream);
}

.events-container {
    width: min(1080px, 100%);
    margin: 0 auto;
}


/* =========================================================
   4. SECTION HEADING
========================================================= */

.events-heading {
    width: min(680px, 100%);
    margin: 0 auto 45px;
    text-align: center;
}

.events-heading .eyebrow {
    margin-bottom: 12px;
}

.events-heading h2 {
    margin-bottom: 15px;
    color: var(--black);
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1;
    letter-spacing: -1px;
}

.events-heading h2 .accent {
    color: var(--red);
}

.events-heading p {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.7;
}


/* =========================================================
   5. EVENT CARD
========================================================= */

.event-card {
    display: grid;
    grid-template-columns: minmax(280px, 430px) 1fr;
    gap: 45px;
    align-items: center;

    padding: 25px;

    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);

    overflow: hidden;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}


/* =========================================================
   6. FLYER
========================================================= */

.flyer-container {
    position: relative;

    width: 100%;

    border-radius: var(--radius);
    overflow: hidden;

    background: #f4eee9;
}

.flyer {
    display: block;

    width: 100%;
    height: auto;

    max-height: 620px;

    object-fit: contain;

    cursor: zoom-in;

    transition: transform 0.5s ease;
}

.flyer-container:hover .flyer {
    transform: scale(1.015);
}


/* =========================================================
   7. EVENT CONTENT
========================================================= */

.event-content {
    padding: 15px 10px;
}

.event-content .eyebrow {
    margin-bottom: 12px;
}

.event-content h2 {
    margin-bottom: 18px;

    color: var(--black);

    font-size: clamp(2rem, 4vw, 3rem);

    line-height: 1.05;
    letter-spacing: -1px;
}

.event-content h2 .accent {
    color: var(--red);
}

.event-description {
    max-width: 520px;

    margin-bottom: 25px;

    color: var(--muted);

    font-size: 0.88rem;

    line-height: 1.75;
}


/* =========================================================
   8. EVENT DETAILS
========================================================= */

.event-details {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 10px;

    margin-bottom: 28px;
}

.event-detail {
    display: flex;
    align-items: center;

    gap: 10px;

    padding: 12px 14px;

    background: var(--cream);

    border: 1px solid var(--border);

    border-radius: 10px;
}

.event-detail-icon {
    flex-shrink: 0;

    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #fff0e6;

    color: var(--red);

    font-size: 0.85rem;
}

.event-detail strong {
    display: block;

    color: var(--text);

    font-size: 0.68rem;

    line-height: 1.3;
}

.event-detail small {
    display: block;

    margin-top: 2px;

    color: var(--muted);

    font-size: 0.62rem;
}


/* =========================================================
   9. EVENT BUTTON
========================================================= */

.event-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    min-height: 46px;

    padding: 0 22px;

    border-radius: 25px;

    background: var(--red);

    color: white;

    font-size: 0.75rem;

    font-weight: 700;

    box-shadow: 0 8px 20px rgba(169, 0, 32, 0.15);

    transition: var(--transition);
}

.event-button:hover {
    background: var(--red-dark);

    color: white;

    transform: translateY(-2px);

    box-shadow: 0 12px 25px rgba(169, 0, 32, 0.22);
}

.event-button span {
    font-size: 0.95rem;

    transition: transform 0.25s ease;
}

.event-button:hover span {
    transform: translateX(3px);
}


/* =========================================================
   10. NO EVENTS STATE
========================================================= */

.no-events {
    max-width: 650px;

    margin: 0 auto;

    padding: 50px 30px;

    text-align: center;

    background: white;

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);
}

.no-events h2 {
    margin-bottom: 12px;

    color: var(--black);

    font-size: 1.8rem;
}

.no-events p {
    color: var(--muted);

    font-size: 0.85rem;

    line-height: 1.7;
}


/* =========================================================
   11. FLYER MODAL
========================================================= */

.flyer-modal {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 30px;

    background: rgba(20, 10, 8, 0.88);

    opacity: 0;

    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.flyer-modal.is-open {
    opacity: 1;

    visibility: visible;
}

.modal-content {
    display: block;

    max-width: min(900px, 95vw);
    max-height: 90vh;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 8px;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.close-modal {
    position: absolute;

    top: 20px;
    right: 25px;

    width: 45px;
    height: 45px;

    display: flex;

    align-items: center;
    justify-content: center;

    color: white;

    font-size: 2rem;

    line-height: 1;

    cursor: pointer;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.1);

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);

    transform: rotate(90deg);
}


/* =========================================================
   12. EVENTS CTA
========================================================= */

.events-cta {
    position: relative;

    padding: 85px 20px;

    background:
        linear-gradient(
            135deg,
            var(--red-dark),
            var(--red)
        );

    color: white;

    text-align: center;

    overflow: hidden;
}

.events-cta::before,
.events-cta::after {
    content: "";

    position: absolute;

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 50%;
}

.events-cta::before {
    width: 420px;
    height: 420px;

    top: -250px;
    left: -200px;
}

.events-cta::after {
    width: 360px;
    height: 360px;

    right: -190px;
    bottom: -240px;
}

.events-cta-content {
    position: relative;

    z-index: 2;

    width: min(650px, 100%);

    margin: 0 auto;
}

.events-cta .eyebrow {
    color: rgba(255, 255, 255, 0.72);

    margin-bottom: 13px;
}

.events-cta h2 {
    margin-bottom: 18px;

    color: white;

    font-size: clamp(2.4rem, 5vw, 4rem);

    line-height: 1;
}

.events-cta h2 .accent {
    color: var(--orange-light);
}

.events-cta p {
    max-width: 520px;

    margin: 0 auto 28px;

    color: rgba(255, 255, 255, 0.82);

    font-size: 0.86rem;

    line-height: 1.7;
}

.events-cta .btn {
    background: white;

    color: var(--red);
}

.events-cta .btn:hover {
    background: var(--orange-light);

    color: white;
}


/* =========================================================
   13. RESPONSIVE
========================================================= */

@media (max-width: 850px) {

    .events-hero {
        padding: 70px 20px 60px;
    }

    .events-section {
        padding: 65px 20px 80px;
    }

    .event-card {
        grid-template-columns: 1fr;

        gap: 30px;

        padding: 20px;
    }

    .flyer {
        max-height: 700px;
    }

    .event-content {
        padding: 5px;
    }

    .events-cta {
        padding: 70px 20px;
    }
}


@media (max-width: 600px) {

    .events-hero {
        padding: 60px 18px 50px;
    }

    .events-hero h1 {
        font-size: clamp(2.5rem, 12vw, 3.5rem);

        letter-spacing: -1.5px;
    }

    .events-hero p:not(.eyebrow) {
        font-size: 0.85rem;
    }

    .events-section {
        padding: 55px 18px 70px;
    }

    .events-heading {
        margin-bottom: 30px;
    }

    .events-heading h2 {
        font-size: 2.3rem;
    }

    .event-card {
        gap: 25px;

        padding: 15px;

        border-radius: 18px;
    }

    .flyer-container {
        border-radius: 14px;
    }

    .event-content h2 {
        font-size: 2.15rem;
    }

    .event-description {
        font-size: 0.82rem;
    }

    .event-details {
        grid-template-columns: 1fr;
    }

    .event-button {
        width: 100%;
    }

    .flyer-modal {
        padding: 15px;
    }

    .modal-content {
        max-width: 94vw;
        max-height: 85vh;
    }

    .close-modal {
        top: 12px;
        right: 12px;

        width: 40px;
        height: 40px;

        font-size: 1.7rem;
    }

    .events-cta {
        padding: 65px 18px;
    }

    .events-cta h2 {
        font-size: 2.5rem;
    }
}


/* =========================================================
   14. ACCESSIBILITY
========================================================= */

.flyer:focus-visible,
.event-button:focus-visible,
.close-modal:focus-visible {
    outline: 3px solid var(--orange);

    outline-offset: 4px;
}


body.modal-open {
    overflow: hidden;
}
