/* Estilos generales */
.modal-solicitud {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
    animation: fadeIn 0.4s ease-in-out;
    overflow-y: auto;
}

.modal-content-solicitud {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    position: relative;
    animation: slideDown 0.3s ease;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    z-index: 100000; /* Z-index alto para el modal */
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from { transform: translateY(-40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Botón cerrar */
.cerrar-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 26px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
}

.cerrar-modal:hover {
    color: #252424;
}

/* Formulario */
#solicitudAsesoriaForm input,
#solicitudAsesoriaForm textarea,
#solicitudAsesoriaForm select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

#solicitudAsesoriaForm input:focus,
#solicitudAsesoriaForm textarea:focus,
#solicitudAsesoriaForm select:focus {
    border-color: #cc0000;
    outline: none;
}

#solicitudAsesoriaForm textarea {
    min-height: 100px;
    resize: vertical;
}

#solicitudAsesoriaForm button {
    background-color: none;
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

#solicitudAsesoriaForm button:hover {
    background-color: none;
    color: #eb1f0f;
}

/* Captcha */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.captcha-container label {
    font-weight: bold;
    white-space: nowrap;
}

.captcha-container input {
    width: auto;
    min-width: 100px;
}

/* Botón principal */
.boton-asesoria {
    background-color: none;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    display: inline-block;
}

.boton-asesoria:hover {
    background-color: none;
}

/* Responsive */
@media (max-width: 600px) {
    .modal-content-solicitud {
        margin: 10% auto;
        padding: 20px;
    }
    
    .captcha-container {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Asegurar que SweetAlert esté sobre el modal */
.swal2-container {
    z-index: 100001 !important;
}