/* Fondo blanco suave */
html,
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    margin: 0;
    padding: 0;
    height: 100%;
}

/* Contenedor general para sticky footer */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Encabezado */
header {
    background-color: #1F3C6E;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-bottom: 0;
    /* Eliminado margen inferior */
}

header h1 {
    font-family: 'Georgia', serif;
    font-size: 2.5rem;
    margin: 0;
}

header p {
    font-size: 1rem;
    font-weight: 500;
}

header .greeting {
    margin-top: 1rem;
    /* baja el saludo un poco */
    font-size: 1rem;
    /* ajusta el tamaño si quieres */
    text-align: center;
    /* ya heredaba, pero reforzamos */
}


/* Barra de navegación */
nav.navbar {
    background: #1F3C6E;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: -1.2rem;
}

/* Marca (título de navegación) */
nav.navbar .navbar-brand {
    color: #FFFFFF !important;
    font-size: 1.1rem;
    font-weight: 600;
}

nav.navbar .navbar-brand:hover {
    color: #BFD8FF !important;
}

/* Contenedor de enlaces */
nav.navbar .navbar-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Estilo de cada enlace */
nav.navbar .nav-link {
    color: #FFFFFF !important;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 15px 25px;
    border-radius: 5px;
    text-decoration: none !important;
    transition: background 0.3s, transform 0.2s;
    background-color: transparent !important;
}

/* Hover */
nav.navbar .nav-link:hover {
    background: #3F6A94 !important;
    transform: scale(1.05);
    color: #FFFFFF !important;
}

/* Activo y visible */
.navbar-nav .nav-link.active,
.navbar-nav .nav-link.show {
    color: #FFFFFF !important;
}

/* Íconos de Bootstrap */
.navbar .nav-link i {
    color: #FFFFFF !important;
    margin-right: 5px;
}


/* Main contenido */
main {
    flex: 1;
}

/* Contacto */
.contacto-section {
    background-color: #fff;
    padding: 2rem 0;
}

.contacto-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.contacto-item {
    font-size: 2rem;
    color: #1F3C6E;
    transition: transform 0.3s ease, color 0.3s ease;
    opacity: 1;
    margin: 0 50px 50px 50px !important;
    padding: 10px;
}

.contacto-item:hover {
    color: #4A90E2;
    transform: scale(1.2);
}

/* Descripción elegante */
.descripcion-elegante {
    font-family: 'Georgia', serif;
    font-size: 1.3rem;
    color: #333;
    line-height: 2;
    letter-spacing: 0.3px;
    text-align: justify;
    font-weight: 400;
    text-shadow: 0.2px 0.2px 0 #ccc;
}


/* Enlace “Cerrar sesión” */
.logout-link {
    color: #ffffff !important;
    font-weight: 700;
    text-decoration: none;
}

.logout-link:hover {
    text-decoration: underline;
}

/* Subtítulos más llamativos */
.section-subtitle {
    font-family: 'Georgia', serif;
    font-weight: 700;
    font-size: 2rem;
    color: #1F3C6E;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    position: relative;
}

.section-subtitle::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #4A90E2;
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/* Footer sticky abajo */
footer {
    background-color: #1F3C6E;
    color: white;
    text-align: center;
    padding: 15px 0;
    margin-top: auto;
    width: 100%;
}

footer p {
    font-size: 1rem;
}