/* General */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333333;
    background-color: #f8f9fa;
    line-height: 1.6;
    margin: 0;
}

a {
    text-decoration: none;
    color: #0056b3;
    transition: color 0.3s ease;
}

a:hover {
    color: #003366;
    text-decoration: underline;
}

/* Header: Banner superior */
header {
    background: linear-gradient(to right, #003366, #0056b3, #007bff);
    color: white;
    text-align: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: -10%;
    width: 120%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: skewY(-5deg);
}

header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

header p {
    font-size: 1.3rem;
    margin-top: 10px;
}

/* Barra de navegación general */
.navbar {
    background-color: #1f1f1f; /* Fondo oscuro */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Sutil sombra para darle profundidad */
}

.navbar-brand {
    font-size: 1.5rem; /* Tamaño de fuente más visible */
    font-weight: bold;
    color: #ffffff; /* Color blanco puro */
    transition: color 0.3s ease-in-out;
}

.navbar-brand:hover {
    color: #00d9ff; /* Un color moderno para hover */
}

.nav-link {
    font-size: 1rem;
    color: #e0e0e0; /* Texto claro */
    margin-left: 1rem;
    transition: color 0.3s ease-in-out;
}

.nav-link:hover, .nav-link:focus {
    color: #00d9ff; /* Color en hover: un azul claro llamativo */
}

.navbar-toggler {
    border: none;
    outline: none;
    transition: box-shadow 0.2s;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.5); /* Sombra para enfoque accesible */
}

.navbar-toggler-icon {
    filter: invert(1); /* Asegura que el ícono se mantenga visible en fondo oscuro */
}

/* Contenedor principal */
.container {
    margin-top: 30px;
}

/* Widgets laterales y contenido principal */
aside, main {
    margin-bottom: 20px;
}

/* Botones */
button[type="submit"], .btn-primary {
    background-color: #0056b3;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover, .btn-primary:hover {
    background-color: #003366;
}

.btn-secondary {
    background-color: #0056b3;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.btn-secondary:hover {
    background-color: #003366;
}

/* Tarjetas de contenido */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.card h5 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #0056b3;
}

.card a {
    font-weight: bold;
    color: #007bff;
}

.card a:hover {
    color: #0056b3;
}

/* Footer */
footer {
    background: #003366;
    color: white;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

footer a {
    color: #ffffff;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #f8f9fa;
    text-decoration: underline;
}

/* Responsividad */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }

    header p {
        font-size: 1.1rem;
    }
}

/* Sección "Acerca de" */
.about-section {
    background-color: #ffffff;
    padding: 50px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.about-section h2 {
    font-size: 2.5rem;
    color: #003366;
    margin-bottom: 20px;
    text-align: center;
}

.about-section h3 {
    font-size: 1.8rem;
    color: #0056b3;
    margin-top: 30px;
}

.about-section p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
    text-align: justify;
    margin-bottom: 20px;
}

/* Miembros del equipo */
.team-members {
    display: flex;
    justify-content: space-around;
    margin-top: 40px;
    gap: 20px;
}

.team-member {
    text-align: center;
    width: 200px;
}

.team-member img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    margin-bottom: 15px;
}

.team-member h4 {
    font-size: 1.2rem;
    color: #003366;
    font-weight: 700;
}

.team-member p {
    font-size: 1rem;
    color: #666;
}

/* Sección de Contacto */
.contact-section {
    background-color: #ffffff;
    padding: 50px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-section h2 {
    font-size: 2.5rem;
    color: #003366;
    margin-bottom: 20px;
    text-align: center;
}

.contact-section p {
    font-size: 1.2rem;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

.contact-section form .form-control {
    border-radius: 8px;
    box-shadow: none;
    border: 1px solid #ccc;
}

.contact-section form .form-control:focus {
    border-color: #0056b3;
    box-shadow: 0 0 5px rgba(0, 86, 179, 0.2);
}

.contact-section .btn-primary {
    width: 100%;
}

.post-list {
    background-color: #ffffff;
    padding: 50px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Detalle del Post */
.post-detail {
    background-color: #ffffff;
    padding: 50px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.post-title {
    font-size: 2.5rem;
    color: #003366;
    margin-bottom: 20px;
}

.post-date {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
}

.post-content {
    font-size: 1.2rem;
    color: #333;
    line-height: 1.8;
    text-align: justify;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content img {
    max-width: 100%;
    margin: 20px 0;
}

/* Últimos Posts */
.card {
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

.latest-posts  {
    background-color: #ffffff;
    padding: 50px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.latest-posts .card:hover {
    transform: scale(1.05);
}

.section-title {
    font-size: 2rem;
    color: #003366;
    margin-bottom: 20px;
    text-align: center;
}

.home-container {
    padding-top: 0rem;
    padding-bottom: 2rem;
    padding-left: 2rem;
    padding-right: 2rem;
}