/* Estilos base del modal */
.custom-popup {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    display: flex;
}

.popup-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    width: 650px;
    max-width: 90%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

/* Botón de cerrar */
.close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 22px;
    cursor: pointer;
    z-index: 10;
    width: 30px;
    height: 30px;
    line-height: 28px;
    text-align: center;
    border-radius: 50%;
    background-color: #ffffff;
    color: #ff5000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.close-button:hover {
    transform: scale(1.1);
}

/* Título y subtítulo */
.popup-title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 5px;
    font-weight: bold;
    color: #ff5000;
    font-family: inherit;
}

.popup-subtitle {
    font-size: 18px;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-family: inherit;
}

/* Mensaje principal */
.popup-content .message {
    font-size: 16px;
    text-align: center;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.popup-content .message::after {
    content: "";
    display: block;
    width: 40%;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
    position: absolute;
    bottom: 0;
    left: 30%;
}

/* Formulario */
form.form_actualizacion {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

form.form_actualizacion .action_form {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 25px;
}

/* Campos del formulario */
.form-field {
    width: 48%;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.field-full-width {
    width: 100%;
}

.form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.form-field input[type="text"],
.form-field input[type="date"],
.form-field select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #f5f5f5;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-field textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #f5f5f5;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    outline: none;
    border-color: #ff5000;
    box-shadow: 0 0 0 2px rgba(255, 80, 0, 0.1);
}

/* Estilos para checkbox */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    accent-color: #ff5000;
}

.checkbox-label {
    font-size: 14px;
    line-height: 1.4;
}

/* Estilos para radio buttons */
.radio-wrapper {
    display: flex;
    flex-direction: column;
    margin-top: 5px;
}

.radio-label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    accent-color: #ff5000;
}

/* Botón de guardar */
.button-primary {
    background-color: #ff5000;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.button-primary:hover {
    background-color: #e74700;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .popup-content {
        padding: 20px;
    }
    
    .popup-title {
        font-size: 22px;
    }
    
    .popup-subtitle {
        font-size: 16px;
    }
    
    .form-field {
        width: 100%;
    }
    
    .button-primary {
        width: 100%;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.custom-popup {
    animation: fadeIn 0.3s ease;
}

/* Estilos para campos con errores */
.form-field.has-error input,
.form-field.has-error textarea,
.form-field.has-error select {
    border-color: #ff3b30;
    background-color: rgba(255, 59, 48, 0.05);
}

.form-field.has-error::after {
    content: "Este campo es obligatorio";
    display: block;
    color: #ff3b30;
    font-size: 12px;
    margin-top: 5px;
}