/* ============================================
   MODAL DE POLÍTICAS DE PRIVACIDAD DE DATOS
   Archivo: css/modal-politicas.css
   ============================================ */

/* FONDO OVERLAY */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 30, 50, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* CONTENIDO PRINCIPAL DEL MODAL */
.modal-content {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

/* HEADER DEL MODAL */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px 18px;
    border-bottom: 1px solid #e8edf2;
    background: linear-gradient(135deg, #f0f7fb, #e8f4f8);
}

.modal-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #1a5f7a, #2b7a9e);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal-icon svg {
    width: 22px;
    height: 22px;
    fill: #fff;
}

.modal-header-texto h2 {
    font-size: 1.15rem;
    color: #1a3a5c;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
}

.modal-header-texto p {
    font-size: 0.75rem;
    color: #6b7c93;
    margin-top: 2px;
}

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(26, 58, 92, 0.08);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.modal-close:hover {
    background: rgba(26, 58, 92, 0.15);
    transform: rotate(90deg);
}

.modal-close svg {
    width: 18px;
    height: 18px;
    stroke: #4a5568;
}

/* BODY DEL MODAL - CONTENIDO SCROLLEABLE */
.modal-body {
    padding: 28px;
    overflow-y: auto;
    flex: 1;
    line-height: 1.75;
    font-size: 0.88rem;
    color: #444;
    font-family: 'Montserrat', sans-serif;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #c4cdd8;
    border-radius: 3px;
}

.modal-body h3 {
    font-size: 1rem;
    color: #1a3a5c;
    margin: 24px 0 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body h3 .section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #1a5f7a, #2b7a9e);
    color: #fff;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.modal-body p {
    margin-bottom: 12px;
}

.modal-body ul {
    margin: 8px 0 16px 20px;
}

.modal-body ul li {
    margin-bottom: 6px;
    padding-left: 4px;
}

.modal-body ul li::marker {
    color: #2b7a9e;
}

/* FOOTER DEL MODAL */
.modal-footer {
    padding: 0 28px 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    position: sticky;
    bottom: 0;
    z-index: 10;
    background: transparent;
    border-top: none;
    pointer-events: none;
}

.btn-modal {
    padding: 10px 24px;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    border: none;
}

.modal-footer .btn-modal {
    pointer-events: auto;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.btn-modal.btn-aceptar {
    background: linear-gradient(135deg, #1a5f7a, #2b7a9e);
    color: #fff;
}

.btn-modal.btn-aceptar:hover {
    background: linear-gradient(135deg, #154d63, #236a8a);
    box-shadow: 0 4px 14px rgba(43, 122, 158, 0.3);
}

.btn-modal.btn-cerrar-modal {
    background: #e8edf2;
    color: #4a5568;
}

.btn-modal.btn-cerrar-modal:hover {
    background: #d1d9e6;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .modal-content {
        max-height: 90vh;
    }

    .modal-header {
        padding: 18px 20px 14px;
    }

    .modal-header-texto h2 {
        font-size: 1rem;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-footer {
        padding: 14px 20px;
        flex-direction: column;
    }

    .btn-modal {
        width: 100%;
        text-align: center;
    }
}