/* ==========================================================
   ZARÚ RESTAURANTE
   servicio.css
   Estilos exclusivos de paginas/servicio.php
   ========================================================== */


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

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

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

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

    position: relative;

    text-align: center;

    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.65),
            rgba(0, 0, 0, 0.65)
        ),
        url("../imagenes/instalaciones/servicios.png");

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

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

.page-hero h1 {
    margin: 0;

    font-family: var(--fuente-titulo);
    font-size: clamp(3rem, 7vw, 3.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 3px;

    color: var(--color-crema);
}


/* ==========================================================
   2. CUADRÍCULA DE SERVICIOS
   ========================================================== */

.servicios-grid {
    width: min(100%, 1000px);

    display: grid;

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

    gap: 2px;

    margin: 0 auto;
}

.servicio-card {
    min-width: 0;

    padding: 45px 30px;

    display: flex;
    flex-direction: column;
    align-items: center;

    background-color: #141009;

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

    text-align: center;

    transition:
        border-color 0.3s ease,
        background-color 0.3s ease,
        transform 0.3s ease;
}

.servicio-card:hover {
    border-color: var(--color-dorado);

    background-color:
        rgba(201, 151, 58, 0.04);

    transform: translateY(-3px);
}

.servicio-icono {
    width: 52px;
    height: 52px;

    flex: 0 0 auto;

    margin: 0 auto 22px;

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

.servicio-titulo {
    margin:
        0
        0
        12px;

    font-family: var(--fuente-titulo);
    font-size: 1.25rem;
    line-height: 1.3;

    color: var(--color-crema);
}

.servicio-texto {
    margin:
        0
        0
        20px;

    max-width: 330px;

    font-size: 0.88rem;
    line-height: 1.75;

    color:
        rgba(245, 239, 230, 0.6);
}

.servicio-precio {
    margin-top: auto;

    font-size: 0.75rem;
    line-height: 1.5;

    letter-spacing: 2px;
    text-transform: uppercase;

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

.servicio-btn {
    display: inline-flex;

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

    width: auto;
    max-width: 100%;

    margin-top: auto;

    padding:
        10px
        22px;

    font-size: 0.7rem;

    text-align: center;
    text-decoration: none;
}


/* ==========================================================
   3. PREGUNTAS FRECUENTES
   ========================================================== */

.faq-lista {
    width: min(100%, 720px);

    margin: 0 auto;
}

.faq-item {
    padding:
        25px
        0;

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

.faq-item:first-child {
    padding-top: 0;
}

.faq-item:last-child {
    border-bottom: 0;
}

.faq-pregunta {
    margin:
        0
        0
        10px;

    font-family: var(--fuente-titulo);
    font-size: 1.05rem;
    line-height: 1.4;

    color: var(--color-crema);
}

.faq-respuesta {
    margin: 0;

    font-size: 0.9rem;
    line-height: 1.7;

    color:
        rgba(245, 239, 230, 0.65);
}


/* ==========================================================
   4. NAVEGACIÓN MÓVIL
   ========================================================== */

.nav-toggle {
    display: none;
}


/* ==========================================================
   5. BOTÓN VOLVER ARRIBA
   ========================================================== */

#subir {
    position: fixed;

    right: 24px;
    bottom: 24px;

    width: 46px;
    height: 46px;

    display: none;

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

    padding: 0;

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

    border-radius: 50%;

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

    color: var(--color-dorado);

    font-size: 1rem;

    cursor: pointer;

    z-index: 999;

    transition:
        transform 0.25s ease,
        background-color 0.25s ease,
        color 0.25s ease;
}

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

    background:
        var(--color-dorado);

    color:
        #141009;
}


/* ==========================================================
   6. RESPONSIVE - TABLET
   ========================================================== */

@media (max-width: 992px) {

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

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

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

        gap: 2px;
    }

    .servicio-card {
        padding:
            40px
            26px;
    }

}


/* ==========================================================
   7. 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%;

        min-height: 46px;

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

        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;
    }

    body.menu-abierto {
        overflow: hidden;
    }


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

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

        padding:
            105px
            20px
            45px;
    }

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

        letter-spacing: 2px;
    }


    /* --------------------------------------
       Servicios
       -------------------------------------- */

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

        width: min(100%, 560px);

        gap: 12px;
    }

    .servicio-card {
        padding:
            34px
            24px;
    }

    .servicio-icono {
        width: 48px;
        height: 48px;

        margin-bottom: 18px;
    }

    .servicio-titulo {
        font-size: 1.2rem;
    }

    .servicio-texto {
        max-width: 480px;

        font-size: 0.9rem;
        line-height: 1.75;
    }

    .servicio-btn {
        width: min(100%, 300px);
    }


    /* --------------------------------------
       FAQ
       -------------------------------------- */

    .faq-lista {
        width: 100%;
    }

    .faq-item {
        padding:
            22px
            0;
    }

    .faq-pregunta {
        font-size: 1rem;
    }

    .faq-respuesta {
        font-size: 0.88rem;
        line-height: 1.75;
    }


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

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

        width: 44px;
        height: 44px;
    }

}


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

@media (max-width: 480px) {

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

        padding:
            100px
            16px
            40px;
    }

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

    .servicios-grid {
        gap: 10px;
    }

    .servicio-card {
        padding:
            30px
            20px;
    }

    .servicio-texto {
        font-size: 0.87rem;
    }

    .servicio-precio {
        font-size: 0.7rem;
        letter-spacing: 1.5px;
    }

    .faq-item {
        padding:
            20px
            0;
    }

}


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

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

    .servicio-card,
    #subir,
    .nav-menu {
        transition: none;
    }

}
