/* ============================================================
   FEDEPOL - EVENTOS DEPORTIVOS
   Versión pública ancho completo / full-width
   ============================================================ */

:root{
    --fedepol-red:#EB2604;
    --fedepol-dark:#191919;
    --fedepol-text:#2a2a2a;
    --fedepol-muted:#6b6b6b;
    --fedepol-border:#e4e4e4;
    --fedepol-bg:#f7f7f7;
}

.events-full-shell{
    width:100%;
    max-width:none;
    margin:0;
    padding-left:28px;
    padding-right:28px;
    box-sizing:border-box;
}

/* ---------------------- LISTADO ---------------------- */
.events-hero{
    width:100%;
    background:linear-gradient(135deg,#161616,#3a0b06);
    padding:40px 0;
    color:#fff;
    border-bottom:4px solid var(--fedepol-red);
}
.events-hero h1{
    margin:0 0 8px;
    font-weight:800;
    font-size:40px;
    line-height:1.1;
}
.events-hero p{
    font-size:17px;
    max-width:980px;
    margin:0;
    opacity:.9;
}
.events-wrap{
    width:100%;
    padding:26px 0 55px;
    background:#fff;
}
.events-filters{
    width:100%;
    display:grid;
    grid-template-columns:minmax(170px,1fr) minmax(230px,1.35fr) minmax(120px,.6fr) auto;
    gap:18px;
    align-items:end;
    background:#fff;
    border:1px solid var(--fedepol-border);
    padding:18px;
    margin-bottom:26px;
    border-radius:10px;
    box-sizing:border-box;
}
.events-filter-field label{
    display:block;
    margin-bottom:6px;
    font-weight:700;
    color:#333;
}
.events-filter-actions{
    display:flex;
    gap:8px;
    align-items:center;
    padding-bottom:1px;
}
.events-filter-actions .btn{
    min-height:38px;
}

.events-list{
    width:100%;
    display:flex;
    flex-direction:column;
    gap:28px;
}
.event-wide-card{
    width:100%;
    background:#fff;
    border:1px solid var(--fedepol-border);
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 5px 20px rgba(0,0,0,.07);
}
.event-wide-image{
    position:relative;
    display:block;
    width:100%;
    height:clamp(260px,34vw,470px);
    background:#222 center center/cover no-repeat;
    text-decoration:none!important;
}
.event-wide-image:hover,
.event-wide-image:focus{
    text-decoration:none!important;
}
.event-image-shade{
    position:absolute;
    inset:0;
    background:linear-gradient(180deg,rgba(0,0,0,.04),rgba(0,0,0,.4));
}
.event-date-badge{
    position:absolute;
    left:20px;
    bottom:18px;
    background:var(--fedepol-red);
    color:#fff;
    padding:9px 14px;
    border-radius:7px;
    font-weight:800;
    z-index:2;
    box-shadow:0 2px 8px rgba(0,0,0,.16);
}
.event-status{
    position:absolute;
    right:18px;
    top:18px;
    background:#fff;
    color:#222;
    border-radius:18px;
    padding:6px 12px;
    font-size:12px;
    font-weight:800;
    z-index:2;
    box-shadow:0 2px 10px rgba(0,0,0,.12);
}
.event-wide-body{
    padding:24px 26px 26px;
}
.event-category-label{
    color:var(--fedepol-red)!important;
    font-size:13px!important;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.04em;
}
.event-wide-body h2{
    margin:5px 0 12px;
    font-size:27px;
    line-height:1.25;
    font-weight:800;
}
.event-wide-body h2 a{
    color:#222;
    text-decoration:none;
}
.event-wide-body h2 a:hover{
    color:var(--fedepol-red);
}
.event-wide-data{
    display:flex;
    flex-wrap:wrap;
    gap:12px 28px;
    color:#565656;
    margin-bottom:13px;
    font-size:14px;
}
.event-wide-body p{
    color:#565656;
    font-size:15px;
    line-height:1.7;
    margin:0 0 20px;
}
.event-meta{
    color:#626262;
    font-size:14px;
}
.event-wide-actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    justify-content:center;
    padding-top:4px;
}
.event-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:205px;
    background:var(--fedepol-red);
    color:#fff!important;
    padding:12px 20px;
    border-radius:6px;
    font-weight:800;
    text-align:center;
    text-decoration:none!important;
    transition:transform .15s ease, box-shadow .15s ease;
}
.event-button:hover{
    transform:translateY(-1px);
    box-shadow:0 5px 14px rgba(235,38,4,.2);
}
.event-button-secondary{
    background:#303030;
}

/* ---------------------- DETALLE ---------------------- */
.event-detail-hero{
    position:relative;
    width:100%;
    min-height:420px;
    overflow:hidden;
    background:#222;
    border-bottom:4px solid var(--fedepol-red);
}
.event-detail-hero-image{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center center;
    display:block;
}
.event-detail-hero.no-image{
    background:linear-gradient(135deg,#171717,#45120a);
}
.event-detail-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(180deg,rgba(0,0,0,.24) 0%,rgba(0,0,0,.76) 100%);
    z-index:1;
}
.event-detail-hero-content{
    position:relative;
    z-index:2;
    width:100%;
    min-height:420px;
    padding:55px 28px 44px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-end;
    text-align:center;
    color:#fff;
    box-sizing:border-box;
}
.event-hero-status{
    display:inline-block;
    background:var(--fedepol-red);
    color:#fff;
    font-size:12px;
    font-weight:800;
    border-radius:16px;
    padding:6px 12px;
    margin-bottom:10px;
    text-transform:uppercase;
    letter-spacing:.03em;
}
.event-detail-hero-content h1{
    margin:0;
    max-width:1180px;
    font-size:clamp(32px,4vw,52px);
    line-height:1.1;
    font-weight:900;
    text-shadow:0 2px 10px rgba(0,0,0,.35);
}
.event-hero-date{
    margin:12px 0 0;
    font-size:17px;
    font-weight:600;
}
.event-hero-register{
    margin-top:22px;
    min-height:50px;
    display:flex;
    align-items:center;
    justify-content:center;
}
.btn-event-main{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:260px;
    padding:14px 26px;
    background:var(--fedepol-red);
    color:#fff!important;
    border-radius:7px;
    font-weight:900;
    text-align:center;
    text-decoration:none!important;
    box-shadow:0 6px 18px rgba(0,0,0,.25);
    transition:transform .15s ease, box-shadow .15s ease;
}
.btn-event-main:hover{
    transform:translateY(-1px);
    box-shadow:0 8px 20px rgba(0,0,0,.3);
}
.event-registration-closed{
    display:inline-block;
    background:rgba(255,255,255,.92);
    color:#333;
    font-weight:800;
    border-radius:6px;
    padding:12px 18px;
}

.event-detail-body{
    width:100%;
    background:#fff;
}
.event-detail-shell{
    display:grid;
    grid-template-columns:minmax(0,2.2fr) minmax(300px,.9fr);
    gap:28px;
    padding-top:34px;
    padding-bottom:34px;
}
.event-panel{
    background:#fff;
    border:1px solid var(--fedepol-border);
    border-radius:10px;
    padding:24px;
    margin-bottom:20px;
    box-shadow:0 3px 13px rgba(0,0,0,.035);
}
.event-panel h3{
    margin:0 0 15px;
    font-size:22px;
    font-weight:800;
    color:#252525;
}
.event-rich-content{
    font-size:15px;
    line-height:1.75;
    color:#444;
}
.event-rich-content img,
.event-rich-content iframe,
.event-rich-content video{
    max-width:100%;
}
.event-discipline-chips{
    display:flex;
    flex-wrap:wrap;
    gap:9px;
}
.event-discipline-chips span{
    display:inline-block;
    background:#f2f2f2;
    border:1px solid #dedede;
    border-radius:18px;
    padding:7px 12px;
    font-size:13px;
    font-weight:700;
}
.event-info-row{
    padding:10px 0;
    border-bottom:1px solid #efefef;
}
.event-info-row:last-child{
    border-bottom:0;
}
.event-info-row strong{
    display:block;
    margin-bottom:3px;
    font-size:13px;
    color:#333;
}
.event-info-row span{
    display:block;
    color:#555;
    line-height:1.55;
}
.event-docs a{
    display:block;
    margin:9px 0;
    color:#315c9b;
    text-decoration:none;
    font-weight:600;
}
.event-docs a:hover{
    color:var(--fedepol-red);
}

.event-bottom-registration{
    width:100%;
    background:#f5f5f5;
    border-top:1px solid #e2e2e2;
    padding:30px 28px 38px;
    box-sizing:border-box;
}
.event-bottom-registration-inner{
    width:100%;
    text-align:center;
}
.event-bottom-registration h3{
    margin:0 0 8px;
    font-size:26px;
    font-weight:900;
}
.event-bottom-registration p{
    margin:0 0 18px;
    color:#555;
}

/* ---------------------- REGISTRO ---------------------- */
.reg-box{
    background:#fff;
    border:1px solid #e3e3e3;
    border-radius:10px;
    padding:25px;
    margin:30px 0;
}
.member-row{
    border:1px solid #ddd;
    border-radius:8px;
    padding:15px;
    margin-bottom:14px;
    background:#fafafa;
}
.captcha-options{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}
.captcha-option{
    width:72px;
    height:72px;
    border:2px solid #ccc;
    background:#fff;
    border-radius:8px;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
}
.captcha-option.selected{
    border-color:var(--fedepol-red);
    box-shadow:0 0 0 2px rgba(235,38,4,.15);
}

/* ---------------------- RESPONSIVE ---------------------- */
@media(max-width:991px){
    .events-full-shell{
        padding-left:20px;
        padding-right:20px;
    }
    .events-filters{
        grid-template-columns:1fr 1fr;
    }
    .events-filter-actions{
        grid-column:1 / -1;
    }
    .event-detail-shell{
        grid-template-columns:1fr;
    }
    .event-detail-hero,
    .event-detail-hero-content{
        min-height:380px;
    }
}

@media(max-width:650px){
    .events-full-shell{
        padding-left:14px;
        padding-right:14px;
    }
    .events-hero{
        padding:30px 0;
    }
    .events-hero h1{
        font-size:31px;
    }
    .events-filters{
        grid-template-columns:1fr;
        gap:12px;
    }
    .events-filter-actions{
        grid-column:auto;
        flex-wrap:wrap;
    }
    .event-wide-image{
        height:240px;
    }
    .event-wide-body{
        padding:19px 17px 22px;
    }
    .event-wide-body h2{
        font-size:22px;
    }
    .event-wide-data{
        display:block;
    }
    .event-wide-data span{
        display:block;
        margin-bottom:7px;
    }
    .event-wide-actions{
        display:grid;
        grid-template-columns:1fr;
    }
    .event-button,
    .btn-event-main{
        width:100%;
        min-width:0;
    }
    .event-detail-hero,
    .event-detail-hero-content{
        min-height:340px;
    }
    .event-detail-hero-content{
        padding:38px 14px 28px;
    }
    .event-detail-hero-content h1{
        font-size:30px;
    }
    .event-bottom-registration{
        padding-left:14px;
        padding-right:14px;
    }
}
