/* ==========================================================
   MODAL REUTILIZABLE
========================================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-container {
    background-color: #fff;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    padding: 40px 32px;
    box-sizing: border-box;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background-color: #f0f0f0;
    color: #000;
}

.modal-content {
    width: 100%;
}

.modal-title {
    margin: 0 0 24px;
    font-family: "Br Black", sans-serif;
    font-size: 28px;
    color: #000;
    line-height: 1.3;
    padding-right: 40px;
}

.modal-body {
    font-family: "Br Light", sans-serif;
    font-size: 16px;
    color: #333;
    line-height: 1.7;
}

.modal-body p {
    margin: 0 0 16px;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

/* Estilos para botones del footer */
.footer-item {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    width: 100%;
    text-align: left;
}

.footer-item:hover {
    opacity: 0.8;
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 768px) {
    .modal-container {
        padding: 32px 24px;
        max-width: 500px;
    }

    .modal-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .modal-body {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .modal-container {
        padding: 28px 20px;
        border-radius: 12px;
    }

    .modal-title {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .modal-body {
        font-size: 14px;
    }

    .modal-close {
        top: 12px;
        right: 12px;
    }
}