/* Estilos para comentarios de formulario con mejor visibilidad */
.form-text,
.text-muted,
.text-help,
.help-block {
    color: #ff6600 !important; /* Naranja para mejor contraste */
    font-weight: 500 !important;
}

/* Estilos más específicos para form-text en contextos comunes */
.form-group .form-text,
.form-control + .form-text,
.form-floating + .form-text,
.form-check + .form-text {
    color: #ff6600 !important;
    font-weight: 500 !important;
}

/* --- RESET BÁSICO Y FUENTES --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4; /* Un gris muy claro de fondo */
    color: #333; /* Color de texto principal */
    line-height: 1.6;
}

/* --- ESTILOS DEL HEADER Y NAVEGACIÓN --- */
header.navbar {
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.4s ease-in-out, padding 0.4s ease-in-out;
    border-bottom: 2px solid #DAA520; /* Borde dorado */
}

header.navbar.scrolled {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
    width: 90%;
    max-width: 1000px; /* Ancho máximo para el contenido */
    margin: 0 auto; /* Centrar el nav */
    display: flex; /* Usamos Flexbox para alinear los elementos */
    justify-content: space-between; /* Espacio entre el logo y los enlaces */
    align-items: center;
}

nav h1 {
    margin: 0;
    font-size: 1.5rem;
}

nav h1 a {
    color: #ffffff;
    text-decoration: none; /* Quitar el subrayado de los enlaces */
}

nav ul {
    margin: 0;
    padding: 0;
    list-style: none; /* Quitar los puntos de la lista */
    display: flex;
}

nav ul li {
    margin-left: 20px; /* Espacio entre los elementos del menú */
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s; /* Transición suave para el hover */
}

nav ul li a:hover {
    background-color: #00408a; /* Un azul un poco más oscuro al pasar el ratón */
}

/* --- ESTILOS DEL CONTENIDO PRINCIPAL Y FOOTER --- */
main {
    width: 90%;
    max-width: 1000px;
    margin: 2rem auto; /* Espacio arriba/abajo y centrado */
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

footer {
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
    background-color: #333;
    color: #aaa;
    font-size: 0.9rem;
    border-top: 2px solid #DAA520; /* Borde dorado */
}

/* ... (resto de tu CSS) ... */

.footer-con-fondo {
    /* 1. Imagen de fondo y superposición de color */
    background-image: 
        linear-gradient(rgba(0, 51, 153, 0.8), rgba(0, 51, 153, 0.8)), 
        url('/static/core/images/paper.webp');
}