/* ---- Barra superior (editable desde ACF: Ajustes SL Estilo) ---- */
.barra-superior {
    background: var(--color-texto);
    color: #fff;
}
.barra-superior__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .5rem 1.5rem;
    font-size: .75rem;
    letter-spacing: .04em;
}
.barra-superior__redes {
    display: flex;
    gap: 1rem;
}
.barra-superior__redes a {
    text-transform: uppercase;
    font-size: .7rem;
}
.barra-superior__redes a:hover {
    color: var(--color-primario-suave);
}

/* ---- Header ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    transition: box-shadow .2s;
}
.site-header.is-pegado {
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

/* Fila 1: logo | buscador | íconos.
   Ojo: este bloque usa un ancho más angosto que --max-width a propósito,
   para que quede agrupado/centrado en vez de estirarse a los 1600px del
   resto del sitio (que sí aprovecha todo el ancho para la grilla). */
.site-header__top {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
    padding: 1.1rem 1.5rem;
}

.site-header__logo img,
.site-header__logo .custom-logo {
    max-height: 80px;
    width: auto;
    height: auto;
}
.site-header__logo-texto {
    font-family: var(--fuente-titulos);
    font-size: 1.5rem;
    letter-spacing: .05em;
    color: var(--color-texto);
    white-space: nowrap;
}

.site-header__buscador form {
    display: flex;
    align-items: center;
    background: var(--color-fondo-alt);
    border-radius: 999px;
    padding: .5rem 1rem;
}
.site-header__buscador input[type="search"],
.site-header__buscador input[type="text"] {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: .9rem;
    color: var(--color-texto);
}
.site-header__buscador input[type="search"]::placeholder {
    color: #999;
}
.site-header__buscador button {
    border: none;
    background: transparent;
    cursor: pointer;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background-color: var(--color-texto);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.79l-.28-.27a6.5 6.5 0 1 0-.7.7l.27.28v.79l5 5L20.5 19l-5-5zm-6 0A4.5 4.5 0 1 1 14 9.5 4.5 4.5 0 0 1 9.5 14z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.79l-.28-.27a6.5 6.5 0 1 0-.7.7l.27.28v.79l5 5L20.5 19l-5-5zm-6 0A4.5 4.5 0 1 1 14 9.5 4.5 4.5 0 0 1 9.5 14z'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    text-indent: -9999px;
    overflow: hidden;
}

.site-header__acciones {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.site-header__favoritos,
.site-header__cuenta,
.site-header__carrito {
    position: relative;
    display: flex;
    align-items: center;
    gap: .3rem;
}

.icon-cuenta,
.icon-carrito {
    width: 20px;
    height: 20px;
    display: inline-block;
    background-color: var(--color-texto);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.icon-cuenta {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12c2.7 0 4.9-2.2 4.9-4.9S14.7 2.2 12 2.2 7.1 4.4 7.1 7.1 9.3 12 12 12zm0 2.2c-3.3 0-9.8 1.6-9.8 4.9V21h19.6v-1.9c0-3.3-6.5-4.9-9.8-4.9z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12c2.7 0 4.9-2.2 4.9-4.9S14.7 2.2 12 2.2 7.1 4.4 7.1 7.1 9.3 12 12 12zm0 2.2c-3.3 0-9.8 1.6-9.8 4.9V21h19.6v-1.9c0-3.3-6.5-4.9-9.8-4.9z'/%3E%3C/svg%3E");
}

.icon-carrito {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4V2a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v2h4a1 1 0 0 1 1 1v1H2V5a1 1 0 0 1 1-1h4zM4 8h16l-1.2 12.1A2 2 0 0 1 16.8 22H7.2a2 2 0 0 1-2-1.9L4 8zm5-4v2h6V4H9z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4V2a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v2h4a1 1 0 0 1 1 1v1H2V5a1 1 0 0 1 1-1h4zM4 8h16l-1.2 12.1A2 2 0 0 1 16.8 22H7.2a2 2 0 0 1-2-1.9L4 8zm5-4v2h6V4H9z'/%3E%3C/svg%3E");
}

.site-header__favoritos-count,
.site-header__carrito-count {
    font-size: .7rem;
    background: var(--color-primario);
    color: #fff;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    position: absolute;
    top: -8px;
    right: -8px;
}

/* Fila 2: menú de categorías */
.site-header__navrow {
    border-top: 1px solid #f0eceb;
    border-bottom: 1px solid #f0eceb;
}
.site-header__menu {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.2rem;
    padding: .75rem 1.5rem;
    font-size: .82rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.site-header__menu a {
    display: inline-block;
    padding: .15rem .1rem;
    transition: color .2s;
}
.site-header__menu a:hover {
    color: var(--color-primario);
}

/* Ítem de menú activo/actual: efecto "marcador" (highlighter), no píldora */
.site-header__menu .current-menu-item > a,
.site-header__menu .current_page_item > a,
.site-header__menu .current-menu-parent > a,
.site-header__menu .current-menu-ancestor > a {
    font-weight: 600;
    background-image: linear-gradient(120deg, var(--color-primario-suave) 0%, var(--color-primario-suave) 100%);
    background-repeat: no-repeat;
    background-size: 100% 45%;
    background-position: 0 85%;
}

/* En mobile: apilar */
@media (max-width: 780px) {
    .site-header__top {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: .75rem;
        text-align: center;
    }
    .site-header__buscador {
        width: 100%;
        order: 3;
    }
    .site-header__menu {
        gap: .75rem 1rem;
        font-size: .75rem;
    }
}

/* ---- Barra de Beneficios (debajo del header, colores de marca) ---- */
.barra-beneficios {
    background: var(--color-texto);
    color: #fff;
}
.barra-beneficios__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    padding: .7rem 1.5rem;
}
.barra-beneficios__item {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .8rem;
    letter-spacing: .03em;
    padding: 0 1.5rem;
    position: relative;
}
.barra-beneficios__item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 16px;
    background: rgba(255,255,255,.25);
}

.icon-beneficio {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: inline-block;
    background-color: var(--color-primario-suave);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.icon-beneficio--camion {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 8h-3V4H3a2 2 0 0 0-2 2v11h2c0 1.66 1.34 3 3 3s3-1.34 3-3h6c0 1.66 1.34 3 3 3s3-1.34 3-3h2v-5l-3-4zM6 18.5A1.5 1.5 0 1 1 7.5 17 1.5 1.5 0 0 1 6 18.5zm12 0a1.5 1.5 0 1 1 1.5-1.5 1.5 1.5 0 0 1-1.5 1.5zm-1-8.5h2.5l1.5 2H17v-2z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 8h-3V4H3a2 2 0 0 0-2 2v11h2c0 1.66 1.34 3 3 3s3-1.34 3-3h6c0 1.66 1.34 3 3 3s3-1.34 3-3h2v-5l-3-4zM6 18.5A1.5 1.5 0 1 1 7.5 17 1.5 1.5 0 0 1 6 18.5zm12 0a1.5 1.5 0 1 1 1.5-1.5 1.5 1.5 0 0 1-1.5 1.5zm-1-8.5h2.5l1.5 2H17v-2z'/%3E%3C/svg%3E");
}

.icon-beneficio--dinero {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1a11 11 0 1 0 11 11A11 11 0 0 0 12 1zm.5 16.5h-1v-1.1a3.4 3.4 0 0 1-2.7-2.4l1.4-.6c.3.9 1 1.6 2 1.6.9 0 1.6-.5 1.6-1.3 0-.8-.6-1.1-1.9-1.5-1.6-.5-2.8-1.1-2.8-2.7 0-1.3 1-2.2 2.4-2.4V5.5h1v1.2c1.1.2 1.9 1 2.2 2l-1.4.6c-.3-.8-.8-1.3-1.7-1.3-.8 0-1.4.4-1.4 1.1 0 .7.6 1 1.9 1.4 1.6.5 2.8 1.1 2.8 2.7 0 1.4-1 2.3-2.4 2.5z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1a11 11 0 1 0 11 11A11 11 0 0 0 12 1zm.5 16.5h-1v-1.1a3.4 3.4 0 0 1-2.7-2.4l1.4-.6c.3.9 1 1.6 2 1.6.9 0 1.6-.5 1.6-1.3 0-.8-.6-1.1-1.9-1.5-1.6-.5-2.8-1.1-2.8-2.7 0-1.3 1-2.2 2.4-2.4V5.5h1v1.2c1.1.2 1.9 1 2.2 2l-1.4.6c-.3-.8-.8-1.3-1.7-1.3-.8 0-1.4.4-1.4 1.1 0 .7.6 1 1.9 1.4 1.6.5 2.8 1.1 2.8 2.7 0 1.4-1 2.3-2.4 2.5z'/%3E%3C/svg%3E");
}

.icon-beneficio--regalo {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6h-2.18c.11-.31.18-.65.18-1a2.5 2.5 0 0 0-2.5-2.5c-1.44 0-2.5 1.5-3 2.5-.5-1-1.56-2.5-3-2.5A2.5 2.5 0 0 0 7 5c0 .35.07.69.18 1H5a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2zM12 6H9.83A1.5 1.5 0 0 1 9.5 5a1 1 0 0 1 1-1c.7 0 1.4 1.1 1.5 2zm3.5-2a1 1 0 0 1 1 1c0 .35-.13.68-.33 1H14c.1-.9.8-2 1.5-2zM5 8h6v2H5V8zm0 4h6v7H5v-7zm14 7h-6v-7h6v7zm0-9h-6V8h6v2z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6h-2.18c.11-.31.18-.65.18-1a2.5 2.5 0 0 0-2.5-2.5c-1.44 0-2.5 1.5-3 2.5-.5-1-1.56-2.5-3-2.5A2.5 2.5 0 0 0 7 5c0 .35.07.69.18 1H5a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2zM12 6H9.83A1.5 1.5 0 0 1 9.5 5a1 1 0 0 1 1-1c.7 0 1.4 1.1 1.5 2zm3.5-2a1 1 0 0 1 1 1c0 .35-.13.68-.33 1H14c.1-.9.8-2 1.5-2zM5 8h6v2H5V8zm0 4h6v7H5v-7zm14 7h-6v-7h6v7zm0-9h-6V8h6v2z'/%3E%3C/svg%3E");
}

/* ---- Footer ---- */
.site-footer {
    margin-top: 4.5rem;
    background: #f9f2f4;
    border-top: 1px solid #ebdfe3;
}

.site-footer__cols {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(230px, 1.15fr) minmax(150px, .62fr) minmax(190px, .82fr) minmax(230px, .95fr);
    align-items: start;
    gap: clamp(2rem, 4vw, 4.5rem);
    padding: 4rem 1.5rem 3.4rem;
}

.site-footer__marca {
    max-width: 285px;
}

.site-footer__logo,
.site-footer__logo .custom-logo-link {
    display: block;
    width: 96px;
    height: 96px;
    margin-bottom: 1rem;
}

.site-footer__logo img,
.site-footer__logo .custom-logo {
    display: block;
    width: 96px;
    height: 96px;
    max-width: 96px;
    max-height: 96px;
    object-fit: cover;
    border-radius: 50%;
}

.site-footer__descripcion {
    margin: 0;
    color: #625b60;
    font-size: .88rem;
    line-height: 1.7;
}

.site-footer__titulo {
    margin: 0 0 1rem;
    font-family: var(--fuente-titulos);
    font-size: 1rem;
    font-weight: 600;
}

.site-footer__propuesta {
    margin-top: 1.8rem;
}

.site-footer__propuesta ul {
    display: grid;
    gap: .6rem;
    margin: 0;
    padding: 0;
    list-style: none;
    color: #514a4f;
    font-size: .83rem;
    line-height: 1.35;
}

.site-footer__propuesta li {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.site-footer__propuesta li::before {
    width: .42rem;
    height: .42rem;
    flex: 0 0 auto;
    background: var(--color-primario);
    border-radius: 50%;
    content: '';
}

.site-footer__info address {
    display: grid;
    gap: .7rem;
    margin: 0 0 1rem;
    font-style: normal;
}

.site-footer__info address p {
    margin: 0;
    color: #625b60;
    font-size: .82rem;
    line-height: 1.55;
}

.site-footer__info address strong {
    display: block;
    color: var(--color-texto);
    font-size: .78rem;
}

.site-footer__info address a,
.site-footer__whatsapp a,
.site-footer__redes a {
    color: #625b60;
}

.site-footer__info address a:hover,
.site-footer__whatsapp a:hover,
.site-footer__redes a:hover {
    color: var(--color-primario);
}

.site-footer__whatsapp {
    display: grid;
    gap: .75rem;
    font-size: .83rem;
}

.site-footer__whatsapp a {
    display: grid;
    gap: .12rem;
    line-height: 1.35;
}

.site-footer__whatsapp strong {
    color: var(--color-texto);
    font-size: .78rem;
}

.site-footer__redes {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem .8rem;
    margin-top: 1.35rem;
    color: #625b60;
    font-size: .8rem;
}

.site-footer__redes > span {
    width: 100%;
    color: var(--color-texto);
    font-weight: 600;
}

.site-footer__menu {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.site-footer__menu a {
    font-size: .84rem;
    transition: color .2s ease;
}

.site-footer__menu a:hover {
    color: var(--color-primario);
}

.site-footer__horarios {
    margin-top: 1.7rem;
}

.site-footer__horarios p {
    display: flex;
    align-items: baseline;
    gap: .45rem;
    margin: 0 0 .55rem;
    color: #625b60;
    font-size: .8rem;
}

.site-footer__horarios p::after {
    flex: 1;
    border-bottom: 1px dotted #b8aeb1;
    content: '';
}

.site-footer__horarios b {
    color: var(--color-texto);
    font-size: .78rem;
    white-space: nowrap;
}

.site-footer__bottom {
    text-align: center;
    padding: 1.15rem 1.5rem;
    color: #625b60;
    font-size: .78rem;
    border-top: 1px solid #e5dadd;
}

@media (max-width: 1050px) {
    .site-footer__cols {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 2.75rem 4rem;
        padding-top: 3rem;
    }

    .site-footer__marca {
        max-width: 360px;
    }
}

@media (max-width: 600px) {
    .site-footer__cols {
        grid-template-columns: 1fr;
        gap: 2.2rem;
        padding: 2.75rem 1.5rem;
    }

    .site-footer__marca {
        max-width: none;
    }

    .site-footer__logo,
    .site-footer__logo .custom-logo-link,
    .site-footer__logo img,
    .site-footer__logo .custom-logo {
        width: 88px;
        height: 88px;
        max-width: 88px;
        max-height: 88px;
    }

    .site-footer__horarios {
        max-width: 280px;
    }
}
