/* Variables de color y tipografía */
:root {
    --color-dark: #0F0F0F; /* Negro */
    --color-accent-gold: #A88B5E; /* Dorado */
    --color-light-beige: #F5F5DC; /* Beige claro (Nuevo color de fondo de bloque) */
    --color-deep-green: #1C4535; /* Verde Oscuro (Tu variable de fondo) */
    --color-maroon: #800020; /* Granate */

    --font-serif: 'Playfair Display', serif; 
    --font-sans: 'Raleway', sans-serif; 
}

/* Base global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

    body {
            /* Asegura que el contenido empiece después del navbar y termine antes del footer */
            padding-top: 80px; 
            padding-bottom: 80px;
            /* Se añade un color de fondo general para la página */
            background-color: #f0f0d4; 
            min-height: 100vh; /* Altura mínima para asegurar espacio */
        }

        .content-wrapper {
            max-width: 1200px;
            margin: 0 auto; /* Centra el contenido */
            padding: 20px;
        }


/* --- Navegación (Navbar) --- */
.navbar {
    position: fixed; /* Mejor fixed para el navbar */
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    background-color: rgba(15, 15, 15, 0.9); /* Ligeramente más opaco para mejor contraste */
    color: var(--color-light-beige);
    z-index: 1000;
}

/* 🍝 Ajuste del Logo 🍝 */
.logo-img {
    height: 60px; 
    margin-right: 20px; 
}

.navbar nav a {
    color: var(--color-light-beige);
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.9em;
    font-weight: 600;
    padding: 5px 0;
    border-bottom: 3px solid transparent;
    transition: border-bottom 0.3s ease, color 0.3s ease;
}

.navbar nav a.active {
    color: var(--color-accent-gold);
    border-bottom: 3px solid var(--color-accent-gold);
}



/* ==================================================== */
/* === ESTILOS DE INTRODUCCIÓN (Nuestra Historia) === */
/* ==================================================== */
.conocenos-section {
    color: var(--color-dark);
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.conocenos-container {
    max-width: 900px;
    text-align: center;
    width: 100%; 
}

.conocenos-section .title {
    font-family: var(--font-serif);
    font-size: 50px;
    text-align: center;
    margin: 30px;
    color: var(--color-dark);
    position: relative;
    display: inline-block;
}

.conocenos-section .title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 300px;
    height: 2px;
    background-color: var(--color-accent-gold);
}

.conocenos-section h4{
     font-style: italic;
    font-family: var(--font-sans);
    font-size: 40px;
    text-align: center;
    margin-bottom: 40px;
    font-size: medium;
    color: var(--color-dark);
    position: relative;
    display: inline-block;
}

/* ==================================================== */
/* === ESTILOS DE LA LÍNEA DE TIEMPO === */
/* ==================================================== */

.timeline-container {
    width: 100%;
    max-width: 1200px;
    position: relative;
    padding: 20px 0;
    margin: 0 auto; /* Centrar el contenedor de la línea de tiempo */
}

.timeline-item {
    display: flex;
    justify-content: space-between; 
    align-items: stretch;
    margin-bottom: 40px;
    position: relative;
}

/* La línea vertical (CENTRAL), ajustada para empezar con el primer marcador */
.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 10px; /* Empieza 10px abajo */
    width: 4px;
    height: calc(100% - 20px); /* Termina 10px antes del final */
    background-color: #8a3a3a; /* Color Rojo/Granate */
    transform: translateX(-50%);
    z-index: 0;
}

.timeline-line-marker {
    position: absolute;
    left: 50%;
    top: 50%; 
    width: 20px;
    height: 20px;
    background-color: #8a3a3a; /* Color Rojo/Granate */
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.timeline-content {
    width: 45%;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 200px; 
}

/* Contenido de la izquierda (el primer elemento en el HTML) */
.left-content {
    margin-right: 2.5%; 
    background-color: #fff;
}

/* Contenido de la derecha (el segundo elemento en el HTML) */
.right-content {
    margin-left: 2.5%; 
    background-color: #fff;
}

/* Clases de color para los bloques de texto */
.dark-green-bg {
    background-color: var(--color-deep-green); 
    color: #fff;
}

.black-bg {
    background-color: var(--color-dark); 
    color: #fff;
}

/* NUEVA CLASE: Fondo F5F5DC (Usando variable CSS) */
.light-beige-bg {
    background-color: var(--color-light-beige); 
    color: var(--color-dark); 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05); 
}

.timeline-content img {
    max-width: 100%;
    height: 100%;
    border-radius: 4px;
    display: block; 
}

.year {
    font-family: var(--font-sans);
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
    margin-top:-20px;
    color: inherit; 
}
.year {
    font-size:30px;
    font-weight: bold;
}




.timeline-content p {
    line-height: 1.6;
}


/* ==================================================== */
/* === MEDIA QUERIES (Responsividad) === */
/* ==================================================== */

@media (max-width: 768px) {
    /* Ajustes generales */
    .navbar {
        padding: 10px 20px;
        flex-direction: column;
        align-items: flex-start;
    }
    .navbar nav {
        margin-top: 10px;
    }
    
    /* Línea de tiempo móvil: línea a la izquierda */
    .timeline-container::before {
        left: 20px; 
        transform: translateX(0);
    }

    .timeline-line-marker {
        left: 20px; 
        transform: translate(0, -50%); 
    }

    .timeline-item {
        flex-direction: column; 
        align-items: flex-start;
    }

    .timeline-content {
        width: calc(100% - 60px); 
        margin-left: 60px; /* Deja espacio para la línea */
        margin-right: 0;
    }
    
    /* INTERCALADO VERTICAL ESPECÍFICO EN MÓVIL */

    /* Bloques Impares (Ej: 2005, 2015) - Imagen ARRIBA, Texto ABAJO */
    .timeline-item:nth-child(odd) .left-content {
        order: 1; 
        margin-top: 0;
    }
    .timeline-item:nth-child(odd) .right-content {
        order: 2; 
        margin-top: 20px;
    }

    /* Bloques Pares (Ej: 2010) - Texto ARRIBA, Imagen ABAJO */
    .timeline-item:nth-child(even) .left-content {
        order: 2; 
        margin-top: 20px;
    }
    .timeline-item:nth-child(even) .right-content {
        order: 1; 
        margin-top: 0;
    }

    /* FOOTER móvil */
    .main-footer {
        padding: 15px 20px;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .contact-info-footer {
        align-items: center;
    }
}

/* ---------------------------------------------------- */
/* FOOTER PRINCIPAL (ABAJO) */
/* ---------------------------------------------------- */

.main-footer {
    position: fixed; 
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-deep-green); 
    color: var(--color-light-beige);
    padding: 20px 40px; 
    font-family: var(--font-sans);
    z-index: 999; 
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px; 
    margin: 0 auto;
}

/* Columna de Información de Contacto */
.contact-info-footer {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
    font-size: 0.9em;
}

/* Columna de Redes Sociales */
.social-links-footer {
    display: flex;
    flex-direction: column; 
    align-items: center; 
    gap: 8px; 
    font-weight: 600; 
    text-transform: uppercase;
    font-size: 0.9em;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 15px; 
    margin-top: 5px; 
    background-color: var(--color-deep-green); 
}

.social-icons img {
    height: 25px; 
}

/* Columna de Créditos */
.credit-footer {
    font-size: 0.9em;
    font-weight: 600;
}