[x-cloak] {
    display: none !important;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #1f1f1f;
}

textarea {
    resize: none;
}

/* =====================================================
   SCROLL DEL ÁREA DE CONSULTA INICIO
   ===================================================== */

#newMessage {
    scrollbar-width: thin;
    scrollbar-color: #9ca3af transparent;
}

/* Chrome / Edge / Firefox moderno */

#newMessage::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

#newMessage::-webkit-scrollbar-track {
    background: transparent;
}

#newMessage::-webkit-scrollbar-thumb {
    background: #c4c7cc;
    border-radius: 999px;
}

#newMessage::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

#newMessage::-webkit-scrollbar-corner {
    background: transparent;
}
/* =====================================================
   FIN SCROLL DEL ÁREA DE CONSULTA INICIO
   ===================================================== */

.fade {
    animation: fade .5s ease;
}

@keyframes fade {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   MODAL
========================================================= */

#modalOverlay {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 24px;

    background: rgba(0, 0, 0, .20);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}


#modalOverlay.modal-visible {
    display: flex;
}


#modalBox {
    width: 100%;
    max-width: 520px;

    background: #ffffff;

    border-radius: 30px;

    box-shadow:
        0 30px 70px rgba(0, 0, 0, .20);

    overflow: hidden;
}


#modalContent {
    padding: 38px;
}


/* Pregunta / afirmación */

#modalMessage {
    text-align: center;

    color: #1f2937;

    font-size: 27px;
    line-height: 1.25;

    font-weight: 600;

    padding: 0 10px;
}


/* Botones */

#modalButtons {
    display: flex;

    width: 100%;

    gap: 14px;

    margin-top: 30px;
}


.modal-button {
    flex: 1;

    border: 0;

    border-radius: 18px;

    padding: 16px 20px;

    font-size: 17px;

    font-weight: 600;

    cursor: pointer;

    transition:
        transform .15s ease,
        opacity .15s ease;
}


.modal-button:hover {
    transform: translateY(-1px);
}


.modal-button:active {
    transform: translateY(0);
}


.modal-button-secondary {
    background: #f1f2f4;
    color: #374151;
}


.modal-button-primary {
    background: #000000;
    color: #ffffff;
}


/* Publicidad:
   SIEMPRE es el ÚLTIMO elemento del modal */

#modalAd {
    display: none;

    width: 100%;

    margin-top: 30px;
    padding-top: 24px;

    border-top: 1px solid #e5e7eb;
}


#modalAd.modal-ad-visible {
    display: block;
}


#modalAdSlot {
    width: 300px;
    height: 250px;

    margin-left: auto;
    margin-right: auto;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #f8fafc;

    border: 1px solid #e5e7eb;

    border-radius: 16px;

    overflow: hidden;
}


.modal-ad-label {
    text-align: center;

    color: #9ca3af;

    font-size: 12px;

    line-height: 1.8;
}


@media (max-width: 480px) {

    #modalContent {
        padding: 28px 20px;
    }

    #modalMessage {
        font-size: 23px;
    }

    #modalButtons {
        gap: 10px;
    }

    .modal-button {
        padding: 14px 12px;
    }

    #modalAdSlot {
        width: 300px;
        height: 250px;

        max-width: 100%;
    }
}
