/* --- Tipografía y Variables (Heredadas de styles.css) --- */
/* Las variables como --color-primary, --font-title, etc. se definen en styles.css */

/* --- Sección Hero (Nuestra Historia) --- */
#about-hero {
    position: relative;
    height: 40vh;
    /* Altura más baja que el Hero principal */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-text-light, #fff);

    /* Imagen de fondo (Asegúrate de que la ruta sea correcta: fotos/about-hero.jpg) */
    background-image: url('fotos/portadanosotros.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#about-hero-title {
    font-size: 3em;
    font-family: var(--font-title, 'Quintessential', serif);
    padding: 20px 40px;

    /* AJUSTE PARA SUBIRLO LIGERAMENTE DE SU POSICIÓN ACTUAL */
    margin-top: -70px;
    /* Sube 10 píxeles. Aumenta el número para subir más (ej: -30px) */

    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* --- Sección Sobre Nosotros (Contenido) --- */
#about-us {
    padding: 40px 20px;
    background-color: #fff;
    max-width: 1200px;
    /* Ancho máximo para el contenido */
    margin: 0 auto;
}

.about-container {
    display: flex;
    flex-direction: column;
    /* Pila en móvil */
    margin-bottom: 50px;
    align-items: center;
    text-align: center;
    gap: 30px;
}

/* --- ESTILOS DE REVELADO (Asegúrate de que 'fade-in' esté en el JS) --- */
/* (Los estilos fade-in y active están en styles.css, no es necesario duplicarlos) */
/* --- FIN ESTILOS DE REVELADO --- */

.about-text,
.about-image {
    flex: 1;
    padding: 20px;
}

.about-text h2 {
    font-size: 2em;
    font-family: var(--font-title, 'Quintessential', serif);
    color: var(--color-primary, #8b6232);
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1em;
    line-height: 1.7;
    margin-bottom: 15px;
    color: var(--color-text-dark, #333);
}

.about-image img {
    width: 100%;
    max-height: 350px;
    /* Altura máxima para las imágenes */
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.02);
}

/* --- Media Queries --- */

/* Desktop (a partir de 768px) */
@media (min-width: 768px) {
    #about-hero {
        height: 60vh;
    }

    #about-hero-title {
        font-size: 4em;
    }

    .about-container {
        flex-direction: row;
        /* En desktop, en fila */
        text-align: left;
    }

    /* Invierte la segunda y sucesivas secciones */
    .about-container.reverse {
        flex-direction: row-reverse;
    }

    .about-text,
    .about-image {
        padding: 0 40px;
        /* Más padding horizontal en desktop */
    }

    .about-text h2 {
        font-size: 2.5em;
    }

    .about-text p {
        font-size: 1.1em;
    }
}

/* =========================================================
//  CLASES DE RETRASO PARA ANIMACIÓN PROGRESIVA
// ========================================================= */

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.5s;
}

.delay-3 {
    animation-delay: 0.8s;
}