/* Estilos base del popup */
.wisepopup {
    display: none; /* Ocultar por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

/* Contenedor del popup */
.wisepopup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh; /* Altura máxima del 90% de la ventana */
    overflow-y: auto; /* Scroll si el contenido es muy largo */
    text-align: center;
}

/* Botón de cierre */
.wisepopup-close {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 34px;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    background-color: #000000;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wisepopup-close:hover {
    color: #ffffff;
    background-color: #0033a1;
}

/* Contenedor de la imagen y el texto */
.wisepopup-container {
    display: flex;
    flex-wrap: wrap; /* Permitir que los elementos se apilen en móviles */
    align-items: center;
    justify-content: center;
}

/* Estilos para la imagen */
.wisepopup-image-left {
    width: 70%;
    margin-bottom: 10px;
    text-align: center;
}

.wisepopup-image-left img {
    max-width: 100%; /* La imagen se ajusta al ancho del contenedor */
    height: auto; /* Altura automática para mantener la proporción */
    display: inline-block;
}

/* Estilos para el texto */
.wisepopup-text {
    width: 100%; /* Ocupar el 100% del ancho en móviles */
    text-align: center;
    padding: 0 10px; /* Espacio interno para el texto */
}

.wisepopup-text h2 {
    font-weight: 600;
    font-size: 21px;
    margin: 22px 0;
}

.wisepopup-text p {
    font-size: 20px; /* Tamaño de fuente más pequeño en móviles */
    color: #000000;
    line-height: 1.5;
    margin: 20px 0; /* Margen reducido en móviles */
    text-align: center;
}

.wisepopup-button {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 25px; /* Padding reducido en móviles */
    background: #0033A1;
    color: white;
    text-decoration: none;
    font-size: 20px; /* Tamaño de fuente más pequeño en móviles */
    font-weight: bold;
}

.wisepopup-button:hover {
    color: #ffffff;
    background-color: #001b57;
}

/* Estilos para pantallas más grandes (tablets y escritorio) */
@media (min-width: 768px) {
    .wisepopup-container {
        flex-wrap: nowrap; /* No apilar los elementos en pantallas grandes */
    }

    .wisepopup-image-left {
        width: 40%; /* Ocupar el 40% del ancho en pantallas grandes */
        margin-bottom: 0; /* Eliminar el margen inferior en pantallas grandes */
    }

    .wisepopup-text {
        width: 58%; /* Ocupar el 55% del ancho en pantallas grandes */
        text-align: left; /* Alinear el texto a la izquierda en pantallas grandes */
        padding: 0 20px; /* Espacio interno para el texto */
    }

    .wisepopup-text h2 {
        font-size: 36px; /* Tamaño de fuente más grande en pantallas grandes */
        margin: 45px 0; /* Margen original en pantallas grandes */
        font-weight: 700;
    }

    .wisepopup-text p {
        font-size: 30px; /* Tamaño de fuente más grande en pantallas grandes */
        margin: 30px 0; /* Margen original en pantallas grandes */
    }

    .wisepopup-button {
        padding: 20px 30px; /* Padding original en pantallas grandes */
        font-size: 26px; /* Tamaño de fuente más grande en pantallas grandes */
        display: flex;
        flex-wrap: nowrap;
        /* align-content: center; */
        justify-content: center;
        width: 65%;
        margin: 0px 80px;
        align-items: center;
    }

    /* Botón de cierre */
    .wisepopup-close {
        width: 75px;
        height: 55px;
    }
    
    .wisepopup-image-left img {
        max-width: 100%; /* La imagen se ajusta al ancho del contenedor */
    }
}