/* ================================================================
   CATEGORY CARD (legado)
   ================================================================ */

.category-card {
    background: var(--color-secundario);
    border: 2px solid var(--color-gris-medio);
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-primario);
    cursor: pointer;
    transition: all 0.2s;
}

.category-card:hover,
.category-card.active {
    background: var(--color-primario);
    color: var(--color-secundario);
    transform: translateY(-3px);
}


/* ================================================================
   ANIMACIÓN CARRITO
   ================================================================ */

@keyframes shakeRotateScale {
    0% {
        transform: scale(1) rotate(0deg);
    }
    15% {
        transform: scale(1.05) rotate(-3deg);
    }
    30% {
        transform: scale(1.1) rotate(3deg);
    }
    45% {
        transform: scale(1.15) rotate(-2deg);
    }
    60% {
        transform: scale(1.1) rotate(2deg);
    }
    75% {
        transform: scale(1.05) rotate(-1deg);
    }
    90% {
        transform: scale(1.01) rotate(1deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

.cart-animate {
    animation: shakeRotateScale 1s ease;
}


/* ================================================================
   CONFIRMACIÓN DE PEDIDO
   ================================================================ */

.confirm-wrap {
    max-width: 700px;
    margin: 40px auto;
    padding: 0 20px 60px;
    font-family: 'Quicksand', 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.confirm-header {
    background: var(--color-primario);
    border-radius: 16px 16px 0 0;
    padding: 24px 30px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.confirm-header-logo {
    width: 48px;
    height: 48px;
    background: var(--color-confirm-header-logo);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.confirm-header-logo img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.confirm-header-text strong {
    display: block;
    color: var(--color-secundario);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
}

.confirm-header-text span {
    color: var(--color-header-logo-sub);
    font-size: 0.8rem;
}

.confirm-header-badge {
    margin-left: auto;
    background: var(--color-acento);
    color: var(--color-acento-text);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.confirm-body {
    background: var(--color-secundario);
    padding: 30px 40px;
    border-left: 1px solid var(--color-gris-claro);
    border-right: 1px solid var(--color-gris-claro);
}

.confirm-success {
    text-align: center;
    padding: 10px 0 20px;
}

.confirm-success-icon {
    width: 56px;
    height: 56px;
    background: var(--color-verde-ok-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 26px;
    color: var(--color-input-borde-ok);
    font-weight: bold;
}

.confirm-success h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primario);
    margin-bottom: 8px;
}

.confirm-success p {
    font-size: 0.9rem;
    color: var(--color-gris-texto);
    max-width: 450px;
    margin: 0 auto;
    line-height: 1.6;
}

.section-divider {
    border: none;
    border-top: 1px solid var(--color-borde-divider);
    margin: 24px 0;
}

.confirm-section-title {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--color-primario);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.confirm-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.confirm-info-item {
    background: var(--color-fondo-claro);
    border-radius: 10px;
    padding: 12px 16px;
    border: 1px solid transparent;
    transition: border 0.2s;
}

.confirm-info-item:hover {
    border-color: var(--color-gris-claro);
}

.confirm-info-item.full {
    grid-column: 1 / -1;
}

.confirm-info-item .label {
    font-size: 0.65rem;
    color: var(--color-gris-medio);
    margin-bottom: 4px;
    text-transform: uppercase;
    font-weight: 600;
}

.confirm-info-item .value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-gris-oscuro);
}

.producto-table {
    width: 100%;
    border-bottom: 1px solid var(--color-gris-claro);
    padding: 8px 0;
}

.prod-badge {
    width: 40px;
    text-align: center;
}

.prod-badge div {
    background: var(--color-primario);
    color: var(--color-acento-text);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    line-height: 22px;
    font-size: 0.7rem;
    font-weight: 700;
    margin: auto;
}

.prod-info {
    padding-left: 8px;
}

.prod-nombre {
    font-size: 0.84rem;
    color: var(--color-gris-oscuro);
}

.prod-precio {
    font-size: 0.75rem;
    color: var(--color-gris-muted);
}

.prod-subtotal {
    white-space: nowrap;
}

.prod-subtotal div {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-primario);
}

.confirm-totales {
    background: var(--color-confirm-total-bg, var(--color-fondo-confirm-total));
    padding: 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: var(--color-gris-muted);
}

.total-main {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primario);
    margin-top: 10px;
    padding-top: 12px;
    border-top: 2px solid var(--color-gris-claro);
}

.confirm-pago {
    background: var(--color-acento-light);
    border-left: 5px solid var(--color-acento);
    border-radius: 4px 12px 12px 4px;
    padding: 20px;
    margin: 10px 0;
}

.confirm-pago h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-acento-text);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.confirm-pago p {
    font-size: 0.88rem;
    color: var(--color-acento-text);
    line-height: 1.6;
}

.confirm-pago strong {
    color: var(--color-acento-text-strong);
}

.confirm-pago a {
    color: var(--color-confirm-pago-link);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1.5px solid var(--color-confirm-pago-link);
}

.confirm-pago a:hover {
    border-bottom-color: var(--color-confirm-pago-link);
}

.confirm-stock {
    background: var(--color-fondo-pill-categoria);
    border-radius: 8px;
    padding: 12px 16px;
    border: 1px dashed var(--color-gris-medio);
    margin-top: 15px;
}

.confirm-stock p {
    font-size: 0.8rem;
    color: var(--color-gris-muted);
    text-align: center;
}

.confirm-footer {
    background: var(--color-primario-deep);
    border-radius: 0 0 16px 16px;
    padding: 30px;
    text-align: center;
}

.confirm-footer p {
    color: var(--color-confirm-footer-text);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.btn-group {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.btn-volver {
    background: var(--color-acento);
    color: var(--color-secundario);
    border: none;
    padding: 12px 32px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.btn-volver:hover {
    background: var(--color-acento-hover);
    transform: translateY(-2px);
}

.btn-wsp {
    background: var(--color-wsp);
    color: var(--color-secundario);
    border: none;
    padding: 12px 32px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.8s;
}

.btn-wsp:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .confirm-wrap {
        margin: 10px auto;
        padding: 0 10px 30px;
    }
    .confirm-body {
        padding: 20px;
    }
    .confirm-info-grid {
        grid-template-columns: 1fr;
    }
    .confirm-header {
        padding: 20px;
    }
    .confirm-header-badge {
        margin-top: 10px;
        width: 100%;
        text-align: center;
        margin-left: 0;
    }
    .btn-group {
        flex-direction: column;
    }
    .btn-volver,
    .btn-wsp {
        width: 100%;
    }
}



/* ================================================================
   FAVORITOS (wishlist)
   ================================================================ */
.header-fav-btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--color-secundario);
    font-size: 0.88rem;
    padding: 0.46rem 1rem;
    border-radius: 7px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.18s, transform 0.15s, border-color 0.18s;
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.01em;
}

.header-fav-btn:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.28);
    border-radius: 7px;
    transform: translateY(-1px);
}

#fav-count {
    font-weight: 700;
    margin-left: 2px;
}

.prod-fav-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: transform 0.15s;
}

.prod-fav-btn:hover {
    transform: scale(1.12);
}

.prod-fav-btn svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: #9a9186;
    stroke-width: 2;
    transition: fill 0.15s, stroke 0.15s;
}

.prod-fav-btn.activo svg {
    fill: #D7263D;
    stroke: #D7263D;
}

/* Botón favorito en el detalle de producto */
.pd-fav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--color-gris-claro);
    background: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin-left: 10px;
    flex-shrink: 0;
    transition: transform 0.15s, border-color 0.15s;
}

.pd-fav-btn:hover {
    transform: scale(1.08);
    border-color: #D7263D;
}

.pd-fav-btn svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: #9a9186;
    stroke-width: 2;
}

.pd-fav-btn.activo svg {
    fill: #D7263D;
    stroke: #D7263D;
}

/* ================================================================
   COMPARTIR PRODUCTO (detalle)
   ================================================================ */
.pd-share-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 0.9rem;
    flex-wrap: wrap;
}

.pd-share-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-gris-muted);
}

.pd-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 13px;
    border-radius: 99px;
    border: 1.5px solid var(--color-gris-claro);
    background: #fff;
    color: var(--color-gris-texto);
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s;
}

.pd-share-btn:hover {
    border-color: var(--color-primario);
    background: var(--color-fondo-claro);
}

/* ================================================================
   "SEGUÍ MIRANDO" — vistos recientemente (home)
   ================================================================ */
.vistos-section {
    padding: 1.6rem 1.2rem 0.6rem;
    max-width: calc(6 * 175px + 5 * 0.9rem + 2.4rem);
    margin: 0 auto;
}

/* ================================================================
   NEWSLETTER (footer)
   ================================================================ */
.footer-newsletter {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding: 18px 22px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
}

.fn-text h4 {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 3px;
}

.fn-text p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.8rem;
}

.fn-form {
    display: flex;
    gap: 8px;
    flex: 1;
    min-width: 250px;
    max-width: 420px;
}

.fn-form input {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    font-size: 0.85rem;
    font-family: var(--font-body);
}

.fn-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.fn-form input:focus {
    outline: none;
    border-color: var(--color-acento);
    background: rgba(255, 255, 255, 0.16);
}

.fn-form button {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    background: var(--color-acento);
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background 0.18s;
    flex-shrink: 0;
}

.fn-form button:hover:not(:disabled) {
    background: var(--color-acento-hover);
}

.fn-form button:disabled {
    opacity: 0.6;
    cursor: wait;
}

.fn-msg {
    width: 100%;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0;
}

.fn-msg.ok    { color: #8fdca8; }
.fn-msg.error { color: #f3a0a0; }

@media (max-width: 768px) {
    .header-fav-btn {
        padding: 0.48rem 0.7rem;
        font-size: 0.8rem;
    }

    .footer-newsletter {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    body.layout-boutique .product img {
        height: 170px;
    }

    body.layout-compacto .product img {
        height: 105px;
    }
}

/* Fila título + corazón en el detalle de producto */
.pd-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.pd-title-row .pd-title {
    flex: 1;
    min-width: 0;
}

/* ── Reseñas de producto ───────────────────────────────────────── */
.pd-ab-verified-note {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: #6b7280; margin-top: 8px;
  padding: 8px 12px; background: #f9fafb; border-radius: 8px;
  border: 1px solid #e5e7eb;
}
.pd-ab-verified-note svg { color: #22c55e; flex-shrink: 0; }
.pd-star-btn {
  background: none; border: none; font-size: 22px; cursor: pointer;
  color: #9ca3af; padding: 2px; transition: transform .1s;
}
.pd-star-btn:hover { transform: scale(1.2); }
.pd-review-input {
  width: 100%; padding: 9px 12px; border: 1px solid #d1d5db;
  border-radius: 8px; font-size: 14px; font-family: inherit;
  background: #fff; color: #111827;
}
.pd-review-input:focus { outline: none; border-color: #2563eb; }
.pd-review-submit {
  background: var(--color-primario); color: #fff; border: none; border-radius: 8px;
  padding: 10px 20px; font-size: 14px; font-weight: 600; cursor: pointer;
  align-self: flex-start; transition: background .15s;
}
.pd-review-submit:hover { background: var(--color-primario-hover); }
.pd-review-submit:disabled { opacity: .6; cursor: not-allowed; }
.pd-review-cancel-btn {
  background: transparent; color: #6b7280; border: 1px solid #d1d5db;
  border-radius: 8px; padding: 10px 18px; font-size: 14px; font-weight: 500;
  cursor: pointer; align-self: flex-start; transition: background .15s, color .15s;
}
.pd-review-cancel-btn:hover { background: #f3f4f6; color: #374151; }

/* ── Formulario de restock ─────────────────────────────────────── */
.pd-restock-form {
  background: #fffbeb; border: 1px solid #fcd34d; border-radius: 10px;
  padding: 14px 16px; margin: 14px 0;
}
.pd-restock-intro { font-size: 13px; font-weight: 500; margin-bottom: 10px; color: #92400e; }
.pd-restock-input {
  flex: 1; padding: 9px 12px; border: 1px solid #fcd34d; border-radius: 8px;
  font-size: 13px; background: #fff; min-width: 180px;
}
.pd-restock-btn {
  background: #f59e0b; color: #fff; border: none; border-radius: 8px;
  padding: 9px 18px; font-size: 13px; font-weight: 600; cursor: pointer;
  white-space: nowrap; transition: background .15s;
}
.pd-restock-btn:hover { background: #d97706; }


/* ================================================================
   SHOPIFY-PARITY IMPROVEMENTS
   ================================================================ */

/* ── Search wrap (contenedor relativo para el dropdown) ───────── */

.search-wrap {
    flex: 1;
    position: relative;
    min-width: 0;
}

.search-wrap .header-search {
    flex: none;
    width: 100%;
}

/* ── Predictive search dropdown ───────────────────────────────── */

.search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    border: 1px solid var(--color-gris-claro);
    z-index: 9999;
    overflow: hidden;
    animation: dropdownFadeIn 0.18s ease;
}

.search-dropdown.open {
    display: block;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.search-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    cursor: pointer;
    transition: background 0.12s;
    border-bottom: 1px solid var(--color-borde-divider);
    text-decoration: none;
}

.search-dropdown-item:last-of-type {
    border-bottom: none;
}

.search-dropdown-item:hover {
    background: var(--color-fondo-claro);
}

.search-dd-img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--color-fondo-qty);
    flex-shrink: 0;
    border: 1px solid var(--color-gris-claro);
}

.search-dd-info {
    flex: 1;
    min-width: 0;
}

.search-dd-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-gris-oscuro);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.search-dd-price {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-primario);
    margin-top: 2px;
}

.search-dd-price-old {
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--color-gris-muted);
    text-decoration: line-through;
    margin-left: 5px;
}

.search-dd-cat {
    font-size: 0.7rem;
    color: var(--color-gris-muted);
    margin-top: 1px;
}

.search-dd-footer {
    padding: 0.6rem 1rem;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-primario);
    background: var(--color-fondo-qty);
    cursor: pointer;
    transition: background 0.15s;
    border-top: 1px solid var(--color-gris-claro);
}

.search-dd-footer:hover {
    background: var(--color-fondo-hover-cat);
}

.search-dd-empty {
    padding: 1.2rem 1rem;
    text-align: center;
    font-size: 0.84rem;
    color: var(--color-gris-muted);
}


/* ── Cart backdrop ────────────────────────────────────────────── */

#cart-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#cart-backdrop.visible {
    opacity: 1;
    pointer-events: auto;
}


/* ── Back to top button ───────────────────────────────────────── */

#back-to-top {
    position: fixed;
    bottom: 5.8rem;
    right: 1.5rem;
    z-index: 1100;
    background: var(--color-primario);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.2s, background 0.2s;
    transform: translateY(12px);
    display: flex;
    align-items: center;
    justify-content: center;
}

#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#back-to-top:hover {
    background: var(--color-primario-hover);
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    #back-to-top {
        bottom: 5rem;
        right: 1rem;
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}


/* ── Footer: íconos de pago ───────────────────────────────────── */

.footer-pagos-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.fp-icon {
    height: 28px;
    width: auto;
    border-radius: 4px;
    display: block;
}

.fp-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    white-space: nowrap;
    height: 28px;
}

/* ── Search wrap: mobile override ────────────────────────────── */
@media (max-width: 600px) {
    .search-wrap {
        order: 3;
        width: 100%;
        max-width: 100%;
        flex-basis: 100%;
        min-width: 0;
    }
    .search-wrap .header-search {
        order: unset;
        flex-basis: unset;
    }
    .search-dropdown {
        left: -0.9rem;
        right: -0.9rem;
    }
}

/* ── Product card entrance animation ────────────────────────── */
@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.product-grid .product {
    animation: cardFadeIn 0.32s ease both;
}

.product-grid .product:nth-child(1)  { animation-delay: 0.00s; }
.product-grid .product:nth-child(2)  { animation-delay: 0.04s; }
.product-grid .product:nth-child(3)  { animation-delay: 0.08s; }
.product-grid .product:nth-child(4)  { animation-delay: 0.12s; }
.product-grid .product:nth-child(5)  { animation-delay: 0.16s; }
.product-grid .product:nth-child(6)  { animation-delay: 0.20s; }
.product-grid .product:nth-child(7)  { animation-delay: 0.24s; }
.product-grid .product:nth-child(8)  { animation-delay: 0.28s; }
.product-grid .product:nth-child(9)  { animation-delay: 0.32s; }
.product-grid .product:nth-child(10) { animation-delay: 0.36s; }
.product-grid .product:nth-child(11) { animation-delay: 0.40s; }
.product-grid .product:nth-child(12) { animation-delay: 0.44s; }

/* ── Mobile bottom navigation bar ───────────────────────────── */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 1050;
    background: var(--color-fondo, #fff);
    border-top: 1px solid var(--color-borde, #e5e5e5);
    height: 56px;
    box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.09);
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
    .mobile-bottom-nav { display: grid; }
    body { padding-bottom: 56px; }
    #back-to-top { bottom: 4.5rem; }
    #boton-wpp   { bottom: 4.5rem !important; }
}

.mbn-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 0;
    border: none;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    color: var(--color-texto, #333);
    position: relative;
    -webkit-tap-highlight-color: transparent;
    font-family: inherit;
    transition: background 0.15s;
}

.mbn-item:active { background: var(--color-fondo-alt, #f5f5f5); }

.mbn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}
.mbn-icon .ico {
    width: 22px;
    height: 22px;
}

.mbn-label {
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    opacity: 0.65;
}

.mbn-count {
    position: absolute;
    top: 5px;
    right: calc(50% - 20px);
    min-width: 17px;
    height: 17px;
    background: var(--color-acento, #C8913A);
    color: #fff;
    border-radius: 9px;
    font-size: 0.62rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    pointer-events: none;
}


