.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    max-width: 90%;
    width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.7);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.modal-title {
    margin: 0;
    font-size: 1.5rem;
    color: var(--color-negro-carbon);
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    color: #666;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--color-primario);
}

.modal-body {
    color: #333;
}

.modal-body h3 {
    color: var(--color-primario);
    margin-bottom: 1rem;
}

.modal-body h4 {
    color: var(--color-secundario);
    margin: 1.5rem 0 0.5rem;
}

.modal-body p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.modal-body ul {
    list-style-type: none;
    padding-left: 0;
    margin: 1rem 0;
}

.modal-body ul li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.modal-body ul li:before {
    content: '•';
    color: var(--color-primario);
    position: absolute;
    left: 0;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }

    .modal-title {
        font-size: 1.25rem;
    }

    .modal-body {
        font-size: 0.9rem;
    }
}

/* Estilos de accesibilidad */
.modal-content:focus {
    outline: 2px solid var(--color-primario);
    outline-offset: -2px;
}

/* Animación de entrada */
@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.7);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animación de salida */
@keyframes modalOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.7);
    }
}