/* ===== CALENDARIO DE EVENTOS - ESTILOS PRINCIPALES ===== */

/* Variables CSS para fácil personalización */

:root {
    --calendario-primary-color: #1a365d;
    --calendario-primary-dark: #2d3748;
    --calendario-success-color: #38a169;
    --calendario-warning-color: #d69e2e;
    --calendario-danger-color: #e53e3e;
    --calendario-info-color: #3182ce;
    --calendario-background: #ffffff;
    --calendario-border: #e2e8f0;
    --calendario-text: #2d3748;
    --calendario-text-light: #718096;
    --calendario-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --calendario-border-radius: 12px;
}

/* Tema oscuro */
.calendario-eventos.tema-oscuro {
    --calendario-background: #1a1a1a;
    --calendario-border: #444;
    --calendario-text: #ffffff;
    --calendario-text-light: #cccccc;
    --calendario-shadow: rgba(255,255,255,0.1);
}

/* Contenedor principal */
.calendario-eventos {
    max-width: 100%;
    margin: 20px 0;
    font-family: "Wix";
    background: transparent;
    overflow: hidden;
}

/* ===== NAVEGACIÓN DEL CALENDARIO ===== */
.calendario-navegacion {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, var(--calendario-primary-color), var(--calendario-primary-dark));
    color: white;
}

.calendario-prev,
.calendario-next,
.calendario-mes-prev,
.calendario-mes-next {
    border: 0px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.nav-icon.material-symbols-outlined {
    font-size: 40px;
}

.calendario-prev:hover,
.calendario-next:hover,
.calendario-mes-prev:hover,
.calendario-mes-next:hover {
    background: transparent;
    border-color: rgba(255,255,255,0.5);
    transform: scale(1.1);
}

.calendario-prev:active,
.calendario-next:active,
.calendario-mes-prev:active,
.calendario-mes-next:active {
    transform: scale(0.95);
}


.calendario-prev:disabled,
.calendario-next:disabled,
.calendario-mes-prev:disabled,
.calendario-mes-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ===== CONTENEDOR DE FECHAS ===== */
.calendario-fechas {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.fecha-header {
    text-align: center;
    min-width: 100px;
    padding: 15px 10px;
    background: rgba(255,255,255,0.15);
    border-radius: var(--calendario-border-radius);
    border: 2px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.fecha-header.hoy {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 4px 15px rgba(255,255,255,0.2);
    transform: scale(1.05);
}

.fecha-header .dia-numero {
    font-size: 28px;
    font-weight: 700;
    display: block;
    line-height: 1;
    margin-bottom: 5px;
}

.fecha-header .dia-nombre {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 3px;
    text-transform: capitalize;
    opacity: 0.9;
}

.fecha-header .mes-nombre {
    font-size: 12px;
    opacity: 0.8;
    text-transform: capitalize;
    font-weight: 500;
}

/* ===== CONTENIDO DEL CALENDARIO ===== */
.calendario-contenido {
    position: relative;
    height: fit-content;
    overflow: hidden;
    background: transparent;
    margin-top: 20px;
}

.calendario-dias-container {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    height: fit-content;
    backdrop-filter: blur(10px);
    border-radius: 15px;
}

.calendario-contenido::-webkit-scrollbar {
    height: 8px;
}

.calendario-contenido::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.calendario-contenido::-webkit-scrollbar-thumb {
    background: var(--calendario-primary-color);
    border-radius: 4px;
}

/* ===== COLUMNAS DE DÍAS ===== */
.dia-columna {
    flex: 0 0 280px;
    background: transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dia-columna:last-child {
    border-right: none;
}

.dia-columna.hoy {
    position: relative;
}

.dia-columna.hoy::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    z-index: 5;
}

/* ===== ANIMACIONES DE DESLIZAMIENTO ===== */
.calendario-contenido.deslizando {
    pointer-events: none;
}

.calendario-contenido.deslizando .calendario-dias-container {
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== HEADER DE CADA DÍA ===== */
.dia-header {
    background: transparent;
    padding: 20px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.dia-columna .dia-header {
    font-size: 16px;
    color: #030408;
}

/* .dia-columna .dia-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    transition: left 0.5s;
} */

.dia-columna:hover .dia-header::before {
    left: 100%;
}

.dia-columna.hoy .dia-header {
    color: white;
}

.dia-columna.hoy .dia-numero {
    color: #030408;
}

.dia-columna.hoy .dia-nombre {
    color: #030408;
    text-transform: uppercase;
}

.dia-columna.hoy .mes-nombre {
    color: #030408;
}

.dia-columna.hoy .eventos-container {
    background: transparent;
}

.dia-fecha {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-direction: row-reverse;
}

.dia-numero {
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    color: #030408;
}

.dia-info {
    display: flex;
    flex-direction: column;
}

.mes-nombre {
    font-size: 12px;
    color: var(--calendario-text-light);
    text-transform: capitalize;
    font-weight: 500;
}

.dia-badge {
    display: inline-block;
    border: 1px solid var(--calendario-warning-color);
    color: #030408;
    padding: 0px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    /* box-shadow: 0 2px 4px rgba(214, 158, 46, 0.3); */
}

/* ===== CONTENEDOR DE EVENTOS ===== */
.eventos-container {
    display: flex;
    flex-direction: column;
    background: transparent;
    min-height: fit-content;
    padding: 20px;
    position: relative;
    gap: 30px;
}

/* ===== EVENTOS INDIVIDUALES ===== */
.evento-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--calendario-background);
    border-radius: var(--calendario-border-radius);
    padding: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px #03040821;
    height: 175px;
}

.evento-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--calendario-shadow);
    border-color: var(--calendario-primary-color);
}

.evento-item:hover::before {
    width: 8px;
}

/* ===== LOADING MEJORADO ===== */
.calendario-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.calendario-loading::before {
    content: '';
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--calendario-primary-color);
    border-radius: 50%;
    animation: spin-loading 1s linear infinite;
}

/* .calendario-loading::after {
    content: 'Cargando eventos...';
    font-size: 14px;
    font-weight: 600;
    color: var(--calendario-text);
    margin-top: 10px;
} */

@keyframes spin-loading {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loading overlay para mejor visibilidad */
.calendario-contenido {
    position: relative;
    min-height: 200px;
}

/* .calendario-contenido.cargando::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(2px);
    z-index: 50;
    pointer-events: none;
} */

/* Responsive loading */
@media (max-width: 768px) {
    .calendario-loading {
        padding: 20px;
    }
    
    .calendario-loading::before {
        width: 40px;
        height: 40px;
        border-width: 3px;
    }
    
    .calendario-loading::after {
        font-size: 13px;
    }
}


/* ================================================================== CLASES CSS PERSONALIZADAS (campo clase_css) ================================================================== */
/*CSS EVENTO SOPORTE*/
.evento_soporte {
    background-color: #E0E0E0 !important;
    box-shadow: 0px 0px 16.9px rgba(0, 0, 0, 0.10) !important;
    justify-content: center;
}

.evento_soporte .evento-titulo {
    font-family: Wix;
    font-size: 0.9vw;
    font-weight: 800;
    text-transform: uppercase;
}

/*CSS PMF SOPORTE*/
.pmf_soporte {
    background-color: #15321F !important;
    box-shadow: 0px 0px 16.9px rgba(0, 0, 0, 0.10) !important;
    justify-content: center;
}

.pmf_soporte .evento-titulo {
    font-family: Wix;
    font-size: 0.9vw;
    font-weight: 800;
    color: #F0F0F0 !important;
    text-transform: uppercase;
}

.pmf_soporte .evento-horario, .btn-acceder-evento {
    color: #F0F0F0;
}

.pmf_soporte .btn-acceder-evento {
    color: #F0F0F0;
}

.pmf_soporte .btn-acceder-evento:hover {
    color: #F0F0F0;
}

/*CSS MEF2.0 SOPORTE*/
.mef2_soporte {
    background-color: #B2B2B2 !important;
    box-shadow: 0px 0px 16.9px rgba(0, 0, 0, 0.10) !important;
    justify-content: center;
}

.mef2_soporte .evento-titulo {
    font-family: Wix;
    font-size: 0.9vw;
    font-weight: 800;
    text-transform: uppercase;
}

/*CSS EVENTO ONLINE*/
.evento_online {
    background-color: #000000 !important;
    justify-content: center;
    box-shadow: 0px 0px 16.9px 0px #E4F22733;
    border: 2px solid #E4F227;
    background-image: url(https://acceso.laacademiadeinversion.com/wp-content/uploads/2024/07/CELIA.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom;
    gap: 5px;
}

.evento_online:hover {
    border: 2px solid #E4F227;
}

.evento_online .evento-titulo {
    text-transform: uppercase;
    color: #E4F227;
    letter-spacing: 0.10em;
    line-height: 1.2em;
    font-size: 0.8vw;
    font-weight: 400;
}

.evento_online .evento-horario {
    text-transform: uppercase;
    color: #E4F227;
    letter-spacing: 0.10em;
    line-height: 1.2em;
    font-size: 0.8vw;
    font-weight: 400;
}

.evento_online .btn-acceder-evento {
    text-transform: uppercase;
    color: #E4F227;
}

.evento_online .btn-acceder-evento:hover {
    text-transform: uppercase;
    color: #E4F227;
}

/*CSS EVENTO PRESENCIAL*/
.evento_presencial {
    background-color: #000000 !important;
    justify-content: center;
    box-shadow: 0px 0px 16.9px 0px #E4F22733;
    border: 2px solid #E4F227;
    background-image: url(https://acceso.laacademiadeinversion.com/wp-content/uploads/2024/07/CELIA.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom;
}

.evento_presencial .evento-titulo {
    text-transform: uppercase;
    color: #E4F227;
    letter-spacing: 0.10em;
    line-height: 1.2em;
    font-size: 0.8vw;
    font-weight: 400;
}

/*CSS EVENTO ONBOARDING*/
.evento_onboarding {
    background-color: #000000 !important;
    justify-content: center;
    box-shadow: 0px 0px 16.9px 0px #E4F22733;
    border: 2px solid #E4F227;
    background-image: url(https://acceso.laacademiadeinversion.com/wp-content/uploads/2024/07/CELIA.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom;
}

.evento_onboarding .evento-titulo {
    text-transform: uppercase;
    color: #E4F227;
    letter-spacing: 0.10em;
    line-height: 1.2em;
    font-size: 0.8vw;
}

/*CSS SESIONES TUTORES*/
.sesiones_tutores{
    background-color: #E0E0E0;
    background-image: url(https://acceso.laacademiadeinversion.com/wp-content/uploads/2024/07/TUTORES-1.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    justify-content: center;
    box-shadow: 0px 0px 16.9px 0px #0000001A;
    background-position: bottom;
}

.sesiones_tutores .evento-titulo {
    font-family: Wix;
    font-size: 0.8vw;
    font-weight: 400;
    color: #030408 !important;
    text-transform: uppercase;
}

.sesiones_tutores .evento-tutor {
    font-family: Mersad;
    color: #030408 !important;
    font-size: 0.7vw;
    font-weight: 700;
    line-height: 0.9em !important;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    background-color: #E4F227;
    padding-top: .3em;
}

/*CSS SESIONES CELIA*/
.sesiones_celia{
    background-color: #E0E0E0;
    background-image: url(https://acceso.laacademiadeinversion.com/wp-content/uploads/2024/07/CELIA.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    justify-content: center;
    box-shadow: 0px 0px 16.9px 0px #0000001A;
    background-position: bottom;
}

.sesiones_celia .evento-titulo {
    font-family: Wix;
    color: #030408 !important;
    font-size: 0.8vw;
    font-weight: 400;
    text-transform: uppercase;
}

.sesiones_celia .evento-tutor {
    color: #030408 !important;
    font-family: Mersad !important;
    font-weight: 800 !important;
    font-size: 0.8vw;
    line-height: 0.9em !important;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    background-color: #E4F227;
    padding-top: .3em;
    text-align: center;
}

/*CSS EVENTO GENERAL MASTERCLASS*/
.evento_masterclass {
    background-color: #030408;
    border: 2px solid #E4F227;
    background-image: url(https://acceso.laacademiadeinversion.com/wp-content/uploads/2024/07/EVENTOS-ONLINE.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    justify-content: center;
    box-shadow: 0px 0px 16.9px 0px #0000001A;
}

.evento_masterclass .evento-titulo {
    font-family: Wix !important;
    color: #F0F0F0 !important;
    font-size: 0.8vw;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    line-height: 1.2em;
}

/*CSS EVENTO MIAR SOPORTE*/
.club_soporte {
    background-color: #04172D;
    /*background-image: url(https://acceso.laacademiadeinversion.com/wp-content/uploads/2024/07/PLANIFICACION-ESTRATEGICA-CLUB.png);*/
    /*background-repeat: no-repeat;*/
    /*background-size: contain;*/
    justify-content: center;
    box-shadow: 0px 0px 16.9px 0px #0000001A;
}

.club_soporte .evento-titulo {
    color: #EEEEEE !important;
    font-size: 0.9vw;
    font-weight: 600;
    text-transform: uppercase;
    font-family: Wix;
    line-height: 1.2em;
    letter-spacing: 0.10em;
}

.club_soporte .evento-titulo::after {
    letter-spacing: 0em;
}

.club_soporte .evento-horario {
    color: #F0F0F0;
}

.club_soporte .btn-acceder-evento {
    color: #F0F0F0;
}

.club_soporte .btn-acceder-evento:hover {
    color: #F0F0F0;
}

/*CSS EVENTO CLUB PLANIFICACIÓN*/
.club_planificacion{
    background-color: #04172D;
    /*background-image: url(https://acceso.laacademiadeinversion.com/wp-content/uploads/2024/07/PLANIFICACION-ESTRATEGICA-CLUB.png);*/
    /*background-repeat: no-repeat;*/
    /*background-size: contain;*/
    justify-content: center;
    box-shadow: 0px 0px 16.9px 0px #0000001A;
}

.club_planificacion .evento-titulo {
    color: #EEEEEE !important;
    font-size: 0.9vw;
    font-weight: 600;
    text-transform: uppercase;
    font-family: Wix;
    line-height: 1.2em;
    letter-spacing: 0.10em;
}

/*CSS EVENTO CLUB CELIA*/
.club_celia {
    background-color: #04172D;
    background-image: url(https://acceso.laacademiadeinversion.com/wp-content/uploads/2025/10/Fondo-Miar-Celia.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    justify-content: center;
    box-shadow: 0px 0px 16.9px 0px #0000001A;
    background-position: bottom;
}

.club_celia  .evento-titulo {
    color: #EEEEEE !important;
    font-family: Wix !important;
    font-size: 0.8vw;
    font-weight: 400;
    text-transform: uppercase;
}

.club_celia .evento-tutor {
    color: #030408 !important;
    font-family: Mersad !important;
    font-weight: 700;
    font-size: 0.8vw;
    line-height: 0.9em !important;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    background-color: #E4F227;
    padding-top: .3em;
}

.club_celia .evento-horario {
    color: #EEEEEE !important;
}

.club_celia .btn-acceder-evento {
    color: #EEEEEE !important;
}

.club_celia .btn-acceder-evento:hover {
    color: #EEEEEE !important;
}

/*CSS EVENTO CLUB TUTORES*/
.club_tutores { 
    background-color: #04172D;
    /*background-image: url(https://acceso.laacademiadeinversion.com/wp-content/uploads/2024/07/FRANCO-CLUB.png);*/
    background-image: url(https://acceso.laacademiadeinversion.com/wp-content/uploads/2025/10/Fondo-MIAR-calendario.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    justify-content: center;
    box-shadow: 0px 0px 16.9px 0px #0000001A;
    background-position: bottom;
}

.club_tutores .evento-titulo {
    color: #F0F0F0 !important;
    font-family: Wix !important;
    font-size: 0.8vw;
    font-weight: 400;
    text-transform: uppercase;
}

.club_tutores  .evento-tutor {
    font-family: Mersad;
    font-size: 0.7vw;
    font-weight: 700;
    line-height: 0.9em !important;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    background-color: white;
    padding-top: .3em;
}

.club_tutores .evento-horario {
    color: #F0F0F0;
}

.club_tutores .btn-acceder-evento {
    color: #F0F0F0;
}

.club_tutores .btn-acceder-evento:hover {
    color: #F0F0F0;
}

/* ================================================================== FIN CLASES CSS PERSONALIZADAS (campo clase_css) ================================================================== */

/* Ejemplo: evento_pyp - Clase personalizada morada */
.evento-item.evento_pyp::before {
    background: var(--calendario-purple-color);
}

.evento-item.evento_pyp {
    border-color: var(--calendario-purple-color);
}

.evento-item.evento_pyp:hover {
    box-shadow: 0 6px 20px rgba(155, 89, 182, 0.3);
}

/* Ejemplo: evento_vip - Clase personalizada dorada */
.evento-item.evento_vip::before {
    background: linear-gradient(45deg, #f1c40f, #f39c12);
}

.evento-item.evento_vip {
    border-color: #f39c12;
    background: linear-gradient(135deg, #fff, #fffbf0);
}

.evento-item.evento_vip:hover {
    box-shadow: 0 6px 20px rgba(241, 196, 15, 0.4);
    transform: translateY(-4px);
}

/* Ejemplo: evento_urgente - Clase personalizada roja parpadeante */
.evento-item.evento_urgente {
    border-color: #e74c3c;
    animation: parpadeo-urgente 1.5s infinite;
}

.evento-item.evento_urgente::before {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    animation: pulso-urgente 1s infinite;
}

.evento-item.evento_urgente .evento-titulo {
    color: #e74c3c;
    font-weight: 700;
}

@keyframes parpadeo-urgente {
    0%, 50% { border-color: #e74c3c; }
    51%, 100% { border-color: #c0392b; }
}

@keyframes pulso-urgente {
    0%, 100% { width: 5px; }
    50% { width: 8px; }
}

/* Ejemplo: evento_especial - Clase personalizada con gradiente */
.evento-item.evento_especial {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.evento-item.evento_especial::before {
    background: linear-gradient(45deg, #f093fb 0%, #f5576c 100%);
    width: 6px;
}

.evento-item.evento_especial .evento-categoria,
.evento-item.evento_especial .evento-titulo,
.evento-item.evento_especial .evento-tutor,
.evento-item.evento_especial .evento-horario {
    color: white;
}

.evento-item.evento_especial .evento-categoria {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
}

/* Ejemplo: evento_premium - Clase personalizada elegante */
.evento-item.evento_premium {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: #ecf0f1;
    border: 2px solid #34495e;
    position: relative;
    overflow: hidden;
}

.evento-item.evento_premium::before {
    background: linear-gradient(45deg, #e67e22, #d35400);
    width: 4px;
}

.evento-item.evento_premium::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 20px 20px 0;
    border-color: transparent #e67e22 transparent transparent;
}

.evento-item.evento_premium .evento-titulo,
.evento-item.evento_premium .evento-tutor,
.evento-item.evento_premium .evento-horario {
    color: #ecf0f1;
}

.evento-item.evento_premium .evento-categoria {
    background: rgba(230, 126, 34, 0.2);
    color: #e67e22;
    border: 1px solid rgba(230, 126, 34, 0.3);
}

/* ===== CONTENIDO DE EVENTOS ===== */
.evento-categoria {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: var(--calendario-text-light);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    border: 1px solid var(--calendario-border);
}

.evento-titulo {
    font-family: "Wix";
    font-size: 0.9vw;
    font-weight: 500;
    color: #030408;
    line-height: 1.4;
    text-align: center;
}

.evento-tutor {
    color: var(--calendario-primary-color);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    text-align: center;
    text-transform: uppercase;
}

.evento-horario {
    color: var(--calendario-text-light);
    font-size: 0.8vw;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    color: #030408;
}

.admin-badge {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    padding: 1px 10px;
    border-top-left-radius: 0px;
    border-top-right-radius: 16px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: absolute;
    bottom: 0;
    left: 0;
}

/* ===== ESTADOS ESPECIALES DE EVENTOS ===== */
.evento-item.finalizado {
    opacity: 0.7;
}

/* .evento-item.finalizado .evento-titulo {
    text-decoration: line-through;
    color: var(--calendario-text-light);
} */

/* .evento-item.finalizado::before {
    background: var(--calendario-gray-color);
} */

.evento-item.completo::after {
    content: 'COMPLETO';
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--calendario-danger-color);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* ===== EVENTOS EN DIRECTO ===== */
.evento-item.en-directo {
    animation: pulso 2s infinite;
    border-color: var(--calendario-danger-color);
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.3);
}

.evento-item.en-directo::before {
    background: linear-gradient(45deg, var(--calendario-danger-color), var(--calendario-warning-color));
    animation: pulso-borde 2s infinite;
    width: 6px;
}

.evento-item.en-directo .evento-titulo::after {
    content: ' 🔴 EN CURSO';
    font-size: 12px;
    color: var(--calendario-danger-color);
    font-weight: bold;
    animation: parpadeo 1s infinite;
    position: absolute;
    top: 5px;
    left: 5px;
}

@keyframes pulso {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@keyframes pulso-borde {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

@keyframes parpadeo {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.5; }
}

/* ===== MENSAJE CUANDO NO HAY EVENTOS ===== */
.no-eventos {
    text-align: center;
    background-color: #FFFFFF1c;
    backdrop-filter: blur(10px);
    padding: 60px 20px;
    border-radius: var(--calendario-border-radius);
    position: relative;
    overflow: hidden;
    min-height: 175px;
    color: #030408;
    box-shadow: 0 0 10px #0304081c;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* .no-eventos::before {
    content: '';
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
    opacity: 0.5;
} */

/* .no-eventos::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,0.1) 10px,
        rgba(255,255,255,0.1) 20px
    );
    animation: mover-patron 20s linear infinite;
} */

@keyframes mover-patron {
    0% { transform: translateX(-50px) translateY(-50px); }
    100% { transform: translateX(50px) translateY(50px); }
}

/* ===== ESTADOS DE TRANSICIÓN ===== */
.calendario-contenido.cargando {
    pointer-events: none;
    position: relative;
}

.calendario-contenido.cargando::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    backdrop-filter: blur(5px);
    z-index: 10;
}

/* ===== ANIMACIONES DE ENTRADA ===== */
.evento-item {
    animation: deslizar-entrada 0.5s ease-out;
}

@keyframes deslizar-entrada {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dia-columna {
    animation: desvanecerse-entrada 0.6s ease-out;
}

@keyframes desvanecerse-entrada {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== BOTONES Y ACCIONES DE EVENTOS ===== */
.evento-acciones {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.btn-inscribirse-evento {
    background: linear-gradient(135deg, var(--calendario-primary-color), var(--calendario-primary-dark));
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-decoration: underline;
}

.btn-inscribirse-evento:hover {
    transform: translateY(-1px);
}

.btn-inscribirse-evento:active {
    transform: translateY(0);
}

.icono-inscripcion {
    font-size: 11px;
}

.evento-completo,
.evento-finalizado {
    background: rgba(0,0,0,0.1);
    color: var(--calendario-text-light);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.evento-completo {
    background: rgba(231, 76, 60, 0.1);
    color: var(--calendario-danger-color);
}

.evento-finalizado {
    background: rgba(149, 165, 166, 0.2);
    color: var(--calendario-gray-color);
}

/* ===== MODAL DE INSCRIPCIÓN ===== */
.modal-inscripcion-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 20px;
    backdrop-filter: blur(5px);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(5px);
    }
}

.modal-inscripcion-contenido {
    background: var(--calendario-background);
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    position: relative;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header del modal */
.modal-inscripcion-header {
    display: flex;
    align-items: center;
    justify-content: between;
    padding: 25px 30px 0;
    border-bottom: 2px solid var(--calendario-border);
    margin-bottom: 25px;
}

.modal-titulo {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--calendario-text);
    flex: 1;
}

.modal-cerrar {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--calendario-text-light);
    cursor: pointer;
    padding: 0;
    margin-left: 15px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-cerrar:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--calendario-text);
    transform: scale(1.1);
}

/* Body del modal */
.modal-inscripcion-body {
    padding: 0 30px 30px;
}

/* Información del evento */
.evento-info-inscripcion {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.evento-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}

.evento-info-item:last-child {
    margin-bottom: 0;
}

.evento-info-titulo {
    font-size: 18px;
    font-weight: 600;
    color: var(--calendario-primary-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.evento-info-icono {
    font-size: 16px;
    width: 20px;
    flex-shrink: 0;
}

/* Formulario de inscripción */
.form-inscripcion {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--calendario-text);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    border: 2px solid var(--calendario-border);
    border-radius: 6px;
    padding: 12px 15px;
    font-size: 14px;
    font-family: inherit;
    background: var(--calendario-background);
    color: var(--calendario-text);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--calendario-primary-color);
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

.form-help {
    font-size: 12px;
    color: var(--calendario-text-light);
    margin-top: 5px;
    font-style: italic;
}

/* Acciones del formulario */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.btn-inscribirse {
    background: linear-gradient(135deg, var(--calendario-success-color), #27ae60);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
    min-height: 48px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-inscribirse:hover:not(:disabled) {
    background: linear-gradient(135deg, #27ae60, #1e8449);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.btn-inscribirse:active {
    transform: translateY(0);
}

.btn-inscribirse:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-cancelar {
    background: transparent;
    color: var(--calendario-text-light);
    border: 2px solid var(--calendario-border);
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px;
}

.btn-cancelar:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--calendario-text-light);
    color: var(--calendario-text);
}

/* Spinner de carga */
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mensajes de respuesta */
.inscripcion-mensaje {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 500;
    animation: mensajeSlideIn 0.3s ease-out;
}

@keyframes mensajeSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.inscripcion-mensaje.mensaje-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
}

.inscripcion-mensaje.mensaje-error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
}

.inscripcion-mensaje p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.inscripcion-mensaje.mensaje-success p::before {
    content: '✅';
    font-size: 16px;
}

.inscripcion-mensaje.mensaje-error p::before {
    content: '❌';
    font-size: 16px;
}

/* Prevenir scroll del body cuando el modal está abierto */
body.modal-inscripcion-abierto {
    overflow: hidden;
}

/* Eventos sin acceso */
.evento-item.sin-acceso {
    opacity: 0.6;
    border-style: dashed;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    position: relative;
}

.evento-item.sin-acceso::before {
    background: #6c757d;
}

.evento-item.sin-acceso::after {
    content: '🔒';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 16px;
    opacity: 0.7;
}

.evento-sin-acceso {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #ffeaa7;
    display: flex;
    align-items: center;
    gap: 6px;
}

.evento-item.sin-acceso .evento-titulo {
    color: #6c757d;
}

.evento-item.sin-acceso .evento-tutor {
    color: #6c757d;
}

/* Eventos de libre acceso */
.evento-item.libre-acceso::before {
    background: linear-gradient(45deg, #007bff, #0056b3);
}

.btn-acceso-libre {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.btn-acceso-libre:hover {
    background: linear-gradient(135deg, #20c997, #17a2b8);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.mensaje-libre-acceso {
    margin-top: 8px;
    padding: 6px 10px;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 4px;
}

.mensaje-libre-acceso small {
    color: #0056b3;
    font-style: italic;
    line-height: 1.3;
}

/* Estilos para admin */
.inscripcion-requerida,
.inscripcion-libre {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.inscripcion-requerida {
    background: linear-gradient(135deg, #007cba, #005a87);
    color: white;
}

.inscripcion-libre {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

/* Botón de acceder directamente */
.btn-acceder-evento {
    background: transparent;
    color: #030408;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8vw;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    width: 100%;
    font-family: "Wix";
    justify-content: center;
    text-decoration: underline;
}

.btn-acceder-evento:hover {
    background-color: transparent;
    transform: translateY(-1px);
    color: #030408;
    text-decoration: underline;
}

/* Estado cuando no hay enlace disponible */
.evento-sin-enlace {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    opacity: 0.8;
}

.evento-item.libre-acceso .evento-categoria {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1565c0;
    border: 1px solid #90caf9;
}

/* Accesibilidad */
.btn-acceder-evento:focus {
    background-color: transparent;
    outline: none;
    box-shadow: 0 0 0 transparent;
}

/* Animación sutil para el botón */
.btn-acceder-evento {
    position: relative;
    overflow: hidden;
}

.btn-acceder-evento::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-acceder-evento:hover::after {
    width: 300px;
    height: 300px;
}

/* ===== NUEVA ESTRUCTURA DEL HEADER ===== */
.calendario-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: #E8E8E8;
    border-radius: 5px;
}

.calendario-nav {
    background: transparent;
    color: #030408;
    padding: 5px 10px;
    /* border-radius: 5px; */
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.calendario-nav.calendario-prev:hover:not(:disabled) {
    background: transparent;
    border-color: transparent;
    transform: translateX(-3px);
}

.calendario-nav.calendario-next:hover:not(:disabled) {
    background: transparent;
    border-color: transparent;
    transform: translateX(3px);
}

.calendario-nav.calendario-mes-prev:hover:not(:disabled) {
    background: transparent;
    border-color: transparent;
    transform: translateX(-3px);
}

.calendario-nav.calendario-mes-next:hover:not(:disabled) {
    background: transparent;
    border-color: transparent;
    transform: translateX(3px);
}

.calendario-nav:active {
    transform: translateY(0);
    background-color: transparent !important;
    border-color: transparent !important;
}

.calendario-mes-prev, .calendario-mes-next:focus {
    transform: translateY(0);
    background-color: transparent !important;
    border-color: transparent !important;
    box-shadow: 0 0 0 transparent !important;
}

.calendario-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* .nav-icon {
    font-size: 30px;
    font-weight: 300;
    color: #030408;
} */

.nav-text {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Info central */
.calendario-info {
    flex: 1;
    text-align: center;
    padding: 0 30px;
}

.calendario-titulo {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.calendario-controles {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.dias-selector {
    background: rgba(255,255,255,0.9);
    color: var(--calendario-text);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 15px;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.dias-selector:hover {
    background: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.calendario-fecha-actual, .calendario-mes-actual {
    font-family: "Wix" !important;
    font-size: 1.4vw;
    font-weight: 700;
    margin: auto;
}

/* ===== BOTÓN HOY ===== */
.calendario-btn-hoy {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.calendario-btn-hoy:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.calendario-btn-hoy:active {
    transform: translateY(0);
}

.calendario-btn-hoy .icono-hoy {
    font-size: 16px;
}

.calendario-btn-hoy .texto-hoy {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Animación de entrada del botón */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calendario-btn-hoy[style*="display: inline-flex"] {
    animation: slideDown 0.3s ease-out;
}

/* ===== EVENTOS PASADOS ===== */
/* .dia-columna.pasado {
    opacity: 0.7;
} */

/* .dia-columna.pasado .dia-header {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
} */

/* .dia-columna.pasado .dia-numero {
    color: #6c757d;
} */

.dia-columna.pasado .dia-badge {
    display: none;
}

/* .dia-columna.pasado .evento-item {
    opacity: 0.8;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
} */

.dia-columna.pasado .evento-item::before {
    background: #adb5bd;
}

.dia-columna.pasado .evento-item .btn-inscribirse-evento,
.dia-columna.pasado .evento-item .btn-acceder-evento {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Badge para eventos pasados */
.evento-pasado-badge {
    background: #6c757d;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 8px;
    display: inline-block;
}

/* ===== EVENTOS MULTI-DÍA ===== */
.evento-item.evento-multidia {
    background: linear-gradient(135deg, #faf5ff, #ffffff);
}

.evento-item.evento-multidia::before {
    background: linear-gradient(45deg, #8b5cf6, #6d28d9);
}

.evento-item.evento-multidia .evento-horario {
    color: #030408;
    font-size: 0.8vw;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.evento-nota-dia {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Reducir animaciones para usuarios con preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .evento-item,
    .dia-columna,
    .calendario-prev,
    .calendario-next,
    .evento-item.en-directo {
        animation: none;
        transition: none;
    }
    
    .evento-item:hover,
    .dia-columna:hover {
        transform: none;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .calendario-contenido {
        gap: 12px;
        padding: 15px;
    }
    
    .dia-columna {
        min-width: 260px;
    }
    
    .evento-item {
        padding: 14px;
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .calendario-eventos {
        margin: 10px 0;
    }
    
    .calendario-navegacion {
        flex-wrap: wrap;
        padding: 15px;
        gap: 10px;
    }
    
    .calendario-contenido {
        flex-direction: column;
        padding: 10px;
        gap: 15px;
        height: 450px;
    }
    
    .dia-columna {
        min-width: 100%;
        margin-bottom: 10px;
        flex: 0 0 250px;
    }
    
    .calendario-fechas {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .fecha-header {
        min-width: 80px;
        padding: 12px 8px;
    }
    
    .fecha-header .dia-numero {
        font-size: 24px;
    }
    
    .fecha-header .dia-nombre {
        font-size: 13px;
    }
    
    .fecha-header .mes-nombre {
        font-size: 11px;
    }
    
    .evento-item {
        padding: 12px;
    }
    
    .evento-titulo {
        font-size: 15px;
    }
    
    .evento-tutor {
        font-size: 13px;
    }
    
    .evento-horario {
        font-size: 12px;
    }
    
    .calendario-header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .calendario-info {
        padding: 0;
        order: -1;
    }
    
    .calendario-titulo {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .calendario-nav {
        min-width: 100px;
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .dia-header {
        padding: 12px;
    }
    
    .dia-numero {
        font-size: 28px;
        min-width: 40px;
    }
    
    .eventos-container {
        padding: 12px;
        min-height: 250px;
    }
    
    .btn-acceder-evento,
    .evento-sin-enlace {
        padding: 10px 14px;
        font-size: 13px;
        width: 100%;
        justify-content: center;
    }
    
    .modal-inscripcion-overlay {
        padding: 10px;
        align-items: flex-start;
        padding-top: 5vh;
    }
    
    .modal-inscripcion-contenido {
        max-height: 95vh;
    }
    
    .modal-inscripcion-header {
        padding: 20px 20px 0;
        margin-bottom: 20px;
    }
    
    .modal-titulo {
        font-size: 18px;
    }
    
    .modal-inscripcion-body {
        padding: 0 20px 20px;
    }
    
    .evento-info-inscripcion {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .evento-info-titulo {
        font-size: 16px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-inscribirse,
    .btn-cancelar {
        width: 100%;
    }
    
    .calendario-btn-hoy {
        padding: 6px 16px;
        font-size: 13px;
    }
    
    .calendario-info {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .calendario-prev,
    .calendario-next {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .fecha-header {
        min-width: 70px;
        padding: 10px 6px;
    }
    
    .fecha-header .dia-numero {
        font-size: 20px;
    }
    
    .evento-item {
        padding: 10px;
    }
    
    .eventos-container {
        min-height: 300px;
        padding: 10px;
    }
    
    .dia-columna {
        flex: 0 0 100vw;
    }
    
    .calendario-contenido {
        height: 400px;
        margin-top: 15px;
    }
    
    .calendario-header {
        padding: 10px 15px;
    }
    
    .calendario-nav {
        min-width: 80px;
        padding: 8px 12px;
    }
    
    .nav-text {
        display: none;
    }
    
    .calendario-controles {
        flex-direction: column;
        gap: 8px;
    }
    
    .dias-selector {
        width: 100%;
        padding: 8px 12px;
    }
    
    .modal-inscripcion-overlay {
        padding: 5px;
        padding-top: 2vh;
    }
    
    .modal-inscripcion-header {
        padding: 15px 15px 0;
    }
    
    .modal-inscripcion-body {
        padding: 0 15px 15px;
    }
    
    .evento-info-inscripcion {
        padding: 12px;
    }
    
    .calendario-btn-hoy {
        width: 100%;
        justify-content: center;
    }
}

/* ===== MODO DE ALTO CONTRASTE ===== */
@media (prefers-contrast: high) {
    :root {
        --calendario-border: #000;
        --calendario-text: #000;
        --calendario-text-light: #333;
        --calendario-background: #fff;
    }
    
    .calendario-eventos.tema-oscuro {
        --calendario-border: #fff;
        --calendario-text: #fff;
        --calendario-text-light: #ccc;
        --calendario-background: #000;
    }
    
    .evento-item {
        border-width: 3px;
    }
    
    .evento-item::before {
        width: 6px;
    }
}

/* ===== ERROR HANDLING ===== */
.calendario-error {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 2px solid var(--calendario-warning-color);
    border-radius: var(--calendario-border-radius);
    color: #856404;
    margin: 20px 0;
}

.calendario-error::before {
    content: '⚠️';
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

.calendario-error button {
    background: var(--calendario-primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--calendario-border-radius);
    cursor: pointer;
    margin-top: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.calendario-error button:hover {
    background: var(--calendario-primary-dark);
    transform: translateY(-1px);
}

/* ===== MEJORAS ADICIONALES ===== */
.evento-item.hover-effect {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px var(--calendario-shadow);
    border-color: var(--calendario-primary-color);
}

.evento-item.hover-effect::before {
    width: 10px;
}

/* ===== TOOLTIPS (si se implementan en el futuro) ===== */
.calendario-tooltip {
    position: absolute;
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.calendario-tooltip.visible {
    opacity: 1;
}

.calendario-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0,0,0,0.9);
}

/* ===== PRINT STYLES ===== */
@media print {
    .calendario-eventos {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    .calendario-navegacion {
        display: none !important;
    }
    
    .calendario-contenido {
        display: block !important;
        overflow: visible !important;
    }
    
    .dia-columna {
        break-inside: avoid;
        margin-bottom: 20px;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
    
    .evento-item {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
    
    .evento-item::before {
        display: none !important;
    }
}



/* ===== AGREGAR AL FINAL DE calendario.css ===== */
/* ===== RESPONSIVE: PC + TABLET + MÓVIL ===== */

/* =====================================================
   TABLET - 1024px (769px - 1024px)
   3 columnas en grid
   ===================================================== */
@media (max-width: 1024px) and (min-width: 769px) {
    .calendario-eventos {
        margin: 15px 0;
    }
    
    /* Header horizontal con flechas */
    .calendario-header {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 15px 20px;
        gap: 15px;
    }
    
    .calendario-nav {
        width: 55px;
        height: 55px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        flex-shrink: 0;
    }
    
    .calendario-nav .nav-icon {
        font-size: 30px;
    }
    
    .calendario-nav .nav-text {
        display: none;
    }
    
    .calendario-info {
        flex: 1;
        padding: 0 15px;
        text-align: center;
    }
    
    .calendario-titulo {
        font-size: 20px;
    }
    
    .calendario-fecha-actual, .calendario-mes-actual {
        font-size: 20px;
        margin-bottom: 0;
    }
    
    /* ✅ GRID DE 3 COLUMNAS PARA TABLET */
    .calendario-contenido {
        padding: 15px;
        gap: 12px;
        height: auto;
        overflow: hidden;
    }
    
    .calendario-dias-container {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr); /* 3 columnas en tablet */
        grid-template-rows: 1fr;
        gap: 12px;
        width: 100%;
        transform: none !important;
    }
    
    /* Ocultar día 4 en adelante */
    .dia-columna:nth-child(n+4) {
        display: none !important;
    }
    
    .dia-columna {
        min-width: 100%;
        width: 100%;
    }
    
    .dia-header {
        padding: 15px;
    }
    
    .dia-numero {
        font-size: 26px;
    }
    
    .dia-nombre {
        font-size: 15px;
    }
    
    .mes-nombre {
        font-size: 12px;
    }
    
    .eventos-container {
        padding: 15px;
        min-height: 160px;
        gap: 20px;
    }
    
    .evento-item {
        padding: 14px;
        min-height: 150px;
    }
    
    .evento-titulo {
        font-size: 2.2vw !important;
    }
    
    .evento-tutor {
        font-size: 2vw !important;
    }
    
    .evento-horario {
        font-size: 1.8vw !important;
    }
    
    .btn-acceder-evento,
    .btn-inscribirse-evento {
        font-size: 1.8vw !important;
        padding: 10px 14px;
    }
}

/* =====================================================
   MÓVIL - 768px (≤768px)
   2 columnas en grid
   ===================================================== */
@media (max-width: 768px) {
    .calendario-eventos {
        margin: 10px 0;
    }
    
    /* Header horizontal con flechas */
    .calendario-header {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 15px;
        gap: 5px;
    }
    
    .calendario-nav {
        min-width: auto;
        width: 50px;
        height: 50px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        flex-shrink: 0;
    }
    
    .calendario-nav .nav-icon {
        font-size: 28px;
    }
    
    .calendario-nav .nav-text {
        display: none;
    }
    
    .calendario-info {
        flex: 1;
        padding: 0 10px;
        order: 0;
        text-align: center;
    }
    
    .calendario-titulo {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .calendario-fecha-actual, .calendario-mes-actual {
        font-size: 20px;
        margin-bottom: 0;
    }
    
    .calendario-btn-hoy {
        padding: 6px 16px;
        font-size: 13px;
        margin-top: 8px;
    }

    .nav-icon.material-symbols-outlined {
        font-size: 22px;
    }
    
    /* ✅ GRID DE 2 COLUMNAS PARA MÓVIL */
    .calendario-contenido {
        padding: 0px;
        gap: 0px;
        height: auto;
        overflow: hidden;
    }
    
    .calendario-dias-container {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en móvil */
        grid-template-rows: 1fr;
        gap: 10px;
        width: 100%;
        transform: none !important;
    }
    
    /* Ocultar día 3 en adelante */
    .dia-columna:nth-child(n+3) {
        display: none !important;
    }
    
    .dia-columna {
        min-width: 100%;
        width: 100%;
        margin-bottom: 0;
        flex: none;
    }
    
    .dia-header {
        padding: 12px;
    }
    
    .dia-fecha {
        gap: 8px;
    }
    
    .dia-numero {
        font-size: 24px;
    }
    
    .dia-nombre {
        font-size: 14px;
    }
    
    .mes-nombre {
        font-size: 11px;
    }
    
    .dia-badge {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    .eventos-container {
        padding: 12px;
        min-height: 175px;
        gap: 20px;
    }
    
    .evento-item {
        padding: 12px;
        height: auto;
        min-height: 140px;
    }
    
    .evento-titulo {
        font-size: 3.5vw !important;
        line-height: 1.3;
    }
    
    .evento-tutor {
        font-size: 3vw !important;
        margin: 6px 0;
    }
    
    .evento-horario {
        font-size: 2.8vw !important;
        margin: 6px 0;
    }
    
    .btn-acceder-evento,
    .btn-inscribirse-evento {
        padding: 8px 12px;
        font-size: 2.8vw !important;
        width: 100%;
    }
    
    .no-eventos {
        min-height: 160px;
        padding: 20px 10px;
        font-size: 14px;
    }

    .evento-pasado-badge {
        font-size: 2.5vw;
    }
    
    /* Modal */
    .modal-inscripcion-overlay {
        padding: 10px;
        align-items: flex-start;
        padding-top: 5vh;
    }
    
    .modal-inscripcion-contenido {
        max-height: 95vh;
    }
    
    .modal-inscripcion-header {
        padding: 20px 20px 0;
        margin-bottom: 20px;
    }
    
    .modal-titulo {
        font-size: 18px;
    }
    
    .modal-inscripcion-body {
        padding: 0 20px 20px;
    }
    
    .evento-info-inscripcion {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .evento-info-titulo {
        font-size: 16px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-inscribirse,
    .btn-cancelar {
        width: 100%;
    }
}

/* =====================================================
   MÓVIL PEQUEÑO - 480px
   ===================================================== */
@media (max-width: 480px) {
    .calendario-nav {
        width: 45px;
        height: 45px;
    }
    
    .calendario-nav .nav-icon {
        font-size: 24px;
    }
    
    .calendario-info {
        padding: 0 5px;
    }
    
    .calendario-fecha-actual, .calendario-mes-actual {
        font-size: 18px;
    }
    
    /* Mantener 2 columnas */
    .calendario-dias-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .dia-header {
        padding: 10px 8px;
        height: 60px;
    }
    
    .dia-numero {
        font-size: 25px;
    }
    
    .dia-nombre {
        font-size: 15px;
    }
    
    .mes-nombre {
        font-size: 10px;
    }
    
    .eventos-container {
        padding: 10px;
        min-height: 130px;
        gap: 15px;
    }
    
    .evento-item {
        padding: 10px;
        min-height: 160px;
    }
    
    .evento-titulo {
        font-size: 4vw !important;
    }
    
    .evento-tutor {
        font-size: 3.5vw !important;
    }
    
    .evento-horario {
        font-size: 3.2vw !important;
    }
    
    .btn-acceder-evento,
    .btn-inscribirse-evento {
        font-size: 3.2vw !important;
        padding: 6px 10px;
    }
    
    .modal-inscripcion-overlay {
        padding: 5px;
        padding-top: 2vh;
    }
    
    .modal-inscripcion-header {
        padding: 15px 15px 0;
    }
    
    .modal-inscripcion-body {
        padding: 0 15px 15px;
    }
    
    .evento-info-inscripcion {
        padding: 12px;
    }
    
    .calendario-btn-hoy {
        width: fit-content;
        justify-content: center;
        padding: 8px 12px;
    }
}

/* =====================================================
   PANTALLAS MUY PEQUEÑAS - 360px (opcional)
   1 columna
   ===================================================== */
@media (max-width: 360px) {
    .calendario-dias-container {
        grid-template-columns: 1fr;
    }
    
    .dia-columna:nth-child(2) {
        display: block !important;
    }
}

/* =====================================================
   LANDSCAPE MÓVIL/TABLET
   ===================================================== */
@media (max-width: 1024px) and (orientation: landscape) {
    .calendario-dias-container {
        min-height: auto;
    }
    
    .eventos-container {
        min-height: 120px;
    }
}

/* Tablet landscape específico */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
    .calendario-dias-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =====================================================
   CLASES CSS PERSONALIZADAS EN TABLET/MÓVIL
   ===================================================== */
@media (max-width: 1024px) {
    .evento_soporte .evento-titulo,
    .pmf_soporte .evento-titulo,
    .mef2_soporte .evento-titulo,
    .sesiones_tutores .evento-titulo,
    .sesiones_celia .evento-titulo,
    .club_soporte .evento-titulo,
    .club_celia .evento-titulo,
    .club_tutores .evento-titulo,
    .evento_online .evento-titulo,
    .evento_presencial .evento-titulo,
    .evento_onboarding .evento-titulo,
    .evento_masterclass .evento-titulo,
    .club_planificacion .evento-titulo {
        font-size: 2.5vw !important;
    }
    
    .sesiones_tutores .evento-tutor,
    .sesiones_celia .evento-tutor,
    .club_tutores .evento-tutor,
    .club_celia .evento-tutor {
        font-size: 2.2vw !important;
    }
}

@media (max-width: 768px) {
    .evento_soporte .evento-titulo,
    .pmf_soporte .evento-titulo,
    .mef2_soporte .evento-titulo,
    .sesiones_tutores .evento-titulo,
    .sesiones_celia .evento-titulo,
    .club_soporte .evento-titulo,
    .club_celia .evento-titulo,
    .club_tutores .evento-titulo,
    .evento_online .evento-titulo,
    .evento_presencial .evento-titulo,
    .evento_onboarding .evento-titulo,
    .evento_masterclass .evento-titulo,
    .club_planificacion .evento-titulo {
        font-size: 3.5vw !important;
    }
    
    .sesiones_tutores .evento-tutor,
    .sesiones_celia .evento-tutor,
    .club_tutores .evento-tutor,
    .club_celia .evento-tutor {
        font-size: 3vw !important;
    }
}

/* =====================================================
   BADGES ADMIN
   ===================================================== */
@media (max-width: 1024px) {
    .admin-badge {
        font-size: 10px;
        padding: 3px 6px;
    }
}

/* =====================================================
   ANIMACIONES SUAVES
   ===================================================== */
@media (max-width: 1024px) {
    .calendario-eventos * {
        transition-duration: 0.2s !important;
    }
}

/* =====================================================
   BOTÓN EDITAR - SOLO ADMINISTRADORES (VISTA SEMANAL)
   ===================================================== */

.btn-editar-evento {
    position: absolute;
    bottom: 0;
    right: 0;
    /* display: inline-flex; */
    padding: 1px 10px;
    background: linear-gradient(135deg, #ff9800, #f57c00) !important;
    color: white;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
    z-index: 10;
    pointer-events: none;
    border-top-left-radius: 16px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

/* Mostrar botón al hacer hover en el evento */
.evento-item:hover .btn-editar-evento {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Hover del botón editar */
/* .btn-editar-evento:hover {
    background: rgba(37, 99, 235, 1);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.4);
} */

/* Active state */
/* .btn-editar-evento:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
} */

/* Icono del botón */
.btn-editar-evento .icono-editar {
    font-size: 12px;
    line-height: 1;
}

/* Texto del botón */
.btn-editar-evento .texto-editar {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.btn-editar-evento:hover {
    color: #030408;
}


/* Asegurar que el evento tenga position relative */
/* .evento-item {
    position: relative;
} */

/* En eventos en curso, ajustar color del botón */
/* .evento-item.en-directo .btn-editar-evento {
    background: rgba(34, 197, 94, 0.9);
} */

/* .evento-item.en-directo .btn-editar-evento:hover {
    background: rgba(22, 163, 74, 1);
    box-shadow: 0 3px 8px rgba(34, 197, 94, 0.4);
} */

/* En eventos finalizados, color gris */
/* .evento-item.finalizado .btn-editar-evento {
    background: rgba(107, 114, 128, 0.9);
} */

/* .evento-item.finalizado .btn-editar-evento:hover {
    background: rgba(75, 85, 99, 1);
    box-shadow: 0 3px 8px rgba(107, 114, 128, 0.4);
} */

/* =====================================================
   RESPONSIVE: BOTÓN EDITAR
   ===================================================== */

@media (max-width: 1024px) {
    .btn-editar-evento {
        padding: 3px 6px;
        font-size: 10px;
        bottom: 6px;
        right: 6px;
    }
    
    .btn-editar-evento .icono-editar {
        font-size: 11px;
    }
    
    .btn-editar-evento .texto-editar {
        font-size: 9px;
    }
}

@media (max-width: 768px) {
    /* En móvil, mostrar siempre el botón (sin hover) */
    .evento-item .btn-editar-evento {
        opacity: 0.8;
        transform: translateY(0);
        pointer-events: auto;
    }
    
    .evento-item:hover .btn-editar-evento,
    .btn-editar-evento:hover {
        opacity: 1;
    }
    
    .btn-editar-evento {
        padding: 4px 6px;
        font-size: 9px;
        bottom: 4px;
        right: 4px;
    }
    
    .btn-editar-evento .icono-editar {
        font-size: 10px;
    }
    
    .btn-editar-evento .texto-editar {
        font-size: 8px;
    }
}

@media (max-width: 480px) {
    /* En móviles pequeños, solo mostrar icono */
    .btn-editar-evento .texto-editar {
        display: none;
    }
    
    .btn-editar-evento {
        padding: 4px;
        gap: 0;
        width: 24px;
        height: 24px;
        justify-content: center;
        bottom: 4px;
        right: 4px;
    }
    
    .btn-editar-evento .icono-editar {
        font-size: 12px;
    }
}

/* =====================================================
   AJUSTES PARA EVENTOS CON BOTÓN EDITAR
   ===================================================== */

/* Ajustar acciones del evento para no solapar con botón editar */
.evento-acciones {
    margin-bottom: 4px;
}

/* Prevenir que el botón interfiera con clics en el evento */
.btn-editar-evento {
    cursor: pointer;
}

/* Focus state para accesibilidad */
.btn-editar-evento:focus {
    outline: 0px;
    outline-offset: 0px;
}

/* Animación suave de aparición */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.evento-item:hover .btn-editar-evento {
    animation: fadeInUp 0.2s ease-out;
}

/* Optimización de rendimiento */
/* .btn-editar-evento {
    will-change: transform, opacity;
} */

/* Para eventos con clases CSS personalizadas, asegurar visibilidad */
.evento-item[class*="evento_"] .btn-editar-evento,
.evento-item[class*="club_"] .btn-editar-evento,
.evento-item[class*="pmf_"] .btn-editar-evento,
.evento-item[class*="mef2_"] .btn-editar-evento,
.evento-item[class*="sesiones_"] .btn-editar-evento {
    background: rgba(59, 130, 246, 0.95);
}

/* Reducir animaciones si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
    .btn-editar-evento,
    .evento-item:hover .btn-editar-evento {
        animation: none;
        transition: none;
    }
}








/* =====================================================
   VISTA MENSUAL
   ===================================================== */

/* Contenedor de vista mensual */
.calendario-vista-mensual {
    display: none; /* Oculto por defecto */
}

.calendario-vista-mensual.activa {
    display: block;
}

/* Selector de vista */
.calendario-selector-vista {
    display: flex;
    gap: 10px;
    /* justify-content: center; */
    margin-bottom: 15px;
    margin-top: 15px;
}

.btn-vista {
    background: transparent;
    color: #030408;
    border: 1px solid #030408;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-vista:hover {
    background: transparent;
    transform: translateY(-1px);
    color: #030408;
    border-color: #030408;
}

.btn-vista.activo {
    background: #030408;
    color: white;
    border-color: #030408;
}

.btn-vista.activo:hover {
    background: #030408;
    color: white;
    border-color: #030408;
}

/* Grid del calendario mensual */
.calendario-mes-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0px;
    background: transparent;
    border-radius: 12px;
    /* border: 1px solid #030408; */
    /* overflow: hidden; */
    backdrop-filter: blur(10px);
    margin-top: 20px;
}

/* Headers de días */
.mes-grid-header {
    background: transparent;
    color: #030408;
    padding: 12px;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: Wix;
}

/* Celda de día */
.mes-grid-dia {
    background: transparent;
    min-height: 120px;
    max-height: none; /* Permitir crecer sin límite */
    padding: 8px;
    position: relative;
    transition: all 0.3s ease;
    overflow-y: auto; /* Scroll si es necesario */
    border: 2px solid #c5c5c5;
    border-right: none;
    border-bottom: none;
}

.mes-grid-dia:nth-child(7n){
    border-right: 2px solid #c5c5c5;

}

.mes-grid-dia:nth-last-child(-n + 7) {
    border-bottom: 2px solid #c5c5c5;
}

/* Hacer el scroll más discreto */
.mes-grid-dia::-webkit-scrollbar {
    width: 4px;
}

.mes-grid-dia::-webkit-scrollbar-track {
    background: transparent;
}

.mes-grid-dia::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 2px;
}

.mes-grid-dia::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.4);
}

/* .mes-grid-dia:hover {
    background: #f8f9fa;
    box-shadow: inset 0 0 5px 0px #030408;
    z-index: 1;
} */

.mes-grid-dia.otro-mes {
    background: transparent;
    border-color: #c5c5c5;
    opacity: 0.3;
}

.mes-grid-dia.hoy {
    background: #E4F227;
}

.mes-grid-dia.hoy .dia-numero-mensual {
    background: #030408;
    color: #E4F227;
}

/* Número del día */
.dia-numero-mensual {
    display: inline-block;
    width: 30px;
    height: 28px;
    text-align: center;
    line-height: 28px;
    border-radius: 50%;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 10px;
    color: #030408;
}

/* Eventos en vista mensual */
.mes-eventos-lista {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: none; /* Sin límite de altura */
}

.mes-evento-item {
    background: #E0E0E0;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5em;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    /* text-overflow: ellipsis;
    white-space: nowrap; */
    min-height: fit-content;
}

.mes-evento-item:hover {
    transform: translateX(2px);
    /* box-shadow: 0 2px 8px rgba(0,0,0,0.15); */
    z-index: 2;
}

/* Clases CSS personalizadas en vista mensual */
.mes-evento-item.evento_soporte {
    background: #E0E0E0;
    color: #030408;
}

.mes-evento-item.pmf_soporte {
    background: #15321F;
    color: #F0F0F0;
}

.mes-evento-item.mef2_soporte {
    background: #B2B2B2;
    color: #030408;
}

.mes-evento-item.evento_online,
.mes-evento-item.evento_presencial,
.mes-evento-item.evento_onboarding {
    background: #000000;
    color: #E4F227;
}

.mes-evento-item.sesiones_tutores,
.mes-evento-item.sesiones_celia {
    background: #E0E0E0;
    color: #030408;
}

.mes-evento-item.evento_masterclass {
    background: #030408;
    color: #F0F0F0;
}

.mes-evento-item.club_soporte,
.mes-evento-item.club_planificacion {
    background: #04172D;
    color: #EEEEEE;
}

.mes-evento-item.club_celia {
    background: #04172D;
    background-image: url(https://acceso.laacademiadeinversion.com/wp-content/uploads/2025/10/Fondo-Miar-Celia.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: right;
    color: #EEEEEE;
}

.mes-evento-item.club_tutores {
    background: #04172D;
    background-image: url(https://acceso.laacademiadeinversion.com/wp-content/uploads/2025/10/Fondo-MIAR-calendario.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: right;
    color: #EEEEEE;
}

/* Modal de día completo */
.modal-dia-completo {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.modal-dia-completo.activo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-dia-contenido {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
}

.modal-dia-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #E8E8E8;
}

.modal-dia-titulo {
    font-size: 24px;
    font-weight: 700;
    color: #030408;
}

.modal-dia-cerrar {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #666;
    transition: all 0.2s ease;
}

.modal-dia-cerrar:hover {
    color: #030408;
    transform: scale(1.1);
}

.modal-dia-eventos {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-evento-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #030408;
    transition: all 0.2s ease;
}

.modal-evento-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateX(4px);
}

.modal-evento-titulo {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #030408;
}

.modal-evento-info {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

/* Responsive vista mensual */
@media (max-width: 1024px) {
    .calendario-mes-grid {
        gap: 0;
    }
    
    .mes-grid-dia {
        min-height: 100px;
        padding: 6px;
    }
    
    .mes-evento-item {
        font-size: 10px;
        padding: 4px 6px;
    }
}

@media (max-width: 768px) {
    .mes-grid-header {
        padding: 8px 4px;
        font-size: 11px;
    }
    
    .mes-grid-dia {
        min-height: 80px;
        padding: 4px;
        max-height: 150px; /* Límite en móvil para evitar celdas muy largas */
    }
    
    .dia-numero {
        width: 24px;
        height: 24px;
        line-height: 24px;
        font-size: 12px;
    }
    
    .mes-evento-item {
        font-size: 9px;
        padding: 3px 5px;
    }
}

@media (max-width: 480px) {
    .mes-grid-header {
        font-size: 10px;
        padding: 6px 2px;
    }
    
    .mes-grid-dia {
        min-height: 70px;
        padding: 3px;
    }
    
    .mes-evento-item {
        font-size: 8px;
        padding: 2px 4px;
    }
}

/* =====================================================
   ESTILOS PARA EVENTOS CLICABLES EN VISTA MENSUAL
   ===================================================== */

/* Contenedor del evento con flexbox */
.mes-evento-contenido {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
}

.mes-evento-texto {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    font-size: 0.6vw;
    text-transform: uppercase;
}

/* Flecha de ángulo - centrada verticalmente a la derecha */
.mes-evento-flecha {
    flex-shrink: 0;
    /* width: 20px; */
    height: 20px;
    display: flex;
    /* align-items: center; */
    justify-content: center;
    font-size: 24px;
    /* font-weight: bold; */
    opacity: 0.6;
    transition: opacity 0.2s ease;
    /* line-height: 1; */
}

/* Estado clicable */
.mes-evento-clicable {
    cursor: pointer;
    user-select: none;
}

.mes-evento-clicable:hover {
    transform: translateX(2px);
}

.mes-evento-clicable:hover .mes-evento-flecha {
    opacity: 1;
}

/* Eventos NO clicables */
.mes-evento-item:not(.mes-evento-clicable) {
    cursor: default;
}

/* Colores de flecha según fondo */
.mes-evento-clicable.pmf_soporte .mes-evento-flecha,
.mes-evento-clicable.club_soporte .mes-evento-flecha,
.mes-evento-clicable.club_planificacion .mes-evento-flecha,
.mes-evento-clicable.club_celia .mes-evento-flecha,
.mes-evento-clicable.club_tutores .mes-evento-flecha,
.mes-evento-clicable.evento_online .mes-evento-flecha,
.mes-evento-clicable.evento_presencial .mes-evento-flecha,
.mes-evento-clicable.evento_onboarding .mes-evento-flecha,
.mes-evento-clicable.evento_masterclass .mes-evento-flecha {
    color: #F0F0F0;
}

.mes-evento-clicable.evento_soporte .mes-evento-flecha,
.mes-evento-clicable.mef2_soporte .mes-evento-flecha,
.mes-evento-clicable.sesiones_tutores .mes-evento-flecha,
.mes-evento-clicable.sesiones_celia .mes-evento-flecha {
    color: #030408;
}

/* Responsive */
@media (max-width: 1024px) {
    .mes-evento-flecha {
        font-size: 20px;
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 768px) {
    .mes-evento-contenido {
        gap: 4px;
    }
    
    .mes-evento-flecha {
        font-size: 18px;
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .mes-evento-flecha {
        font-size: 16px;
        width: 14px;
        height: 14px;
    }
}

/* =====================================================
   EVENTOS EN CURSO - VISTA MENSUAL
   ===================================================== */

/* Evento en curso con latido suave */
.mes-evento-en-curso {
    animation: latidoMensualSuave 2s ease-in-out infinite;
    box-shadow: 0 0 12px rgba(220, 38, 38, 0.4) !important;
    position: relative;
    z-index: 2;
}

/* Animación de latido suave para vista mensual */
@keyframes latidoMensualSuave {
    0%, 100% {
        box-shadow: 0 0 8px rgba(220, 38, 38, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 16px rgba(220, 38, 38, 0.6);
        transform: scale(1.02);
    }
}

/* Hover en evento en curso */
.mes-evento-en-curso:hover {
    animation: latidoMensualSuave 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.7) !important;
}

/* Si es clicable Y está en curso */
.mes-evento-clicable.mes-evento-en-curso:hover {
    transform: translateX(2px) scale(1.02);
}

/* Ajustar z-index para que el latido no se corte */
.mes-eventos-lista {
    position: relative;
    z-index: 1;
}

.mes-grid-dia {
    position: relative;
    overflow: visible; /* Permitir que la sombra se vea fuera */
}

/* =====================================================
   RESPONSIVE: EVENTOS EN CURSO MENSUAL
   ===================================================== */

@media (max-width: 768px) {
    @keyframes latidoMensualSuave {
        0%, 100% {
            box-shadow: 0 0 6px rgba(220, 38, 38, 0.3);
            transform: scale(1);
        }
        50% {
            box-shadow: 0 0 12px rgba(220, 38, 38, 0.6);
            transform: scale(1.015);
        }
    }
    
    .mes-evento-en-curso {
        box-shadow: 0 0 8px rgba(220, 38, 38, 0.4) !important;
    }
}

@media (max-width: 480px) {
    @keyframes latidoMensualSuave {
        0%, 100% {
            box-shadow: 0 0 4px rgba(220, 38, 38, 0.3);
            transform: scale(1);
        }
        50% {
            box-shadow: 0 0 8px rgba(220, 38, 38, 0.6);
            transform: scale(1.01);
        }
    }
}

/* Prevenir que el scroll se vea afectado por el latido */
.calendario-mes-contenido {
    overflow-x: hidden;
    overflow-y: auto;
}

/* Optimización de rendimiento */
.mes-evento-en-curso {
    will-change: transform, box-shadow;
}

/* Reducir animaciones si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
    .mes-evento-en-curso {
        animation: none;
        box-shadow: 0 0 12px rgba(220, 38, 38, 0.5) !important;
    }
    
    .mes-evento-en-curso:hover {
        box-shadow: 0 0 16px rgba(220, 38, 38, 0.7) !important;
    }
}

/* ===== ESTADO DE PUBLICACIÓN ===== */
.estado-publicacion {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.estado-publicacion.estado-publicado {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.estado-publicacion.estado-borrador {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
    border: 1px solid #ffeaa7;
    animation: pulso-borrador 2s infinite;
}

@keyframes pulso-borrador {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ===== ESTADO TEMPORAL (ya existente, mantener) ===== */
.estado-evento {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.estado-pendiente { background: #fff3cd; color: #856404; }
.estado-en-curso { background: #d4edda; color: #155724; }
.estado-finalizado { background: #f8d7da; color: #721c24; }


/* =====================================================
   EVENTOS EN BORRADOR - SOLO VISIBLE PARA ADMINS
   ===================================================== */

/* Clase base para evento borrador */
.evento-item.evento-borrador {
    position: relative;
    overflow: hidden;
}

/* Animación de pulso suave */
@keyframes pulsoBorrador {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

/* Badge de administrador para borrador */
.admin-badge.admin-borrador {
    background: linear-gradient(135deg, #ff9800, #f57c00) !important;
    color: #FFFFFF;
    font-weight: 700;
    position: absolute;
    top: 0%;
    bottom: 85%;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 16px;
    border-bottom-left-radius: 0;
}

/* @keyframes pulsoBadgeBorrador {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(255, 193, 7, 0.4);
    }
    50% {
        box-shadow: 0 4px 16px rgba(255, 193, 7, 0.6);
    }
} */

/* Asegurar que el contenido del evento tenga z-index menor */
.evento-item.evento-borrador .evento-titulo,
.evento-item.evento-borrador .evento-tutor,
.evento-item.evento-borrador .evento-horario,
.evento-item.evento-borrador .evento-acciones {
    position: relative;
    z-index: 1;
}

/* Efecto hover especial para borradores */
.evento-item.evento-borrador:hover {
    border-color: #ffc107;
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.3);
}

.evento-item.evento-borrador:hover .evento-borrador-overlay {
    background: 
        repeating-linear-gradient(
            45deg,
            rgba(255, 193, 7, 0.15),
            rgba(255, 193, 7, 0.15) 10px,
            rgba(255, 193, 7, 0.25) 10px,
            rgba(255, 193, 7, 0.25) 20px
        ),
        linear-gradient(
            to bottom,
            rgba(255, 193, 7, 0.4),
            rgba(255, 193, 7, 0.15)
        );
}

/* =====================================================
   VISTA MENSUAL - EVENTOS BORRADOR
   ===================================================== */

.mes-evento-item.evento-borrador {
    position: relative;
    border: 2px dashed #ffc107 !important;
    background: 
        repeating-linear-gradient(
            45deg,
            rgba(255, 193, 7, 0.1),
            rgba(255, 193, 7, 0.1) 5px,
            rgba(255, 193, 7, 0.2) 5px,
            rgba(255, 193, 7, 0.2) 10px
        ) !important;
}

.mes-evento-item.evento-borrador::before {
    content: '📝';
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 10px;
    opacity: 0.8;
}

.mes-evento-item.evento-borrador .mes-evento-texto {
    opacity: 0.85;
}

/* =====================================================
   RESPONSIVE - BORRADORES
   ===================================================== */

@media (max-width: 768px) {
    .evento-borrador-texto {
        font-size: 10px;
        padding: 6px 12px;
    }
    
    .evento-borrador-overlay {
        border-width: 1px;
    }
}

@media (max-width: 480px) {
    .evento-borrador-texto {
        font-size: 9px;
        padding: 4px 10px;
        letter-spacing: 0.5px;
    }
}

/* =====================================================
   REDUCIR MOVIMIENTO SI EL USUARIO LO PREFIERE
   ===================================================== */

@media (prefers-reduced-motion: reduce) {
    .evento-borrador-texto,
    .admin-badge.admin-borrador {
        animation: none;
    }
}


/* =====================================================
   AVISO DE ZONA HORARIA
   ===================================================== */

.timezone-notice {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-left: 4px solid #2196f3;
    padding: 12px 16px;
    margin: 15px 0;
    border-radius: 6px;
    font-size: 13px;
    color: #0d47a1;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInDown 0.5s ease-out;
}

.timezone-notice strong {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

.timezone-notice small {
    opacity: 0.8;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .timezone-notice {
        font-size: 12px;
        padding: 10px 12px;
    }
}