  
  .popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }
  
  .popup-content {
    background-color: #ffffff;
/*     padding: 20px; */
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(38, 0, 255, 0.3);
    width: 90%;
    max-width: 800px; /* Cambiado a 90% para ocupar casi toda la pantalla */
    max-height: 90%; /* Cambiado a 90% para ocupar casi toda la pantalla */
    overflow: auto; /* Agregado para habilitar el desplazamiento si el contenido es muy largo */
    text-align: center;
/*     white-space: pre-line; */
    word-wrap: break-word;
  }
  
  /* button {
  
    
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;

    

  }


#closePopup {

 position: absolute !important;
 top: 20px !important;
 right: 20px !important;


} */
 


.close-btn {
            /* position: absolute;
            top: 16px;
            right: 16px; */
          
            width: 32px;
            height: 32px;
            background: transparent;
            border: none;
            cursor: pointer;
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 6px;
            transition: all 0.2s ease;
            /* Área de clic ampliada según mejores prácticas (mínimo 44x44px) */
            min-width: 44px;
            min-height: 44px;
            margin-left: auto;
            margin-right: 10px;
        }

        .close-btn:hover {
            background: #f5cbcb;
            transform: scale(1.1);
        }

        .close-btn:active {
            transform: scale(0.95);
            background: #e5e7eb;
        }

        /* .close-btn:focus {
            outline: 2px solid #a7201f;
            outline-offset: 2px;
        } */

        /* Icono X con líneas */
        .close-icon {
            position: relative;
            width: 40px;
            height: 40px;
            text-align: right;
        }

        .close-icon::before,
        .close-icon::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 20px;
            height: 2px;
            background: #1f2937;
            transition: background 0.2s ease;
        }

        .close-icon::before {
            transform: translate(-50%, -50%) rotate(45deg);
        }

        .close-icon::after {
            transform: translate(-50%, -50%) rotate(-45deg);
        }

        .close-btn:hover .close-icon::before,
        .close-btn:hover .close-icon::after {
            background:#9d2449;
        }


    












  #messageImage {
    max-width: 100%;
    height: auto;
    margin-top: 10px;
  }
  .image-container {
    display: none;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
  }
 