/* =========================================================
   SEEI STUDIO — PÁGINA DE EVENTOS
   Este archivo contiene únicamente estilos de eventos.
========================================================= */

.events-page-hero{
    position:relative;
    min-height:620px;
    padding:calc(var(--header-height) + 80px) 8% 90px;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    color:var(--white);
    background:
        linear-gradient(115deg,rgba(27,43,57,.86),rgba(27,43,57,.32)),
        url('../assets/images/eventos/eventos-hero.jpg') center/cover no-repeat;
    text-align:center;
}

.events-page-hero-overlay{
    position:absolute;
    inset:0;
    background:
        radial-gradient(circle at 75% 30%,rgba(152,168,143,.28),transparent 35%),
        linear-gradient(180deg,transparent 60%,rgba(19,31,42,.24));
}

.events-page-hero-content{
    position:relative;
    z-index:1;
    width:min(760px,100%);
}

.events-page-hero h1{
    margin:14px 0 18px;
    font-size:clamp(4rem,9vw,7.2rem);
    font-weight:300;
    line-height:.95;
    letter-spacing:-4px;
}

.events-page-hero p{
    width:min(650px,100%);
    margin-inline:auto;
    color:rgba(255,255,255,.9);
    font-size:1.05rem;
    line-height:1.8;
}

.events-hero-link{
    display:inline-flex;
    align-items:center;
    gap:12px;
    margin-top:34px;
    color:#fff;
    font-size:.8rem;
    font-weight:600;
    letter-spacing:2px;
    text-decoration:none;
}

.events-hero-link span{
    font-size:1.25rem;
    transition:transform .25s ease;
}

.events-hero-link:hover span{
    transform:translateY(4px);
}

.events-intro{
    padding-bottom:56px;
}

.events-section-lead{
    width:min(680px,100%);
    margin:16px auto 0;
    color:var(--text);
    line-height:1.75;
}

.events-filter{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:12px;
}

.events-filter-btn{
    min-height:44px;
    padding:10px 22px;
    border:1px solid var(--border);
    border-radius:999px;
    color:var(--dark);
    background:var(--white);
    font:inherit;
    font-size:.86rem;
    font-weight:500;
    cursor:pointer;
    transition:
        color .25s ease,
        background .25s ease,
        border-color .25s ease,
        transform .25s ease;
}

.events-filter-btn:hover,
.events-filter-btn.active{
    color:#fff;
    background:var(--primary);
    border-color:var(--primary);
    transform:translateY(-2px);
}

.events-gallery-section{
    padding:76px 5% 88px;
    background:#edf2f2;
}

.events-gallery-shell{
    width:min(1500px,100%);
    margin-inline:auto;
}

.events-gallery-heading{
    margin-bottom:32px;
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:28px;
}

.events-gallery-heading h2{
    margin-top:10px;
    font-size:clamp(2rem,4vw,3.5rem);
    line-height:1.12;
}

.events-gallery-controls{
    display:flex;
    gap:10px;
}

.events-gallery-arrow{
    width:48px;
    height:48px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:1px solid var(--border);
    border-radius:50%;
    color:var(--dark);
    background:#fff;
    font-size:1.25rem;
    cursor:pointer;
    box-shadow:0 8px 22px rgba(36,52,71,.1);
    transition:transform .25s ease,background .25s ease,color .25s ease;
}

.events-gallery-arrow:hover{
    color:#fff;
    background:var(--primary);
    transform:translateY(-2px);
}

.events-flyer-track{
    display:grid;
    grid-auto-flow:column;
    grid-auto-columns:calc((100% - 72px) / 4);
    gap:24px;
    overflow-x:auto;
    padding:6px 4px 28px;
    scroll-behavior:smooth;
    scroll-snap-type:x mandatory;
    scrollbar-width:none;
}

.events-flyer-track::-webkit-scrollbar{
    display:none;
}

.events-flyer-card{
    min-width:0;
    scroll-snap-align:start;
    transition:opacity .25s ease,transform .25s ease;
}

.events-flyer-card.is-hidden{
    display:none;
}

.events-flyer-select{
    position:relative;
    width:100%;
    aspect-ratio:4 / 5;
    display:block;
    overflow:hidden;
    padding:0;
    border:0;
    border-radius:26px;
    background:#dce4e6;
    box-shadow:0 18px 42px rgba(36,52,71,.13);
    cursor:pointer;
    text-align:left;
    transition:transform .3s ease,box-shadow .3s ease;
}

.events-flyer-select::after{
    content:"";
    position:absolute;
    inset:0;
    border:3px solid transparent;
    border-radius:inherit;
    pointer-events:none;
    transition:border-color .25s ease;
}

.events-flyer-card.active .events-flyer-select::after{
    border-color:#fff;
    box-shadow:inset 0 0 0 2px var(--primary);
}

.events-flyer-select:hover{
    transform:translateY(-8px);
    box-shadow:0 26px 55px rgba(36,52,71,.2);
}

.events-flyer-select img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .5s ease;
}

.events-flyer-select:hover img{
    transform:scale(1.045);
}

.events-flyer-date{
    position:absolute;
    top:16px;
    left:16px;
    z-index:2;
    min-width:62px;
    min-height:66px;
    padding:10px 8px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    border-radius:15px;
    color:var(--dark);
    background:rgba(255,255,255,.94);
    box-shadow:0 8px 20px rgba(0,0,0,.13);
    font-size:.67rem;
    font-weight:600;
    letter-spacing:1px;
}

.events-flyer-date strong{
    font-size:1.35rem;
    line-height:1;
}

.events-flyer-overlay{
    position:absolute;
    inset:auto 0 0;
    z-index:1;
    min-height:48%;
    padding:80px 24px 24px;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    color:#fff;
    background:linear-gradient(180deg,transparent,rgba(17,29,40,.92));
}

.events-flyer-overlay small{
    margin-bottom:8px;
    color:#dfe8de;
    font-size:.7rem;
    font-style:normal;
    font-weight:600;
    letter-spacing:2px;
    text-transform:uppercase;
}

.events-flyer-overlay strong{
    font-size:1.22rem;
    line-height:1.3;
}

.events-flyer-overlay em{
    margin-top:12px;
    font-size:.76rem;
    font-style:normal;
    font-weight:500;
    opacity:.86;
}

.events-swipe-hint{
    display:none;
    margin-top:4px;
    color:var(--text);
    font-size:.78rem;
    text-align:center;
}

.event-detail-section{
    padding:100px 5%;
    background:var(--light);
}

.event-detail-card{
    width:min(1380px,100%);
    margin-inline:auto;
    display:grid;
    grid-template-columns:minmax(340px,.82fr) minmax(0,1.18fr);
    overflow:hidden;
    border:1px solid var(--border);
    border-radius:32px;
    background:#fff;
    box-shadow:var(--shadow);
}

.event-detail-image-wrap{
    min-height:580px;
    background:#dfe6e8;
}

.event-detail-image-wrap img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
}

.event-detail-content{
    padding:clamp(42px,6vw,82px);
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.event-detail-category{
    color:var(--secondary);
    font-size:.76rem;
    font-weight:600;
    letter-spacing:3px;
    text-transform:uppercase;
}

.event-detail-content h2{
    margin:14px 0 18px;
    font-size:clamp(2.25rem,4vw,4rem);
    line-height:1.08;
}

.event-detail-content > p{
    color:var(--text);
    line-height:1.8;
}

.event-detail-meta{
    margin-top:34px;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:22px 34px;
}

.event-detail-meta div{
    padding-top:16px;
    border-top:1px solid var(--border);
}

.event-detail-meta dt{
    margin-bottom:7px;
    color:#829378;
    font-size:.72rem;
    font-weight:600;
    letter-spacing:1.5px;
    text-transform:uppercase;
}

.event-detail-meta dd{
    margin:0;
    color:var(--dark);
    font-size:.92rem;
    line-height:1.55;
}

.event-detail-actions{
    margin-top:38px;
    display:flex;
    flex-wrap:wrap;
    gap:12px;
}

.event-reserve-btn,
.event-view-flyer-btn{
    min-height:50px;
    padding:13px 25px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:999px;
    font:inherit;
    font-size:.82rem;
    font-weight:600;
    letter-spacing:.6px;
    text-decoration:none;
    cursor:pointer;
    transition:transform .25s ease,background .25s ease,color .25s ease;
}

.event-reserve-btn{
    border:1px solid var(--secondary);
    color:#fff;
    background:var(--secondary);
}

.event-view-flyer-btn{
    border:1px solid var(--primary);
    color:var(--primary);
    background:transparent;
}

.event-reserve-btn:hover,
.event-view-flyer-btn:hover{
    transform:translateY(-3px);
}

.event-view-flyer-btn:hover{
    color:#fff;
    background:var(--primary);
}

.events-callout{
    padding:0 5% 100px;
}

.events-callout-content{
    width:min(1380px,100%);
    margin-inline:auto;
    padding:76px 30px;
    border-radius:30px;
    color:#fff;
    background:
        linear-gradient(120deg,rgba(35,52,69,.94),rgba(99,127,159,.86)),
        url('../assets/images/eventos/eventos-hero.jpg') center/cover no-repeat;
    text-align:center;
}

.events-callout-content h2{
    margin:12px 0 16px;
    font-size:clamp(2rem,4vw,3.6rem);
}

.events-callout-content p{
    width:min(650px,100%);
    margin-inline:auto;
    color:rgba(255,255,255,.84);
    line-height:1.75;
}

.events-callout-content a{
    min-height:50px;
    margin-top:28px;
    padding:13px 28px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:1px solid rgba(255,255,255,.75);
    border-radius:999px;
    color:#fff;
    font-size:.82rem;
    font-weight:600;
    letter-spacing:1px;
    text-decoration:none;
    transition:color .25s ease,background .25s ease,transform .25s ease;
}

.events-callout-content a:hover{
    color:var(--dark);
    background:#fff;
    transform:translateY(-3px);
}

/* MODAL DEL FLYER */

.flyer-modal{
    position:fixed;
    inset:0;
    z-index:7000;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
    opacity:0;
    visibility:hidden;
    transition:opacity .25s ease,visibility .25s ease;
}

.flyer-modal.active{
    opacity:1;
    visibility:visible;
}

.flyer-modal-backdrop{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    border:0;
    background:rgba(13,23,32,.88);
    backdrop-filter:blur(8px);
    cursor:pointer;
}

.flyer-modal-dialog{
    position:relative;
    z-index:1;
    width:min(600px,100%);
    max-height:calc(100dvh - 40px);
    padding:58px 18px 18px;
    overflow:auto;
    border-radius:24px;
    background:#111a22;
    box-shadow:0 30px 80px rgba(0,0,0,.42);
    transform:translateY(18px) scale(.98);
    transition:transform .25s ease;
}

.flyer-modal.active .flyer-modal-dialog{
    transform:translateY(0) scale(1);
}

.flyer-modal-dialog h2{
    position:absolute;
    top:19px;
    left:22px;
    color:#fff;
    font-size:.95rem;
    font-weight:500;
}

.flyer-modal-dialog img{
    display:block;
    width:100%;
    max-height:calc(100dvh - 120px);
    border-radius:16px;
    object-fit:contain;
    background:#000;
}

.flyer-modal-close{
    position:absolute;
    top:10px;
    right:12px;
    z-index:2;
    width:42px;
    height:42px;
    border:0;
    border-radius:50%;
    color:var(--dark);
    background:#fff;
    font-size:1.8rem;
    line-height:1;
    cursor:pointer;
}

body.flyer-modal-open{
    overflow:hidden;
}

/* TABLET */

@media (max-width:1000px){

    .events-page-hero{
        min-height:570px;
    }

    .events-flyer-track{
        grid-auto-columns:calc((100% - 24px) / 2);
    }

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

    .event-detail-image-wrap{
        min-height:520px;
        max-height:680px;
    }
}

/* MOBILE */

@media (max-width:650px){

    .events-page-hero{
        min-height:520px;
        padding:calc(var(--header-height) + 55px) 18px 60px;
        background-position:center;
    }

    .events-page-hero h1{
        font-size:clamp(3.6rem,18vw,5.2rem);
        letter-spacing:-3px;
    }

    .events-page-hero p{
        font-size:.94rem;
    }

    .events-intro{
        padding-bottom:42px;
    }

    .events-filter{
        gap:9px;
    }

    .events-filter-btn{
        padding:9px 15px;
        font-size:.78rem;
    }

    .events-gallery-section{
        padding:58px 16px 66px;
    }

    .events-gallery-heading{
        align-items:flex-start;
    }

    .events-gallery-controls{
        display:none;
    }

    .events-flyer-track{
        grid-auto-columns:86%;
        gap:17px;
        padding-bottom:20px;
    }

    .events-flyer-select{
        border-radius:22px;
    }

    .events-swipe-hint{
        display:block;
    }

    .event-detail-section{
        padding:64px 16px;
    }

    .event-detail-card{
        border-radius:24px;
    }

    .event-detail-image-wrap{
        min-height:0;
        aspect-ratio:4 / 5;
    }

    .event-detail-content{
        padding:34px 22px 38px;
    }

    .event-detail-meta{
        grid-template-columns:1fr;
        gap:16px;
    }

    .event-detail-actions{
        flex-direction:column;
    }

    .event-reserve-btn,
    .event-view-flyer-btn{
        width:100%;
    }

    .events-callout{
        padding:0 16px 64px;
    }

    .events-callout-content{
        padding:54px 22px;
        border-radius:24px;
    }

    .flyer-modal{
        padding:12px;
    }

    .flyer-modal-dialog{
        padding:54px 10px 10px;
        border-radius:20px;
    }
}


/* EVENTOS DINÁMICOS */
.event-featured-row{
    margin:22px 0;
}

.event-map-link{
    width:max-content;
    margin-top:22px;
    display:inline-flex;
    align-items:center;
    font-size:.78rem;
    font-weight:700;
    letter-spacing:.7px;
    color:var(--primary);
    text-decoration:none;
    border-bottom:1px solid currentColor;
}

.event-status-pill{
    display:inline-flex;
    align-items:center;
    min-height:28px;
    padding:5px 11px;
    border-radius:999px;
    font-size:.72rem;
    font-weight:700;
    letter-spacing:.4px;
    background:#edf4ea;
    color:#4f6f43;
}

.event-status-pill.status-proximamente{
    background:#eef1f7;
    color:#53677b;
}

.event-status-pill.status-agotado{
    background:#f8ece9;
    color:#9a4f43;
}

.event-status-pill.status-finalizado{
    background:#ececec;
    color:#666;
}

.event-reserve-btn.is-disabled{
    pointer-events:none;
    opacity:.55;
    filter:grayscale(.35);
}


/* FORMULARIO DE RESERVACIONES */
body.reservation-modal-open{
    overflow:hidden;
}

.reservation-modal{
    position:fixed;
    inset:0;
    z-index:9999;
    display:none;
    align-items:center;
    justify-content:center;
    padding:22px;
}

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

.reservation-modal-backdrop{
    position:absolute;
    inset:0;
    background:rgba(15,22,25,.74);
    backdrop-filter:blur(4px);
}

.reservation-modal-dialog{
    position:relative;
    z-index:1;
    width:min(720px,100%);
    max-height:calc(100vh - 44px);
    overflow:auto;
    padding:34px;
    border-radius:24px;
    background:#fff;
    box-shadow:0 30px 90px rgba(0,0,0,.28);
}

.reservation-modal-close{
    position:absolute;
    top:14px;
    right:16px;
    width:42px;
    height:42px;
    border:0;
    border-radius:50%;
    background:#f0f3f1;
    font-size:1.8rem;
    cursor:pointer;
}

.reservation-modal-dialog h2{
    margin:8px 0 4px;
    font-size:clamp(1.8rem,4vw,2.6rem);
}

.reservation-modal-dialog > p{
    margin:0 0 24px;
    color:#657077;
}

.reservation-form-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
}

.reservation-form-grid label,
.reservation-notes-label{
    display:grid;
    gap:7px;
}

.reservation-form-grid label span,
.reservation-notes-label span{
    font-size:.78rem;
    font-weight:700;
    letter-spacing:.4px;
    text-transform:uppercase;
}

.reservation-form-grid input,
.reservation-form-grid select,
.reservation-notes-label textarea{
    width:100%;
    padding:13px 14px;
    border:1px solid rgba(31,45,54,.18);
    border-radius:12px;
    background:#fff;
    font:inherit;
}

.reservation-notes-label{
    margin-top:16px;
}

.reservation-consent{
    display:flex;
    align-items:flex-start;
    gap:10px;
    margin-top:18px;
    color:#5d686e;
    font-size:.86rem;
    line-height:1.45;
}

.reservation-consent input{
    margin-top:3px;
}

.reservation-field-error{
    min-height:16px;
    color:#9d4138;
    font-size:.75rem;
}

.reservation-modal-actions{
    display:flex;
    justify-content:flex-end;
    gap:12px;
    margin-top:24px;
}

.reservation-modal-actions button{
    border:0;
    cursor:pointer;
}

.reservation-form-status{
    margin-top:18px;
    padding:13px 15px;
    border-radius:12px;
    font-size:.88rem;
    font-weight:700;
}

.reservation-form-status.success{
    background:#e8f3e8;
    color:#47704d;
}

.reservation-form-status.error{
    background:#f4e8e7;
    color:#92524c;
}

@media (max-width:650px){
    .reservation-modal{
        padding:10px;
        align-items:flex-end;
    }

    .reservation-modal-dialog{
        max-height:92vh;
        padding:26px 18px 22px;
        border-radius:22px 22px 0 0;
    }

    .reservation-form-grid{
        grid-template-columns:1fr;
    }

    .reservation-modal-actions{
        flex-direction:column-reverse;
    }

    .reservation-modal-actions button{
        width:100%;
    }
}


/* Estado vacío de eventos */
.events-empty-state{
    width:100%;
    min-height:280px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:10px;
    padding:36px 24px;
    text-align:center;
    border:1px dashed rgba(47,67,77,.22);
    border-radius:22px;
    background:rgba(255,255,255,.72);
}

.events-empty-state span{
    font-size:.72rem;
    font-weight:700;
    letter-spacing:.16em;
    color:#728188;
}

.events-empty-state h3{
    margin:0;
    font-size:clamp(1.35rem,3vw,2rem);
    color:#30434b;
}

.events-empty-state p{
    max-width:560px;
    margin:0;
    color:#748087;
}

.event-detail-section[hidden]{
    display:none !important;
}
