/* =========================================================
   STOREFRONT UI
   Capa exclusivamente visual. No modifica lógica, precios,
   stock, carrito, pedidos ni condiciones especiales.
   ========================================================= */

:root {
    --store-bg: #f6f6f4;
    --store-surface: #ffffff;
    --store-surface-soft: #fafaf8;
    --store-text: #171717;
    --store-muted: #6f6f6b;
    --store-border: #e5e5e1;
    --store-border-strong: #d7d7d1;
    --store-accent: #111111;
    --store-accent-soft: #f0f0ed;
    --store-success: #1d8f52;
    --store-danger: #c63c3c;
    --store-radius-sm: 10px;
    --store-radius: 16px;
    --store-radius-lg: 22px;
    --store-shadow-sm: 0 6px 18px rgba(15, 15, 15, 0.05);
    --store-shadow: 0 14px 40px rgba(15, 15, 15, 0.07);
    --store-shadow-hover: 0 20px 48px rgba(15, 15, 15, 0.11);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--store-bg);
}

body {
    min-height: 100vh;
    margin: 0;
    padding-top: 78px;
    overflow-x: hidden;
    background: var(--store-bg) !important;
    color: var(--store-text);
    font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body,
button,
input,
textarea,
select {
    font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--store-text);
    font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    letter-spacing: -0.025em;
}

img {
    max-width: 100%;
}

/* =========================
   HEADER / NAVEGACIÓN
   ========================= */

#mainNav.navbar {
    min-height: 78px;
    padding: 10px 0 !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border-bottom: 1px solid rgba(18, 18, 18, 0.08);
    box-shadow: 0 4px 22px rgba(15, 15, 15, 0.045);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

#mainNav .container {
    width: min(100% - 28px, 1280px);
    max-width: 1280px;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    margin-right: 18px;
    padding: 0;
}

.img-brand {
    display: block;
    width: auto;
    max-width: min(250px, 52vw);
    height: 52px;
    object-fit: contain;
    object-position: left center;
}

#carrito {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 118px;
    height: 46px;
    padding: 0 18px;
    overflow: visible;
    color: #ffffff;
    background: var(--store-accent) !important;
    border: 1px solid var(--store-accent) !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

#carrito:hover {
    background: #292929 !important;
    border-color: #292929 !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16) !important;
    transform: translateY(-1px);
}

#carrito i {
    font-size: 17px;
}

#cuenta {
    white-space: nowrap;
    font-size: 13px;
    font-weight: 800;
}

#badge-carrito {
    top: -7px !important;
    right: -7px !important;
    min-width: 22px;
    height: 22px;
    padding: 0 6px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: #e93f44 !important;
    border: 2px solid #ffffff;
    border-radius: 999px !important;
    box-shadow: 0 5px 14px rgba(233, 63, 68, 0.25) !important;
    font-size: 10px !important;
    line-height: 1;
}

/* =========================
   HERO / SLIDER
   ========================= */

.carousel {
    width: 100%;
    overflow: hidden;
    background: #ecece8;
}

.carousel-inner,
.carousel-item {
    width: 100%;
}

.carousel-item img {
    display: block;
    width: 100%;
    aspect-ratio: 1300 / 436;
    max-height: 560px;
    object-fit: cover;
    object-position: center;
}

/* =========================
   CONTENIDO GENERAL
   ========================= */

.page-section,
#services.page-section,
.bg-gradient-animated {
    padding: 46px 0 76px !important;
    background: var(--store-bg) !important;
}

#services > .container {
    width: min(100% - 28px, 1240px);
    max-width: 1240px;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

#services > .container > h2 {
    margin: 0 0 22px !important;
    color: var(--store-text);
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 800;
    text-align: left !important;
}

.divider {
    width: 100%;
    max-width: none;
    height: 1px;
    margin: 28px 0 !important;
    border: 0;
    background: var(--store-border);
    opacity: 1;
}

/* =========================
   BUSCADOR
   ========================= */

.buscador-container {
    max-width: 760px !important;
    margin: 0 auto 30px !important;
}

.buscador-container > label {
    display: block;
    margin: 0 0 9px;
    color: var(--store-text);
    font-size: 13px;
    font-weight: 800;
}

.buscador-form {
    min-height: 54px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--store-surface) !important;
    border: 1px solid var(--store-border-strong);
    border-radius: 14px !important;
    box-shadow: var(--store-shadow-sm) !important;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.buscador-form:focus-within {
    border-color: #a7a7a1;
    box-shadow: 0 0 0 4px rgba(17, 17, 17, .05) !important;
}

.buscador-form input {
    min-width: 0;
    height: 52px;
    padding: 0 18px !important;
    color: var(--store-text);
    background: transparent;
    border: 0;
    font-size: 15px !important;
    font-weight: 600;
}

.buscador-form input::placeholder {
    color: #999993;
    font-weight: 500;
}

.buscador-form button {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    color: #ffffff;
    background: var(--store-accent) !important;
    border: 0;
    border-radius: 0 !important;
    transition: background-color .2s ease;
}

.buscador-form button:hover {
    background: #2b2b2b !important;
}

.btn-limpiar {
    width: 50px !important;
    height: 54px !important;
    flex: 0 0 50px;
    color: #787873 !important;
    background: #ffffff !important;
    border-left: 1px solid var(--store-border) !important;
    opacity: 1 !important;
}

.btn-limpiar:hover {
    color: var(--store-danger) !important;
    background: #fff7f7 !important;
}

/* =========================
   BOTÓN PDF Y BLOQUES AUXILIARES
   ========================= */

.titulo-descarga {
    margin: -4px 0 28px !important;
    text-align: left !important;
}

.btn-pdf {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 17px !important;
    color: var(--store-text) !important;
    background: var(--store-surface) !important;
    border: 1px solid var(--store-border-strong);
    border-radius: 12px !important;
    box-shadow: none !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}

.btn-pdf i {
    color: #d23d43;
}

.btn-pdf:hover {
    color: var(--store-text) !important;
    background: #fafafa !important;
    border-color: #bfbfba;
    box-shadow: var(--store-shadow-sm) !important;
    transform: translateY(-1px) !important;
}

.mayorista-box,
.clientes-box {
    max-width: 760px !important;
    margin: 22px auto 30px !important;
    padding: 18px !important;
    color: var(--store-text) !important;
    background: var(--store-surface) !important;
    border: 1px solid var(--store-border) !important;
    border-radius: var(--store-radius) !important;
    box-shadow: var(--store-shadow-sm) !important;
    backdrop-filter: none !important;
}

.mayorista-box:hover,
.clientes-box:hover {
    transform: none !important;
}

.mayorista-toggle {
    min-height: 52px;
    padding: 0 15px !important;
    color: var(--store-text);
    background: var(--store-surface-soft) !important;
    border: 1px solid var(--store-border);
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
}

.mayorista-title {
    color: var(--store-text) !important;
    font-size: 17px !important;
}

.input-group-pro {
    min-height: 50px;
    background: #ffffff !important;
    border: 1px solid var(--store-border) !important;
    border-radius: 11px !important;
    box-shadow: none !important;
}

.input-group-pro:focus-within {
    border-color: #aaa9a3 !important;
    box-shadow: 0 0 0 4px rgba(17,17,17,.05) !important;
}

.btn-exportar {
    min-height: 50px;
    color: #ffffff !important;
    background: var(--store-accent) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    font-weight: 800 !important;
}

.btn-exportar:hover {
    background: #2a2a2a !important;
    box-shadow: var(--store-shadow-sm) !important;
    transform: translateY(-1px) !important;
}

.clientes-box {
    gap: 14px !important;
}

.cliente-nombre,
.saldo-label {
    color: var(--store-muted) !important;
    opacity: 1 !important;
}

.cliente-nombre span {
    color: var(--store-text);
}

.saldo-monto {
    color: var(--store-text) !important;
    background: var(--store-surface-soft) !important;
    border: 1px solid var(--store-border);
    box-shadow: none !important;
}

/* =========================
   CATEGORÍAS
   ========================= */

.accordion {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.accordion-item {
    overflow: visible;
    background: transparent !important;
    border: 0 !important;
}

.accordion-header {
    margin: 0;
}

.accordion-button {
    min-height: 64px;
    padding: 18px 22px !important;
    color: var(--store-text) !important;
    background: var(--store-surface) !important;
    border: 1px solid var(--store-border) !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    letter-spacing: -0.015em;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.accordion-button:hover {
    color: var(--store-text) !important;
    border-color: var(--store-border-strong) !important;
    box-shadow: var(--store-shadow-sm) !important;
    transform: translateY(-1px);
}

.accordion-button:not(.collapsed) {
    color: var(--store-text) !important;
    background: #ffffff !important;
    border-color: var(--store-border-strong) !important;
    border-radius: 14px !important;
    box-shadow: var(--store-shadow-sm) !important;
}

.accordion-button::after {
    width: 19px;
    height: 19px;
    background-size: 19px;
    opacity: .7;
}

.accordion-collapse .list-group {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 16px 2px 4px;
    background: transparent;
}

/* =========================
   TARJETAS DE PRODUCTOS
   ========================= */

.list-group-item,
.list-group-item.list-group-item-action {
    display: block !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    color: var(--store-text) !important;
    background: var(--store-surface) !important;
    border: 1px solid var(--store-border) !important;
    border-radius: var(--store-radius) !important;
    box-shadow: var(--store-shadow-sm) !important;
    backdrop-filter: none !important;
    transition: border-color .2s ease, box-shadow .22s ease, transform .22s ease !important;
}

.list-group-item:hover,
.list-group-item.list-group-item-action:hover {
    color: var(--store-text) !important;
    background: var(--store-surface) !important;
    border-color: var(--store-border-strong) !important;
    box-shadow: var(--store-shadow-hover) !important;
    transform: translateY(-2px) !important;
}

.list-group-item .item.row {
    min-height: 142px;
    margin: 0;
    padding: 16px;
    align-items: center;
    cursor: pointer;
}

.list-group-item .item > .col-9 {
    width: calc(100% - 52px);
    min-width: 0;
    padding: 0 8px 0 0;
}

.list-group-item .item > .col-3 {
    width: 52px;
    flex: 0 0 52px;
    padding: 0;
}

.img-producto {
    width: 108px !important;
    height: 108px !important;
    margin: 0 15px 0 0 !important;
    padding: 8px;
    object-fit: contain !important;
    object-position: center;
    background: #f5f5f2;
    border: 1px solid #ecece8;
    border-radius: 13px !important;
    box-shadow: none !important;
    cursor: zoom-in;
    transition: transform .22s ease, background-color .22s ease;
}

.img-producto:hover {
    background: #eeeeea;
    transform: scale(1.025);
}

.desc-producto {
    display: block !important;
    min-width: 0;
    margin: 1px 0 0 !important;
    padding: 0 !important;
    color: var(--store-text) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.35;
}

.producto-nombre {
    display: block;
    overflow-wrap: anywhere;
    color: var(--store-text);
    font-size: 15px;
    font-weight: 700;
}

.producto-precio {
    display: block;
    margin-top: 7px;
    color: var(--store-text) !important;
    font-size: 19px !important;
    font-weight: 800 !important;
    letter-spacing: -0.035em;
    white-space: nowrap;
}

.list-group-item p {
    margin: 5px 0 0 !important;
    padding: 0 !important;
    overflow: hidden;
    color: var(--store-muted) !important;
    font-size: 12.5px !important;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.item .btn,
.item .btn.btn-dark {
    width: 44px !important;
    height: 44px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #ffffff;
    background: var(--store-accent) !important;
    border: 1px solid var(--store-accent) !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    font-size: 15px !important;
    transition: transform .18s ease, background-color .18s ease !important;
}

.item .btn:hover {
    background: #2b2b2b !important;
    transform: scale(1.06) !important;
}

.item .btn:disabled {
    background: #c9c9c5 !important;
    border-color: #c9c9c5 !important;
    transform: none !important;
}

.adicion {
    padding: 15px 16px 16px;
    background: var(--store-surface-soft);
    border-top: 1px solid var(--store-border);
}

.adicion > .row,
.adicion .row {
    margin-left: 0;
    margin-right: 0;
}

.adicion .my-3 {
    margin-top: 7px !important;
    margin-bottom: 7px !important;
}

.adicion h4 {
    margin: 0;
    color: var(--store-text);
    font-size: 13px;
}

.adicion h4 strong {
    display: block;
    margin-top: 3px;
    font-size: 18px;
}

.adicion .form-control,
.comentarios {
    min-height: 44px;
    color: var(--store-text);
    background: #ffffff;
    border: 1px solid var(--store-border-strong) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}

.adicion .form-control:focus,
.comentarios:focus {
    border-color: #999994 !important;
    box-shadow: 0 0 0 4px rgba(17,17,17,.05) !important;
}

.grupo-precio {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.grupo-precio button,
.grupo-precio .btn {
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    color: #ffffff !important;
    background: var(--store-accent) !important;
    border: 1px solid var(--store-accent) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}

.cantidad {
    width: 58px !important;
    max-width: 58px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 5px !important;
    text-align: center;
    font-weight: 800;
}

.badge-stock {
    margin-left: 0 !important;
}

/* =========================
   MODALES DE CARRITO / PEDIDO
   ========================= */

#staplesbmincart .modal-dialog,
#pedido .modal-dialog {
    max-width: 620px;
}

#staplesbmincart .modal-content,
#pedido .modal-content {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(17,17,17,.08) !important;
    border-radius: 20px !important;
    box-shadow: 0 30px 90px rgba(0,0,0,.22) !important;
}

#staplesbmincart .modal-header,
#pedido .modal-header {
    padding: 20px 22px !important;
    background: #ffffff;
    border-bottom: 1px solid var(--store-border) !important;
}

#staplesbmincart .modal-title,
#pedido .modal-title {
    margin: 0;
    color: var(--store-text) !important;
    font-size: 21px !important;
    font-weight: 800 !important;
}

#staplesbmincart .modal-body,
#pedido .modal-body {
    padding: 20px 22px !important;
}

#staplesbmincart .item-carrito {
    grid-template-columns: minmax(0, 1fr) 44px 104px 40px !important;
    gap: 8px !important;
    margin-bottom: 7px;
    padding: 13px 12px !important;
    background: var(--store-surface-soft);
    border: 1px solid var(--store-border);
    border-radius: 12px !important;
}

#staplesbmincart .item-nombre {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--store-text);
    font-weight: 700 !important;
}

#staplesbmincart .item-precio {
    color: var(--store-text);
    font-weight: 800 !important;
    white-space: nowrap;
}

.total-box {
    margin-top: 18px;
    padding: 14px 0 0;
    color: var(--store-muted);
    border-top: 1px solid var(--store-border);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.total-box #total-modal,
#total-modal {
    display: block;
    margin-top: 4px;
    color: var(--store-text);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.04em;
}

#staplesbmincart .modal-footer,
#pedido .modal-footer {
    padding: 18px 22px !important;
    background: #ffffff;
    border-top: 1px solid var(--store-border) !important;
}

#staplesbmincart #whatsapp,
#pedido .btn-whatsapp {
    min-height: 50px;
    color: #ffffff !important;
    background: #1faa59 !important;
    border: 1px solid #1faa59 !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    font-weight: 800 !important;
}

#staplesbmincart #whatsapp:hover,
#pedido .btn-whatsapp:hover {
    background: #198d49 !important;
    box-shadow: 0 10px 26px rgba(31,170,89,.22) !important;
    transform: translateY(-1px) !important;
}

#staplesbmincart #vaciar {
    width: auto !important;
    min-width: 92px;
    height: 50px !important;
    padding: 0 16px;
    color: var(--store-danger) !important;
    background: #ffffff !important;
    border: 1px solid #e6caca !important;
    border-radius: 12px !important;
    font-weight: 800;
}

#staplesbmincart #vaciar:hover {
    color: #ffffff !important;
    background: var(--store-danger) !important;
    transform: none !important;
}

#pedido .form-label {
    margin-bottom: 7px !important;
    color: var(--store-text) !important;
    font-size: 13px;
    font-weight: 800 !important;
}

#pedido .form-control {
    min-height: 48px;
    padding: 0 14px !important;
    color: var(--store-text);
    background: #ffffff;
    border: 1px solid var(--store-border-strong) !important;
    border-radius: 11px !important;
    box-shadow: none !important;
}

#pedido .form-control:focus {
    border-color: #989892 !important;
    box-shadow: 0 0 0 4px rgba(17,17,17,.05) !important;
}

#pedido .modal-footer-pro,
#pedido .acciones-carrito {
    width: 100%;
}

#pedido .btn-whatsapp .fa-whatsapp,
#staplesbmincart #whatsapp .fa-whatsapp {
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    box-shadow: none !important;
}

.carrito-vacio {
    padding: 34px 15px;
    color: var(--store-muted);
    text-align: center;
    font-weight: 700;
}

/* =========================
   FOOTER COMERCIAL
   ========================= */

.store-footer {
    position: relative;
    overflow: hidden;
    padding: 66px 0 0;
    color: #f7f7f5;
    background:
        radial-gradient(circle at 12% 12%, rgba(255,255,255,.08), transparent 29%),
        radial-gradient(circle at 88% 18%, rgba(255,255,255,.055), transparent 24%),
        #101112;
}

.store-footer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.32), transparent);
}

.store-footer .container {
    position: relative;
    z-index: 1;
}

.store-footer-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.25fr) minmax(220px, .9fr) minmax(150px, .55fr) minmax(260px, 1fr);
    gap: 30px;
    align-items: stretch;
}

.store-footer-brand,
.store-footer-contact,
.store-footer-social-column,
.store-footer-incloud {
    min-width: 0;
}

.store-footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.store-footer-logo-link {
    flex: 0 0 auto;
    text-decoration: none !important;
}

.store-footer-logo-wrap {
    display: flex;
    width: 96px;
    height: 96px;
    align-items: center;
    justify-content: center;
    padding: 11px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 20px;
    box-shadow: 0 18px 38px rgba(0,0,0,.24);
}

.store-footer-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.store-footer-brand-copy {
    min-width: 0;
    padding-top: 4px;
}

.store-footer-brand-copy h2 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: clamp(21px, 2vw, 28px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.035em;
}

.store-footer-brand-copy p {
    max-width: 360px;
    margin: 0;
    color: rgba(255,255,255,.64);
    font-size: 13px;
    line-height: 1.65;
}

.store-footer-eyebrow {
    display: block;
    margin-bottom: 18px;
    color: rgba(255,255,255,.48);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.store-footer-contact-list {
    display: grid;
    gap: 13px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.store-footer-contact-list li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    color: rgba(255,255,255,.76);
    font-size: 13px;
    line-height: 1.45;
}

.store-footer-icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 11px;
}

.store-footer-contact-list a {
    min-width: 0;
    overflow-wrap: anywhere;
    color: rgba(255,255,255,.82) !important;
    text-decoration: none;
    transition: color .18s ease;
}

.store-footer-contact-list a:hover {
    color: #ffffff !important;
}

.store-footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.store-footer-socials a {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 13px;
    text-decoration: none;
    transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}

.store-footer-socials a:hover {
    color: #111111 !important;
    background: #ffffff;
    border-color: #ffffff;
    transform: translateY(-2px);
}

.store-footer-incloud {
    padding: 24px;
    background: linear-gradient(145deg, rgba(255,255,255,.105), rgba(255,255,255,.045));
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 22px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.store-footer-incloud .store-footer-eyebrow {
    margin-bottom: 12px;
}

.store-footer-incloud h3 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -.025em;
}

.store-footer-incloud p {
    margin: 0 0 18px;
    color: rgba(255,255,255,.64);
    font-size: 13px;
    line-height: 1.55;
}

.store-footer-incloud-btn {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 17px;
    color: #111111 !important;
    background: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
    transition: transform .18s ease, background-color .18s ease;
}

.store-footer-incloud-btn:hover {
    color: #111111 !important;
    background: #f2f2ef;
    transform: translateY(-1px);
}

.store-footer-bottom {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    margin-top: 44px;
    padding: 20px 0 24px;
    color: rgba(255,255,255,.48);
    border-top: 1px solid rgba(255,255,255,.10);
    font-size: 12px;
}

.store-footer-credit {
    white-space: nowrap;
}

.store-footer-credit a {
    color: #ffffff !important;
    font-weight: 800;
    text-decoration: none;
}

.store-footer-credit a:hover {
    text-decoration: underline;
}

@media (max-width: 1199px) {
    .store-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .store-footer {
        padding-top: 46px;
    }

    .store-footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .store-footer-brand {
        align-items: center;
    }

    .store-footer-logo-wrap {
        width: 82px;
        height: 82px;
        border-radius: 17px;
    }

    .store-footer-brand-copy p {
        max-width: none;
    }

    .store-footer-incloud {
        padding: 21px;
    }

    .store-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 34px;
        padding-bottom: 28px;
        line-height: 1.55;
    }

    .store-footer-credit {
        white-space: normal;
    }
}

@media (max-width: 420px) {
    .store-footer-brand {
        align-items: flex-start;
    }

    .store-footer-logo-wrap {
        width: 72px;
        height: 72px;
    }

    .store-footer-socials a {
        width: 40px;
        height: 40px;
    }
}

/* =========================
   CONTROLES DE SCROLL
   ========================= */

#scroll-controls {
    right: 14px !important;
    bottom: 22px !important;
    gap: 8px !important;
}

#scroll-controls button {
    width: 40px !important;
    height: 40px !important;
    color: var(--store-text) !important;
    background: rgba(255,255,255,.94) !important;
    border: 1px solid var(--store-border) !important;
    box-shadow: var(--store-shadow-sm) !important;
}

#scroll-controls button:hover {
    background: #ffffff !important;
    transform: translateY(-1px) !important;
}

/* =========================
   ESTADOS Y ACCESIBILIDAD
   ========================= */

.pointer {
    cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
.accordion-button:focus-visible,
.img-producto:focus-visible {
    outline: 3px solid rgba(17,17,17,.22) !important;
    outline-offset: 3px;
}

.bg-light-warning {
    background: #fff9dc !important;
}

.text-danger {
    color: #bd2f35 !important;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 991.98px) {
    .accordion-collapse .list-group {
        grid-template-columns: 1fr;
    }

    .social {
        display: none;
    }
}

@media (max-width: 767.98px) {
    body {
        padding-top: 70px;
    }

    #mainNav.navbar {
        min-height: 70px;
        padding: 8px 0 !important;
    }

    #mainNav .container,
    #services > .container {
        width: min(100% - 20px, 1240px);
    }

    .img-brand {
        max-width: 48vw;
        height: 44px;
    }

    #carrito {
        min-width: 96px;
        height: 42px;
        padding: 0 13px;
        gap: 7px;
    }

    #carrito i {
        font-size: 15px;
    }

    #cuenta {
        font-size: 11px;
    }

    .carousel-item img {
        min-height: 170px;
        max-height: 340px;
    }

    .page-section,
    #services.page-section,
    .bg-gradient-animated {
        padding: 30px 0 56px !important;
    }

    #services > .container > h2 {
        margin-bottom: 16px !important;
        font-size: 27px;
    }

    .buscador-container {
        margin-bottom: 23px !important;
    }

    .titulo-descarga {
        margin-bottom: 22px !important;
    }

    .btn-pdf {
        width: 100% !important;
    }

    .accordion {
        gap: 11px;
    }

    .accordion-button {
        min-height: 58px;
        padding: 16px !important;
        font-size: 15px !important;
    }

    .accordion-collapse .list-group {
        gap: 11px;
        padding-top: 11px;
    }

    .list-group-item .item.row {
        min-height: 118px;
        padding: 12px;
    }

    .img-producto {
        width: 82px !important;
        height: 82px !important;
        margin-right: 11px !important;
        padding: 6px;
        border-radius: 11px !important;
    }

    .producto-nombre {
        font-size: 13.5px;
    }

    .producto-precio {
        margin-top: 5px;
        font-size: 17px !important;
    }

    .list-group-item p {
        font-size: 11.5px !important;
        -webkit-line-clamp: 1;
    }

    .item .btn,
    .item .btn.btn-dark {
        width: 40px !important;
        height: 40px !important;
    }

    .list-group-item .item > .col-9 {
        width: calc(100% - 45px);
    }

    .list-group-item .item > .col-3 {
        width: 45px;
        flex-basis: 45px;
    }

    .adicion {
        padding: 13px 12px 14px;
    }

    .adicion .col-md-8,
    .adicion .col-md-4 {
        padding-left: 0;
        padding-right: 0;
    }

    #staplesbmincart .modal-dialog,
    #pedido .modal-dialog {
        margin: 8px;
    }

    #staplesbmincart .modal-content,
    #pedido .modal-content {
        max-height: calc(100vh - 16px);
        border-radius: 17px !important;
    }

    #staplesbmincart .modal-header,
    #pedido .modal-header,
    #staplesbmincart .modal-body,
    #pedido .modal-body,
    #staplesbmincart .modal-footer,
    #pedido .modal-footer {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    #staplesbmincart .item-carrito {
        grid-template-columns: minmax(0, 1fr) 34px 84px 36px !important;
        padding: 11px 9px !important;
        font-size: 12px;
    }

}

@media (max-width: 420px) {
    #mainNav .container {
        width: calc(100% - 14px);
    }

    .img-brand {
        max-width: 42vw;
        height: 40px;
    }

    #carrito {
        min-width: 84px;
        padding: 0 10px;
    }

    #cuenta {
        font-size: 10px;
    }

    .img-producto {
        width: 72px !important;
        height: 72px !important;
    }

    .producto-nombre {
        font-size: 12.5px;
    }

    .producto-precio {
        font-size: 16px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* =========================================================
   CONTROL DE CANTIDAD — AJUSTE VISUAL
   Mantiene intacta la estructura y la lógica existente.
   ========================================================= */
.adicion .col-md-4 > .row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;
}

.adicion .col-md-4 > .row > .col-5 {
    width: 76px !important;
    max-width: 76px !important;
    flex: 0 0 76px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.adicion .col-md-4 > .row > .col-7 {
    width: 138px !important;
    max-width: 138px !important;
    flex: 0 0 138px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.grupo-precio,
.grupo-precio.btn-group {
    width: 138px !important;
    min-width: 138px !important;
    max-width: 138px !important;
    height: 44px !important;
    display: grid !important;
    grid-template-columns: 42px 54px 42px !important;
    align-items: stretch !important;
    justify-content: center !important;
    gap: 0 !important;
    overflow: hidden !important;
    background: #050505 !important;
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: 0 5px 14px rgba(0, 0, 0, .14) !important;
}

.grupo-precio > button,
.grupo-precio > .btn,
.grupo-precio.btn-group > .btn {
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    background: #050505 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: 18px !important;
    line-height: 1 !important;
}

.grupo-precio > .resta,
.grupo-precio.btn-group > .resta {
    border-radius: 999px 0 0 999px !important;
}

.grupo-precio > .suma,
.grupo-precio.btn-group > .suma {
    border-radius: 0 999px 999px 0 !important;
}

.grupo-precio > button:hover,
.grupo-precio > .btn:hover {
    background: #242424 !important;
    transform: none !important;
}

.grupo-precio > .cantidad,
.grupo-precio .cantidad.form-control {
    width: 54px !important;
    min-width: 54px !important;
    max-width: 54px !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 4px !important;
    color: #303030 !important;
    background: #eeeeee !important;
    border: 0 !important;
    border-radius: 7px !important;
    box-shadow: none !important;
    outline: 0 !important;
    text-align: center !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 44px !important;
    appearance: textfield;
    -moz-appearance: textfield;
    position: relative;
    z-index: 2;
}

.grupo-precio > .cantidad:focus,
.grupo-precio .cantidad.form-control:focus {
    background: #ffffff !important;
    border: 0 !important;
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .12) !important;
}

.grupo-precio > .cantidad::-webkit-inner-spin-button,
.grupo-precio > .cantidad::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

@media (max-width: 767.98px) {
    .adicion .col-md-4 > .row {
        width: 100% !important;
        justify-content: space-between !important;
        gap: 14px !important;
    }

    .adicion .col-md-4 > .row > .col-5 {
        width: auto !important;
        max-width: none !important;
        flex: 1 1 auto !important;
    }

    .adicion .col-md-4 > .row > .col-7 {
        width: 138px !important;
        max-width: 138px !important;
        flex: 0 0 138px !important;
    }
}

/* =========================
   COMPRA MÍNIMA / SUCURSAL
   ========================= */
.compra-minima-box {
    margin-top: 14px;
    padding: 15px 16px;
    background: #f7f7f5;
    border: 1px solid var(--store-border, #deded9);
    border-radius: 14px;
}

.compra-minima-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
    color: var(--store-text, #171717);
    font-size: 14px;
    font-weight: 700;
}

.compra-minima-head strong {
    font-size: 16px;
    white-space: nowrap;
}

.compra-minima-progress {
    width: 100%;
    height: 8px;
    overflow: hidden;
    background: #deded9;
    border-radius: 999px;
}

.compra-minima-progress > span {
    display: block;
    width: 0;
    height: 100%;
    background: #171717;
    border-radius: inherit;
    transition: width .25s ease;
}

.compra-minima-mensaje {
    margin-top: 9px;
    color: #64645f;
    font-size: 13px;
    line-height: 1.45;
}

.compra-minima-box.alcanzada {
    background: #f1f7f2;
    border-color: #b9d6bd;
}

.compra-minima-box.alcanzada .compra-minima-progress > span {
    background: #287a3c;
}

.compra-minima-box.alcanzada .compra-minima-mensaje {
    color: #246735;
}

#form-pedido .form-select {
    min-height: 48px;
    padding: 11px 42px 11px 14px;
    color: var(--store-text, #171717);
    background-color: #fff;
    border: 1px solid var(--store-border, #deded9);
    border-radius: 12px;
    box-shadow: none;
    font-size: 15px;
}

#form-pedido .form-select:focus {
    border-color: #8d8d87;
    box-shadow: 0 0 0 4px rgba(17, 17, 17, .06);
}

.sucursal-direccion-ayuda {
    min-height: 18px;
    margin-top: 7px;
    color: #6d6d67 !important;
    line-height: 1.4;
}

@media (max-width: 575.98px) {
    .compra-minima-box {
        padding: 13px 14px;
    }

    .compra-minima-head {
        align-items: flex-start;
    }
}

/* =========================================================
   PRODUCTOS DESTACADOS / EXPORTACIÓN EXCEL - 2026-07-26
   ========================================================= */
.btn-excel {
    background: #15803d !important;
    border-color: #15803d !important;
}

.btn-excel:hover {
    background: #166534 !important;
    border-color: #166534 !important;
}

.productos-destacados {
    position: relative;
    margin: 30px 0 38px;
    padding: 28px 0 8px;
    border-top: 1px solid var(--store-border);
    border-bottom: 1px solid var(--store-border);
}

.productos-destacados-cabecera {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.productos-destacados-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--store-success);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.productos-destacados h2 {
    margin: 0;
    color: var(--store-text);
    font-size: clamp(27px, 3vw, 40px);
    font-weight: 850;
}

.productos-destacados-controles {
    display: flex;
    gap: 10px;
}

.productos-destacados-controles button {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--store-text);
    background: #fff;
    border: 1px solid var(--store-border-strong);
    border-radius: 50%;
    transition: .2s ease;
}

.productos-destacados-controles button:hover:not(:disabled) {
    color: #fff;
    background: var(--store-accent);
    border-color: var(--store-accent);
    box-shadow: 0 10px 24px rgba(17,17,17,.18);
    transform: translateY(-2px) scale(1.04);
}

.productos-destacados-controles button:disabled {
    cursor: not-allowed;
    opacity: .34;
    transform: none;
}

.productos-destacados-ventana {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
}

.productos-destacados-ventana::-webkit-scrollbar {
    display: none;
}

.productos-destacados-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(245px, calc((100% - 60px) / 4));
    gap: 20px;
    padding: 2px 2px 24px;
}

.producto-destacado-card {
    position: relative;
    isolation: isolate;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 72%, #fbfffc 100%);
    border: 1px solid var(--store-border);
    border-radius: 22px;
    box-shadow: 0 10px 28px rgba(17,17,17,.08);
    scroll-snap-align: start;
    transition: transform .28s cubic-bezier(.2,.7,.2,1), box-shadow .28s ease, border-color .28s ease;
}

.producto-destacado-card::before {
    content: "";
    position: absolute;
    z-index: 3;
    inset: 0;
    pointer-events: none;
    border: 1px solid transparent;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(22,163,74,.9), rgba(245,158,11,.48), rgba(22,163,74,.12)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .28s ease;
}

.producto-destacado-card::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: -55%;
    left: -70%;
    width: 55%;
    height: 210%;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.76), transparent);
    transform: rotate(17deg);
    opacity: 0;
}

.producto-destacado-card:hover {
    border-color: rgba(22,163,74,.32);
    box-shadow: 0 22px 48px rgba(17,17,17,.16), 0 8px 20px rgba(22,163,74,.08);
    transform: translateY(-9px) scale(1.012);
}

.producto-destacado-card:hover::before {
    opacity: 1;
}

.producto-destacado-card:hover::after {
    opacity: 1;
    animation: destacadoBrillo .8s ease forwards;
}

@keyframes destacadoBrillo {
    from { left: -70%; }
    to { left: 125%; }
}

.producto-destacado-imagen {
    position: relative;
    width: 100%;
    height: 230px;
    padding: 20px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 46%, rgba(255,255,255,1) 0 34%, rgba(240,253,244,.8) 68%, rgba(236,253,245,.62) 100%);
    border: 0;
    cursor: zoom-in;
}

.producto-destacado-imagen::after {
    content: "";
    position: absolute;
    left: 18%;
    right: 18%;
    bottom: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(17,17,17,.11);
    filter: blur(10px);
    transform: scaleX(.82);
    transition: transform .28s ease, opacity .28s ease;
}

.producto-destacado-imagen img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(17,17,17,.12));
    transition: transform .32s cubic-bezier(.2,.7,.2,1), filter .32s ease;
}

.producto-destacado-card:hover .producto-destacado-imagen img {
    filter: drop-shadow(0 18px 22px rgba(17,17,17,.18));
    transform: translateY(-7px) scale(1.075) rotate(-1deg);
}

.producto-destacado-card:hover .producto-destacado-imagen::after {
    opacity: .72;
    transform: scaleX(1.04);
}

.producto-destacado-etiqueta {
    position: absolute;
    z-index: 5;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    color: #14532d;
    background: rgba(240,253,244,.94);
    border: 1px solid rgba(22,163,74,.22);
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(17,17,17,.08);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .055em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    transition: transform .25s ease, background-color .25s ease, color .25s ease;
}

.producto-destacado-etiqueta i {
    color: #f59e0b;
}

.producto-destacado-card:hover .producto-destacado-etiqueta {
    color: #ffffff;
    background: var(--store-success);
    transform: translateY(-2px);
}

.producto-destacado-card:hover .producto-destacado-etiqueta i {
    color: #fde68a;
}

.producto-destacado-contenido {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    text-align: center;
}

.producto-destacado-contenido h3 {
    min-height: 48px;
    margin: 0 0 10px;
    color: var(--store-text);
    font-size: 15px;
    font-weight: 750;
    line-height: 1.45;
}

.producto-destacado-promo {
    align-self: center;
    margin: -2px 0 7px;
    padding: 4px 9px;
    color: #991b1b;
    background: #fee2e2;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .06em;
}

.producto-destacado-precio {
    margin: auto 0 16px;
    color: var(--store-success);
    font-size: 25px;
    font-weight: 900;
    letter-spacing: -.03em;
}

.producto-destacado-agregar {
    width: 100%;
    min-height: 42px;
    padding: 10px 14px;
    color: #fff;
    background: var(--store-success);
    border: 0;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
    transition: .2s ease;
}

.producto-destacado-agregar:hover,
.producto-destacado-agregar.agregado {
    background: linear-gradient(135deg, #15803d, #166534);
    box-shadow: 0 12px 24px rgba(22,101,52,.26);
    transform: translateY(-2px) scale(1.015);
}

.producto-destacado-agregar i {
    margin-right: 6px;
}

@media (max-width: 991px) {
    .productos-destacados-track {
        grid-auto-columns: minmax(235px, calc((100% - 20px) / 2));
    }
}

@media (max-width: 575px) {
    .productos-destacados {
        margin-top: 22px;
        padding-top: 22px;
    }

    .productos-destacados-cabecera {
        align-items: center;
    }

    .productos-destacados-track {
        grid-auto-columns: minmax(82vw, 290px);
        gap: 14px;
    }

    .producto-destacado-imagen {
        height: 215px;
    }
}
