/* =========================================================
   MELISA HAIR STUDIO · HEADER COMPARTIDO
   Este archivo se carga desde includes/header.php.
   Home, Servicios y las próximas páginas usan exactamente
   la misma estructura y el mismo estilo de navegación.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400&family=Montserrat:wght@300;400;500&display=swap');

/* Reset base compartido */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    width: 100%;
    height: 100%;
}

body {
    font-family: "Montserrat", Arial, sans-serif;
    color: #fff;
    background: #211812;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

/* Header glass: mismo aspecto que funcionaba en home.php */
.header {
    position: fixed;
    z-index: 50;
    top: 0;
    left: 0;
    width: 100%;
    height: 76px;
    padding: 0 4.7%;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;

    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(34, 24, 18, 0.11);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Logo */
.logo {
    width: 40px;
    height: 49px;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Navegación central */
.nav {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 34px;
}

.nav a,
.book {
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 0.19em;
}

.nav a {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Solo se subraya la página que PHP detecta como activa */
.nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 18px;
    width: 100%;
    height: 1px;
    background: #fff;
}

/* Reserva */
.book {
    justify-self: end;
    padding: 13px 23px;
    border: 1px solid rgba(255, 255, 255, 0.50);
    transition:
        background 0.25s ease,
        border-color 0.25s ease;
}

.book:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.78);
}

/* Ajuste para pantallas más estrechas */
@media (max-width: 1000px) {
    .nav {
        gap: 16px;
    }
}


/* =========================================================
   RESPONSIVE MÓVIL · HEADER
   ========================================================= */
@media (max-width: 700px) {
    .header {
        height: 94px;
        padding: 0 18px;
        grid-template-columns: 1fr auto;
        grid-template-rows: 52px 42px;
        background: rgba(35, 25, 19, 0.72);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    .logo {
        grid-column: 1;
        grid-row: 1;
        width: 27px;
        height: 34px;
    }

    .book {
        grid-column: 2;
        grid-row: 1;
        padding: 8px 11px;
        font-size: 5.5px;
        letter-spacing: 0.15em;
    }

    .nav {
        grid-column: 1 / -1;
        grid-row: 2;
        width: calc(100vw - 36px);
        height: 42px;
        gap: 25px;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .nav::-webkit-scrollbar {
        display: none;
    }

    .nav a {
        flex: 0 0 auto;
        height: 42px;
        font-size: 6.5px;
        letter-spacing: 0.14em;
        white-space: nowrap;
    }

    .nav a.active::after {
        bottom: 5px;
    }
}
