/* ==========================================================================
   Pizzas Watson — Header principal
   ========================================================================== */

.pw-header {
    position: sticky;
    top: 0;
    z-index: 1500;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid rgba(29, 18, 16, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.pw-header__inner {
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* ==========================================================================
   Logotipo
   ========================================================================== */

.pw-header-logo {
    width: 180px;
    height: 125px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 auto;
    overflow: visible;
}

.pw-header-logo img {
    width: 170px;
    height: 120px;
    max-width: none;
    display: block;
    object-fit: contain;
    transform: scale(1.22);
    transform-origin: center left;
}

.pw-header-logo__fallback {
    width: 94px;
    height: 94px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--pw-white);
    background: var(--pw-red);
    font-family: var(--pw-font-heading);
    font-size: 2.6rem;
    font-weight: 800;
}

/* ==========================================================================
   Cápsula de acciones
   ========================================================================== */

.pw-header-actions {
    width: 420px;
    min-height: 70px;
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        170px;
    align-items: center;
    gap: 6px;
    padding: 9px;
    border-radius: 999px;
    background: #f0eddd;
}

/* ==========================================================================
   Estado de la tienda
   ========================================================================== */

.pw-header-status {
    min-width: 0;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    padding: 0 16px;
    color: #87797b;
    white-space: nowrap;
}

.pw-header-status__label {
    font-family: var(--pw-font-body);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
}

.pw-header-status__icons {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
}

.pw-header-status__icons img {
    display: block;
    object-fit: contain;
    opacity: 0.9;
}

/* ==========================================================================
   Botón pedir
   ========================================================================== */

.pw-header-order {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 22px;
    border-radius: 60px 25px 60px 15px;
    color: var(--pw-white);
    background: #c81755;
    font-family: var(--pw-font-heading);
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1;
    box-shadow:
        0 12px 28px
        rgba(200, 23, 85, 0.2);
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.pw-header-order img {
    width: 25px;
    height: 25px;
    display: block;
    object-fit: contain;
}

.pw-header-order:hover {
    transform: translateY(-2px);
    background: #ad1047;
    box-shadow:
        0 16px 34px
        rgba(200, 23, 85, 0.3);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 760px) {
    .pw-header__inner {
        min-height: 106px;
        gap: 14px;
    }

    .pw-header-logo {
        width: 100px;
        height: 82px;
    }

    .pw-header-logo img {
        width: 100px;
        height: 78px;
        transform: scale(1.15);
    }

    .pw-header-actions {
        width: auto;
        min-height: 58px;
        grid-template-columns:
            minmax(0, 1fr)
            114px;
        padding: 7px;
    }

    .pw-header-status {
        min-height: 44px;
        gap: 5px;
        padding: 0 9px;
    }

    .pw-header-status__label {
        font-size: 0.82rem;
    }

    .pw-header-status__icons img:first-child {
        display: none;
    }

    .pw-header-status__icons img {
        width: 20px;
        height: 20px;
    }

    .pw-header-order {
        min-height: 44px;
        gap: 6px;
        padding: 0 14px;
        font-size: 1rem;
    }

    .pw-header-order img {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 430px) {
    .pw-header__inner {
        min-height: 92px;
        gap: 8px;
    }

    .pw-header-logo {
        width: 76px;
        height: 68px;
    }

    .pw-header-logo img {
        width: 78px;
        height: 64px;
        transform: scale(1.12);
    }

    .pw-header-actions {
        min-height: 52px;
        grid-template-columns:
            minmax(0, 1fr)
            92px;
        padding: 6px;
    }

    .pw-header-status {
        min-height: 40px;
        padding-inline: 10px;
    }

    .pw-header-status__icons {
        display: none;
    }

    .pw-header-order {
        min-height: 40px;
        padding-inline: 11px;
        font-size: 0.9rem;
    }

    .pw-header-order img {
        width: 18px;
        height: 18px;
    }
}

/* ==========================================================================
   Animación inicial
   ========================================================================== */

@keyframes pw-header-enter {
    from {
        opacity: 0;
        transform: translateY(-24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pw-header {
    animation:
        pw-header-enter
        0.65s
        cubic-bezier(0.22, 1, 0.36, 1)
        both;

    transition:
        background-color 0.28s ease,
        border-color 0.28s ease,
        box-shadow 0.28s ease;
}

.pw-header__inner,
.pw-header-logo,
.pw-header-logo img,
.pw-header-actions,
.pw-header-status,
.pw-header-status__label,
.pw-header-order,
.pw-header-order img {
    transition:
        width 0.28s ease,
        height 0.28s ease,
        min-height 0.28s ease,
        padding 0.28s ease,
        font-size 0.28s ease,
        transform 0.28s ease,
        box-shadow 0.28s ease;
}

/* ==========================================================================
   Estado sticky compacto
   ========================================================================== */

.pw-header.is-scrolled {
    background: rgba(255, 255, 255, 0.94);
    border-bottom-color: rgba(29, 18, 16, 0.1);
    box-shadow:
        0 12px 34px
        rgba(29, 18, 16, 0.1);
}

.pw-header.is-scrolled .pw-header__inner {
    min-height: 96px;
}

.pw-header.is-scrolled .pw-header-logo {
    width: 118px;
    height: 78px;
}

.pw-header.is-scrolled .pw-header-logo img {
    width: 112px;
    height: 76px;
    transform: scale(1.12);
}

.pw-header.is-scrolled .pw-header-actions {
    width: 390px;
    min-height: 60px;
    grid-template-columns:
        minmax(0, 1fr)
        158px;
    padding:
        7px
        12px
        7px
        7px;
    box-shadow:
        0 10px 28px
        rgba(29, 18, 16, 0.08);
}

.pw-header.is-scrolled .pw-header-status {
    min-height: 46px;
}

.pw-header.is-scrolled
.pw-header-status__label {
    font-size: 1rem;
}

.pw-header.is-scrolled .pw-header-order {
    min-height: 46px;
    font-size: 1.25rem;
}

.pw-header.is-scrolled
.pw-header-order img {
    width: 22px;
    height: 22px;
}

/* ==========================================================================
   Sticky en móviles
   ========================================================================== */

@media (max-width: 760px) {
    .pw-header.is-scrolled
    .pw-header__inner {
        min-height: 82px;
    }

    .pw-header.is-scrolled
    .pw-header-logo {
        width: 74px;
        height: 60px;
    }

    .pw-header.is-scrolled
    .pw-header-logo img {
        width: 76px;
        height: 60px;
        transform: scale(1.08);
    }

    .pw-header.is-scrolled
    .pw-header-actions {
        width: auto;
        min-height: 50px;
        grid-template-columns:
            minmax(0, 1fr)
            102px;
        padding: 5px;
    }

    .pw-header.is-scrolled
    .pw-header-status {
        min-height: 40px;
    }

    .pw-header.is-scrolled
    .pw-header-order {
        min-height: 40px;
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   Header transparente sobre el hero
   ========================================================================== */

.pw-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1200;

    width: 100%;

    background: transparent;
    border: 0;
    box-shadow: none;

    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Mantener transparencia cuando entra en estado sticky */

.pw-header.is-sticky {
    background: transparent;
    border: 0;
    box-shadow: none;

    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Evita que el contenedor interior conserve un fondo blanco */

.pw-header .pw-container {
    background: transparent;
}