/* Variables principales */
:root {
    --primary-color: #00BCD4; /* Azul turquesa */
    --secondary-color: #004D54; /* Azul petróleo */
    --background-color: #ECEFF1; /* Gris claro */
    --text-color: #616161; /* Gris oscuro */
    --hover-color: #00796B; /* Azul petróleo oscuro */
    --card-bg: #FFFFFF; /* Blanco */
}

/* Estilo general */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Menú de Navegación */
.top-bar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 1rem 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center; /* Centra verticalmente */
    justify-content: center; /* Centra horizontalmente el contenido */
    height: 60px; /* Define el alto de la barra de menú */
    position: relative; /* Permite que el logo se ajuste correctamente */
}

/* Logo */
.logo {
    position: absolute;
    top: 5px; 
    left: 5px; 
    background-color: #FFFFFF; 
    padding: 5px; 
    border: 2px solid #FFFFFF; 
    border-radius: 8px; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); 
    width: 70px; 
    height: 55px; 
    display: flex;
    align-items: center; 
    justify-content: center;
}

/* Logo imagen */
.logo img {
    height: 80px; 
    width: auto; 
    vertical-align: middle;
}

/* Menú de navegación */
.main-nav .menu {
    display: flex;
    justify-content: center; 
    gap: 2rem; 
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-nav a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    transition: color 0.3s, border-bottom 0.3s;
}

.main-nav a:hover {
    color: var(--background-color);
}

/* Sección principal */
.section-title {
    font-size: 3.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    color: var(--secondary-color);
    background: linear-gradient(to right, var(--primary-color), var(--hover-color)); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    margin-bottom: 1rem;
    position: relative; 
    display: block; 
    animation: fadeInTitle 1.5s ease-in-out; 
}

/* Subrayado decorativo animado */
.section-title::after {
    content: '';
    width: 80px; 
    height: 5px;
    background: var(--primary-color); 
    position: absolute;
    bottom: -10px; 
    left: 50%; 
    transform: translateX(-50%); 
    border-radius: 5px;
    animation: slideInUnderline 1s ease-in-out; 
}

/* Subtítulo centrado */
.section-subtitle {
    font-size: 1.5rem;
    color: var(--text-color);
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    animation: fadeInSubtitle 1.5s ease-in-out;
}

/* Animación de entrada suave */
@keyframes fadeInTitle {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUnderline {
    from {
        width: 0;
    }
    to {
        width: 80px;
    }
}

@keyframes fadeInSubtitle {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cards */
.event-timeline-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 2rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.event-timeline-card h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.event-timeline-card p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.event-timeline-card .btn {
    background-color: var(--primary-color);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
}

.event-timeline-card .btn:hover {
    background-color: var(--hover-color);
    transform: scale(1.05);
}

/* Contenido dinámico */
.content {
    display: none;
    margin-top: 2rem;
}

.content:target {
    display: block;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    text-align: center;
}

table th {
    background-color: var(--primary-color);
    color: white;
    padding: 10px;
}

table td {
    padding: 10px;
    border: 1px solid var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 1rem;
}

.footer img {
    width: 20px;
    margin: 0 10px;
    filter: brightness(0) invert(1);
}
