/* Estilo del botón flotante */
#botonCalendario {
    z-index: 400;
    position: fixed;
    top: 90px;
    right: 15px;
    width: 45px;
    height: 45px;
    background-image: var(--bg-linear);
    color: var(--color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    overflow: hidden; /* Para ocultar partes de la imagen que sobresalgan del borde del botón */
}

#botonCalendario img {
    width: 35px;
    height: 35px;
    transition: transform 0.3s;
}

#modalProgramasConten{
    height: 95%
}

/* Estilo del botón flotante cuando el panel está abierto */
#botonCalendario.active {
    transform: scale(1.3);
}

/* Efecto hover del botón flotante */
#botonCalendario:hover {
    transform: scale(1.3);
}


/* Estilo del panel de mensaje */
#hoverInfoPanel {
    z-index: 101;
    position: fixed;
    top: 90px;
    right: 50px;
    width: 365px;
    height: 45px;
    text-align: center;
    background-image: var(--bg-linear);
    color: var(--color);
    padding: 5px;
    border-radius: 5px;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(50px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* Estilo del panel desplegable */
#calendarioPanel {
    position: fixed;
    z-index: 100; /* z-index para los panels laterales derechos */
    top: 127px;
    right: 15px;
    width: 400px;
    height: 450px;
    background-image: var(--bg-linear);
    color: var(--color); /* Color del texto */
    padding: 0; /* Sin relleno para ajustar los márgenes internos */
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column; /* Para dividir el panel en secciones */
}

.panel-header h2 {
    margin: 0;
    font-size: 24px;
}

/* Estilo del cuerpo del panel */
.panel-body {
    flex: 1; /* Toma el espacio restante */
    padding: 20px;
    overflow-y: auto; /* Añade barra de desplazamiento si el contenido excede el tamaño */
}

/* Mostrar el panel al hacer clic en el botón flotante */
#calendarioPanel.active {
    opacity: 1;
    transform: scaleY(1);
}

.event-card {
    text-align: center;
    cursor: pointer;
    padding: 10px;
    padding-left: 5px;
    margin-top: 7px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    color: #000000;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    position: relative; /* Necesario para z-index */
    z-index: 2; /* Más alto para que quede por encima de la descripción */
}

.event-card:hover {
    background-color: #f0f0f0;
}

.descripcion-container {
    text-align: center;
    padding: 10px;
    background-color: #f0f0f0;
    color: #000000;
    margin-top: -10px; /* Ajusta el margen para pegarla visualmente */
    margin-bottom: 10px;
    border-radius: 0px 0px 10px 10px;
    position: relative; /* Necesario para z-index */
    z-index: 1; /* Debajo del .event-card */
}

.descripcion-container p {
    margin: 0;
    padding: 0 0 10px;
}


.btn-link {
    background-color: #000000;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    width: 80%;
    transition: transform 0.3s ease, background-color 0.3s ease;
    /* Asegura que el botón mantenga su lugar al agrandarse */
    display: inline-block;
    margin-bottom: 10px;
    text-decoration: none;
}

.btn-link:hover {
    background-color: #2b2b2b;
    transform: scale(1.1);  /* Aumenta el tamaño del botón en un 10% */
    text-decoration: none;
    color: white;
}


/* Media queries para dispositivos móviles */
@media (max-width: 768px) {
    #botonCalendario {
        top: 85px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    #botonCalendario img{
        top: 20px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    #hoverInfoPanel {
        top: 85px;
        right: 45px;
        width: 278px;
        height: 35px;
        font-size: 14px;
    }
    
    #calendarioPanel {
        top: 110px;
        right: 15px;
        width: 308px;
        height: 350px;
        padding-top: 5px;
    }
    
    .panel-header h2 {
        font-size: 18px;
    }
    
    .panel-body {
        padding: 5px;
    }

    #botonCalendario img {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    #botonCalendario {
        top: 85px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    #botonCalendario img{
        top: 20px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    #hoverInfoPanel {
        top: 85px;
        right: 45px;
        width: 278px;
        height: 35px;
        font-size: 14px;
    }
    
    #calendarioPanel {
        top: 110px;
        right: 15px;
        width: 308px;
        height: 350px;
        padding-top: 5px;
    }
    
    .panel-header h2 {
        font-size: 18px;
    }
    
    .panel-body {
        padding: 5px;
    }

    #botonVolverEvents {
        padding: 5px 5px;
        width: 100%;
        text-align: center;
    }

    .event-card{
        padding: 8px;
        font-size: 12px;
    }

    #botonCalendario img {
        width: 30px;
        height: 30px;
    }
}