/* Estilos base consistentes */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

/* Header - estilo consistente */
header {
    background-color: #1a1a1a;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo-header {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    height: 60px;
    margin-right: 15px;
}

header h1 {
    margin: 0;
    font-size: 2rem;
    color: #fff;
}

/* Navegación - estilo consistente */
nav {
    background-color: #333;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

nav li {
    margin: 0;
}

nav a {
    display: block;
    padding: 1rem 1.5rem;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: #555;
}

nav .active {
    background-color: #4CAF50;
    font-weight: bold;
}

/* Contenido principal - adaptado para sección histórica */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
}

main h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: #1a1a1a;
    position: relative;
    padding-bottom: 15px;
}

main h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: #4CAF50;
}

/* Estilos para secciones históricas */
section {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2.5rem;
    padding: 2rem;
    position: relative;
    transition: transform 0.3s;
}

section:hover {
    transform: translateY(-5px);
}

section h3 {
    font-size: 1.8rem;
    margin-top: 0;
    color: #1a1a1a;
    position: relative;
    padding-bottom: 10px;
}

section h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: #4CAF50;
}

section p {
    color: #555;
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

section img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 5px;
    margin: 1rem 0;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s;
}

section img:hover {
    opacity: 0.9;
}

/* Estilos específicos para cada sección */
.historia {
    border-top: 5px solid #8e44ad;
}

.evolucion {
    border-top: 5px solid #3498db;
}

.iconos {
    border-top: 5px solid #e74c3c;
}

/* Diseño de columnas para pantallas grandes */
@media (min-width: 992px) {
    section {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: center;
    }
    
    section:nth-child(even) img {
        order: -1;
    }
    
    section p {
        margin-bottom: 0;
    }
}

/* Footer - estilo consistente */
footer {
    background-color: #1a1a1a;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

/* Responsive para móviles */
@media (max-width: 767px) {
    nav ul {
        flex-direction: column;
        text-align: center;
    }
    
    .logo-header {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    section {
        padding: 1.5rem;
    }
    
    section h3 {
        font-size: 1.5rem;
    }
}