﻿.header {
    background-color: #00559D;
    text-align: center;
    color: #fff;
    border: 2px solid #00559D;
    border-radius: 50px 1px;
    width: 80%;
    margin: 20px auto;
    padding: 10px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 24px;
    font-weight: bold;
}

.seccion-formulario {
    background-color: #f5f5f5;
    border: 2px solid #f5f5f5;
    padding: 25px;
    margin: 20px auto;
    width: 80%;
    border-radius: 50px 1px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.boton-enviar {
    text-align: right;
    width: 80%;
    margin: 0 auto 30px auto;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
    font-weight: bold;
    padding: 10px 25px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-success:hover {
    background-color: #218838;
}

.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.form-group label {
    width: 200px;
    font-weight: bold;
    margin-right: 15px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.form-group label.required::after {
    content: " *";
    color: red;
    font-weight: bold;
}

.form-group .form-control {
    flex: 1;
}

.text-danger {
    margin-left: 215px;
    display: block;
    font-size: 0.9em;
}

form label {
    font-weight: bold;
}

form h4 {
    font-weight: bold;
}

/* ===== Ajuste responsive para móvil ===== */
@media (max-width: 768px) {

    .header,
    .seccion-formulario,
    .boton-enviar {
        width: 95%;
    }

    .form-group {
        flex-direction: column;
        align-items: stretch;
    }

        .form-group label {
            width: 100%;
            justify-content: flex-start;
            margin-right: 0;
            margin-bottom: 6px;
        }

        .form-group .form-control {
            width: 100%;
            flex: none;
        }

    .text-danger {
        margin-left: 0;
    }
}