/* ==========================================================
   Tarjeta de sesión especial
   Se usa en el hero de la portada y en la vista previa del panel
   ========================================================== */

.sesion-hero {
    position: relative;
    padding: 1.4rem;
    border-radius: 20px;
    color: #fff;
    background: rgba(14, 17, 22, .58);
    border: 1px solid rgba(255, 255, 255, .16);
    border-top: 3px solid #e3b23c;
    box-shadow: 0 20px 45px rgba(0, 0, 0, .35);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.sesion-etiqueta {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: 1rem;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #e3b23c;
}

/* Punto que late cuando la sesión es hoy o mañana */
.sesion-hero.inminente .sesion-etiqueta::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff4d63;
    box-shadow: 0 0 0 0 rgba(255, 77, 99, .6);
    animation: latido-sesion 1.8s infinite;
}

@keyframes latido-sesion {
    0%   { box-shadow: 0 0 0 0 rgba(255, 77, 99, .6); }
    70%  { box-shadow: 0 0 0 10px rgba(255, 77, 99, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 77, 99, 0); }
}

.sesion-cuerpo { display: flex; gap: 1rem; align-items: flex-start; }

.sesion-fecha {
    flex-shrink: 0;
    width: 70px;
    padding: .55rem 0 .5rem;
    border-radius: 14px;
    background: #fff;
    color: #0e1116;
    text-align: center;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .25);
}

.sesion-fecha .dia-semana {
    display: block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #c8102e;
}

.sesion-fecha .numero { display: block; margin: .25rem 0; font-size: 1.9rem; font-weight: 800; }

.sesion-fecha .mes {
    display: block;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #5d6475;
}

.sesion-hero h3 {
    margin: 0 0 .35rem;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    overflow-wrap: anywhere;
}

.sesion-hora { font-size: .92rem; color: rgba(255, 255, 255, .82); margin-bottom: .55rem; }

.sesion-nivel {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .22rem .65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    font-size: .78rem;
    font-weight: 600;
}

.sesion-nivel::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color, #e3b23c);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .25);
}

.sesion-extra {
    display: flex;
    gap: .55rem;
    margin-top: .85rem;
    padding-top: .75rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: .88rem;
    color: rgba(255, 255, 255, .85);
}

.sesion-extra + .sesion-extra { margin-top: .5rem; padding-top: 0; border-top: 0; }
.sesion-extra i { color: #e3b23c; }
.sesion-extra[hidden] { display: none; }

/* Enlace "+ N sesiones más" bajo la tarjeta */
.sesion-mas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    width: 100%;
    margin-top: .75rem;
    padding: .6rem;
    border: 1px dashed rgba(255, 255, 255, .3);
    border-radius: 12px;
    background: transparent;
    color: rgba(255, 255, 255, .85);
    font-size: .9rem;
    font-weight: 600;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.sesion-mas:hover { background: rgba(255, 255, 255, .08); border-color: #e3b23c; color: #fff; }

/* Ventana con todas las sesiones */
.modal-sesiones .modal-content { background: #14181f; color: #fff; border: 0; border-radius: 20px; }
.modal-sesiones .modal-header { border-bottom-color: rgba(255, 255, 255, .1); }
.modal-sesiones .sesion-hero { background: rgba(255, 255, 255, .05); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.text-dorado { color: #e3b23c; }

/* Vista previa en el panel: fondo oscuro como el del hero */
.previa-sesion {
    padding: 1.25rem;
    border-radius: 16px;
    background:
        linear-gradient(120deg, rgba(14, 17, 22, .92), rgba(42, 49, 61, .85)),
        url("../imagenes/imageneshero/web/img_3278.jpg") center / cover;
}

@media (prefers-reduced-motion: reduce) {
    .sesion-hero.inminente .sesion-etiqueta::after { animation: none; }
}
