/* ==========================================================================
   FactOn E-Commerce Store — Estilos Principales
   Extraído y organizado desde index.php
   ========================================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    background-color: var(--bg-body, #f8fafc);
    color: var(--text-dark, #0f172a);
    font-size: 13.5px;
    line-height: 1.45;
    overflow-x: hidden;
}

#quienesSomosSection,
#serviciosSection,
#catalogSection,
#brandsSection,
#footerCard {
    scroll-margin-top: 110px;
}

/* 1. SUPER CABECERA AZUL */
.top-bar {
    background-color: var(--primary, #0266f2);
    color: white;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 0;
}

.top-bar-container {
    max-width: var(--container-max-width, 1240px);
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.top-bar-item svg {
    width: 15px;
    height: 15px;
    fill: #ffffff !important;
    stroke: #ffffff !important;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.social-icons-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-icons-top a {
    color: white;
    display: flex;
    align-items: center;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.social-icons-top a:hover {
    opacity: 1;
}

.social-icons-top svg {
    width: 14px;
    height: 14px;
    fill: #ffffff !important;
}

/* 2. HEADER PRINCIPAL Y BUSCADOR RESPONSIVO */
.main-header {
    background: white;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    padding: 14px 0;
    /* Evitar que el teclado virtual en móvil desplace el header */
    will-change: transform;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.header-container {
    max-width: var(--container-max-width, 1240px);
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-left-logo {
    display: flex;
    align-items: center;
}

.brand-logo-img {
    height: 54px;
    width: auto;
    object-fit: contain;
}

.search-group-container {
    flex: 1;
    max-width: 600px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.menu-popover-btn {
    background: #f8fafc;
    border: 1.5px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
    padding: 11px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.menu-popover-btn:hover {
    background: #f1f5f9;
    border-color: var(--primary, #0266f2);
}

.popover-menu {
    position: absolute;
    top: 54px;
    left: 0;
    background: white;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.12);
    padding: 10px;
    width: 220px;
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 200;
    transform: translateY(-8px);
    opacity: 0;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s;
}

.popover-menu.open {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

.popover-item {
    padding: 11px 16px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-dark, #0f172a);
    font-weight: 600;
    font-size: 13.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.popover-item:hover {
    background: #f0f7ff;
    color: var(--primary, #0266f2);
}

.popover-item svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.search-container {
    flex: 1;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1.5px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
    overflow: hidden;
}

.search-container:focus-within {
    border-color: var(--primary, #0266f2);
    background: white;
    box-shadow: 0 0 0 3px rgba(2, 102, 242, 0.1);
}

.category-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border-right: 1px solid var(--border-color, #e2e8f0);
    background: #f1f5f9;
}

.search-category-select {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    padding: 11px 32px 11px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark, #0f172a);
    cursor: pointer;
    outline: none;
    font-family: inherit;
}

.category-select-arrow {
    position: absolute;
    right: 10px;
    pointer-events: none;
    width: 14px;
    height: 14px;
    color: #64748b;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 11px 14px;
    font-size: 13.5px;
    outline: none;
    font-family: inherit;
    min-width: 100px;
}

.btn-search {
    background: var(--primary, #0266f2);
    color: white;
    border: none;
    padding: 12px 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.btn-search:hover {
    background: var(--primary-hover, #0151c1);
}

.header-right-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.action-user,
.action-cart {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-dark, #0f172a);
    cursor: pointer;
}

.action-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #334155;
    transition: all 0.2s ease;
}

/* BOTÓN CARRITO ESTILO HAMBURGUESA MODERNO & MÁS GRANDE */
.cart-avatar-hamburger {
    width: 46px !important;
    height: 46px !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    border: 1.8px solid #e2e8f0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    color: var(--primary, #0266f2) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    flex-shrink: 0 !important;
}

.action-cart:hover .cart-avatar-hamburger {
    background: #eff6ff !important;
    border-color: #93c5fd !important;
    color: #005BF9 !important;
    transform: translateY(-1.5px) scale(1.04) !important;
    box-shadow: 0 5px 16px rgba(2, 102, 242, 0.2) !important;
}

.cart-avatar-hamburger svg {
    width: 23px !important;
    height: 23px !important;
    transition: transform 0.2s ease !important;
}

.action-cart:hover .cart-avatar-hamburger svg {
    transform: scale(1.08);
}

.badge-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 800;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.45);
}

.action-label-box {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    line-height: 1.25;
}

.action-label-box label {
    color: var(--text-muted, #64748b);
    cursor: pointer;
}

.action-label-box strong {
    font-size: 13.5px;
    font-weight: 700;
}

/* 3. HERO BANNER */
.hero-section {
    max-width: var(--container-max-width, 1240px);
    margin: 20px auto 0 auto;
    padding: 0 16px;
}

.hero-banner-container {
    position: relative;
    height: 380px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(2, 102, 242, 0.12);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 40px;
}

.hero-slide.active {
    opacity: 1;
    z-index: 5;
}

.hero-content-card {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-left: 64px;
    max-width: 400px;
    color: white;
}

.hero-badge-pill {
    display: inline-block;
    background: #0266f2;
    color: white;
    font-weight: 800;
    font-size: 12px;
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(2, 102, 242, 0.3);
}

.hero-content-card h2 {
    font-size: 32px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 12px;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-content-card p {
    font-size: 14.5px;
    color: #f8fafc;
    line-height: 1.5;
    margin-bottom: 22px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
}

.btn-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #0266f2;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
    transition: all 0.2s;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.btn-hero-cta:hover {
    background: #f0f7ff;
    transform: translateY(-2px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--border-color, #e2e8f0);
    color: #0f172a;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.hero-arrow:hover {
    background: #f8fafc;
    color: var(--primary, #0266f2);
    transform: translateY(-50%) scale(1.08);
}

.hero-arrow.prev {
    left: 16px;
}

.hero-arrow.next {
    right: 16px;
}

.hero-dots-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.hero-dot.active {
    background: white;
    width: 26px;
    border-radius: 6px;
}

/* 4. LAYOUT DE CATÁLOGO Y SIDEBAR DE CATEGORÍAS */
.catalog-main-layout {
    max-width: var(--container-max-width, 1240px);
    margin: 32px auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    width: 100%;
}

.categories-sidebar-card {
    background: white;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    height: fit-content;
}

.cat-sidebar-header-item {
    background: #eff6ff;
    border-radius: 14px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #0266f2;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    margin-bottom: 8px;
    transition: background 0.2s;
}

.cat-sidebar-header-item:hover {
    background: #e0e7ff;
}

.cat-sidebar-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cat-grid-icon-4dots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
    width: 16px;
    height: 16px;
}

.cat-grid-icon-4dots span {
    background: #0266f2;
    border-radius: 2px;
}

.cat-blue-pill-badge {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #0266f2;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 12.5px;
}

.cat-sidebar-ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cat-sidebar-parent-group {
    border-bottom: 1px solid #f1f5f9;
}

.cat-sidebar-parent-group:last-child {
    border-bottom: none;
}

.cat-sidebar-li-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 11px 14px;
    border-radius: 8px;
    color: #334155;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    box-sizing: border-box;
}

.cat-sidebar-li-btn:hover,
.cat-sidebar-li-btn.active {
    background: #f8fafc;
    color: #0266f2;
}

.cat-sidebar-parent-group.open .cat-accordion-arrow {
    transform: rotate(180deg);
    color: var(--primary, #0266f2);
}

.cat-sidebar-subs-wrapper {
    background: #f8fafc;
    border-top: 0px dashed #e2e8f0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 14px 0 24px;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, padding 0.35s ease, border-top 0.2s ease;
}

.cat-sidebar-subs-wrapper.expanded {
    max-height: 600px;
    opacity: 1;
    border-top: 1px dashed #e2e8f0;
    padding: 6px 14px 8px 24px;
}

.cat-sidebar-sub-btn {
    padding: 7px 0 7px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: #475569;
    border-radius: 6px;
    margin-bottom: 3px;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

.cat-sidebar-sub-btn .sub-name {
    flex: 1;
    min-width: 0;
    margin-right: 8px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cat-sidebar-sub-btn:hover,
.cat-sidebar-sub-btn.active {
    background: white;
    color: var(--primary, #0266f2);
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.cat-gray-pill-badge {
    background: transparent;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.cat-sub-pill-badge {
    background: transparent;
    color: #64748b;
    font-size: 11.5px;
    font-weight: 700;
    margin-left: auto;
    flex-shrink: 0;
    min-width: 24px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.cat-sidebar-li-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    margin-right: 8px;
    text-align: left;
}

.cat-sidebar-li-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

.cat-arrow-placeholder {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cat-sidebar-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary, #0266f2);
    background: rgba(2, 102, 242, 0.08);
    border-radius: 8px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.cat-sidebar-icon svg,
.cat-svg-icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cat-sidebar-li-btn:hover .cat-sidebar-icon,
.cat-sidebar-li-btn.active .cat-sidebar-icon,
.cat-sidebar-header-item:hover .cat-sidebar-icon,
.cat-sidebar-header-item.active .cat-sidebar-icon {
    background: var(--primary, #0266f2);
    color: white;
}

.cat-sidebar-icon-mono {
    width: 22px;
    height: 22px;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-sidebar-icon-mono svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.cat-gray-pill-badge {
    padding: 2px 8px;
    border-radius: 12px;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 11px;
}

/* BANNER PROMOCIONAL PEQUEÑO (SIDEBAR WEB / FINAL PRODUCTOS MÓVIL A SANGRE TOTAL) */
.sidebar-small-banner-box {
    margin-top: 16px;
    width: 100%;
}

.mobile-bottom-promo-banner {
    margin-top: 24px;
    width: 100%;
}

.sidebar-small-banner-card {
    background: transparent !important;
    border: none !important;
    border-radius: 18px !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    width: 100%;
}

.sidebar-small-banner-card:hover {
    box-shadow: 0 10px 28px rgba(0, 91, 249, 0.18);
    transform: translateY(-2px);
}

.sidebar-small-banner-slider {
    width: 100%;
    position: relative;
    border-radius: 18px;
    overflow: hidden;
}

.side-banner-slide {
    display: none;
    cursor: pointer;
    border-radius: 18px;
    overflow: hidden;
    width: 100%;
}

.side-banner-slide.active {
    display: block;
    animation: fadeInSlide 0.35s ease;
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.side-banner-img-wrap {
    position: relative;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: transparent;
    line-height: 0;
}

.side-banner-img-wrap img {
    width: 100%;
    height: auto;
    max-height: 340px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 18px;
    border: none;
    margin: 0;
    padding: 0;
}

.sidebar-small-banner-card:hover .side-banner-img-wrap img {
    transform: scale(1.03);
}

.side-banner-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
    padding-bottom: 2px;
}

.side-banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.25s ease;
}

.side-banner-dot.active {
    width: 22px;
    background: var(--primary, #0266f2);
}

/* MODAL DE ANUNCIOS POPUP */
.popup-ad-slide {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
}

/* VISIBILIDAD CONDICIONAL DESKTOP / MÓVIL */
.desktop-only-banner {
    display: block !important;
}
.mobile-only-banner {
    display: none !important;
}

@media (max-width: 991px) {
    .desktop-only-banner {
        display: none !important;
    }
    .mobile-only-banner {
        display: block !important;
    }
    .mobile-bottom-promo-banner .side-banner-img-wrap img {
        max-height: 280px;
    }
}

.sidebar-whatsapp-help-card {
    background: #0266f2;
    border-radius: 22px;
    padding: 24px;
    color: white;
    margin-top: 20px;
    box-shadow: 0 10px 25px rgba(2, 102, 242, 0.25);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.whatsapp-help-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.whatsapp-icon-bubble-white {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.whatsapp-icon-bubble-white svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.whatsapp-help-header h3 {
    font-size: 18px;
    font-weight: 800;
    color: white;
}

.sidebar-whatsapp-help-card p {
    font-size: 13px;
    color: #f0f7ff;
    line-height: 1.5;
    opacity: 0.95;
}

.btn-whatsapp-sidebar {
    background: #22c55e;
    color: white;
    text-decoration: none;
    padding: 13px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
    text-align: center;
    display: block;
    margin-top: 6px;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    transition: all 0.2s;
}

.btn-whatsapp-sidebar:hover {
    background: #16a34a;
    transform: translateY(-2px);
}

/* 5. TARJETAS DE PRODUCTOS */
.products-grid-column {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
}

.product-card-exact {
    background: white;
    border: 1.5px solid var(--border-color, #e2e8f0);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    transition: all 0.25s ease;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.product-card-exact:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(2, 102, 242, 0.25);
}

.badge-exact-discount {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 10;
}

.btn-eye-quick-view {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid var(--border-color, #e2e8f0);
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
}

.btn-eye-quick-view:hover {
    background: var(--primary, #0266f2);
    color: white;
    border-color: var(--primary, #0266f2);
    transform: scale(1.08);
}

.btn-eye-quick-view svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.prod-exact-img-box {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    padding: 6px;
    cursor: pointer;
    overflow: hidden;
    border-radius: 12px;
    transition: background 0.25s ease;
}

.product-card-exact:hover .prod-exact-img-box {
    background: #f1f5f9;
}

.prod-exact-img-box img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card-exact:hover .prod-exact-img-box img {
    transform: scale(1.06);
}

.prod-exact-category {
    font-size: 10.5px;
    font-weight: 800;
    color: #0266f2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.prod-exact-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
    line-height: 1.3;
    min-height: 36px;
    cursor: pointer;
    word-break: break-word;
    overflow: hidden;
}

.prod-exact-title:hover {
    color: var(--primary, #0266f2);
}

.price-exact-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.price-exact-old {
    font-size: 12px;
    color: #ef4444;
    text-decoration: line-through;
    font-weight: 600;
}

.price-exact-current {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
}

.savings-tag-pill {
    display: inline-block;
    background: #dcfce7;
    color: #16a34a;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    margin-bottom: 10px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.prod-exact-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    flex-wrap: wrap;
}

.stepper-exact-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 8px;
    padding: 2px;
    flex-shrink: 0;
}

.stepper-exact-btn {
    background: #f8fafc;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #334155;
}

.stepper-exact-btn:hover {
    background: #e2e8f0;
}

.stepper-exact-val {
    width: 20px;
    text-align: center;
    font-size: 12.5px;
    font-weight: 700;
}

.btn-exact-add-cart {
    flex: 1;
    min-width: 0;
    background: #0266f2;
    color: white;
    border: none;
    padding: 8px 10px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 12.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(2, 102, 242, 0.25);
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-exact-add-cart:hover {
    background: #0151c1;
}

.btn-exact-add-cart svg {
    width: 15px;
    height: 15px;
    fill: white;
    flex-shrink: 0;
    pointer-events: none;
}

.btn-exact-add-cart .btn-add-text {
    font-size: 12.5px;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    pointer-events: none;
    line-height: 1;
}

/* 6. MARCAS Y SECCIONES */
.brands-section {
    max-width: var(--container-max-width, 1240px);
    margin: 24px auto 44px auto;
    padding: 0 32px;
    box-sizing: border-box;
}

.brands-carousel-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 10px 0;
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.brands-track-infinite {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: infiniteScrollBrands 75s linear infinite;
    will-change: transform;
}

.brands-track-infinite:hover {
    animation-play-state: paused;
}

.brands-slide-group {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

@keyframes infiniteScrollBrands {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 10px));
    }
}

.brand-logo-only-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    width: 120px;
    height: 74px;
    min-width: 120px;
    flex-shrink: 0;
}

.brand-logo-only-card:hover {
    border-color: var(--primary, #0266f2);
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(2, 102, 242, 0.15);
}

.brand-logo-img {
    height: 52px;
    width: auto;
    max-height: 56px;
    object-fit: contain;
}

.brand-carousel-logo-img {
    width: 100%;
    height: 100%;
    max-width: 95px;
    max-height: 52px;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.brand-logo-only-card:hover .brand-carousel-logo-img {
    transform: scale(1.06);
}

.services-section, .standalone-section {
    max-width: var(--container-max-width, 1240px);
    margin: 28px auto 44px auto;
    padding: 0 32px;
    box-sizing: border-box;
}

.section-header-modern {
    margin-bottom: 24px;
}

.section-tag-sub {
    font-size: 12px;
    font-weight: 800;
    color: var(--primary, #0266f2);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    display: block;
}

.section-title-big {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-dark, #0f172a);
}

.about-grid-3cols {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.about-feature-card {
    background: white;
    border: 1.5px solid var(--border-color, #e2e8f0);
    border-radius: 20px;
    padding: 24px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.about-feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary, #0266f2);
    box-shadow: 0 12px 30px rgba(2, 102, 242, 0.08);
}

.about-card-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: #eff6ff;
    color: var(--primary, #0266f2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    box-shadow: 0 4px 10px rgba(2, 102, 242, 0.1);
}

.about-card-icon-box svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.about-feature-card h4 {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark, #0f172a);
    margin-bottom: 8px;
}

.about-feature-card p {
    font-size: 13px;
    color: var(--text-muted, #64748b);
    line-height: 1.6;
    margin: 0;
}

.services-carousel-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 16px 0;
    display: flex;
    mask-image: linear-gradient(to right, transparent, white 10%, white 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, white 10%, white 90%, transparent);
}

.services-carousel-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: scrollMarquee 35s linear infinite;
}

.services-carousel-container:hover .services-carousel-track {
    animation-play-state: paused;
}

.service-item-card {
    flex: 0 0 350px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(2, 102, 242, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    gap: 16px;
    align-items: center;
    user-select: none;
}

.service-item-card:hover {
    border-color: var(--primary, #0266f2);
    background: white;
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 48px rgba(2, 102, 242, 0.08);
}

.service-card-left-img {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    border-radius: 16px;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid var(--border-color, #e2e8f0);
}

.service-card-left-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card-right-desc {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-card-right-desc h4 {
    font-size: 15.5px;
    font-weight: 800;
    color: var(--text-dark, #0f172a);
    margin-bottom: 6px;
}

.service-card-right-desc p {
    font-size: 12.5px;
    color: var(--text-muted, #64748b);
    line-height: 1.45;
    margin-bottom: 0;
}

@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* MIGA DE PAN / BREADCRUMB DE CATEGORÍAS (FORMATO PEQUEÑO & PROMO) */
.catalog-breadcrumb-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    animation: breadcrumbFadeIn 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.catalog-breadcrumb-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
    flex-wrap: wrap;
}

.breadcrumb-link-root {
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.breadcrumb-link-root:hover {
    color: var(--primary, #0266f2);
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 700;
    user-select: none;
}

.breadcrumb-static {
    color: #64748b;
    font-weight: 600;
}

.breadcrumb-parent-link {
    color: #0f172a;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s ease;
}

.breadcrumb-parent-link:hover {
    color: var(--primary, #0266f2);
    text-decoration: underline;
}

/* BADGE PROMO ELEGANTE Y COMPACTO */
.breadcrumb-promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    color: #1e40af;
    padding: 3px 8px 3px 10px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.1px;
    box-shadow: 0 2px 6px rgba(2, 102, 242, 0.08);
}

.badge-promo-icon {
    font-size: 12px;
    line-height: 1;
}

.badge-promo-name {
    color: #0369a1;
    font-weight: 800;
}

.btn-clear-category-filter {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #93c5fd;
    color: #1e40af;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    transition: all 0.15s ease;
    margin-left: 2px;
}

.btn-clear-category-filter:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
    transform: scale(1.1);
}

/* 8. FOOTER */
.footer-card-section {
    max-width: var(--container-max-width, 1240px);
    margin: 40px auto 20px auto;
    padding: 0 16px;
}

.footer-main-card {
    background: white;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 20px;
    padding: 32px;
    display: grid;
    grid-template-columns: 1.2fr 2.2fr 1fr 1fr;
    gap: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.footer-help-modern-card {
    background: linear-gradient(135deg, #0266f2 0%, #1e40af 100%);
    border-radius: 20px;
    padding: 24px;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(2, 102, 242, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    justify-content: space-between;
}

.footer-help-modern-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.help-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #e0f2fe;
    width: fit-content;
}

.help-card-badge svg {
    color: #4ade80;
}

.help-card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.help-icon-bubble {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.help-card-header h3 {
    font-size: 19px;
    font-weight: 800;
    margin: 0;
    color: white;
    letter-spacing: -0.3px;
}

.help-card-header p {
    font-size: 12.5px;
    color: #e0e7ff;
    margin: 4px 0 0 0;
    line-height: 1.4;
    opacity: 0.95;
}

.btn-help-action {
    background: white;
    color: #0266f2;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 13.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-help-action:hover {
    background: #f8fafc;
    color: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.btn-help-action svg {
    transition: transform 0.2s ease;
}

.btn-help-action:hover svg {
    transform: translateX(4px);
}

.newsletter-blue-box {
    background: var(--primary, #0266f2);
    border-radius: 16px;
    padding: 24px;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 8px 20px rgba(2, 102, 242, 0.25);
}

.newsletter-blue-box h3 {
    font-size: 18px;
    font-weight: 800;
}

.newsletter-blue-box p {
    font-size: 12.5px;
    color: #e0e7ff;
    line-height: 1.4;
}

.newsletter-form-inline {
    display: flex;
    background: white;
    border-radius: 10px;
    padding: 3px;
}

.newsletter-input {
    flex: 1;
    border: none;
    padding: 8px 12px;
    font-size: 12.5px;
    outline: none;
    border-radius: 8px 0 0 8px;
    font-family: inherit;
}

.btn-subscribe {
    background: #2563eb;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 12.5px;
    cursor: pointer;
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-dark, #0f172a);
    margin-bottom: 14px;
}

.footer-col p {
    font-size: 12.5px;
    color: var(--text-muted, #64748b);
    line-height: 1.5;
    margin-bottom: 14px;
}

.footer-ul-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-ul-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-ul-links a:hover {
    color: var(--primary, #0266f2);
}

.footer-social-links {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.footer-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--bg-light, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    color: var(--text-muted, #64748b);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.2s;
}

.footer-social-btn:hover {
    background: var(--primary, #0266f2);
    border-color: var(--primary, #0266f2);
    color: white;
    transform: translateY(-2px);
}

.footer-bottom-bar {
    background: var(--primary, #0266f2);
    color: white;
    padding: 14px 0;
    font-size: 13px;
}

.footer-bottom-container {
    max-width: var(--container-max-width, 1240px);
    margin: 0 auto;
    padding: 0 90px 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-pos-footer {
    background: white;
    color: var(--primary, #0266f2);
    text-decoration: none;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s;
    border: 1px solid rgba(2, 102, 242, 0.15);
}

.btn-pos-footer:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

/* BOTÓN FLOTANTE ORIGINAL DE WHATSAPP */
.floating-whatsapp-btn {
    position: fixed;
    bottom: 26px;
    right: 26px;
    width: 58px;
    height: 58px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.42), 0 2px 8px rgba(0, 0, 0, 0.12);
    z-index: 998;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-whatsapp-btn:hover {
    transform: scale(1.08) translateY(-3px);
    background-color: #20BA5A;
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.55), 0 4px 12px rgba(0, 0, 0, 0.18);
}

.floating-whatsapp-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25D366;
    opacity: 0.6;
    animation: waPulseAnim 2.4s infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes waPulseAnim {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    70% {
        transform: scale(1.45);
        opacity: 0;
    }
    100% {
        transform: scale(1.45);
        opacity: 0;
    }
}

.floating-whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    background: #0f172a;
    color: #ffffff;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    pointer-events: none;
}

.floating-whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 5px 0 5px 6px;
    border-style: solid;
    border-color: transparent transparent transparent #0f172a;
}

/* LOGOTIPOS EN MODO TEXTO (CABECERA & FOOTER) */
.brand-text-logo {
    font-size: 21px;
    font-weight: 900;
    color: var(--primary, #0266f2);
    letter-spacing: -0.5px;
    line-height: 1.15;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.brand-text-logo:hover {
    color: #014ec4;
}

.footer-brand-text {
    font-size: 21px;
    font-weight: 900;
    color: var(--text-dark, #0f172a);
    margin: 0 0 14px 0;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

body.theme-dark .brand-text-logo {
    color: #38bdf8 !important;
}

body.theme-dark .footer-brand-text {
    color: #f8fafc !important;
}

@media (max-width: 768px) {
    .brand-text-logo {
        font-size: 18px;
    }
    .footer-brand-text {
        font-size: 18px;
        text-align: center;
    }
}

.floating-whatsapp-btn:hover .floating-whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* DRAWER CARRITO Y MODALES */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(23 26 35 / 70%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 999;
    display: none;
}

.cart-drawer-overlay.open {
    display: block;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 420px;
    height: 100vh;
    background: white;
    z-index: 1000;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    right: 0;
}

.cart-drawer-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-drawer-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.cart-drawer-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color, #e2e8f0);
    background: #f8fafc;
}

.btn-cart-remove-item {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 14px;
    border-radius: 6px;
}

.btn-cart-remove-item:hover {
    background: #fef2f2;
}

.modal-overlay-custom {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(23 26 35 / 70%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay-custom.open {
    display: flex;
}

.modal-card-custom {
    background: white;
    border-radius: 24px;
    padding: 0;
    width: 100%;
    max-width: 720px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

#modalProductDetails .modal-card-custom {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    overflow-y: hidden;
}

/* MODAL DETALLE DE SERVICIO MÁS ANCHO, ALTO Y ELEGANTE */
.service-modal-card {
    max-width: 860px !important;
    width: 95% !important;
    display: flex !important;
    flex-direction: column !important;
    max-height: 90vh !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 22px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.28) !important;
    background: #ffffff !important;
}

.service-modal-body {
    padding: 20px 24px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.service-modal-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 24px;
    align-items: start;
}

.service-modal-img-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-modal-main-img-box {
    width: 100%;
    height: 310px;
    border-radius: 16px;
    overflow: hidden;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    position: relative;
    cursor: zoom-in;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-modal-main-img-box:hover {
    box-shadow: 0 8px 24px rgba(0, 91, 249, 0.15);
    border-color: #bfdbfe;
}

.service-modal-main-img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.25s ease;
}

.service-modal-main-img-box:hover img {
    transform: scale(1.02);
}

.service-img-zoom-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.78);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 11px;
    border-radius: 20px;
    backdrop-filter: blur(6px);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.25);
}

.service-modal-thumbs-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.service-modal-thumbs-row::-webkit-scrollbar {
    height: 4px;
}

.service-modal-thumbs-row::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.service-thumb-item {
    width: 62px;
    height: 62px;
    border-radius: 12px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    background: #f1f5f9;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.service-thumb-item.active, .service-thumb-item:hover {
    border-color: #005BF9;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 91, 249, 0.25);
}

.service-modal-info-col {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.service-modal-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.service-modal-desc-scroll {
    font-size: 14px;
    color: #334155;
    line-height: 1.65;
    white-space: pre-line;
    overflow-y: auto;
    max-height: 240px;
    padding-right: 8px;
    margin-bottom: 12px;
}

.service-modal-desc-scroll::-webkit-scrollbar {
    width: 5px;
}

.service-modal-desc-scroll::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 4px;
}

.service-modal-desc-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

/* ========================================================
   MODAL INFORMATIVO Y LEGAL ULTRA MINIMALISTA & ELEGANTE
   ======================================================== */
.modal-store-info-clean {
    max-width: 680px !important;
    width: 94% !important;
    max-height: 86vh !important;
    border-radius: 20px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.18) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
}

.min-modal-header {
    padding: 18px 24px;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-shrink: 0;
}

.min-modal-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.min-modal-icon-pill {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: #334155;
    flex-shrink: 0;
}

.min-modal-kicker {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    margin-bottom: 2px;
    display: block;
}

.min-modal-title {
    font-size: 16.5px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.min-btn-close {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid transparent;
    color: #64748b;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.min-btn-close:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #e2e8f0;
}

.min-modal-body {
    padding: 22px 26px;
    max-height: 62vh;
    overflow-y: auto;
    color: #334155;
    font-size: 13.5px;
    line-height: 1.68;
    letter-spacing: -0.005em;
}

.min-modal-body::-webkit-scrollbar {
    width: 5px;
}
.min-modal-body::-webkit-scrollbar-track {
    background: transparent;
}
.min-modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

/* Bloque de Introducción Minimalista */
.min-intro-lead {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.65;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.min-intro-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
    margin-bottom: 12px;
}

/* Cuadrícula Minimalista */
.min-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 14px;
}

@media (max-width: 600px) {
    .min-grid-2 {
        grid-template-columns: 1fr;
    }
    .min-modal-body {
        padding: 18px 18px;
    }
}

.min-card {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    padding: 15px;
    transition: all 0.2s ease;
}

.min-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
    transform: translateY(-1px);
}

.min-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.min-card-icon {
    font-size: 15px;
    color: #0f172a;
}

.min-card-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.min-card-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.55;
    margin: 0;
}

/* Cláusulas Numeradas Minimalistas (Términos) */
.min-clause-item {
    padding: 13px 0;
    border-bottom: 1px solid #f1f5f9;
}

.min-clause-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.min-clause-item:first-child {
    padding-top: 0;
}

.min-clause-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.min-clause-num {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.min-clause-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.min-clause-text {
    font-size: 12.5px;
    color: #475569;
    line-height: 1.6;
    padding-left: 32px;
    margin: 0;
}

@media (max-width: 500px) {
    .min-clause-text {
        padding-left: 0;
        margin-top: 4px;
    }
}

/* Preguntas Frecuentes Minimalistas (FAQ) */
.min-faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.min-faq-item {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    padding: 14px 16px;
    transition: all 0.15s ease;
}

.min-faq-item:hover {
    border-color: #cbd5e1;
    background: #fafbfc;
}

.min-faq-q {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
    line-height: 1.4;
}

.min-faq-q-bullet {
    color: #94a3b8;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 1px;
}

.min-faq-a {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.6;
    padding-left: 18px;
    margin: 0;
}

/* Chips / Píldoras de Confianza */
.min-chips-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.min-chip {
    font-size: 11.5px;
    font-weight: 600;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Pasos de Envío Minimalistas */
.min-step-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

@media (max-width: 550px) {
    .min-step-row {
        grid-template-columns: 1fr;
    }
}

.min-step-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
}

.min-step-num {
    font-size: 10.5px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.min-step-name {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
}

.min-step-sub {
    font-size: 11px;
    color: #64748b;
    line-height: 1.35;
}

/* Métodos de Pago Minimalistas */
.min-pay-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.min-pay-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    transition: all 0.15s ease;
}

.min-pay-item:hover {
    border-color: #cbd5e1;
    background: #fafbfc;
}

.min-pay-badge {
    padding: 4px 10px;
    border-radius: 6px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: #334155;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

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

.min-pay-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 2px 0;
}

.min-pay-desc {
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.4;
    margin: 0;
}

/* Contacto Minimalista */
.min-contact-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 12px;
}

.min-contact-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    margin-top: 2px;
}

.min-contact-info {
    flex: 1;
}

.min-contact-label {
    font-size: 10.5px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.min-contact-val {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
}

.min-contact-note {
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.4;
}

/* Footer Fijo Minimalista */
.min-modal-footer {
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    padding: 14px 24px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.min-btn-primary {
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.min-btn-primary:hover {
    background: #1e293b;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
    transform: translateY(-1px);
}

.min-btn-whatsapp {
    background: #16a34a;
    color: #ffffff !important;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    width: 100%;
}

.min-btn-whatsapp:hover {
    background: #15803d;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
    transform: translateY(-1px);
    color: #ffffff !important;
}

.btn-service-contact-fixed {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    text-decoration: none;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: #ffffff !important;
    font-weight: 800;
    font-size: 14.5px;
    padding: 13px 22px;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(22, 163, 74, 0.35);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-service-contact-fixed:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 8px 22px rgba(22, 163, 74, 0.45);
    color: #ffffff !important;
}

@media (max-width: 768px) {
    .service-modal-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .service-modal-main-img-box {
        height: 230px;
    }
    .service-modal-desc-scroll {
        max-height: 160px;
    }
    .info-bento-grid {
        grid-template-columns: 1fr;
    }
}

.modal-product-title-header {
    position: sticky;
    top: 0;
    background: white;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.modal-product-title-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 800;
    color: var(--text-dark, #0f172a);
}

.btn-close-modal-sticky {
    background: #f8fafc;
    border: 1px solid var(--border-color, #e2e8f0);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-close-modal-sticky:hover {
    background: #fee2e2;
    color: #ef4444;
}

.modal-feedback-card {
    background: white;
    border-radius: 24px;
    padding: 32px 24px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
    position: relative;
    text-align: center;
    animation: modalAlertFadeIn 0.3s ease-out;
}

@keyframes modalAlertFadeIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-feedback-icon-container {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.badge-status-pending {
    background: #fef3c7;
    color: #d97706;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    display: inline-block;
}

.badge-status-approved {
    background: #dcfce7;
    color: #15803d;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    display: inline-block;
}

.badge-status-cancelled {
    background: #fee2e2;
    color: #b91c1c;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    display: inline-block;
}

.modal-title-cart-icon-blue {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #eff6ff;
    color: #0266f2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-title-cart-icon-blue svg {
    width: 18px;
    height: 18px;
    fill: #0266f2;
}

.modal-body-scrollable-content {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-body-scrollable-content::-webkit-scrollbar {
    width: 8px;
}

.modal-body-scrollable-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.modal-body-scrollable-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.modal-body-scrollable-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.prod-detail-gallery-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    margin-bottom: 20px;
}

.prod-detail-main-img-box {
    position: relative;
    width: 100%;
    height: 280px;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    margin-bottom: 12px;
    background: #f8fafc;
    overflow: hidden;
}

.prod-detail-main-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.25s ease-in-out, transform 0.25s ease-in-out;
    opacity: 1;
}

.prod-detail-main-img-box img.fade-out {
    opacity: 0.05;
    transform: scale(0.96);
}

.prod-detail-thumbs-row {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.prod-detail-thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    border: 1.5px solid var(--border-color, #e2e8f0);
    padding: 3px;
    cursor: pointer;
    object-fit: contain;
    background: white;
}

.prod-detail-thumb.active {
    border-color: var(--primary, #0266f2);
}

.specs-table-mini {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
    margin: 12px 0 18px 0;
}

.specs-table-mini td {
    padding: 6px 0;
    border-bottom: 1px dashed var(--border-color, #e2e8f0);
}

.specs-table-mini td:first-child {
    color: var(--text-muted, #64748b);
    font-weight: 600;
    width: 40%;
}

.specs-table-mini td:last-child {
    color: var(--text-dark, #0f172a);
    font-weight: 700;
}

.modal-buy-section-exact {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-qty-label-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-dark, #0f172a);
}

.modal-buy-row-exact {
    display: flex;
    align-items: center;
    gap: 16px;
}

.modal-stepper-exact-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
    height: 48px;
    padding: 2px;
}

.modal-stepper-exact-btn {
    background: #f8fafc;
    border: none;
    width: 36px;
    height: 42px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #334155;
}

.modal-stepper-exact-btn:hover {
    background: #e2e8f0;
}

.modal-stepper-exact-val {
    width: 36px;
    text-align: center;
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark, #0f172a);
}

.btn-modal-add-cart-exact {
    flex: 1;
    height: 48px;
    background: #0266f2;
    color: white;
    border: none;
    border-radius: 14px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(2, 102, 242, 0.3);
    transition: background 0.2s;
}

.btn-modal-add-cart-exact:hover {
    background: #0151c1;
}

.btn-modal-add-cart-exact svg {
    width: 20px;
    height: 20px;
    fill: white;
    pointer-events: none;
}

.btn-modal-add-cart-exact span {
    pointer-events: none;
    font-weight: 800;
}

.checkout-tabs-header {
    display: flex;
    border-bottom: 1.5px solid var(--border-color, #e2e8f0);
    margin-bottom: 20px;
    gap: 16px;
}

.checkout-tab-btn {
    background: none;
    border: none;
    padding: 10px 4px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted, #64748b);
    cursor: pointer;
    border-bottom: 2.5px solid transparent;
}

.checkout-tab-btn.active {
    color: var(--primary, #0266f2);
    border-bottom-color: var(--primary, #0266f2);
}

.form-input-clean {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 10px;
    font-size: 13.5px;
    outline: none;
    margin-bottom: 12px;
    font-family: inherit;
}

.form-input-clean:focus {
    border-color: var(--primary, #0266f2);
}

.btn-primary-block {
    width: 100%;
    background: var(--primary, #0266f2);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary-block:hover {
    background: var(--primary-hover, #0151c1);
}

.dropdown-container {
    position: relative;
}

.customer-dropdown-menu {
    position: absolute;
    top: 110%;
    right: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-width: 185px;
    z-index: 1000;
    display: none;
    flex-direction: column;
    padding: 8px 0;
    overflow: hidden;
    text-align: left;
}

.customer-dropdown-menu.show {
    display: flex;
}

.customer-dropdown-menu a {
    padding: 10px 16px;
    color: #1e293b;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.customer-dropdown-menu a:hover {
    background: #f1f5f9;
    color: var(--primary, #0266f2);
}

.customer-dropdown-menu .dropdown-header {
    padding: 10px 16px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 12.5px;
    color: #64748b;
    background: #f8fafc;
}

/* ADAPTACIÓN RESPONSIVA Y CONTROL DE DESBORDAMIENTO */
@media (max-width: 1200px) {
    .catalog-main-layout {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 18px;
    }

    /* Versión Tablet/Laptop: 4 productos por fila */
    .products-grid-column {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 10px;
    }
}

@media (max-width: 992px) {
    .brands-section,
    .services-section,
    .catalog-main-layout,
    .about-section {
        padding-left: 48px !important;
        padding-right: 48px !important;
        box-sizing: border-box !important;
    }

    .brands-track-infinite {
        animation: infiniteScrollBrands 160s linear infinite !important;
    }

    .catalog-main-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .categories-sidebar-card {
        width: 100%;
    }

    .categories-sidebar-card .cat-sidebar-ul {
        display: none;
    }

    .categories-sidebar-card.mobile-expanded .cat-sidebar-ul {
        display: flex !important;
    }

    .categories-sidebar-card #catHeaderArrow {
        transform: rotate(0deg);
        transition: transform 0.25s ease;
    }

    .categories-sidebar-card.mobile-expanded #catHeaderArrow {
        transform: rotate(180deg) !important;
    }

    .about-hero-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .about-hero-img-box {
        height: 240px !important;
    }

    .about-grid-3cols {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }

    .footer-main-card {
        grid-template-columns: 1fr 1fr;
    }

    /* Versión Tablet (iPad / 768px - 992px): 4 productos por fila */
    .products-grid-column {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 10px;
    }

    .services-carousel-container {
        mask-image: none !important;
        -webkit-mask-image: none !important;
        overflow: hidden !important;
        padding: 4px 0 !important;
    }

    .services-carousel-track {
        animation: none !important;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px !important;
        width: 100% !important;
    }

    .service-card-duplicate {
        display: none !important;
    }

    .service-item-card {
        flex: none !important;
        width: 100% !important;
        padding: 16px !important;
        border-radius: 18px !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
    }
}

@media (max-width: 768px) {
    .brands-section,
    .services-section,
    .catalog-main-layout,
    .about-section {
        padding-left: 36px !important;
        padding-right: 36px !important;
        box-sizing: border-box !important;
    }

    .brands-track-infinite {
        animation: infiniteScrollBrands 170s linear infinite !important;
    }

    .action-user .action-label-box {
        display: none !important;
    }

    .customer-dropdown-menu .customer-label-mobile {
        display: block !important;
    }

    .hero-badge-pill {
        display: none !important;
    }

    .top-bar {
        display: none;
    }

    /* Header fijo en móvil — no se desplaza con el teclado virtual */
    .main-header {
        position: sticky !important;
        top: 0 !important;
        z-index: 200 !important;
        /* iOS/Android: usar fixed con env() para safe area */
    }

    .header-container {
        flex-wrap: wrap;
        gap: 12px;
    }

    .brand-logo-img {
        height: 40px;
    }

    .search-group-container {
        max-width: 100%;
        order: 3;
        width: 100%;
    }

    .hero-banner-container {
        height: 220px;
        border-radius: 16px;
    }

    .hero-slide {
        padding: 10px !important;
    }

    .hero-content-card {
        margin-left: 14px;
        max-width: 85%;
    }

    .hero-content-card h2 {
        font-size: 18px;
    }

    .hero-content-card p {
        font-size: 12px;
        margin-bottom: 10px;
    }

    /* En tablets (768px) se mantienen 4 productos */
    .products-grid-column {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 8px;
    }

    .prod-detail-gallery-layout {
        grid-template-columns: 1fr;
    }

    .prod-detail-main-img-box {
        height: 180px;
    }

    /* FOOTER EN MÓVIL COMPLETAMENTE CENTRADO, FONT SIZE ORIGINAL Y FONDO AZUL AJUSTADO AL TEXTO */
    .footer-card-section {
        padding: 0 10px 10px 10px !important;
    }

    .footer-main-card {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        text-align: center !important;
        padding: 20px 16px !important;
        border-radius: 16px !important;
    }

    /* Tarjeta con Fondo Azul (Atención al Cliente / Ayuda): Ajustada al texto */
    .footer-help-modern-card {
        background: linear-gradient(135deg, #0266f2 0%, #1e40af 100%) !important;
        text-align: center !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 14px 16px !important;
        gap: 10px !important;
        border-radius: 14px !important;
        margin: 0 auto !important;
        width: 100% !important;
        min-height: auto !important;
        height: auto !important;
    }

    .footer-help-modern-card .help-card-badge {
        margin: 0 auto !important;
        font-size: 10.5px !important;
        padding: 3px 10px !important;
        letter-spacing: 0.4px !important;
        border-radius: 12px !important;
    }

    .footer-help-modern-card .help-card-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
        margin: 0 auto !important;
        gap: 4px !important;
    }

    .footer-help-modern-card .help-card-header > div {
        text-align: center !important;
        width: 100% !important;
    }

    .footer-help-modern-card .help-card-header h3 {
        font-size: 18px !important;
        font-weight: 800 !important;
        text-align: center !important;
        margin: 0 !important;
        line-height: 1.3 !important;
    }

    .footer-help-modern-card .help-card-header p {
        font-size: 12.5px !important;
        line-height: 1.4 !important;
        text-align: center !important;
        max-width: 95% !important;
        margin: 4px auto 0 auto !important;
        opacity: 0.95 !important;
    }

    .btn-help-action {
        width: 100% !important;
        max-width: 240px !important;
        margin: 0 auto !important;
        justify-content: center !important;
        padding: 10px 16px !important;
        font-size: 13.5px !important;
        font-weight: 700 !important;
        border-radius: 10px !important;
    }

    .btn-help-action svg {
        width: 16px !important;
        height: 16px !important;
    }

    /* Columnas Generales del Footer (Tamaño de Letra Original y Centrado) */
    .footer-col {
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        gap: 8px !important;
    }

    .footer-brand-text {
        font-size: 19px !important;
        font-weight: 900 !important;
        text-align: center !important;
        margin: 0 0 6px 0 !important;
    }

    .footer-col img {
        margin-left: auto !important;
        margin-right: auto !important;
        max-height: 42px !important;
        margin-bottom: 6px !important;
    }

    .footer-col h4 {
        text-align: center !important;
        width: 100% !important;
        margin-bottom: 6px !important;
        font-size: 14.5px !important;
        font-weight: 700 !important;
    }

    .footer-col p {
        text-align: center !important;
        max-width: 520px !important;
        margin: 0 auto 8px auto !important;
        font-size: 12.5px !important;
        line-height: 1.5 !important;
    }

    .footer-ul-links {
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
        padding: 0 !important;
        gap: 6px !important;
    }

    .footer-ul-links li {
        text-align: center !important;
        width: 100% !important;
        margin-bottom: 3px !important;
    }

    .footer-ul-links a {
        text-align: center !important;
        display: inline-block !important;
        font-size: 12.5px !important;
    }

    .footer-social-links {
        justify-content: center !important;
        width: 100% !important;
        gap: 10px !important;
        margin-top: 6px !important;
    }

    .footer-social-btn {
        width: 36px !important;
        height: 36px !important;
    }

    .footer-social-btn svg {
        width: 16px !important;
        height: 16px !important;
    }

    /* Barra Inferior del Footer con Fondo Azul (Ajustada al texto) */
    .footer-bottom-bar {
        background: var(--primary, #0266f2) !important;
        padding: 10px 0 14px 0 !important;
        min-height: auto !important;
        height: auto !important;
        text-align: center !important;
    }

    .footer-bottom-container {
        padding: 0 14px !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 6px !important;
    }

    .footer-bottom-container > div {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
        gap: 5px !important;
    }

    .footer-bottom-container span {
        font-size: 12px !important;
        text-align: center !important;
        line-height: 1.35 !important;
        display: block !important;
        width: 100% !important;
        opacity: 0.95 !important;
    }

    .btn-pos-footer {
        font-size: 12px !important;
        padding: 4px 14px !important;
        margin: 0 auto 2px auto !important;
    }

    /* CARRITO DE COMPRAS EN MÓVIL (MODAL CON MISMAS DIMENSIONES DE CREAR CUENTA / LOGIN) */
    .cart-drawer-overlay {
        position: fixed !important;
        inset: 0 !important;
        background: rgb(23 26 35 / 70%) !important;
        backdrop-filter: blur(5px) !important;
        -webkit-backdrop-filter: blur(5px) !important;
        z-index: 1200 !important;
        display: none;
    }

    .cart-drawer-overlay.open {
        display: block !important;
    }

    .cart-drawer {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        transform: translate(-50%, -50%) scale(0.94) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        width: 95% !important;
        max-width: 440px !important;
        max-height: 88vh !important;
        height: auto !important;
        background: #ffffff !important;
        border-radius: 20px !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: 0 25px 50px -12px rgba(2, 102, 242, 0.22), 0 10px 25px rgba(0, 0, 0, 0.18) !important;
        z-index: 1205 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    .cart-drawer.open {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translate(-50%, -50%) scale(1) !important;
        right: auto !important;
    }

    .cart-drawer-header {
        padding: 16px 20px !important;
        border-bottom: 1px solid #e2e8f0 !important;
        background: #ffffff !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        border-top-left-radius: 20px !important;
        border-top-right-radius: 20px !important;
    }

    .cart-drawer-body {
        flex: 1 1 auto !important;
        padding: 16px !important;
        max-height: calc(88vh - 215px) !important;
        overflow-y: auto !important;
    }

    .cart-drawer-footer {
        padding: 14px 18px !important;
        border-top: 1px solid #e2e8f0 !important;
        background: #f8fafc !important;
        border-bottom-left-radius: 20px !important;
        border-bottom-right-radius: 20px !important;
    }

    /* Botón flotante WhatsApp en móvil */
    .floating-whatsapp-btn {
        bottom: 20px !important;
        right: 18px !important;
        width: 52px !important;
        height: 52px !important;
    }

    .floating-whatsapp-btn svg {
        width: 30px !important;
        height: 30px !important;
    }

    .floating-whatsapp-tooltip {
        display: none !important;
    }

    .footer-bottom-bar {
        text-align: center !important;
    }

    .footer-bottom-container {
        flex-direction: column !important;
        gap: 10px !important;
        text-align: center !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .footer-bottom-container > div {
        text-align: center !important;
        justify-content: center !important;
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
    }
}

@media (max-width: 767px) {
    .brands-section,
    .services-section,
    .catalog-main-layout,
    .about-section {
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box !important;
    }

    .brands-track-infinite {
        animation: infiniteScrollBrands 200s linear infinite !important;
    }

    /* Versión celular: exactamente 2 productos por fila */
    .products-grid-column {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        width: 100% !important;
    }
}

@media (max-width: 576px) {
    .about-hero-grid {
        padding: 16px !important;
        border-radius: 18px !important;
    }

    .about-hero-img-box {
        height: 190px !important;
        border-radius: 14px !important;
    }

    .about-hero-text-box h3 {
        font-size: 18px !important;
    }

    .about-hero-text-box div {
        font-size: 13px !important;
        line-height: 1.6 !important;
    }

    .about-grid-3cols {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .about-feature-card {
        padding: 18px 16px !important;
        border-radius: 16px !important;
    }

    .about-card-icon-box {
        width: 44px !important;
        height: 44px !important;
        border-radius: 12px !important;
        margin-bottom: 10px !important;
    }

    .about-card-icon-box span {
        font-size: 20px !important;
    }

    .about-feature-card h4 {
        font-size: 15px !important;
        margin-bottom: 6px !important;
    }

    .about-feature-card p {
        font-size: 12.5px !important;
    }

    .about-alert-banner {
        padding: 16px !important;
        border-radius: 16px !important;
    }

    .about-alert-banner h4 {
        font-size: 14.5px !important;
    }

    .about-alert-banner p {
        font-size: 12px !important;
    }

    .products-grid-column {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .product-card-exact {
        padding: 10px 8px;
    }

    .prod-exact-img-box {
        height: 145px;
        padding: 4px;
    }

    .prod-exact-title {
        font-size: 12px;
        min-height: 32px;
        margin-bottom: 4px;
        word-break: break-word;
    }

    .price-exact-current {
        font-size: 14px;
    }

    .price-exact-old {
        font-size: 11px;
    }

    .about-feature-card p {
        font-size: 12.5px !important;
    }

    .about-alert-banner {
        padding: 16px !important;
        border-radius: 16px !important;
    }

    .about-alert-banner h4 {
        font-size: 14.5px !important;
    }

    .about-alert-banner p {
        font-size: 12px !important;
    }

    .products-grid-column {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .product-card-exact {
        padding: 10px 8px;
    }

    .prod-exact-img-box {
        height: 145px;
        padding: 4px;
    }

    .prod-exact-title {
        font-size: 12px;
        min-height: 32px;
        margin-bottom: 4px;
        word-break: break-word;
    }

    .price-exact-current {
        font-size: 14px;
    }

    .price-exact-old {
        font-size: 11px;
    }

    /* CONTROLES DE PRODUCTO EN MÓVIL (STEPPER A LA IZQUIERDA, BOTÓN AZUL A LA DERECHA) */
    .prod-exact-controls {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
        flex-wrap: nowrap;
        margin-top: 6px;
    }

    .stepper-exact-box {
        order: 1;
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 2px;
        margin-bottom: 0;
    }

    .stepper-exact-btn {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        border-radius: 7px !important;
        font-size: 16px !important;
        font-weight: 800 !important;
        background: #f1f5f9;
        border: 1px solid #cbd5e1;
    }

    .stepper-exact-val {
        min-width: 20px !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        text-align: center;
    }

    .btn-exact-add-cart {
        order: 2;
        width: 38px !important;
        height: 34px !important;
        min-width: 38px !important;
        border-radius: 8px !important;
        background: #0266f2 !important;
        color: #ffffff !important;
        border: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        cursor: pointer !important;
        padding: 0 !important;
        box-shadow: 0 2px 6px rgba(2, 102, 242, 0.25) !important;
    }

    .btn-exact-add-cart svg {
        width: 18px !important;
        height: 18px !important;
        fill: #ffffff !important;
        pointer-events: none !important;
    }

    .btn-exact-add-cart .btn-add-text {
        display: none !important;
    }

    .category-select-wrapper {
        display: none;
    }

    .services-carousel-track {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .service-item-card {
        padding: 14px !important;
        gap: 12px !important;
    }

    .service-card-left-img {
        flex: 0 0 65px !important;
        width: 65px !important;
        height: 65px !important;
        border-radius: 14px !important;
    }

    .service-card-right-desc h4 {
        font-size: 14.5px !important;
        margin-bottom: 4px !important;
    }

    .service-card-right-desc p {
        font-size: 12px !important;
        line-height: 1.4 !important;
    }
}

/* TOUCH-FRIENDLY STEPPER & REMOVE BUTTON IN CART DRAWER */
.cart-stepper-touch-box {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 2px;
}

.cart-touch-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #ffffff;
    border: none;
    color: #0f172a;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: background 0.15s ease;
}

.cart-touch-btn:hover {
    background: #e2e8f0;
}

.cart-touch-val {
    min-width: 26px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    color: #0f172a;
}

.btn-cart-remove-item-lg {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #fef2f2;
    border: 1px solid #fee2e2;
    color: #ef4444;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.btn-cart-remove-item-lg:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* MODAL DE AUTENTICACIÓN / LOGIN ULTRA-MODERNO Y ELEGANTE */
.modern-auth-card {
    padding: 24px 28px !important;
    max-width: 440px !important;
    width: 95% !important;
    border-radius: 20px !important;
    background: #ffffff !important;
    box-shadow: 0 25px 50px -12px rgba(2, 102, 242, 0.22) !important;
    border: 1px solid #e2e8f0 !important;
}

.modern-auth-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.modern-auth-nav-tabs {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 20px;
    gap: 4px;
}

.modern-auth-tab-btn {
    flex: 1;
    padding: 9px 12px;
    border: none;
    background: transparent;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modern-auth-tab-btn.active {
    background: #ffffff;
    color: #0266f2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.modern-auth-welcome h4 {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.modern-auth-welcome p {
    font-size: 12.5px;
    color: #64748b;
    margin-bottom: 16px;
    line-height: 1.4;
}

.modern-input-group {
    position: relative;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
}

.modern-input-group .input-icon {
    position: absolute;
    left: 14px;
    top: 43%;
    transform: translateY(-50%);
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    pointer-events: none;
    z-index: 2;
    margin-top: -1px;
}

.modern-input-group .form-input-clean {
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 44px !important;
    padding-right: 14px !important;
    height: 46px !important;
    line-height: normal !important;
    border-radius: 12px !important;
    border: 1.5px solid #cbd5e1 !important;
    font-size: 13.5px !important;
    background-color: #f8fafc !important;
    transition: all 0.2s ease !important;
    display: block !important;
}

.modern-input-group .form-input-clean:focus {
    background-color: #ffffff !important;
    border-color: #0266f2 !important;
    box-shadow: 0 0 0 3px rgba(2, 102, 242, 0.15) !important;
}

/* Alineación limpia para textarea de notas */
.modern-input-group:has(textarea),
.modern-input-group.has-textarea {
    align-items: flex-start;
}

.modern-input-group:has(textarea) .input-icon,
.modern-input-group.has-textarea .input-icon {
    top: 14px;
    transform: none;
    margin-top: 0;
}

.modern-input-group textarea.form-input-clean {
    height: 72px !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    line-height: 1.4 !important;
    resize: none !important;
}

.btn-modern-gradient-primary {
    width: 100%;
    padding: 12px;
    height: 46px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #0266f2 0%, #0151c1 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(2, 102, 242, 0.25);
    transition: all 0.2s ease;
}

.btn-modern-gradient-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(2, 102, 242, 0.35);
}

.btn-modern-gradient-whatsapp {
    width: 100%;
    padding: 12px;
    height: 46px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
    transition: all 0.2s ease;
}

.modern-auth-footer-links {
    margin-top: 16px;
    text-align: center;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-link-secondary {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
}

.auth-link-secondary:hover {
    color: #0266f2;
}

.auth-link-guest {
    color: #0266f2;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    margin-top: 4px;
}

.auth-link-guest:hover {
    text-decoration: underline;
}

/* =========================================================
   FICHA TÉCNICA MULTIRRUBRO EN DETALLE DE PRODUCTO (E-COMMERCE)
   ========================================================= */
.ecom-spec-section {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.ecom-spec-section:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.ecom-spec-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1.5px solid #e2e8f0;
}

.ecom-spec-pharma .ecom-spec-header {
    color: #0284c7;
    border-color: #bae6fd;
}

.ecom-spec-hardware .ecom-spec-header {
    color: #d97706;
    border-color: #fde68a;
}

.ecom-spec-tech .ecom-spec-header {
    color: #7c3aed;
    border-color: #ddd6fe;
}

.ecom-spec-clothing .ecom-spec-header {
    color: #db2777;
    border-color: #fbcfe8;
}

.ecom-spec-shoes .ecom-spec-header {
    color: #059669;
    border-color: #a7f3d0;
}

.ecom-prescription-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ecom-spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
}

.ecom-spec-item {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    padding: 4px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.ecom-spec-item.ecom-spec-col-full {
    grid-column: span 2;
}

.ecom-spec-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ecom-spec-val {
    font-size: 12.5px;
    font-weight: 700;
    color: #1e293b;
    word-break: break-word;
}

.ecom-chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.ecom-size-chip {
    display: inline-block;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: #0f172a;
    font-weight: 800;
    font-size: 11.5px;
    padding: 3px 10px;
    border-radius: 8px;
}

.ecom-color-chip {
    display: inline-block;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-weight: 700;
    font-size: 11.5px;
    padding: 3px 10px;
    border-radius: 8px;
}

.ecom-spec-expiry-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 12px;
    color: #065f46;
    margin-top: 10px;
}

@media (max-width: 640px) {
    .ecom-spec-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .ecom-spec-item.ecom-spec-col-full {
        grid-column: span 1;
    }
}

/* ==========================================================================
   4 TEMAS / DISEÑOS DE TIENDA E-COMMERCE
   ========================================================================== */

/* 1. TEMA: MODERNO HERO MARKET (hero / modern) */
body.theme-hero {
    --primary: #0266f2;
    --primary-hover: #0151c1;
    --accent: #22c55e;
    --bg-body: #f8fafc;
}
body.theme-hero .main-header {
    box-shadow: 0 4px 20px rgba(2, 102, 242, 0.08);
}
body.theme-hero .product-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(2, 102, 242, 0.12);
    border-color: #93c5fd;
}

/* 2. TEMA: MINIMALISTA COMERCIAL (clean / minimal) */
body.theme-clean {
    --bg-body: #ffffff;
    --border-color: #e2e8f0;
}
body.theme-clean .top-bar {
    background: #0f172a;
    font-size: 12px;
    padding: 6px 0;
}
body.theme-clean .main-header {
    border-bottom: 1.5px solid #e2e8f0;
    box-shadow: none;
}
body.theme-clean .product-card-modern {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: none;
    transition: all 0.2s ease;
}
body.theme-clean .product-card-modern:hover {
    border-color: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
body.theme-clean .cat-sidebar-header-item {
    background: #0f172a !important;
}

/* 3. TEMA: BOUTIQUE GOURMET / CATÁLOGO ELEGANCE (boutique / elegance) */
body.theme-boutique {
    --bg-body: #fcfbfa;
    --text-dark: #1c1917;
    --primary: #b45309;
    --accent: #15803d;
}
body.theme-boutique h1, 
body.theme-boutique h2, 
body.theme-boutique h3, 
body.theme-boutique .hero-badge-title h1,
body.theme-boutique .catalog-header-title h2 {
    font-family: 'Playfair Display', Georgia, serif;
    letter-spacing: -0.3px;
}
body.theme-boutique .top-bar {
    background: #1c1917;
    color: #fef3c7;
    border-bottom: 1px solid rgba(254, 243, 199, 0.15);
}
body.theme-boutique .top-bar-item {
    color: #fef3c7;
}
body.theme-boutique .main-header {
    background: #ffffff;
    border-bottom: 2px solid #f59e0b;
    box-shadow: 0 6px 24px rgba(180, 83, 9, 0.06);
}
body.theme-boutique .product-card-modern {
    border: 1px solid #fef3c7;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}
body.theme-boutique .product-card-modern:hover {
    border-color: #f59e0b;
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(180, 83, 9, 0.12);
}
body.theme-boutique .badge-exact-discount {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
    font-weight: 800;
}

/* 4. TEMA: DARK MODE CYBER MARKET (dark / cyber) */
body.theme-dark {
    --bg-body: #090d16;
    --text-dark: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #1e293b;
    --primary: #38bdf8;
    --primary-hover: #0284c7;
    --accent: #22c55e;
    background-color: #090d16 !important;
    color: #f8fafc !important;
}
body.theme-dark .top-bar {
    background: #060911;
    border-bottom: 1px solid #1e293b;
}
body.theme-dark .main-header {
    background-color: #0f172a !important;
    border-color: #1e293b !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
}
body.theme-dark .product-card-modern,
body.theme-dark .categories-sidebar-card,
body.theme-dark .service-item-card,
body.theme-dark .footer-main-card,
body.theme-dark .modal-card-custom,
body.theme-dark .cart-drawer {
    background-color: #131b2e !important;
    border-color: #1e293b !important;
    color: #f8fafc !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4) !important;
}
body.theme-dark .product-card-title,
body.theme-dark h1,
body.theme-dark h2,
body.theme-dark h3,
body.theme-dark h4 {
    color: #f8fafc !important;
}
body.theme-dark .product-card-desc {
    color: #94a3b8 !important;
}
body.theme-dark .cat-sidebar-li-btn {
    background-color: #131b2e !important;
    color: #e2e8f0 !important;
    border-color: #1e293b !important;
}
body.theme-dark .cat-sidebar-li-btn:hover {
    background-color: #1e293b !important;
    color: #38bdf8 !important;
}
body.theme-dark .popover-menu {
    background-color: #131b2e !important;
    border-color: #1e293b !important;
}
body.theme-dark .popover-item {
    color: #f8fafc !important;
}
body.theme-dark .popover-item:hover {
    background-color: #1e293b !important;
    color: #38bdf8 !important;
}
body.theme-dark .search-input {
    background-color: #090d16 !important;
    color: #ffffff !important;
    border-color: #1e293b !important;
}
body.theme-dark .footer-bottom-bar {
    background-color: #060911 !important;
    border-top-color: #1e293b !important;
    color: #94a3b8 !important;
}