/*
 * HOJA DE ESTILOS - WEB HOMERO MANZI
 *
 * ÍNDICE DE SECCIONES:
 * 0. FUENTES
 * 1. VARIABLES Y GENERALES
 * 2. ENCABEZADO (BARRA DE NAVEGACIÓN)
 * 3. CONTENIDO PRINCIPAL
 * 4. CARRUSEL DE IMÁGENES
 * 5. SECCIÓN CON FOTO
 * 6. SECCIÓN NUESTRA HISTORIA
 * 7. FOOTER
 * 8. BOTÓN DONÁ
 * 9. RESPONSIVE
*/

/* ============================================= */
/* ======== 0. FUENTES PERSONALIZADAS ========= */
/* ============================================= */

@font-face { font-family: 'Campeche'; src: url('Fuentes/CAMPECHEDISPLAY-THIN.OTF') format('opentype'); font-weight: 100; font-style: normal; }
@font-face { font-family: 'Campeche'; src: url('Fuentes/CAMPECHEDISPLAY-EXTRALIGHT.OTF') format('opentype'); font-weight: 200; font-style: normal; }
@font-face { font-family: 'Campeche'; src: url('Fuentes/CAMPECHEDISPLAY-LIGHT.OTF') format('opentype'); font-weight: 300; font-style: normal; }
@font-face { font-family: 'Campeche'; src: url('Fuentes/CAMPECHEDISPLAY-REGULAR.OTF') format('opentype'); font-weight: 400; font-style: normal; }
@font-face { font-family: 'Campeche'; src: url('Fuentes/CAMPECHEDISPLAY-MEDIUM.OTF') format('opentype'); font-weight: 500; font-style: normal; }
@font-face { font-family: 'Campeche'; src: url('Fuentes/CAMPECHEDISPLAY-SEMIBOLD.OTF') format('opentype'); font-weight: 600; font-style: normal; }
@font-face { font-family: 'Campeche'; src: url('Fuentes/CAMPECHEDISPLAY-BOLD.OTF') format('opentype'); font-weight: 700; font-style: normal; }
@font-face { font-family: 'Campeche'; src: url('Fuentes/CAMPECHEDISPLAY-HEAVY.OTF') format('opentype'); font-weight: 800; font-style: normal; }
@font-face { font-family: 'Campeche'; src: url('Fuentes/CAMPECHEDISPLAY-BLACK.OTF') format('opentype'); font-weight: 900; font-style: normal; }

/* ============================================= */
/* ======== 1. VARIABLES Y GENERALES ======== */
/* ============================================= */

:root {
    --color-primario: #c03b37;
    --color-texto: #282828;
    --color-texto-suave: #333333;
    --color-fondo: #f0f0f0;
    --color-blanco: #ffffff;
    --borde-suave: #e0e0e0;
    --ancho-maximo: 1100px;
}

body {
    font-family: 'Campeche', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--color-fondo);
    font-weight: 400;
}

.contenedor {
    width: 95%;
    margin: 0 auto; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; 
}

.contenedor-seccion {
    width: 90%;
    max-width: var(--ancho-maximo);
    margin: 0 auto;
    margin-bottom: 25px; 
}

/* ============================================= */
/* ==== 2. ENCABEZADO (BARRA DE NAVEGACIÓN) ==== */
/* ============================================= */

.encabezado-principal {
    background-color: var(--color-blanco); 
    padding: 15px 0; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); 
    position: sticky; 
    top: 0;
    z-index: 100; 
}

.logo-contenedor {
    display: flex;
    align-items: center;
}

.logo-png {
    height: auto;
    width: 120px;  
}

.navegacion-principal ul {
    margin: 0;
    padding: 0;
    list-style: none; 
    display: flex; 
}

.navegacion-principal li {
    margin: 0 20px; 
}

.navegacion-principal a {
    color: var(--color-primario); 
    text-decoration: none; 
    font-weight: 800; 
    font-size: 1.5em;
    transition: opacity 0.3s ease; 
    letter-spacing: 1px;
}

.navegacion-principal a:hover {
    opacity: 0.5;
}

.iconos-contenedor {
    display: flex; 
    gap: 15px; 
}

.icono-png {
    width: 60px;
    height: 60px;
    transition: opacity 0.3s ease;
}

.icono-png:hover {
    opacity: 0.5;
}

/* ============================================= */
/* =========== 3. CONTENIDO PRINCIPAL ========== */
/* ============================================= */

.contenido-pagina {
    background-color: transparent; 
}

/* ============================================= */
/* ========== 4. CARRUSEL DE IMÁGENES ========== */
/* ============================================= */

.seccion-carrusel {
    width: 100%; 
    height: 100vh; 
    position: relative; 
    overflow: hidden; 
}

.carrusel-diapositivas {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out; 
}

.diapositiva {
    width: 100%; 
    height: 100%;
    flex-shrink: 0; 
    background-size: cover;
    background-position: center;
    position: relative;
}

.enlace-diapositiva {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5; 
}

.carrusel-controles-grupo {
    position: absolute; 
    top: 15px;         
    right: 15px;       
    z-index: 10;
    display: flex;   
    gap: 5px;        
}

.carrusel-boton {
    color: #000;
    border: none;
    font-size: 2em;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 16px;
    background-color: rgba(255, 255, 255, 0.7);
    font-family: 'Campeche', sans-serif; 
}

.carrusel-boton:hover {
    background-color: rgba(255, 255, 255, 1);
}

.carrusel-indicadores {
    position: absolute;
    bottom: 20px; 
    left: 50%;
    transform: translateX(-50%); 
    display: flex;
    gap: 12px; 
    z-index: 10;
}

.indicador-punto {
    width: 12px;
    height: 12px;
    border-radius: 50%; 
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.3);
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease;
}

.indicador-punto:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.indicador-punto.activo {
    background-color: var(--color-primario); 
    border: 1px solid var(--color-blanco);
}

/* ============================================= */
/* ====== 5. SECCIÓN CON FOTO (CONFIG) ========= */
/* ============================================= */

.seccion-con-foto {
    padding-top: 20px; 
    background-color: var(--color-blanco); 
    border-bottom: 1px solid var(--borde-suave); 
}

.seccion-con-foto h2 {
    font-size: 3em; 
    font-weight: 900; 
    color: var(--color-texto);
    text-align: left; 
    border-bottom: 3px solid var(--color-primario); 
    padding-bottom: 10px;
    display: inline-block; 
    letter-spacing: -1px;
}

.foto-horizontal {
    width: 100%;
    height: 150vh; 
    background-size: cover; 
    background-position: center center;
    margin-top: 25px;
}

/* ============================================= */
/* ========= 6. SECCIÓN NUESTRA HISTORIA ========= */
/* ============================================= */

.seccion-historia {
    padding: 60px 0;
    background-color: var(--color-blanco);
    border-bottom: 1px solid var(--borde-suave);
}

.seccion-historia h2 {
    font-size: 3em;
    font-weight: 900; 
    color: var(--color-texto);
    text-align: left; 
    border-bottom: 3px solid var(--color-primario); 
    padding-bottom: 10px;
    display: inline-block; 
    letter-spacing: -1px;
}

.seccion-historia h3 {
    font-size: 2em;
    font-weight: 600; 
    color: var(--color-primario); 
    text-align: left;
    margin-top: 10px;
    margin-bottom: 25px; 
}

.historia-contenido + h3 {
     margin-top: 50px;
}

.historia-contenido {
    display: flex;
    gap: 30px; 
    flex-wrap: wrap; 
    margin-top: 25px; 
}

.historia-texto {
    flex: 2.5; 
    min-width: 300px; 
    text-align: left;
    font-size: 1.2em; 
    font-weight: 300; 
    line-height: 1.6;
    color: var(--color-texto-suave);
    order: 1; 
}

.historia-texto p {
    margin-top: 0;
}

.historia-imagenes {
    flex: 1; 
    min-width: 250px;
    display: flex;
    flex-direction: column; 
    gap: 20px; 
    order: 2; 
}

.historia-imagenes img {
    width: 100%;
    height: auto;
    border-radius: 10px; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); 
}

.historia-contenido.contenido-invertido .historia-texto {
    order: 2;
}

.historia-contenido.contenido-invertido .historia-imagenes {
    order: 1; 
}

/* ============================================= */
/* ================= 7. FOOTER  ================ */
/* ============================================= */

.pie-pagina-marcas {
    background-color:#101828; /* var(--color-texto) */
    padding: 50px 0 30px 0;
    color: var(--color-blanco);
    text-align: center;
    border-top: 5px solid var(--color-primario); 
}

.contenedor-footer {
    width: 90%;
    max-width: var(--ancho-maximo);
    margin: 0 auto;
}

.titulo-footer {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 40px;
    letter-spacing: 2px;
    color: var(--color-blanco);
}

.grilla-marcas {
    display: flex;
    justify-content: center; 
    align-items: center;    
    flex-wrap: wrap;         
    gap: 40px;               
    margin-bottom: 25px;
}

.item-marca {
    display: block;
    width: 100px; 
    height: auto;
    transition: transform 0.3s ease;
}

.item-marca img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: all 0.4s ease;
}

.item-marca:hover img {
    transform: scale(1.05); 
}

.texto-footer {
    border-top: 4px solid var(--color-primario); /* Línea separadora sutil */
    padding-top: 20px;
    font-size: 0.9em;
    color: #ffffff;
    font-weight: 300;
}


/* ============================================= */
/* =========== 8. BOTÓN DONÁ (NUEVO) =========== */
/* ============================================= */

.boton-dona {
    background-color: var(--color-primario);
    color: var(--color-blanco);
    text-decoration: none;
    font-weight: 800;
    font-size: 1.2em;
    padding: 12px 35px; 
    border-radius: 50px; 
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
        margin-left: 20px; 
}

.boton-dona:hover {
    background-color: #a02b28; 
    transform: scale(1.05); 
    box-shadow: 0 6px 12px rgba(192, 59, 55, 0.4);
}


/* ============================================= */
/* ============== 9. RESPONSIVE ================ */
/* ============================================= */
@media (max-width: 768px) {

    .contenedor {
        justify-content: center; 
    }

    .logo-png {
        height: auto;
        width: 200px;  
    }

    .navegacion-principal,
    .iconos-contenedor,
    .boton-dona {
        display: none; 
        width: 100%; 
        margin-top: 15px;
        order: 2; 
    }

    .navegacion-principal.activo {
        display: block; 
        border-top: 1px solid #ddd;
        flex-basis: 100%; 
    }

    .navegacion-principal ul {
        flex-direction: column;
        text-align: center;
        padding: 10px 0;
    }

    .navegacion-principal li {
        margin: 15px 0; 
    }

    .iconos-contenedor.activo {
        display: flex;         
        justify-content: center;
        margin-bottom: 10px;
        gap: 20px; 
        order: 3; 
    }

    .boton-dona.activo {
        display: block; 
        width: 50%;
        text-align: center;
        margin: 10px auto 25px auto;
        order: 4; 
    }

    /* --- OTROS AJUSTES MÓVILES --- */
    .seccion-carrusel {
        height: 40vh; 
        min-height: 250px;
    }

    .foto-horizontal {
        height: 40vh; 
        min-height: 250px;
        background-attachment: scroll; 
        background-position: center;
    }

    .historia-contenido {
        flex-direction: column; 
    }

    .historia-texto, 
    .historia-imagenes {
        flex: auto;
        width: 100%;
        min-width: 0; 
    }

    .historia-contenido .historia-texto { order: 1; }
    .historia-contenido .historia-imagenes { order: 2; }
    
    .historia-contenido.contenido-invertido .historia-texto { order: 1; }
    .historia-contenido.contenido-invertido .historia-imagenes { order: 2; }

    .seccion-con-foto h2,
    .seccion-historia h2 {
        font-size: 2.2em;
    }

    .grilla-marcas {
        gap: 30px;
    }
    
    .item-marca {
        width: 120px; 
    }
}