/* =========================================================
   FOOTER — dirección "Kiosco"
   ========================================================= */

.main-footer {
    background-color: #000;
    color: #fff;
    font-family: inherit;
    padding-top: 62px;
    margin-top: 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 52px;
}

.footer-column { margin: 0; }

.footer-column h3 {
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #7e7e7e;
    margin-bottom: 18px;
}

.footer-column p {
    font-size: 0.86rem;
    line-height: 1.65;
    color: #a8a8a8;
    margin-bottom: 10px;
    max-width: 32ch;
}

.footer-info p:first-of-type { color: #d4d4d4; }

.footer-addr,
.footer-contact,
.footer-hours {
    font-size: 0.8rem !important;
    color: #8e8e8e !important;
}

.footer-contact { margin-top: 6px !important; }
.footer-contact a { color: #d4d4d4; }
.footer-contact a:hover { color: #fff; }

.footer-hours { margin-top: 18px; }

.footer-column ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-column li {
    font-size: 0.86rem;
    line-height: 1.5;
    margin: 0;
}

.footer-column a {
    color: #d4d4d4;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.footer-column a:hover {
    color: #fff;
    border-bottom-color: #fff;
}

/* Logotipo gigante que cierra la página */
.footer-wordmark {
    color: #fff;
    padding-bottom: 26px;
    border-bottom: 1px solid #333;
    line-height: 0;
}

.footer-wordmark svg {
    width: 100%;
    max-width: 340px;
    height: auto;
    display: block;
    color: #fff;
    fill: currentColor;
}

.footer-wordmark-txt {
    display: block;
    font-size: clamp(58px, 13vw, 168px);
    font-weight: 900;
    letter-spacing: -0.055em;
    line-height: 0.8;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 20px;
    padding-bottom: 30px;
    background: transparent;
    border: none;
    text-align: left;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.68rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #6e6e6e;
}

/* =========================================================
   BOTÓN FIJO DE WHATSAPP
   ========================================================= */
.wsp-fixed {
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    position: fixed;
    bottom: 22px;
    right: 22px;
    /* Por debajo del cajón del carrito (998/999), si no le queda encima */
    z-index: 900;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    border: 1.5px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.wsp-fixed svg {
    width: 27px;
    height: 27px;
    display: block;
}

.wsp-fixed:hover {
    background: #fff;
    color: #000;
    transform: translateY(-2px);
}

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 900px) {
    .footer-container { grid-template-columns: 1fr 1fr; gap: 34px 30px; }
}

@media (max-width: 768px) {
    .main-footer { padding-top: 46px; }
    .footer-wordmark svg { max-width: 220px; }
    .footer-container { padding-bottom: 38px; text-align: left; }
    .footer-column { width: 100%; max-width: none; }
    .footer-wordmark { padding-bottom: 20px; }
    .footer-bottom { padding-bottom: 26px; }
    .wsp-fixed { width: 48px; height: 48px; bottom: 16px; right: 16px; }

    /* El botón flotante tapaba "Agregar al pedido" y "Continuar": mientras
       esos botones están a la vista, el de WhatsApp se aparta. Vuelve solo
       apenas dejan de verse. */
    .wsp-fixed.wsp-oculto {
        opacity: 0;
        visibility: hidden;
        transform: translateY(12px) scale(0.85);
        pointer-events: none;
    }
    .wsp-fixed svg { width: 24px; height: 24px; }
}

@media (max-width: 480px) {
    .footer-container { grid-template-columns: 1fr; gap: 28px; }
}


/* ── Botón flotante de WhatsApp ──────────────────────────────────────────
   Estaba en negro y del mismo tamaño que cualquier otro botón: la gente no
   lo registraba como WhatsApp. Ahora usa el verde de la app, que es lo que
   todo el mundo reconoce, y en pantalla grande muestra "Escribinos". */
.wsp-fixed {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 900;   /* por debajo del cajón del carrito */
    display: inline-flex;
    align-items: center;
    gap: 0;
    height: 58px;
    padding: 0;
    width: 58px;
    border: 0;
    border-radius: 999px;
    background: #25D366;
    color: #fff;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.26);
    overflow: hidden;
    transition: width 0.26s cubic-bezier(0.2, 0.8, 0.3, 1),
                opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.wsp-fixed svg {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    margin: 0 14px;
    display: block;
}
.wsp-txt {
    order: -1;
    max-width: 0;
    padding-left: 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    transition: max-width 0.26s cubic-bezier(0.2, 0.8, 0.3, 1), padding-left 0.26s;
}
.wsp-fixed:hover,
.wsp-fixed:focus-visible {
    width: 180px;
    background: #1EBE5A;
    color: #fff;
}
.wsp-fixed:hover .wsp-txt,
.wsp-fixed:focus-visible .wsp-txt { max-width: 120px; padding-left: 20px; }
.wsp-fixed:focus-visible { outline: 3px solid #000; outline-offset: 3px; }

/* Se aparta mientras el botón principal de la pantalla está a la vista. */
.wsp-fixed.wsp-oculto {
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px) scale(0.9);
    pointer-events: none;
}

@media (max-width: 700px) {
    /* En el celular no se expande: sólo el globito, más arriba para no
       taparse con la barra fija del checkout. */
    .wsp-fixed { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
    .wsp-fixed:hover, .wsp-fixed:focus-visible { width: 58px; }
    .wsp-fixed:hover .wsp-txt, .wsp-fixed:focus-visible .wsp-txt { max-width: 0; padding-left: 0; }
    body.checkout-page .wsp-fixed { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
    .wsp-fixed, .wsp-txt { transition: none; }
}
