/* Fondo fijo del menú en Historia */
.navbar {
    background: #b23a2f; /* rojo igual al de la portada */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

/* Ajuste del contenedor de historia para que no lo tape el menú fijo */
.historia-section {
    max-width: 1200px;
    margin: auto;
    padding: 120px 20px 50px; /* espacio arriba para el menú fijo */
    text-align: center;
    background: #fff8f0;
}

.historia-titulo {
    font-size: 2.5rem;
    color: #b23a2f;
    margin-bottom: 10px;
}

.historia-intro {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #555;
}

/* Contenedor de tarjetas */
.historia-contenedor {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 900px;
    margin: auto;
}

/* Tarjeta */
.historia-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.historia-card:hover {
    transform: translateY(-5px);
}

/* Imagen */
.historia-card img {
    flex-shrink: 0;
    width: 260px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.historia-card img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Texto */
.historia-texto {
    flex: 1;
}

.historia-texto h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #b23a2f;
}

.historia-texto p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* Responsive: móvil */
@media (max-width: 768px) {
    .historia-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .historia-card img {
        width: 100%;
        height: auto;
    }
}
