/* ============================================================
   ELECTRO SALAS MULTIRUBRO — style.css
   Estilo Premium / Limpio (Tipo Gadnic) + Arquitectura Funcional
   ============================================================ */

:root {
    --bg-color:      #f8fafc;
    --card-bg:       #ffffff;
    --sidebar-bg:    #ffffff;
    --text-main:     #0f172a;
    --text-muted:    #64748b;
    --border-color:  #e2e8f0;
    --accent-color:  #dc2626;
    --accent-hover:  #b91c1c;
    --sidebar-width: 280px;
    --header-height: 80px;

    --font-heading: 'Montserrat', sans-serif;
    --font-body:    'Inter', sans-serif;

    --shadow-sm:    0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.025);
    --shadow-md:    0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.025);
    --shadow-hover: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --radius:       16px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
body.sidebar-open { overflow: hidden; }

h1,h2,h3 { font-family: var(--font-heading); font-weight: 800; letter-spacing: -0.5px; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #cccccc; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-color); }

/* ============================================================
   TOP ANNOUNCEMENT BAR
   ============================================================ */
.top-announcement-bar {
    background-color: var(--accent-color); color: #fff; font-size: 0.75rem; font-weight: 700;
    padding: 6px 0; overflow: hidden; white-space: nowrap; position: relative; z-index: 101;
}
.announcement-marquee {
    display: inline-block; animation: marquee 25s linear infinite;
}
.announcement-marquee span { margin-right: 15px; }
.dot-separator { color: rgba(255,255,255,0.6); font-size: 1rem; vertical-align: middle; }

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================================
   HEADER & NAVBAR
   ============================================================ */
.main-header {
    position: sticky;
    top: 0;
    z-index: 200;
    height: var(--header-height);
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 15px rgba(0,0,0,0.04);
    padding: 0 30px;
    display: flex;
    align-items: center;
}

.header-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand-container { display: flex; align-items: center; gap: 15px; }

/* Hamburger (mobile only) */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: #f4f5f7;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    flex-shrink: 0;
}
.hamburger-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: 0.3s;
}
.hamburger-btn:hover { background: #e8e8e8; }

.nav-logo-text { display: flex; flex-direction: column; text-decoration: none; line-height: 1.1; }
.logo-main { font-family: var(--font-heading); font-weight: 900; font-size: 1.6rem; letter-spacing: -0.5px; color: var(--accent-color); }
.logo-sub { font-size: 0.85rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); }


.header-actions { display: flex; align-items: center; gap: 15px; flex: 1; justify-content: flex-end; }

/* Mobile Search Toggle (visible only on mobile via @media) */
.mobile-search-toggle { display: none; align-items: center; justify-content: center; background: none; border: none; color: var(--text-main); padding: 5px; cursor: pointer; }
.mobile-search-dropdown { display: none; }

/* Sidebar footer actions (only for mobile) */
.sidebar-footer-mobile { display: none; }

/* Search Bar */
.search-bar { position: relative; flex: 1; max-width: 500px; }
.search-bar svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #999999; }
.search-bar input {
    width: 100%; padding: 14px 20px 14px 48px; border-radius: 30px;
    border: 2px solid transparent; background: #f0f2f5; color: var(--text-main);
    font-size: 0.95rem; outline: none; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); font-family: var(--font-body);
}
.search-bar input::placeholder { color: #888888; font-weight: 500; }
.search-bar input:focus { background: #ffffff; border-color: var(--accent-color); box-shadow: 0 4px 15px rgba(229,9,20,0.1); }

/* Live Search Dropdown */
.search-dropdown {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0; background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--border-color);
    border-radius: 16px; box-shadow: 0 15px 40px rgba(0,0,0,0.1); z-index: 250;
    max-height: 400px; overflow-y: auto; display: none; flex-direction: column; padding: 10px;
}
.search-dropdown.active { display: flex; animation: slideDown 0.2s ease-out; }
.search-result-item {
    display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px;
    cursor: pointer; text-decoration: none; transition: 0.2s; border: 1px solid transparent;
}
.search-result-item:hover { background: #f4f5f7; border-color: #eee; }
.search-result-img { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; background: #fff; border: 1px solid #eee; }
.search-result-info { flex: 1; }
.search-result-title { font-size: 0.85rem; font-weight: 700; color: var(--text-main); margin-bottom: 2px; }
.search-result-cat { font-size: 0.7rem; color: var(--text-muted); }
.search-no-results { padding: 15px; text-align: center; font-size: 0.85rem; color: var(--text-muted); }

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

/* Header Buttons */
.btn-pdf-header, .social-link.admin-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: #f4f5f7; color: var(--text-main); border: none; border-radius: 50%;
    width: 46px; height: 46px; cursor: pointer; transition: 0.3s; text-decoration: none; flex-shrink: 0;
}
.btn-pdf-header { width: auto; border-radius: 23px; padding: 0 20px; font-weight: 700; font-size: 0.9rem; }
.btn-pdf-header:hover, .social-link.admin-btn:hover { background: #e8e8e8; color: var(--accent-color); }

/* ============================================================
   CATEGORÍAS CHIPS (HIGHLIGHTS)
   ============================================================ */
.category-highlights {
    display: flex; gap: 8px; overflow-x: auto; padding: 4px 20px 20px 20px;
    margin: 0 -20px 20px -20px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.category-highlights::-webkit-scrollbar { display: none; }
.highlight-item {
    display: flex; flex-direction: row; align-items: center; gap: 7px;
    flex-shrink: 0; scroll-snap-align: start; cursor: pointer;
    padding: 8px 14px 8px 10px;
    background: #f4f5f7; border-radius: 30px;
    border: 1.5px solid transparent;
    transition: all 0.25s ease;
}
.highlight-item:hover, .highlight-item.active {
    background: #fff1f2;
    border-color: var(--accent-color);
    color: var(--accent-color);
}
.highlight-circle {
    width: 32px; height: 32px; border-radius: 50%; background: #ffffff;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-color); flex-shrink: 0;
    box-shadow: none; border: none; transition: none;
}
.highlight-item:hover .highlight-circle, .highlight-item.active .highlight-circle {
    transform: none; box-shadow: none;
}
.highlight-name {
    font-size: 0.78rem; font-weight: 700; color: var(--text-main);
    white-space: nowrap; line-height: 1;
    display: block; overflow: visible; max-width: none;
    -webkit-line-clamp: unset;
}
.highlight-item:hover .highlight-name, .highlight-item.active .highlight-name {
    color: var(--accent-color);
}

/* ============================================================
   BLOQUES TEMÁTICOS (CARRUSELES HORIZONTALES)
   ============================================================ */
/* Block title premium - sin emojis */
.block-title {
    font-size: 1.4rem; font-family: var(--font-heading); font-weight: 900;
    color: var(--text-main); letter-spacing: -0.5px;
    display: flex; align-items: center; gap: 10px;
}
.block-title::before {
    content: ''; display: block; width: 4px; height: 22px;
    background: var(--accent-color); border-radius: 2px; flex-shrink: 0;
}

.thematic-block { margin-bottom: 50px; }
.block-header { margin-bottom: 20px; }
.swipe-hint {
    font-size: 0.75rem; color: #aaa; display: flex; align-items: center;
    gap: 5px; font-weight: 600; white-space: nowrap;
}

.horizontal-slider {
    display: flex; gap: 15px; overflow-x: auto; padding: 10px 20px 20px 20px; margin: 0 -20px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.horizontal-slider::-webkit-scrollbar { display: none; }
.horizontal-slider .product-card {
    min-width: 200px; max-width: 200px; flex-shrink: 0; scroll-snap-align: start; margin-bottom: 0;
}

/* ============================================================
   CATALOG LAYOUT
   ============================================================ */
.catalog-layout {
    display: flex; max-width: 1400px; margin: 0 auto; padding: 30px 20px; gap: 30px;
    min-height: calc(100vh - var(--header-height)); position: relative;
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.55);
    z-index: 280; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.sidebar-overlay.active { display: block; animation: fadeIn 0.25s ease; }

/* Sidebar Base */
.catalog-sidebar {
    width: var(--sidebar-width); flex-shrink: 0; background: var(--sidebar-bg);
    border-radius: var(--radius); height: fit-content; position: sticky;
    top: calc(var(--header-height) + 30px); box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color); overflow-y: auto;
    max-height: calc(100vh - var(--header-height) - 60px);
}
.catalog-sidebar::-webkit-scrollbar { width: 4px; }
.catalog-sidebar::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }

/* Sidebar Drawer Header (mobile) */
.sidebar-drawer-header {
    display: none; /* oculto en desktop */
    align-items: center; justify-content: space-between;
    padding: 0 16px;
    height: 62px; min-height: 62px;
    background: #fff; border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.sidebar-close-btn {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    background: #f4f5f7; border: none; border-radius: 8px; cursor: pointer; color: var(--text-main);
    transition: 0.2s; flex-shrink: 0;
}
.sidebar-close-btn:hover { background: #e8e8e8; }

/* Section label dentro del sidebar */
.sidebar-section-label {
    font-family: var(--font-heading); font-size: 0.72rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted);
    padding: 16px 20px 10px; border-bottom: 1px solid var(--border-color); margin-bottom: 4px;
}

/* El viejo sidebar-header-label ya no se usa pero lo dejamos por compatibilidad desktop */
.sidebar-header-label {
    font-family: var(--font-heading); font-size: 0.8rem; font-weight: 800; text-transform: uppercase;
    color: var(--text-main); margin-bottom: 15px; display: flex; align-items: center; gap: 8px;
    padding-bottom: 15px; border-bottom: 1px solid var(--border-color);
}

.sidebar-inner { padding: 0 15px 30px; flex: 1; overflow-y: auto; }

.category-tree button {
    display: flex; align-items: center; width: 100%; background: none; border: none;
    padding: 12px 14px; border-radius: 8px; color: var(--text-muted); font-family: var(--font-body);
    font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: 0.2s; text-align: left;
}
.category-tree button:hover { background: #f4f5f7; color: var(--text-main); }
.category-tree button:hover .cat-icon { filter: grayscale(0%) opacity(1) !important; }
.category-tree button.active { background: rgba(229,9,20,0.06); color: var(--accent-color); font-weight: 700; }
.category-tree button.active .cat-icon { filter: grayscale(0%) opacity(1) !important; }

.cat-icon { margin-right: 12px; color: inherit; opacity: 0.8; flex-shrink: 0; }
.cat-name { flex: 1; }
.cat-badge { background: #eee; color: #666; font-size: 0.75rem; padding: 2px 8px; border-radius: 12px; font-weight: 700; }
.cat-all-btn.active .cat-badge { background: var(--accent-color); color: #fff; }

.cat-arrow { margin-left: auto; transition: transform 0.3s; opacity: 0.5; }
.cat-group.expanded .cat-arrow { transform: rotate(90deg); opacity: 1; }
.cat-group.expanded .cat-parent-btn { color: var(--text-main); }

.cat-children-list { list-style: none; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; padding-left: 36px; }
.cat-group.expanded .cat-children-list { max-height: 600px; margin-top: 5px; margin-bottom: 10px; }
.cat-child-btn { padding: 10px; font-size: 0.85rem !important; position: relative; }
.cat-child-btn::before { content: ''; position: absolute; left: -10px; top: 50%; transform: translateY(-50%); width: 4px; height: 4px; border-radius: 50%; background: #ccc; }
.cat-child-btn.active::before { background: var(--accent-color); }

/* ============================================================
   PREMIUM CAROUSEL (NUEVO Y MODERNO)
   ============================================================ */
.catalog-main { flex: 1; min-width: 0; padding-bottom: 60px; }

.carousel-container {
    border-radius: 24px; overflow: hidden; margin-bottom: 40px;
    box-shadow: 0 30px 60px rgba(229,9,20,0.08); position: relative;
    transform: translateZ(0);
    aspect-ratio: 2.5 / 1; min-height: 250px; max-height: 450px; height: auto;
    background: #fff; border: 1px solid var(--border-color);
}
.carousel-wrapper { width: 100%; height: 100%; position: relative; }
.carousel-track { width: 100%; height: 100%; position: relative; }

.carousel-slide {
    position: absolute; inset: 0; opacity: 0; visibility: hidden;
    transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), visibility 1.2s;
    z-index: 1;
}
.carousel-slide.active { opacity: 1; visibility: visible; z-index: 2; }

.carousel-slide img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.carousel-slide.active img {
    /* Sin efecto Ken Burns para no cortar texto del banner */
}
/* Indicadores de Progreso */
.carousel-dots {
    position: absolute; bottom: 15px; left: 0; width: 100%;
    display: flex; justify-content: center; gap: 8px; z-index: 10;
}
.carousel-dot {
    width: 8px; height: 8px; border-radius: 4px;
    background: rgba(0,0,0,0.3); cursor: pointer; position: relative;
    transition: all 0.3s ease; border: 1px solid rgba(255,255,255,0.5);
}
.carousel-dot.active {
    width: 24px; background: rgba(255,255,255,0.9); border-color: transparent;
}
.progress-fill { display: none; }
@keyframes fillProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Flechas Glassmorphism que aparecen solo en hover (PC) */
/* Breadcrumb */
.catalog-breadcrumb {
    display: flex; justify-content: space-between; align-items: center; 
    margin-bottom: 25px; padding: 12px 18px; 
    background: #f4f5f7; border-radius: 12px;
    flex-wrap: wrap; gap: 12px; border: 1px solid transparent;
}
.breadcrumb-left { display: flex; align-items: center; }
.breadcrumb-label { 
    font-size: 0.95rem; font-weight: 800; color: var(--text-main); 
    font-family: var(--font-heading); background: #fff; 
    padding: 6px 16px; border-radius: var(--radius); box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.breadcrumb-count { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }

/* Sort Select */
.sort-select {
    padding: 8px 16px; border-radius: var(--radius); border: 1px solid var(--border-color);
    background: #fff; font-family: var(--font-body); font-size: 0.85rem; font-weight: 600;
    color: var(--text-main); cursor: pointer; outline: none; transition: 0.3s;
    appearance: none; background-image: url('data:image/svg+xml;utf8,<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%23333" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>');
    background-repeat: no-repeat; background-position: right 12px center; padding-right: 35px;
}
.sort-select:hover { border-color: var(--accent-color); box-shadow: 0 2px 8px rgba(229,9,20,0.1); }

/* ============================================================
   PRODUCT GRID & CARDS
   ============================================================ */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 25px; }
.product-card {
    background: #ffffff;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(229, 9, 20, 0.15);
    transform: translateY(-8px);
    z-index: 2;
}
.product-card.featured .product-title { color: var(--accent-color); }

.product-image-container {
    width: 100%;
    height: 230px;
    background: #fdfdfd;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    transition: background 0.4s ease;
}
.product-card:hover .product-image-container {
    background: #f7f7f9;
}
.product-image { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.product-card:hover .product-image { transform: scale(1.12); }

.quick-view-overlay-hover {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.4s;
    z-index: 5;
}
.quick-view-overlay-hover span {
    background: #111;
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    transform: translateY(15px);
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.product-card:hover .quick-view-overlay-hover { opacity: 1; }
.product-card:hover .quick-view-overlay-hover span { transform: translateY(0); }

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 6;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: var(--radius);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.badge-featured {
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.9), rgba(255, 71, 87, 0.9));
    color: #fff;
}
.badge-new {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(52, 211, 153, 0.9));
    color: #fff;
}

.product-info { padding: 22px; flex: 1; display: flex; flex-direction: column; background: #ffffff; }
.product-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.45;
    margin-bottom: 12px;
    min-height: 2.9em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: var(--font-heading);
    letter-spacing: -0.1px;
    transition: color 0.3s ease;
    cursor: pointer;
}
.product-card:hover .product-title {
    color: var(--accent-color);
}
.product-desc {
    font-size: 0.85rem; color: #666; line-height: 1.5; margin-bottom: 18px; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ============================================================
   PRODUCT PRICING
   ============================================================ */
.product-pricing {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.product-installment-container {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}
.installments-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.installment-amount {
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--accent-color);
    letter-spacing: -0.5px;
    font-family: var(--font-heading);
}
.product-cash-price {
    font-size: 0.78rem;
    font-weight: 600;
    color: #4b5563;
}

@media (max-width: 768px) {
    .installment-amount {
        font-size: 1.2rem;
    }
    .installments-label {
        font-size: 0.65rem;
    }
    .product-cash-price {
        font-size: 0.7rem;
    }
    .product-pricing {
        margin-bottom: 12px;
    }
}

/* Stock status */
.product-meta-row { margin-bottom: 18px; }
.product-stock-status {
    display: inline-flex; align-items: center; gap: 8px; font-size: 0.75rem; font-weight: 700;
    padding: 6px 12px; border-radius: var(--radius); background: #f4f5f7; border: 1px solid #eee;
}
.in-stock { color: #10b981; background: rgba(16, 185, 129, 0.05); border-color: rgba(16, 185, 129, 0.2); }
.out-of-stock { color: #6b7280; }
.stock-indicator { width: 6px; height: 6px; border-radius: 50%; }
.in-stock .stock-indicator { background: #10b981; box-shadow: 0 0 6px rgba(16,185,129,0.6); }
.out-of-stock .stock-indicator { background: #9ca3af; }

.btn-add-consult {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 30px;
    background: #f3f4f6;
    color: #374151;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.btn-add-consult:hover {
    background: var(--accent-color);
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(229, 9, 20, 0.2);
    transform: translateY(-2px);
}
.product-card:hover .btn-add-consult {
    background: var(--accent-color);
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(229, 9, 20, 0.2);
}
.btn-add-consult.added {
    background: #10b981 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.2) !important;
}

/* Botón Cargar Más */
.btn-load-more {
    background: #ffffff; border: 2px solid var(--border-color); color: var(--text-main);
    padding: 14px 40px; border-radius: 30px; font-family: var(--font-heading); font-weight: 800; font-size: 0.95rem;
    cursor: pointer; transition: 0.3s; text-transform: uppercase; letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm); display: inline-block;
}
.btn-load-more:hover { border-color: var(--text-main); background: var(--text-main); color: #fff; transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* ============================================================
   SKELETONS & EMPTY STATE
   ============================================================ */
.skeleton-card { background: var(--card-bg); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-color); }
.skeleton-img { height: 220px; }
.skeleton-info { padding: 15px; }
.skeleton-title { height: 18px; border-radius: 4px; margin-bottom: 10px; width: 90%; }
.skeleton-desc { height: 14px; border-radius: 4px; margin-bottom: 8px; width: 70%; }
.skeleton-row { margin-top: 20px; }
.skeleton-btn { height: 45px; border-radius: 8px; }

.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #fafafa 50%, #f0f0f0 75%);
    background-size: 200% 100%; animation: shimmer 1.5s infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.empty-state {
    display: none; flex-direction: column; align-items: center; justify-content: center;
    padding: 60px 20px; text-align: center; min-height: 300px;
}
.empty-state-icon {
    width: 80px; height: 80px; background: #f4f5f7; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #ccc; margin-bottom: 20px;
}
.empty-state h3 { font-size: 1.2rem; font-weight: 800; color: var(--text-main); margin-bottom: 8px; }
.empty-state p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.5; }
.empty-state-btn {
    padding: 12px 28px; background: var(--accent-color); color: #fff;
    border: none; border-radius: 30px; font-weight: 800; font-size: 0.9rem;
    cursor: pointer; transition: 0.3s; font-family: var(--font-heading);
}
.empty-state-btn:hover { background: var(--accent-hover); transform: translateY(-2px); }

/* ============================================================
   VALUE PROPOSITIONS
   ============================================================ */
.value-propositions-container { background: #ffffff; padding: 50px 20px; border-top: 1px solid var(--border-color); }
.value-propositions-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.prop-card { display: flex; align-items: flex-start; gap: 20px; padding: 25px; background: #f9f9f9; border-radius: 16px; transition: 0.3s; border: 1px solid transparent; }
.prop-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #eee; }
.prop-icon-wrapper { width: 56px; height: 56px; min-width: 56px; background: #ffffff; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: var(--accent-color); box-shadow: 0 4px 15px rgba(0,0,0,0.05); flex-shrink: 0; }
.prop-title { font-size: 1rem; font-weight: 800; color: var(--text-main); margin-bottom: 6px; }
.prop-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; }

/* ============================================================
   FOOTER PREMIUM (BLANCO Y ROJO)
   ============================================================ */
/* ============================================================
   FOOTER PREMIUM (WHITE THEME - NALDO STYLE)
   ============================================================ */
.main-footer {
    background: #ffffff;
    color: #4b5563;
    padding: 60px 20px 40px;
    position: relative;
    overflow: hidden;
    border-top: 1px solid #e5e7eb;
}
.main-footer::before { display: none; }
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}
.footer-logo-text .logo-main {
    color: #111827;
    font-size: 1.8rem;
    letter-spacing: -0.5px;
    font-weight: 900;
}
.footer-logo-text .logo-sub {
    color: var(--accent-color);
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 800;
}
.footer-brand-desc {
    color: #6b7280;
    font-size: 0.85rem;
    margin-top: 12px;
    line-height: 1.5;
}
.footer-col-title {
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #111827;
    margin-bottom: 20px;
    position: relative;
}
.footer-col-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 25px;
    height: 2.5px;
    background: var(--accent-color);
    border-radius: 2px;
}
.footer-contact-info, .footer-steps, .footer-hours-list, .footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links-list li {
    margin-bottom: 10px;
}
.footer-links-list a {
    color: #4b5563;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
    font-weight: 500;
}
.footer-links-list a:hover {
    color: var(--accent-color);
}
.footer-contact-info li, .footer-steps li, .footer-hours-list li {
    margin-bottom: 14px;
    color: #4b5563;
    font-size: 0.85rem;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.footer-contact-info a {
    color: #111827;
    text-decoration: none;
    transition: 0.2s;
    font-weight: 600;
}
.footer-contact-info a:hover {
    color: var(--accent-color);
}
.step-num {
    width: 26px;
    height: 26px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    color: #111827;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.footer-steps li:hover .step-num {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #ffffff;
    transform: scale(1.1);
}
.step-title {
    display: block;
    color: #111827;
    margin-bottom: 2px;
    font-weight: 700;
}
.step-desc {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #6b7280;
}
.shipping-notice {
    background: #fafafa;
    border: 1px solid #eaeaea;
    padding: 12px;
    border-radius: 10px;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
}
.shipping-tag {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 0;
    letter-spacing: 0.5px;
}
.shipping-text {
    font-size: 0.8rem;
    color: #4b5563;
    margin: 0;
}
.footer-social-links {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.footer-social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    transition: 0.3s;
    border: 1px solid #e5e7eb;
}
.footer-social-link:hover {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229,9,20,0.2);
}

/* ── Footer Payment Methods ── */
.footer-payment-methods {
    margin-top: 20px;
    margin-bottom: 20px;
}
.footer-payment-methods .payment-title {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #6b7280;
    margin-bottom: 12px;
}
.payment-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.payment-badge {
    height: 40px;
    padding: 0 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
.payment-badge svg,
.payment-badge img {
    max-height: 20px;
    max-width: 100%;
    object-fit: contain;
    filter: none;
    opacity: 1;
    transition: all 0.3s ease;
}
.payment-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

/* ── Newsletter & Arrepentimiento & Consumer ── */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 15px;
    max-width: 260px;
}
.newsletter-form input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.85rem;
    outline: none;
    font-family: var(--font-body);
}
.newsletter-form input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.1);
}
.newsletter-btn {
    width: 100%;
    padding: 10px;
    background: var(--accent-color);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}
.newsletter-btn:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 10px rgba(229, 9, 20, 0.2);
}

.btn-arrepentimiento {
    display: inline-flex;
    padding: 8px 16px;
    border: 1.5px solid #d1d5db;
    border-radius: var(--radius);
    background: transparent;
    color: #374151;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-top: 10px;
    justify-content: center;
}
.btn-arrepentimiento:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(229, 9, 20, 0.02);
}

.consumer-badges {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 12px;
}
.consumer-badge {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #e5e7eb;
    padding-top: 25px;
    color: #9ca3af;
    font-size: 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
}
.footer-copyright a {
    transition: color 0.2s;
    color: var(--accent-color);
}
.footer-copyright a:hover {
    color: var(--accent-hover) !important;
}

/* ============================================================
   FLOATING ELEMENTS (Cart & WhatsApp)
   ============================================================ */
.cart-floating-btn {
    position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px;
    background: var(--accent-color); color: #fff; border-radius: 50%; border: none;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 25px rgba(229,9,20,0.35); cursor: pointer; z-index: 150; transition: 0.3s;
}
.cart-floating-btn:hover { transform: translateY(-4px); box-shadow: 0 15px 35px rgba(229,9,20,0.45); }
.cart-floating-btn.has-items { animation: cartPulse 2s infinite; }
@keyframes cartPulse {
    0%, 100% { box-shadow: 0 8px 25px rgba(229,9,20,0.35); }
    50% { box-shadow: 0 8px 35px rgba(229,9,20,0.6), 0 0 0 8px rgba(229,9,20,0.08); }
}
.cart-badge {
    position: absolute; top: -4px; right: -4px; background: #fff;
    color: var(--accent-color); font-size: 0.75rem; font-weight: 900; width: 22px; height: 22px;
    display: flex; align-items: center; justify-content: center; border-radius: 50%;
    border: 2px solid var(--accent-color); line-height: 1;
}

.whatsapp-support-container { position: fixed; bottom: 30px; left: 30px; z-index: 200; }
.whatsapp-support-btn {
    width: 65px; height: 65px; background: #25d366; border-radius: 50%; border: none;
    cursor: pointer; display: flex; align-items: center; justify-content: center; color: #fff;
    box-shadow: 0 10px 25px rgba(37,211,102,0.3); transition: 0.3s; position: relative;
}
.whatsapp-support-btn:hover { transform: translateY(-5px); }
.whatsapp-support-tooltip {
    position: absolute; left: calc(100% + 15px); top: 50%; transform: translateY(-50%);
    background: #fff; color: var(--text-main); padding: 8px 14px; border-radius: 12px;
    font-size: 0.85rem; font-weight: 700; white-space: nowrap; box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    opacity: 0; visibility: hidden; transition: 0.3s; pointer-events: none; border: 1px solid var(--border-color);
}
.whatsapp-support-btn:hover .whatsapp-support-tooltip { opacity: 1; visibility: visible; left: calc(100% + 20px); }
@media (max-width: 600px) {
    .whatsapp-support-tooltip { display: none !important; }
}

.whatsapp-support-menu {
    position: absolute; bottom: 80px; left: 0; width: 320px;
    background: #fff; border-radius: 16px; box-shadow: var(--shadow-hover);
    border: 1px solid var(--border-color); display: none; overflow: hidden;
}
.whatsapp-support-menu.active { display: block; animation: fadeInUp 0.2s ease; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.support-menu-header { padding: 20px; border-bottom: 1px solid var(--border-color); background: #fafafa; }
.support-menu-header h4 { font-size: 1.05rem; font-family: var(--font-heading); margin-bottom: 5px; }
.support-menu-header p { font-size: 0.85rem; color: var(--text-muted); }
.support-menu-options { padding: 15px; display: flex; flex-direction: column; gap: 10px; }
.support-option {
    display: flex; align-items: center; gap: 15px; padding: 12px;
    border-radius: 12px; text-decoration: none; transition: 0.2s; border: 1px solid transparent;
}
.support-option:hover { background: #f9f9f9; border-color: var(--border-color); }
.option-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.support-option.ventas .option-icon { background: rgba(229,9,20,0.1); color: var(--accent-color); }
.support-option.cobranzas .option-icon { background: rgba(37,99,235,0.1); color: #2563eb; }
.option-title { font-size: 0.95rem; font-weight: bold; color: var(--text-main); }
.option-desc { font-size: 0.8rem; color: var(--text-muted); display: block; margin-top: 2px; }
.option-number { font-size: 0.85rem; font-weight: bold; color: var(--accent-color); display: block; margin-top: 4px; }

/* ============================================================
   CART MODAL
   ============================================================ */
.cart-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); z-index: 300; display: none; justify-content: flex-end; }
.cart-modal-overlay.active { display: flex; }
.cart-modal { width: 100%; max-width: 450px; background: #fff; height: 100%; display: flex; flex-direction: column; animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: -10px 0 40px rgba(0,0,0,0.1); }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.cart-header { padding: 25px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.close-btn { background: none; border: none; font-size: 2rem; cursor: pointer; color: #999; transition: 0.2s; }
.close-btn:hover { color: var(--text-main); }
.cart-items { flex: 1; overflow-y: auto; padding: 25px; }
.cart-item { display: flex; gap: 15px; padding-bottom: 15px; margin-bottom: 15px; border-bottom: 1px solid #f0f0f0; }
.cart-item-img { width: 70px; height: 70px; object-fit: contain; border: 1px solid #eee; border-radius: 8px; padding: 5px; }
.cart-item-info { flex: 1; }
.cart-item-title { font-size: 0.95rem; font-weight: bold; margin-bottom: 5px; line-height: 1.3; }
.cart-item-controls { display: flex; align-items: center; gap: 15px; margin-top: 12px; }
.qty-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #ccc; background: #fff; cursor: pointer; font-size: 1.1rem; font-weight: bold; transition: 0.2s; }
.qty-btn:hover { background: var(--text-main); color: #fff; border-color: var(--text-main); }
.cart-footer { padding: 30px; background: #f9f9f9; border-top: 1px solid var(--border-color); }
.cart-total { display: flex; justify-content: space-between; margin-bottom: 25px; font-weight: bold; font-size: 1.2rem; }
.checkout-form input { width: 100%; padding: 14px 18px; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 8px; outline: none; font-size: 0.95rem; font-family: var(--font-body); }
.checkout-form input:focus { border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(229,9,20,0.1); }
/* ── Botones Premium (Estilo Moderno & Interactivo) ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    outline: none;
}
.btn:active {
    transform: scale(0.96);
}
.btn-primary {
    background: var(--accent-color);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(229, 9, 20, 0.18);
}
.btn-primary:hover {
    background: var(--accent-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(229, 9, 20, 0.3);
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-main);
}
.btn-outline:hover {
    background: #f4f5f7;
    border-color: var(--text-main);
    color: var(--text-main);
    transform: translateY(-2px);
}
.btn-sm {
    padding: 8px 16px;
    font-size: 0.78rem;
    border-radius: 8px;
}

.btn.btn-primary.btn-block { width: 100%; padding: 16px; background: var(--accent-color); color: #fff; border: none; border-radius: 8px; font-weight: 800; cursor: pointer; text-transform: uppercase; letter-spacing: 0.5px; transition: 0.3s; }
.btn.btn-primary.btn-block:hover { background: var(--accent-hover); box-shadow: 0 5px 15px rgba(229,9,20,0.3); }


/* ============================================================
   QUICK VIEW MODAL
   ============================================================ */
.quick-view-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    z-index: 350; display: none; align-items: center; justify-content: center; padding: 20px;
}
.quick-view-overlay.active { display: flex; animation: fadeIn 0.3s ease; }
.quick-view-modal {
    background: #fff; width: 100%; max-width: 850px; border-radius: 24px; position: relative;
    display: flex; overflow: hidden; box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    transform: scale(0.95); transition: 0.3s; max-height: 90vh;
}
.quick-view-overlay.active .quick-view-modal { transform: scale(1); }
.qv-close-btn {
    position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; border-radius: 50%;
    background: #f4f5f7; border: none; font-size: 1.5rem; display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 10; transition: 0.2s; color: #333; box-shadow: var(--shadow-sm);
}
.qv-close-btn:hover { background: #e0e0e0; transform: rotate(90deg); }
.qv-content { display: flex; width: 100%; overflow-y: auto; }
.qv-image-col { width: 50%; background: #f9f9f9; display: flex; align-items: center; justify-content: center; padding: 40px; }
.qv-image-col img { max-width: 100%; max-height: 400px; object-fit: contain; }
.qv-info-col { width: 50%; padding: 50px 40px; display: flex; flex-direction: column; justify-content: center; }
.qv-cat { font-size: 0.85rem; text-transform: uppercase; color: var(--text-muted); font-weight: 700; letter-spacing: 1px; margin-bottom: 10px; }
.qv-title { font-size: 1.8rem; line-height: 1.2; margin-bottom: 20px; color: var(--text-main); font-family: var(--font-heading); font-weight: 800; }
.qv-desc { font-size: 0.95rem; color: #555; line-height: 1.6; margin-bottom: 30px; flex: 1; }
.qv-add-btn { font-size: 1rem !important; padding: 18px !important; border-radius: 12px !important; display: flex; align-items: center; justify-content: center; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ============================================================
   TOASTS (NOTIFICACIONES FLOTANTES)
   ============================================================ */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 400; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast-msg {
    background: #ffffff; border-radius: 12px; padding: 16px 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex; align-items: center; gap: 12px; color: var(--text-main); font-weight: 700; font-size: 0.9rem;
    animation: toastSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; border-left: 4px solid #10b981;
}
.toast-msg.toast-out { animation: toastSlideOut 0.4s ease forwards; }
.toast-icon { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; background: rgba(16,185,129,0.1); color: #10b981; border-radius: 50%; }
@keyframes toastSlideIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toastSlideOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(120%); opacity: 0; } }

/* ============================================================
   ANIMACIONES DE SCROLL (AOS)
   ============================================================ */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); will-change: opacity, transform; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   PRINT STYLES
   ============================================================ */
.print-only { display: none; }
@media print {
    .main-header, .catalog-sidebar, .sidebar-overlay, .cart-floating-btn, .cart-modal-overlay,
    .whatsapp-support-container, .value-propositions-container, .main-footer, .btn-add-consult, .catalog-breadcrumb, .screen-only { display: none !important; }
    .catalog-layout { display: block; padding: 0; }
    .catalog-main { padding: 0; }
    .print-only { display: block !important; }
    .print-header-content { display: flex; justify-content: space-between; padding: 20px; border-bottom: 2px solid #000; margin-bottom: 20px; }
    .print-logo-text .logo-main { font-size: 1.5rem; }
    .product-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 15px !important; }
    .product-card { break-inside: avoid; border: 1px solid #ddd; box-shadow: none; }
    .product-image-container { height: 150px; }
}

/* ============================================================
   RESPONSIVE (Mobile & Tablet)
   ============================================================ */
/* ============================================================
   RESPONSIVE — TABLET (max 1024px)
   ============================================================ */
@media (max-width: 1024px) {
    .catalog-sidebar {
        position: fixed; top: 0; left: 0; bottom: 0;
        height: 100%; max-height: none; width: 82%; max-width: 310px;
        transform: translateX(-100%); z-index: 300; /* encima del header */
        border-radius: 0; background: #fff;
        box-shadow: 8px 0 40px rgba(0,0,0,0.18);
        transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
        overflow: hidden; padding: 0;
        display: flex; flex-direction: column;
    }
    .catalog-sidebar.open { transform: translateX(0); }
    .sidebar-drawer-header { display: flex; }
    .sidebar-section-label { display: block; }
    .sidebar-header-label { display: none; }
    .sidebar-inner { padding: 0 12px 20px; }
    .hamburger-btn { display: flex; }
    .catalog-layout { padding: 20px 15px; }
    .search-bar { max-width: 250px; }
    .btn-pdf-header span { display: none; }
}

/* ============================================================
   RESPONSIVE — MOBILE (max 600px)
   ============================================================ */
@media (max-width: 600px) {

    /* ── Variables ── */
    :root { --header-height: 62px; }

    /* ── Header ── */
    .main-header { padding: 0 16px; height: var(--header-height); box-shadow: 0 1px 0 #eee; }
    .brand-container { gap: 10px; }
    .logo-main { font-size: 1.15rem; letter-spacing: -0.3px; }
    .logo-sub { font-size: 0.65rem; letter-spacing: 1.5px; }
    .hamburger-btn { width: 38px; height: 38px; border-radius: 10px; }
    .header-actions { gap: 6px; }
    .desktop-only { display: none !important; }
    #desktopSearchBar { display: none !important; }

    /* ── Lupa móvil ── */
    .mobile-search-toggle {
        display: flex !important; align-items: center; justify-content: center;
        background: #f4f5f7; border: none; border-radius: 10px;
        width: 38px; height: 38px; color: var(--text-main); cursor: pointer;
    }
    .mobile-search-dropdown {
        position: absolute; top: var(--header-height); left: 0; width: 100%;
        padding: 12px 15px; background: #fff;
        border-bottom: 1px solid #f0f0f0;
        box-shadow: 0 8px 20px rgba(0,0,0,0.06); z-index: 99;
    }
    .mobile-search-dropdown .search-bar { display: flex; width: 100%; max-width: 100%; }
    .mobile-search-dropdown .search-bar input { border-radius: 12px; font-size: 0.9rem; padding: 12px 16px 12px 44px; }

    /* ── Sidebar Menú ── */
    .sidebar-inner {
        display: flex; flex-direction: column;
        height: 100%; padding: 0;
    }
    .sidebar-header-label {
        padding: 18px 20px 15px;
        margin: 0 0 0; border-bottom: 1px solid #f0f0f0;
        font-size: 0.7rem; letter-spacing: 1.5px;
    }
    .category-tree { padding: 8px 12px; flex: 1; }
    .category-tree button { padding: 11px 12px; font-size: 0.88rem; border-radius: 10px; }
    .sidebar-footer-mobile {
        display: flex; flex-direction: column; gap: 8px;
        padding: 15px 12px; border-top: 1px solid #f0f0f0;
        background: #fafafa;
    }
    .btn-sidebar-mobile {
        display: flex; align-items: center; justify-content: center; gap: 8px;
        padding: 13px; background: #f0f2f5; border-radius: 10px;
        font-weight: 700; font-size: 0.85rem; color: var(--text-main);
        border: none; text-decoration: none; cursor: pointer;
    }
    .admin-btn-mobile { background: var(--text-main); color: #fff; }

    /* ── Layout general ── */
    .catalog-layout { padding: 0 !important; gap: 0; }
    .catalog-main { padding: 0 12px 80px 12px; }

    /* ── Banner ── */
    .carousel-container {
        border-radius: 0; margin: 0 -12px;
        width: calc(100% + 24px);
        margin-bottom: 20px;
        aspect-ratio: 16 / 8;
        min-height: 180px; max-height: none;
        box-shadow: none; border: none;
    }

    /* ── Category Highlights (chips) ── */
    .category-highlights {
        padding: 4px 12px 14px 12px;
        margin: 0 -12px 16px -12px;
        gap: 7px;
    }
    .highlight-item { padding: 7px 12px 7px 9px; gap: 6px; }
    .highlight-circle { width: 26px; height: 26px; }
    .highlight-circle svg { width: 15px; height: 15px; }
    .highlight-name { font-size: 0.72rem; }

    /* ── Secciones temáticas (sliders) ── */
    .thematic-block { margin-bottom: 28px; }
    .block-title { font-size: 1.1rem; }
    .horizontal-slider { padding: 8px 0 16px 0; margin: 0 -12px; padding-left: 12px; gap: 10px; }
    .horizontal-slider .product-card { min-width: 155px; max-width: 155px; }

    /* ── Breadcrumb / Filtros ── */
    .catalog-breadcrumb { 
        padding: 12px; margin-bottom: 15px; flex-wrap: wrap; gap: 10px; 
        background: transparent; border: none; border-bottom: 1px solid #f0f0f0; border-radius: 0;
    }
    .breadcrumb-label { font-size: 0.85rem; padding: 5px 12px; }
    .breadcrumb-count { font-size: 0.8rem; }
    .sort-select { font-size: 0.78rem; padding: 6px 10px; }

    /* ── Grilla de Productos ── */
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

    /* ── Tarjeta de Producto ── */
    .product-card {
        border-radius: 16px;
        border: 1px solid rgba(0, 0, 0, 0.04);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    }
    .product-card:hover { transform: none; box-shadow: 0 4px 15px rgba(0,0,0,0.07); }
    .product-card:active { transform: scale(0.98); opacity: 0.92; transition: transform 0.1s ease; }
    .product-image-container {
        height: 145px; padding: 14px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.03);
        background: #fdfdfd;
    }
    .product-info { padding: 12px; }
    .product-title {
        font-size: 0.78rem; line-height: 1.35;
        margin-bottom: 10px; min-height: 3.15em;
        -webkit-line-clamp: 3;
        color: #1f2937;
    }
    .product-desc { display: none; }
    /* En mobile el botón siempre se ve con el color primario (no hay hover) */
    .btn-add-consult {
        padding: 9px 8px; font-size: 0.72rem;
        border-radius: var(--radius); gap: 5px;
        margin-top: auto;
        background: var(--accent-color) !important;
        color: #fff !important;
    }
    .btn-add-consult.added { background: #10b981 !important; }
    .product-badge { font-size: 0.55rem; padding: 3px 7px; border-radius: 6px; top: 8px; left: 8px; }
    .quick-view-overlay-hover { display: none !important; }

    /* ── Botón Cargar Más ── */
    .btn-load-more { width: 100%; padding: 13px; font-size: 0.85rem; border-radius: 12px; }

    /* ── Carrito (slide desde abajo) ── */
    .cart-modal-overlay { align-items: flex-end; padding: 0; }
    .cart-modal {
        height: 92vh; border-radius: 22px 22px 0 0;
        margin-top: auto; max-width: 100%;
    }
    .cart-header { padding: 16px 18px; }
    .cart-header h2 { font-size: 1rem; }
    .close-btn { font-size: 1.6rem; }
    .cart-items { padding: 12px 18px; }
    .cart-item { gap: 10px; padding-bottom: 12px; margin-bottom: 12px; }
    .cart-item-img { width: 52px; height: 52px; border-radius: 8px; }
    .cart-item-title { font-size: 0.82rem; }
    .qty-btn { width: 28px; height: 28px; font-size: 1rem; }
    .cart-footer { padding: 16px 18px; }
    .cart-total { font-size: 0.95rem; margin-bottom: 12px; }
    .checkout-form input { padding: 11px 14px; font-size: 0.85rem; margin-bottom: 10px; border-radius: 10px; }
    .btn.btn-primary.btn-block { padding: 14px; font-size: 0.85rem; border-radius: 10px; }

    /* ── Botones flotantes ── */
    .whatsapp-support-container { bottom: 18px; left: 14px; }
    .whatsapp-support-btn { width: 52px; height: 52px; }
    .cart-floating-btn { bottom: 18px; right: 14px; width: 52px; height: 52px; }

    /* ── Vista Rápida (slide desde abajo) ── */
    .quick-view-overlay { align-items: flex-end; padding: 0; }
    .quick-view-modal {
        flex-direction: column; max-height: 92vh;
        overflow-y: auto; border-radius: 22px 22px 0 0; margin-top: auto;
    }
    .qv-content { flex-direction: column; }
    .qv-image-col { width: 100%; height: 200px; padding: 14px; background: #fafafa; }
    .qv-image-col img { max-height: 100%; object-fit: contain; }
    .qv-info-col { width: 100%; padding: 16px 14px 20px; }
    .qv-cat { font-size: 0.72rem; margin-bottom: 4px; }
    .qv-title { font-size: 1rem; margin-bottom: 8px; }
    .qv-desc { font-size: 0.82rem; margin-bottom: 14px; line-height: 1.5; }
    .qv-add-btn { font-size: 0.85rem !important; padding: 13px !important; border-radius: 10px !important; }
    .qv-close-btn { top: 10px; right: 10px; width: 34px; height: 34px; background: rgba(0,0,0,0.06); border-radius: 50%; }

    /* ── Sección propuestas de valor ── */
    .value-propositions-container { padding: 20px 12px 30px; }
    .value-propositions-grid { grid-template-columns: 1fr; gap: 0; }
    .prop-card {
        padding: 14px 12px; background: transparent; border-radius: 0;
        border: none; border-bottom: 1px solid #f0f0f0;
        align-items: center; gap: 14px;
    }
    .prop-card:last-child { border-bottom: none; }
    .prop-card:hover { transform: none; box-shadow: none; }
    .prop-icon-wrapper { width: 44px; height: 44px; min-width: 44px; border-radius: 12px; }
    .prop-icon-wrapper svg { width: 22px; height: 22px; }
    .prop-title { font-size: 0.88rem; margin-bottom: 2px; }
    .prop-desc { font-size: 0.78rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

/* ============================================================
   COOKIE CONSENT BANNER & LEGAL MODAL STYLES (PREMIUM)
   ============================================================ */

/* ── Cookies Banner (sleek glassmorphism) ── */
.cookies-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    z-index: 10000;
    animation: slideUpFade 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpFade {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.cookies-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cookies-content p {
    font-size: 0.82rem;
    color: #4b5563;
    line-height: 1.45;
    margin: 0;
}

.cookies-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .cookies-banner {
        bottom: 16px;
        left: 16px;
        right: 16px;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        gap: 16px;
    }
    .cookies-content {
        align-items: flex-start;
    }
    .cookies-actions {
        display: flex;
        gap: 8px;
        width: 100%;
    }
    .cookies-actions .btn {
        flex: 1;
        text-align: center;
    }
}


/* ── Legal Terms Modal (elegant fullscreen overlay) ── */
.legal-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 20000;
}

.legal-modal-overlay.active {
    display: flex;
}

.legal-modal-card {
    background: #ffffff;
    max-width: 650px;
    width: 100%;
    max-height: 80vh;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalPop 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalPop {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.legal-modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-modal-header h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #111827;
    margin: 0;
}

.legal-close-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}

.legal-close-btn:hover {
    color: #111827;
}

.legal-modal-body {
    padding: 24px;
    overflow-y: auto;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.legal-modal-body h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #111827;
    margin: 20px 0 8px;
    text-transform: uppercase;
}

.legal-modal-body h4:first-of-type {
    margin-top: 0;
}

.legal-modal-body p {
    font-size: 0.85rem;
    color: #4b5563;
    margin: 0 0 14px;
}

.legal-modal-body ul {
    margin: 0 0 14px 20px;
    padding: 0;
}

.legal-modal-body li {
    font-size: 0.85rem;
    color: #4b5563;
    margin-bottom: 6px;
}

.legal-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #f3f4f6;
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .legal-modal-card {
        max-height: 90vh;
        border-radius: 12px;
    }
    .legal-modal-body {
        padding: 18px;
    }
}

/* ── FAQ Section (Accordion Premium Styles) ── */
.faq-section-container {
    background: #fafafa;
    padding: 60px 20px;
    border-top: 1px solid var(--border-color);
}
.faq-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}
.faq-section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    color: var(--text-main);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}
.faq-section-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 40px;
}
.faq-accordion-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.faq-item {
    background: #ffffff;
    border: 1px solid #e8e8ec;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.faq-trigger {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    text-align: left;
    gap: 16px;
    transition: color 0.2s;
}
.faq-trigger:hover {
    color: var(--accent-color);
}
.faq-icon {
    color: #9ca3af;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s;
    flex-shrink: 0;
}
.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--accent-color);
}
.faq-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: #ffffff;
}
.faq-panel p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-muted);
    padding: 0 24px 20px;
    margin: 0;
}
.faq-item.active .faq-panel {
    max-height: 500px;
}

@media (max-width: 768px) {
    .faq-section-container { padding: 40px 16px; }
    .faq-section-title { font-size: 1.4rem; }
    .faq-section-subtitle { font-size: 0.85rem; margin-bottom: 25px; }
    .faq-trigger { padding: 16px; font-size: 0.88rem; }
    .faq-panel p { padding: 0 16px 16px; font-size: 0.82rem; }
}

