/* Estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background: #e9ecef;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.contenedor-formulario {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 600px;
}

h1 {
    color: #1B4F72;
    text-align: center;
    margin-bottom: 2rem;
}

.grupo-form {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 600;
}

input, select, textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus, select:focus, textarea:focus {
    border-color: #1B4F72;
    outline: none;
}

.grupo-radio {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

button {
    background: #1B4F72;
    color: white;
    padding: 1rem;
    width: 100%;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #1864ab;
}

.grupo-tarjeta {
    display: none;
    margin-top: 1rem;
    border-top: 2px solid #dee2e6;
    padding-top: 1rem;
}
/* Añadir a los estilos existentes */

.seccion-form {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.seccion-form h3 {
    color: #1B4F72;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.descripcion {
    text-align: center;
    margin-bottom: 2rem;
    color: #6c757d;
}

.mensaje-resultado {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 5px;
    display: none;
    transition: opacity 0.5s;
}

.mensaje-resultado.exito {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.mensaje-resultado.error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.mensaje-resultado.cargando {
    background-color: #e2f3fd;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* Mejoras para dispositivos móviles */
@media (max-width: 768px) {
    .contenedor-formulario {
        padding: 1.5rem;
    }
    
    .grupo-radio {
        flex-direction: column;
        gap: 0.5rem;
    }
}