body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

/* Título principal */
h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 24px;
    text-align: center;
}

/* Contenedor del formulario */
form {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    max-width: 500px;
    width: 100%;
    box-sizing: border-box;
}

/* Etiquetas del formulario */
label {
    display: block;
    margin-bottom: 6px;
    margin-top: 15px;
    font-weight: 600;
    font-size: 14px;
    color: #34495e;
}

/* Estilo para todas las entradas de texto, números, fechas y selectores */
input[type="text"],
input[type="number"],
input[type="date"],
input[type="email"],
input[type="password"],
input[type="datetime-local"],
select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fafafa;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Efecto Focus al hacer clic en los campos */
input:focus, select:focus {
    border-color: #3498db;
    background-color: #fff;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

/* Estilo específico para el selector de color */
input[type="color"] {
    width: 100%;
    height: 40px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    background: none;
    padding: 0;
}

/* Tratamiento especial para la sección de Términos y Condiciones */
label:has(input[type="text"]) {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
    font-weight: normal;
    font-size: 14px;
}

/* Ajusta el input de texto dentro de los términos para que parezca un checkbox (solución visual) */
label input[type="text"] {
    width: 20px;
    height: 20px;
    padding: 0;
    text-align: center;
    border-radius: 4px;
}

/* Estilo para los botones */
button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.2s ease;
}

/* Botón Guardar (Submit) */
button[type="submit"] {
    background-color: #2ecc71;
    color: white;
}

button[type="submit"]:hover {
    background-color: #27ae60;
}

/* Botón Limpiar (Reset) */
button[type="reset"] {
    background-color: #e74c3c;
    color: white;
}

button[type="reset"]:hover {
    background-color: #c0392b;
}