/* ==========================================================
   ZARU RESTAURANTE
   nosotros.css
   Estilos exclusivos de paginas/nosotros.php
   ========================================================== */


/* ==========================================================
   1. HERO
   ========================================================== */

.page-hero {
    min-height: 72vh;

    padding:
        calc(var(--nav-alto, 70px) + 55px)
        6%
        65px;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;

    text-align: center;

    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.60),
            rgba(0, 0, 0, 0.70)
        ),
        url("../imagenes/personal/nosotros.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-hero-contenido {
    width: min(100%, 800px);
}

.page-hero h1 {
    margin: 0;

    color: var(--color-crema);

    font-family: var(--fuente-titulo);

    font-size:
        clamp(
            3rem,
            7vw,
            4.5rem
        );

    font-weight: 700;

    line-height: 1.05;
    letter-spacing: 3px;
}


/* ==========================================================
   2. HISTORIA
   ========================================================== */

.nosotros-grid {
    width: min(100%, 1040px);

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    align-items: center;

    gap: 65px;

    margin: 0 auto;
}

.nosotros-imagen {
    overflow: hidden;
}

.nosotros-imagen img {
    width: 100%;
    height: 430px;

    display: block;

    object-fit: cover;

    transition:
        transform 0.7s ease;
}

.nosotros-imagen:hover img {
    transform: scale(1.025);
}

.nosotros-texto {
    min-width: 0;
}

.texto-etiqueta {
    margin-bottom: 10px;
}

.nosotros-texto h3 {
    margin:
        0
        0
        20px;

    color: var(--color-crema);

    font-family:
        var(--fuente-titulo);

    font-size:
        clamp(
            1.9rem,
            3vw,
            2.45rem
        );

    line-height: 1.15;
}

.nosotros-texto p {
    margin:
        0
        0
        16px;

    color:
        rgba(245, 239, 230, 0.74);

    font-size: 0.98rem;

    line-height: 1.8;
}

.nosotros-texto .btn-principal {
    margin-top: 8px;
}


/* ==========================================================
   3. LÍNEA DE TIEMPO
   ========================================================== */

.timeline {
    width: min(100%, 700px);

    margin: 0 auto;

    position: relative;
}

.timeline::before {
    content: "";

    position: absolute;

    left: 91px;
    top: 4px;
    bottom: 4px;

    width: 1px;

    background:
        var(--color-linea);
}

.timeline-item {
    display: grid;

    grid-template-columns:
        65px
        52px
        minmax(0, 1fr);

    align-items: start;

    gap: 0;

    margin-bottom: 42px;

    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-anio {
    padding-top: 1px;

    color:
        var(--color-dorado);

    font-family:
        var(--fuente-titulo);

    font-size: 1.25rem;

    line-height: 1.3;

    text-align: right;
}

.timeline-punto {
    width: 11px;
    height: 11px;

    margin:
        6px
        auto
        0;

    border:
        2px solid
        var(--color-dorado);

    border-radius: 50%;

    background:
        var(--color-seccion);

    position: relative;

    z-index: 2;
}

.timeline-texto {
    min-width: 0;

    padding-left: 12px;
}

.timeline-texto h3 {
    margin:
        0
        0
        6px;

    color:
        var(--color-crema);

    font-family:
        var(--fuente-texto);

    font-size: 1rem;
    font-weight: 700;

    line-height: 1.4;
}

.timeline-texto p {
    margin: 0;

    color:
        rgba(245, 239, 230, 0.60);

    font-size: 0.88rem;

    line-height: 1.7;
}


/* ==========================================================
   4. EQUIPO
   ========================================================== */

.equipo-grid {
    width: min(100%, 980px);

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap:
        58px
        34px;

    margin: 0 auto;
}

.miembro-card {
    min-width: 0;

    text-align: center;
}

.miembro-imagen {
    overflow: hidden;

    margin-bottom: 18px;

    background:
        #15110c;
}

.miembro-foto {
    width: 100%;
    height: 285px;

    display: block;

    object-fit: cover;

    filter: grayscale(20%);

    transition:
        transform 0.55s ease,
        filter 0.55s ease;
}

.miembro-card:hover .miembro-foto {
    filter: grayscale(0%);

    transform: scale(1.035);
}

.miembro-nombre {
    margin:
        0
        0
        4px;

    color:
        var(--color-crema);

    font-family:
        var(--fuente-titulo);

    font-size: 1.22rem;

    line-height: 1.3;
}

.miembro-cargo {
    margin: 0;

    color:
        var(--color-dorado);

    font-size: 0.70rem;
    font-weight: 700;

    letter-spacing: 2px;

    line-height: 1.5;

    text-transform: uppercase;
}


/* ==========================================================
   5. AJUSTES DE FOOTER
   ========================================================== */

.footer {
    margin-top: 0;
}


/* ==========================================================
   6. VOLVER ARRIBA
   ========================================================== */

#subir {
    position: fixed;

    right: 28px;
    bottom: 28px;

    width: 48px;
    height: 48px;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background:
        var(--color-dorado);

    color:
        #111;

    font-size: 1.1rem;

    cursor: pointer;

    box-shadow:
        0 10px 25px
        rgba(0, 0, 0, 0.35);

    z-index: 998;

    transition:
        transform 0.3s ease,
        background 0.3s ease;
}

#subir:hover {
    transform: translateY(-5px);

    background:
        var(--color-dorado-claro);
}


/* ==========================================================
   7. RESPONSIVE - TABLET
   ========================================================== */

@media (max-width: 992px) {

    .page-hero {
        min-height: 62vh;

        padding:
            calc(var(--nav-alto, 70px) + 45px)
            24px
            55px;
    }

    .nosotros-grid {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr);

        gap: 35px;
    }

    .nosotros-imagen img {
        height: 380px;
    }

    .equipo-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap:
            48px
            28px;
    }

    .miembro-foto {
        height: 300px;
    }

}


/* ==========================================================
   8. RESPONSIVE - MÓVIL
   ========================================================== */

@media (max-width: 768px) {

    /* --------------------------------------
       Navegación móvil
       -------------------------------------- */

    nav {
        padding:
            0
            16px;
    }

    .nav-contenedor {
        min-height: 66px;

        position: relative;
    }

    .nav-toggle {
        width: 44px;
        height: 44px;

        display: inline-flex;

        align-items: center;
        justify-content: center;

        padding: 0;

        border: 1px solid
            rgba(201, 151, 58, 0.35);

        border-radius: 6px;

        background:
            rgba(18, 14, 10, 0.72);

        color:
            var(--color-crema);

        font-size: 1.35rem;

        cursor: pointer;

        z-index: 1002;
    }

    .nav-menu {
        position: fixed;

        top: 66px;
        left: 16px;
        right: 16px;

        width: auto;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 4px;

        padding: 14px;

        margin: 0;

        border:
            1px solid
            var(--color-linea);

        background:
            rgba(14, 11, 7, 0.98);

        box-shadow:
            0 20px 45px
            rgba(0, 0, 0, 0.42);

        opacity: 0;
        visibility: hidden;

        transform:
            translateY(-10px);

        pointer-events: none;

        transition:
            opacity 0.25s ease,
            visibility 0.25s ease,
            transform 0.25s ease;

        z-index: 1001;
    }

    .nav-menu.abierto {
        opacity: 1;
        visibility: visible;

        transform:
            translateY(0);

        pointer-events: auto;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        width: 100%;

        display: flex;

        align-items: center;

        justify-content: center;

        min-height: 46px;

        padding:
            11px
            14px;

        border-bottom:
            1px solid
            rgba(58, 46, 30, 0.72);

        font-size: 0.76rem;

        text-align: center;
    }

    .nav-menu li:last-child a {
        border-bottom: 0;
    }

    .nav-menu .btn-acceso {
        margin-top: 4px;

        border:
            1px solid
            var(--color-dorado);

        border-radius: 4px;
    }

    body.menu-abierto {
        overflow: hidden;
    }


    /* --------------------------------------
       Hero
       -------------------------------------- */

    .page-hero {
        min-height: 52vh;

        padding:
            105px
            20px
            45px;
    }

    .page-hero h1 {
        font-size:
            clamp(
                2.6rem,
                13vw,
                3.6rem
            );

        letter-spacing: 2px;
    }


    /* --------------------------------------
       Historia
       -------------------------------------- */

    .nosotros-grid {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .nosotros-imagen img {
        height:
            clamp(
                280px,
                72vw,
                390px
            );
    }

    .nosotros-texto h3 {
        font-size: 2rem;
    }

    .nosotros-texto p {
        font-size: 0.92rem;

        line-height: 1.75;
    }

    .nosotros-texto .btn-principal {
        width: 100%;

        max-width: 330px;

        text-align: center;
    }


    /* --------------------------------------
       Timeline
       -------------------------------------- */

    .timeline {
        width: 100%;
    }

    .timeline::before {
        left: 16px;
    }

    .timeline-item {
        grid-template-columns:
            32px
            minmax(0, 1fr);

        gap: 0;

        margin-bottom: 34px;
    }

    .timeline-anio {
        grid-column: 1 / -1;

        margin-bottom: 8px;
        padding: 0;

        text-align: left;

        font-size: 1.12rem;

        padding-left: 0;
    }

    .timeline-punto {
        grid-column: 1;

        grid-row: 2;

        width: 11px;
        height: 11px;

        margin:
            5px
            0
            0
            11px;
    }

    .timeline-texto {
        grid-column: 2;

        grid-row: 2;

        padding-left: 13px;
    }

    .timeline-texto h3 {
        font-size: 0.98rem;
    }

    .timeline-texto p {
        font-size: 0.84rem;

        line-height: 1.65;
    }


    /* --------------------------------------
       Equipo
       -------------------------------------- */

    .equipo-grid {
        grid-template-columns: 1fr;

        gap: 42px;

        width: min(100%, 380px);
    }

    .miembro-foto {
        height:
            clamp(
                290px,
                82vw,
                370px
            );
    }

    .miembro-nombre {
        font-size: 1.18rem;
    }


    /* --------------------------------------
       Botón volver arriba
       -------------------------------------- */

    #subir {
        right: 18px;
        bottom: 18px;

        width: 44px;
        height: 44px;
    }

}


/* ==========================================================
   9. RESPONSIVE - MÓVILES PEQUEÑOS
   ========================================================== */

@media (max-width: 480px) {

    .page-hero {
        min-height: 47vh;

        padding:
            100px
            16px
            40px;
    }

    .page-hero h1 {
        font-size: 2.65rem;
    }

    .nosotros-grid {
        gap: 32px;
    }

    .nosotros-imagen img {
        height: 285px;
    }

    .nosotros-texto h3 {
        font-size: 1.8rem;
    }

    .timeline::before {
        left: 14px;
    }

    .timeline-item {
        grid-template-columns:
            29px
            minmax(0, 1fr);
    }

    .timeline-punto {
        margin-left: 9px;
    }

    .timeline-texto {
        padding-left: 11px;
    }

    .miembro-foto {
        height: 300px;
    }

}


/* ==========================================================
   10. REDUCCIÓN DE MOVIMIENTO
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    .nosotros-imagen img,
    .miembro-foto,
    #subir,
    .nav-menu {
        transition: none;
    }

}
