/* Panel de conversación */
#panel-conversation {
    width: 320px;
    height: auto;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 20px;
    display: none;
}

#panel-conversation::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 48%;
    margin-left: -5px;
    border-width: 10px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.95) transparent transparent transparent;
}

#panel-conversation.show {
    display: block;
    opacity: 1;
    transform: scale(1);
}

#panel-conversation h1 {
    text-align: center;
    font-size: 18px;
    margin-bottom: 10px;
}

#panel-conversation p {
    font-size: 14px;
    color: #333;
    text-align: center;
}
/* Fin */

/* Panel informacion estatico */
#panel-information {
    width: 320px;
    height: auto;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 10px;
    display: none;
    /* Para que solo se muestre en hover */
}

#panel-information::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 48%;
    margin-left: -5px;
    border-width: 10px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.95) transparent transparent transparent;
}

#panel-information.show {
    display: block;
    opacity: 1;
    transform: scale(1);
}

#panel-information h1 {
    text-align: center;
    font-size: 18px;
    margin-bottom: 10px;
}

#panel-information p {
    font-size: 14px;
    color: #333;
    text-align: center;
}
/* Fin */

/* Panel de error */
@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutToLeft {
    0% {
        transform: translateX(0);
        opacity: 1;
    }

    100% {
        transform: translateX(-100%);
        opacity: 0;
    }
}

.error-panel {
    position: fixed;
    top: 10px;
    left: 10px;
    background-color: rgba(255, 0, 0, 0.879);
    color: white;
    padding: 2px 10px;
    border-radius: 100px;
    z-index: 9999;
    max-width: 270px;
    display: none;
    opacity: 0;
    font-size: 15px;
}

.error-panel.show {
    display: block;
    animation: slideInFromLeft 0.5s ease forwards;
}

.error-panel.hide {
    animation: slideOutToLeft 0.5s ease forwards;
}

/* Contenedor para la imagen y el texto */
.error-panel-content {
    display: flex;
    align-items: center; /* Centra verticalmente la imagen y el texto */
}

.error-panel-icon {
    width: 35%; /* Ajusta el tamaño de la imagen según sea necesario */
    height: 35%;
    margin-right: 10px; /* Espacio entre la imagen y el texto */
    border-radius: 50%;
}

.error-panel-text {
    display: flex;
    flex-direction: column; /* Alinea el título y el mensaje en columna */
}

/* MODALES */
/* Modal del hotspot para mostrar paginas web, archivos, etc. */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Color negro con 50% de opacidad */
    z-index: 1040; /* Un nivel por debajo del modal */
    display: none;
    transition: opacity 0.5s ease;
  }
  
  /* Mostrar el overlay cuando el modal está activo */
  .modal-overlay.show {
    display: block;
  }
#infoModalLeft {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 95%;
    height: 95%;
    background: linear-gradient(to bottom, #ffffff, #c4c4c4);
    z-index: 1050;
    padding: 1px;
    overflow-y: auto;
    opacity: 0;
    transform: translate(-50%, -50%);
    /* Centra el modal */
    transition: opacity 0.5s ease, transform 0.5s ease;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-header-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #e5e5e5;
    background-color: white;
}

.modal-title {
    margin: 0;
}

#modal-content-container {
    width: 100%;
    height: 90%;
    padding-bottom: 1px;
}

#infoModalLeft.show {
    opacity: 1;
    transform: translateY(0);
}

#panel.hideConversation{
    display: none !important;
}

/* Animaciones individuales para el contenido del modal */
#infoModalLeft .modal-header-info,
#infoModalLeft .modal-body {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

#infoModalLeft.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    /* Mantiene el centro después de mostrar */
}

#infoModalLeft.show .modal-header-info {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

#infoModalLeft.show .modal-body {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.closeInformationModal {
    background-color: white;
    color: red;
    border: none;
    font-size: 25px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

/* Estilo del botón cuando el cursor pasa sobre él */
.closeInformationModal:hover {
    color: rgb(255, 73, 73);
    transform: scale(1.5); /* Agranda el botón al 120% de su tamaño original */
}
/* Adaptacion a dispositivos moviles */


/* Panel ayuda */
.panelAyudas {
    background-image: var(--bg-linear);
    color: var(--color);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: none;
    flex-direction: column; /* Asegura que el contenido del panel se apile verticalmente */
    justify-content: center; /* Centra el contenido verticalmente */
    align-items: center; /* Centra el contenido horizontalmente */
    position: absolute; /* Asegura que el panel pueda ser posicionado con left/top */
    left: 290px;
    top: 350px;
    transform: translate(-50%, -50%);
    height: 90%;
    width: 550px;
}

.panelAyudas img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}


/* Adaptación a dispositivos móviles */
@media (max-width: 767px) {
    .error-panel {
        font-size: 10px;
        padding: 2px 5px;
        max-width: 250px;
    }

    .panelAyudas {
        left: 50%; /* Centrar horizontalmente */
        top: 50%; /* Centrar verticalmente */
        transform: translate(-50%, -50%);
        width: 90%; /* Ajustar el ancho a un porcentaje de la pantalla */
        height: auto; /* Dejar que el contenido determine la altura */
        padding: 20px; /* Añadir un poco más de padding para móviles */
    }

    .panelAyudas img {
        width: 100%; /* Mantener la imagen dentro del panel */
        height: auto; /* Ajustar la altura de la imagen automáticamente */
    }
}

/* Estilos adicionales para pantallas muy pequeñas */
@media (max-width: 480px) {
    .error-panel {
        font-size: 10px;
        padding: 2px 5px;
        max-width: 250px;
    }

    .panelAyudas {
        left: 155px; /* Centrar horizontalmente */
        top: 200px; /* Centrar verticalmente */
        transform: translate(-50%, -50%);
        width: 300px; /* Ajustar el ancho a un porcentaje de la pantalla */
        height: auto; /* Dejar que el contenido determine la altura */
        padding: 20px; /* Añadir un poco más de padding para móviles */
        padding: 5px;
    }

    .panelAyudas img {
        width: 100%; /* Mantener la imagen dentro del panel */
        height: auto; /* Ajustar la altura de la imagen automáticamente */
    }
}