/*==================================================================
[ MODALES INFORMATIVOS DEL FOOTER ]
==================================================================*/

.footer-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.footer-modal.is-open {
    visibility: visible;
    opacity: 1;
}

.footer-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    cursor: pointer;
}

.footer-modal__content {
    position: relative;
    z-index: 1;
    background: #ffffff;
    border-radius: 14px;
    padding: 35px 30px 30px;
    max-width: 520px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(20px) scale(0.96);
    transition: transform 0.35s ease;
}

.footer-modal.is-open .footer-modal__content {
    transform: translateY(0) scale(1);
}

/* Botón cerrar */
.footer-modal__close {
    position: absolute;
    top: 12px;
    right: 15px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.footer-modal__close:hover {
    background: #f2f2f2;
    color: #333;
}

/* Título */
.footer-modal__title {
    font-family: Poppins-SemiBold, Poppins, sans-serif;
    font-size: 22px;
    line-height: 1.3;
    color: var(--color-texto, #333);
    margin-bottom: 20px;
    padding-right: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-modal__title i {
    color: var(--color-primario, #717fe0);
    font-size: 20px;
}

/* Cuerpo */
.footer-modal__body {
    font-family: Poppins-Regular, Poppins, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-texto-suave, #555);
}

.footer-modal__body p {
    margin-bottom: 14px;
}

.footer-modal__body p:last-child {
    margin-bottom: 0;
}

.footer-modal__body strong {
    color: var(--color-texto, #333);
}

/* Aviso resaltado */
.footer-modal__nota {
    margin-top: 18px;
    padding: 12px 16px;
    background: #fff8e1;
    border-left: 4px solid #f9ba48;
    border-radius: 6px;
    font-size: 13px;
    color: #7a5a00;
}

/* Acordeón de preguntas frecuentes */
.footer-modal__faq {
    border-bottom: 1px solid var(--color-borde, #e6e6e6);
    padding: 12px 0;
}

.footer-modal__faq:first-of-type {
    border-top: 1px solid var(--color-borde, #e6e6e6);
    margin-top: 5px;
}

.footer-modal__faq summary {
    font-family: Poppins-Medium, Poppins, sans-serif;
    font-size: 15px;
    color: var(--color-texto, #333);
    cursor: pointer;
    list-style: none;
    padding-right: 25px;
    position: relative;
    transition: color 0.2s ease;
}

.footer-modal__faq summary:hover {
    color: var(--color-primario, #717fe0);
}

.footer-modal__faq summary::-webkit-details-marker {
    display: none;
}

.footer-modal__faq summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 20px;
    font-weight: 300;
    color: var(--color-primario, #717fe0);
    transition: transform 0.25s ease;
}

.footer-modal__faq[open] summary::after {
    content: '−';
    transform: rotate(0deg);
}

.footer-modal__faq p {
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 14px;
    color: var(--color-texto-suave, #666);
}

/* Responsive */
@media (max-width: 575px) {
    .footer-modal {
        padding: 10px;
    }
    .footer-modal__content {
        padding: 30px 20px 25px;
        max-height: 90vh;
    }
    .footer-modal__title {
        font-size: 19px;
    }
    .footer-modal__body {
        font-size: 14px;
    }
}