.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 46, 91, 0.88);
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 2000;
    padding: 16px;
    box-sizing: border-box;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.modal-content {
    background: #fff;
    padding: 32px 36px;
    width: 100%;
    max-width: 520px;
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}
.modal-close {
    position: absolute;
    top: 16px;
    right: 24px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #000;
    line-height: 1;
}
.modal-content h3 {
    color: #000;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
}
.modal-form {
    display: grid;
    gap: 14px;
}
.modal-form input,
.modal-form textarea {
    padding: 14px 16px;
    border: 1px solid #E6E7EB;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}
.modal-form textarea {
    height: 90px;
    resize: none;
}
.btn-submit {
    background-color: #000;
    color: #fff;
    padding: 16px;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    box-sizing: border-box;
}
.btn-submit:hover {
    background-color: #D4AF37;
    color: #000;
}
.msg-exito {
    background-color: #d4edda;
    color: #155724;
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 16px;
    text-align: center;
    border: 1px solid #c3e6cb;
}
.msg-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 16px;
    text-align: center;
    border: 1px solid #f5c6cb;
}

/* Responsive móvil */
@media (max-width: 480px) {
    .modal-content {
        padding: 24px 20px;
        max-height: 95vh;
    }
    .modal-content h3 {
        font-size: 1.3rem;
        margin-bottom: 16px;
    }
    .modal-form {
        gap: 12px;
    }
    .modal-form textarea {
        height: 80px;
    }
}
