/* ==========================================================================
   ESTILOS DEL CATÁLOGO INDUSTRIAL RUEDEMAX GROUP (catalogo_styles.css)
   Diseño Corporativo Claro de Alto Rendimiento (Opción 1)
   ========================================================================== */

body.catalog-page {
    --color-bg-dark: #f8fafc;
    --color-bg-card: #ffffff;
    --color-bg-card-hover: #ffffff;
    --color-primary: #dc2626;
    --color-primary-hover: #b91c1c;
    --color-primary-glow: rgba(220, 38, 38, 0.15);
    --color-text-white: #0f172a;
    --color-text-gray: #475569;
    --color-border: #e2e8f0;
    --color-border-glow: #cbd5e1;
    background-color: #f8fafc;
    color: #0f172a;
    min-height: 100vh;
}

body.catalog-page .main-header {
    background-color: rgba(11, 15, 25, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.catalog-page .main-header.sticky {
    background-color: rgba(7, 11, 20, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

body.catalog-page .nav-menu a {
    color: #cbd5e1;
    font-weight: 600;
}

body.catalog-page .nav-menu a:hover,
body.catalog-page .nav-menu a.active {
    color: #e11d48;
}

.catalog-container {
    max-width: 1560px;
    margin: 0 auto;
    padding: 0 28px;
}

/* 1. TOP BAR & BUSCADOR PREDICTIVO */
.catalog-top-bar {
    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
    padding: 28px 0;
    margin-top: var(--header-height);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.top-bar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.top-title h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.top-title p {
    color: var(--color-text-gray);
    font-size: 0.95rem;
}

.search-box-wrapper {
    position: relative;
    width: 520px;
    max-width: 100%;
}

.search-box-wrapper input {
    width: 100%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 14px 44px 14px 44px;
    border-radius: 8px;
    color: #0f172a;
    font-size: 0.95rem;
    outline: none;
    transition: all var(--transition-normal);
}

.search-box-wrapper input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #64748b;
}

.clear-search-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 1.1rem;
}

/* 2. LAYOUT PRINCIPAL (SIDEBAR + GRILLA) */
.catalog-main-layout {
    padding: 36px 0 80px;
}

.layout-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 36px;
    align-items: start;
}

/* 3. SIDEBAR DE CATEGORÍAS */
.sidebar-categories {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 24px;
    position: sticky;
    top: 96px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.sidebar-categories::-webkit-scrollbar {
    width: 6px;
}

.sidebar-categories::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 4px;
}

.sidebar-categories::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.sidebar-categories::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.sidebar-header h3 {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #0f172a;
}

.btn-reset-filters {
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.btn-reset-filters:hover {
    color: var(--color-primary-hover);
}

/* ÁRBOL DE CATEGORÍAS */
.category-item {
    margin-bottom: 8px;
    border-radius: 6px;
    overflow: hidden;
}

.category-parent-btn {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
    text-align: left;
    border-radius: 6px;
    transition: all var(--transition-fast);
}

.category-parent-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.category-parent-btn.active {
    background: #fef2f2;
    border-color: var(--color-primary);
    color: var(--color-primary);
    font-weight: 700;
}

.cat-count-badge {
    background: #e2e8f0;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    color: #475569;
    font-weight: 700;
}

.category-parent-btn.active .cat-count-badge {
    background: #fee2e2;
    color: var(--color-primary);
}

.subcategories-list {
    display: none;
    padding: 6px 0 6px 14px;
    background: #f8fafc;
    border-left: 3px solid var(--color-primary);
    margin-top: 4px;
    border-radius: 0 6px 6px 0;
}

.subcategories-list.open {
    display: block;
}

.subcategory-btn {
    width: 100%;
    background: none;
    border: none;
    padding: 8px 12px;
    font-size: 0.82rem;
    color: #475569;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 4px;
    transition: all 0.15s;
}

.subcategory-btn:hover {
    color: #0f172a;
    background: #e2e8f0;
}

.subcategory-btn.active {
    color: var(--color-primary);
    font-weight: 700;
    background: #fee2e2;
}

/* FILTRO DE MARCAS */
.brand-filter-box {
    margin-top: 28px;
    border-top: 1px solid var(--color-border);
    padding-top: 20px;
}

.brand-filter-box h4 {
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 14px;
}

.brand-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.brand-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #334155;
    cursor: pointer;
}

.brand-checkbox:hover {
    color: #0f172a;
}

.brand-checkbox input {
    accent-color: var(--color-primary);
    width: 16px;
    height: 16px;
}

/* 4. ÁREA DE PRODUCTOS */
.content-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--color-border);
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.active-category-indicator {
    font-size: 0.95rem;
    color: #475569;
}

.active-category-indicator strong {
    color: #0f172a;
}

.sort-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #475569;
}

.sort-selector select {
    background: #ffffff;
    border: 1px solid var(--color-border);
    color: #0f172a;
    padding: 6px 12px;
    border-radius: 6px;
    outline: none;
    font-size: 0.85rem;
}

/* GRILLA DE PRODUCTOS FLUIDA (4-5 COLUMNAS EN ESCRITORIO) */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-item-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-normal);
    position: relative;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.product-item-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.prod-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--color-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.prod-origin-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #f1f5f9;
    color: #0369a1;
    border: 1px solid #bae6fd;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    z-index: 2;
}

.prod-card-img-wrapper {
    height: 220px;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    padding: 16px;
}

.prod-card-img {
    max-height: 90%;
    max-width: 90%;
    object-fit: contain;
    transition: transform var(--transition-normal);
}

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

.prod-card-body {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: #ffffff;
}

.prod-ref-tag {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}

.prod-card-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.35;
    color: #0f172a;
    cursor: pointer;
    transition: color 0.15s;
}

.prod-card-name:hover {
    color: var(--color-primary);
}

.prod-card-price {
    margin-bottom: 14px;
}

.prod-card-price .price-val {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
}

.prod-card-price .iva-tag {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
}

.prod-card-price .price-consult {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0284c7;
}

.prod-card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.btn-card-quote {
    flex: 1;
    background: #f1f5f9;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    padding: 9px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-card-quote:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #94a3b8;
}

.btn-card-wa {
    background: #25d366;
    color: #ffffff;
    text-decoration: none;
    padding: 9px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.btn-card-wa:hover {
    background: #20ba5a;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

/* 5. MODALES (FICHA TÉCNICA & ADMIN) */
/* 5. MODALES (FICHA TÉCNICA WIDESCREEN ESTILO ALKOSTO & B2B / ADMIN) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

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

.modal-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    width: 95vw;
    max-width: 1380px;
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
    padding: 32px 36px;
    box-shadow: 0 25px 70px rgba(15, 23, 42, 0.35);
    color: #0f172a;
}

.modal-admin-card {
    width: 1050px;
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s;
    z-index: 10;
}

.modal-close-btn:hover {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
}

/* BARRA SUPERIOR DE NAVEGACIÓN Y RETORNO */
.modal-header-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    padding-bottom: 16px;
    margin-bottom: 22px;
    border-bottom: 1px solid #e2e8f0;
    padding-right: 56px; /* Espacio reservado para el botón X de cerrar */
    flex-wrap: wrap;
}

.btn-modal-back-catalog {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #334155;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1;
}

.btn-modal-back-catalog:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #94a3b8;
}

.modal-category-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.86rem;
    color: #64748b;
}

.modal-bread-link {
    color: #dc2626;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.15s;
}

.modal-bread-link:hover {
    color: #b91c1c;
    text-decoration: underline;
}

.modal-bread-sep {
    color: #94a3b8;
    font-size: 0.85rem;
    user-select: none;
}

/* CABECERA SUPERIOR: FOTO + DATOS COMERCIALES */
.modal-top-grid {
    display: grid;
    grid-template-columns: 460px 1fr;
    gap: 36px;
    align-items: start;
    margin-bottom: 28px;
}

@media (max-width: 1024px) {
    .modal-top-grid {
        grid-template-columns: 1fr;
    }
}

.modal-media-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-main-img-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 380px;
    position: relative;
}

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

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

.modal-brand-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #dc2626;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.modal-origin-pill {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
    font-weight: 700;
    font-size: 0.72rem;
    padding: 3px 9px;
    border-radius: 4px;
}

/* THUMBNAILS GALLERY */
.modal-thumbs-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.modal-thumb-btn {
    width: 64px;
    height: 64px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    overflow: hidden;
    padding: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.modal-thumb-btn.active, .modal-thumb-btn:hover {
    border-color: #dc2626;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
}

.modal-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* COLUMNA INFORMACIÓN SUPERIOR */
.modal-info-col {
    display: flex;
    flex-direction: column;
}

.modal-category-path {
    font-size: 0.8rem;
    color: #dc2626;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.modal-title {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.25;
    color: #0f172a;
    margin-bottom: 12px;
}

.modal-ref-sku {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 14px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    background: #f8fafc;
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.modal-ref-sku strong {
    color: #0f172a;
}

.modal-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 18px;
    align-self: flex-start;
}

/* HIGHLIGHTS BULLETS SUPERIORES */
.modal-quick-highlights {
    background: #f8fafc;
    border-left: 4px solid #dc2626;
    border-radius: 0 8px 8px 0;
    padding: 14px 18px;
    margin-bottom: 22px;
}

.modal-quick-highlights h4 {
    font-size: 0.82rem;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 800;
    margin-bottom: 8px;
}

.modal-highlights-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.modal-highlights-list li {
    font-size: 0.88rem;
    color: #334155;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.modal-highlights-list li::before {
    content: "✓";
    color: #dc2626;
    font-weight: 900;
    font-size: 0.95rem;
}

/* ACCIONES DE COTIZACIÓN */
.modal-actions-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 12px;
}

.btn-modal-quote-wpp {
    flex: 1;
    min-width: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #16a34a;
    color: #ffffff;
    padding: 13px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
}

.btn-modal-quote-wpp:hover {
    background: #15803d;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(22, 163, 74, 0.35);
}

.btn-modal-quote-doc {
    flex: 1;
    min-width: 220px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #0f172a;
    color: #ffffff;
    border: none;
    padding: 13px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-modal-quote-doc:hover {
    background: #1e293b;
    transform: translateY(-2px);
}

/* ==========================================================================
   SISTEMA DE PESTAÑAS ESTILO ALKOSTO (TABS)
   ========================================================================== */
.prod-tabs-container {
    margin-top: 24px;
    border-top: 2px solid #e2e8f0;
    padding-top: 20px;
}

.prod-tabs-nav {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 24px;
    overflow-x: auto;
}

.prod-tab-nav-btn {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    position: relative;
    bottom: -2px;
}

.prod-tab-nav-btn:hover {
    color: #0f172a;
    background: #f8fafc;
}

.prod-tab-nav-btn.active {
    color: #dc2626;
    border-bottom-color: #dc2626;
    background: #ffffff;
}

.prod-tab-pane {
    display: none;
    animation: fadeInTab 0.25s ease-in-out;
}

.prod-tab-pane.active {
    display: block;
}

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

/* TAB 1: CARACTERÍSTICAS Y DESCRIPCIÓN */
.prod-desc-content {
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px 24px;
}

.prod-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.prod-feature-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px 20px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03);
}

.prod-feature-card h5 {
    font-size: 0.92rem;
    color: #0f172a;
    font-weight: 800;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.prod-feature-card p {
    font-size: 0.86rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* TAB 2: ESPECIFICACIONES TÉCNICAS (TABLA ALKOSTO) */
.specs-tables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 24px;
}

.specs-group-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03);
}

.specs-group-header {
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 18px;
    font-weight: 800;
    font-size: 0.88rem;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid #f1f5f9;
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table tr:nth-child(even) {
    background: #f8fafc;
}

.specs-table td {
    padding: 11px 18px;
    font-size: 0.88rem;
}

.specs-label {
    width: 48%;
    color: #64748b;
    font-weight: 600;
}

.specs-val {
    width: 52%;
    color: #0f172a;
    font-weight: 700;
}

/* TAB 3: ¿QUÉ INCLUYE? (DOTACIÓN) */
.incluye-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
}

.incluye-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 14px;
}

.incluye-item-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.incluye-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #fee2e2;
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.incluye-text {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
}

/* TAB 4: MANUALES, VIDEO Y SOPORTE */
.manuales-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 900px) {
    .manuales-grid {
        grid-template-columns: 1fr;
    }
}

.pdf-card-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pdf-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.pdf-icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #fee2e2;
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pdf-info h4 {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.pdf-info p {
    font-size: 0.82rem;
    color: #64748b;
    margin: 0;
}

.btn-download-pdf-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #dc2626;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
    margin-top: 14px;
}

.btn-download-pdf-card:hover {
    background: #b91c1c;
}

.video-card-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
}

.video-card-box h4 {
    font-size: 0.92rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.warranty-box {
    margin-top: 24px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.warranty-icon {
    font-size: 1.8rem;
    color: #0284c7;
}

.warranty-text h5 {
    font-size: 0.92rem;
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 2px;
}

.warranty-text p {
    font-size: 0.84rem;
    color: #1e40af;
    margin: 0;
}

/* 6. ADMIN CMS PANEL ESTILOS */
.admin-modal-header {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.admin-modal-header h2 {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.admin-modal-header p {
    color: var(--color-text-gray);
    font-size: 0.88rem;
}

.admin-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.admin-tab-btn {
    background: #1e293b;
    border: 1px solid var(--color-border);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.85rem;
}

.admin-tab-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    color: var(--color-text-gray);
    margin-bottom: 6px;
    font-weight: 600;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    background: #0f172a;
    border: 1px solid #334155;
    padding: 10px 14px;
    border-radius: 6px;
    color: white;
    font-size: 0.9rem;
    outline: none;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--color-primary);
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 18px;
}

.form-actions-right {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

/* TABLA GESTIÓN RÁPIDA */
.admin-search-bar input {
    width: 100%;
    background: #0f172a;
    border: 1px solid #334155;
    padding: 10px 16px;
    border-radius: 6px;
    color: white;
    margin-bottom: 16px;
}

.admin-products-table-box {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid var(--color-border);
    border-radius: 6px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background: #111827;
    padding: 12px;
    font-size: 0.8rem;
    color: var(--color-text-gray);
    text-align: left;
    position: sticky;
    top: 0;
}

.admin-table td {
    padding: 10px 12px;
    font-size: 0.85rem;
    border-bottom: 1px solid #1e293b;
}

.btn-table-edit {
    background: #38bdf8;
    color: #0b0f19;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.75rem;
}

.btn-table-delete {
    background: #ef4444;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.75rem;
    margin-left: 6px;
}

.btn-admin-access {
    background: #1e293b;
    border: 1px solid #475569;
    color: white;
    padding: 9px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
}

.btn-admin-access:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .layout-grid {
        grid-template-columns: 260px 1fr;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 860px) {
    .layout-grid {
        grid-template-columns: 1fr;
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
    .modal-grid {
        grid-template-columns: 1fr;
    }
    .top-bar-flex {
        flex-direction: column;
        align-items: stretch;
    }
}

/* 6. PAGINACIÓN Y ACCIONES COMERCIALES DIRECTAS */
.prod-card-price {
    margin: 8px 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: #e2e8f0;
}

.price-val {
    color: #38bdf8;
}

.iva-tag {
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
    background: #1e293b;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
}

.price-consult {
    color: #f59e0b;
    font-size: 0.95rem;
}

.prod-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.btn-card-quote {
    flex: 1;
    background: #e11d48;
    color: white;
    border: none;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    text-align: center;
}

.btn-card-quote:hover {
    background: #be123c;
    transform: translateY(-1px);
}

.btn-card-wa {
    flex: 1;
    background: #10b981;
    color: white;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.1s;
}

.btn-card-wa:hover {
    background: #059669;
    transform: translateY(-1px);
}

/* Paginación */
.catalog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
    padding: 20px 0;
}

.page-btn {
    background: #1e293b;
    color: white;
    border: 1px solid #475569;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
    background: #e11d48;
    border-color: #e11d48;
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-info {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* Modal B2B Quote */
.b2b-quote-window {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    padding: 28px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
}

.quote-intro {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.quote-selected-prod-card {
    background: #1e293b;
    border-left: 4px solid #e11d48;
    padding: 12px 16px;
    border-radius: 6px;
    color: white;
    font-weight: 700;
    margin-bottom: 20px;
}

.b2b-quote-window .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 14px;
}

.b2b-quote-window .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.b2b-quote-window label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #cbd5e1;
}

.b2b-quote-window input {
    background: #020617;
    border: 1px solid #334155;
    color: white;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.b2b-quote-window input:focus {
    border-color: #e11d48;
    outline: none;
}

.form-actions-right {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.btn-submit-quote {
    background: #10b981;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit-quote:hover {
    background: #059669;
}

/* ==========================================================================
   4. MODAL TOOLBAR Y BREADCRUMB DE NAVEGACIÓN
   ========================================================================== */
.modal-header-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #0b1120;
    border-bottom: 1px solid #1e293b;
    gap: 16px;
}

.btn-modal-back-catalog {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1e293b;
    color: #e2e8f0;
    border: 1px solid #334155;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-modal-back-catalog:hover {
    background: #e11d48;
    border-color: #e11d48;
    color: #ffffff;
}

.modal-category-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.82rem;
    color: #94a3b8;
    flex: 1;
}

.modal-bread-link {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s;
}

.modal-bread-link:hover {
    color: #7dd3fc;
    text-decoration: underline;
}

.modal-bread-sep {
    color: #64748b;
    font-weight: bold;
}

/* ==========================================================================
   5. BOTÓN COMPRAR EN TARJETA Y ACCIONES DE PAGO
   ========================================================================== */
.btn-card-buy {
    background: #10b981;
    color: #ffffff;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-card-buy:hover {
    background: #059669;
    transform: translateY(-1px);
}

.btn-modal-buy-now {
    background: #10b981;
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.btn-modal-buy-now:hover {
    background: #059669;
}

/* ==========================================================================
   6. ICONOS DE REDES SOCIALES (HEADER Y FOOTER)
   ========================================================================== */
.header-social-links {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 6px;
}

.social-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    transition: all 0.2s ease;
}

.social-icon-btn:hover {
    transform: translateY(-2px);
    color: #ffffff;
}

.social-icon-btn.yt:hover { background: #ff0000; }
.social-icon-btn.ig:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-icon-btn.fb:hover { background: #1877f2; }
.social-icon-btn.in:hover { background: #0a66c2; }

.footer-social-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 16px;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 6px 12px;
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 20px;
    transition: all 0.2s;
}

.footer-social-link:hover {
    color: #ffffff;
    border-color: #38bdf8;
    background: #1e293b;
}

/* ==========================================================================
   7. MODAL DE CHECKOUT / PASARELA DE PAGO EN LÍNEA
   ========================================================================== */
.checkout-window {
    max-width: 860px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 14px;
    padding: 0;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.checkout-header {
    background: #0b1120;
    padding: 20px 24px;
    border-bottom: 1px solid #1e293b;
}

.checkout-badge-secure {
    display: inline-block;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.checkout-header h2 {
    font-size: 1.35rem;
    color: #f8fafc;
    margin: 0 0 4px 0;
}

.checkout-header p {
    color: #94a3b8;
    font-size: 0.85rem;
    margin: 0;
}

.checkout-grid-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 24px;
    padding: 24px;
}

@media (max-width: 768px) {
    .checkout-grid-layout {
        grid-template-columns: 1fr;
    }
}

.checkout-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #e2e8f0;
    margin: 0 0 14px 0;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 6px;
}

.checkout-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 10px;
}

.checkout-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.checkout-field label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #94a3b8;
}

.checkout-field input {
    background: #020617;
    border: 1px solid #334155;
    color: #ffffff;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 0.88rem;
    box-sizing: border-box;
    width: 100%;
}

.checkout-field input:focus {
    border-color: #38bdf8;
    outline: none;
}

.payment-methods-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.pay-method-btn {
    background: #1e293b;
    border: 2px solid #334155;
    border-radius: 8px;
    padding: 12px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pay-method-btn.active {
    border-color: #38bdf8;
    background: #0b1120;
    box-shadow: 0 0 0 1px #38bdf8;
}

.pay-method-btn .pay-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #f8fafc;
}

.pay-method-btn .pay-sub {
    font-size: 0.72rem;
    color: #94a3b8;
}

.pay-method-pane {
    display: none;
}

.pay-method-pane.active {
    display: block;
}

.wompi-banner, .llave-banner {
    background: #020617;
    border: 1px solid #1e293b;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 14px;
}

.wompi-banner p {
    font-size: 0.82rem;
    color: #94a3b8;
    margin: 6px 0 0 0;
}

.llave-number-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.llave-label {
    font-size: 0.85rem;
    color: #94a3b8;
}

.llave-code {
    font-size: 1.25rem;
    font-weight: 800;
    color: #facc15;
    letter-spacing: 1px;
}

.btn-copy-code {
    background: #334155;
    color: #ffffff;
    border: none;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
}

.btn-copy-code:hover {
    background: #475569;
}

.llave-titular {
    font-size: 0.82rem;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.llave-phrase {
    font-size: 0.85rem;
    font-style: italic;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.08);
    padding: 8px 12px;
    border-radius: 6px;
    margin: 6px 0 0 0;
}

.llave-steps {
    font-size: 0.8rem;
    color: #94a3b8;
    padding-left: 20px;
    margin: 12px 0 16px 0;
    line-height: 1.6;
}

.btn-checkout-primary {
    width: 100%;
    padding: 13px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.wompi-btn {
    background: #0284c7;
    color: #ffffff;
}

.wompi-btn:hover {
    background: #0369a1;
}

.wpp-btn {
    background: #25d366;
    color: #ffffff;
}

.wpp-btn:hover {
    background: #1ea952;
}

.btn-checkout-outline {
    width: 100%;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    background: transparent;
    border: 1px solid #334155;
    color: #cbd5e1;
    margin-top: 8px;
    cursor: pointer;
}

.btn-checkout-outline:hover {
    border-color: #38bdf8;
    color: #38bdf8;
}

.wompi-notice {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 8px;
}

.checkout-summary-card {
    background: #0b1120;
    border: 1px solid #1e293b;
    border-radius: 10px;
    padding: 18px;
}

.checkout-item-preview {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid #1e293b;
    margin-bottom: 14px;
}

.chk-thumb {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 6px;
    padding: 4px;
}

.chk-prod-info h4 {
    margin: 0 0 3px 0;
    font-size: 0.88rem;
    color: #f8fafc;
}

.chk-prod-ref {
    font-size: 0.75rem;
    color: #94a3b8;
}

.chk-prod-price-unit {
    font-size: 0.82rem;
    color: #34d399;
    font-weight: 700;
}

.chk-qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    font-size: 0.85rem;
    color: #cbd5e1;
}

.qty-control-box {
    display: inline-flex;
    align-items: center;
    border: 1px solid #334155;
    border-radius: 6px;
    overflow: hidden;
}

.qty-btn {
    background: #1e293b;
    color: #ffffff;
    border: none;
    width: 32px;
    height: 32px;
    font-weight: 800;
    cursor: pointer;
}

.qty-btn:hover {
    background: #334155;
}

#chk-qty-input {
    width: 40px;
    height: 32px;
    background: #020617;
    border: none;
    color: #ffffff;
    text-align: center;
    font-weight: 700;
}

.chk-totals-table {
    border-top: 1px solid #1e293b;
    padding-top: 12px;
    margin-bottom: 14px;
}

.chk-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: #94a3b8;
    margin-bottom: 6px;
}

.chk-total-row.highlight-total {
    font-size: 1.05rem;
    font-weight: 800;
    color: #38bdf8;
    border-top: 1px dashed #334155;
    padding-top: 10px;
    margin-top: 8px;
}

.chk-assurances {
    background: #020617;
    border-radius: 6px;
    padding: 10px;
    font-size: 0.74rem;
    color: #64748b;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ==========================================================================
   8. ESTILOS DE IMPRESIÓN COMPACTOS (COTIZACIÓN FORMAL)
   ========================================================================== */
@media print {
    body * {
        visibility: hidden;
    }
    #print-quote-sheet, #print-quote-sheet * {
        visibility: visible;
    }
    #print-quote-sheet {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        color: #000000;
        background: #ffffff;
        padding: 20px;
        font-family: Arial, sans-serif;
    }
    .no-print {
        display: none !important;
    }
}


/* ==========================================================================
   BANNER DE ASISTENCIA TÉCNICA Y CONVERSIÓN AL FINAL DEL CATÁLOGO (COMPACTO)
   ========================================================================== */
.catalog-bottom-cta {
    margin: 26px 0 18px 0;
    background: linear-gradient(135deg, #0e1726 0%, #152033 100%);
    border: 1px solid rgba(225, 29, 72, 0.3);
    border-radius: 12px;
    padding: 16px 22px;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.catalog-bottom-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(225, 29, 72, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.catalog-bottom-cta .cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.catalog-bottom-cta .cta-text {
    flex: 1;
    max-width: 680px;
}

.catalog-bottom-cta .cta-badge {
    display: inline-block;
    background: rgba(225, 29, 72, 0.16);
    color: #ff4d6d;
    border: 1px solid rgba(225, 29, 72, 0.3);
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 5px;
}

.catalog-bottom-cta .cta-text h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
    line-height: 1.25;
}

.catalog-bottom-cta .cta-text p {
    color: #94a3b8;
    font-size: 0.84rem;
    line-height: 1.4;
    margin: 0;
}

.catalog-bottom-cta .cta-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.catalog-bottom-cta .btn-cta-wpp {
    background: #16a34a;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
    transition: all 0.2s ease;
}

.catalog-bottom-cta .btn-cta-wpp:hover {
    background: #15803d;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(22, 163, 74, 0.4);
    color: #ffffff;
}

.catalog-bottom-cta .btn-cta-quote {
    background: #e11d48;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
    transition: all 0.2s ease;
}

.catalog-bottom-cta .btn-cta-quote:hover {
    background: #be123c;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(225, 29, 72, 0.4);
    color: #ffffff;
}

.catalog-bottom-cta .btn-cta-top {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.catalog-bottom-cta .btn-cta-top:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   HOMOLOGACIÓN RESPONSIVA Y BOTONES INFERIORES EN MÓVIL
   ========================================================================== */
.mobile-filter-bar {
    display: none;
}

.btn-close-mobile-drawer {
    display: none;
}

.btn-text-short {
    display: none;
}

.btn-text-full {
    display: inline;
}

@media (max-width: 900px) {
    .btn-text-full {
        display: none !important;
    }
    
    .btn-text-short {
        display: inline !important;
    }

    /* BOTÓN SUPERIOR PARA COLAPSAR/DESPLEGAR CATEGORÍAS */
    .mobile-filter-bar {
        display: block !important;
        margin-bottom: 14px !important;
    }

    .btn-mobile-cat-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        box-sizing: border-box !important;
        background: #0f172a !important;
        color: #ffffff !important;
        border: 1.5px solid #334155 !important;
        border-radius: 10px !important;
        padding: 12px 16px !important;
        font-size: 0.9rem !important;
        font-weight: 700 !important;
        cursor: pointer !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
        transition: all 0.2s ease !important;
    }

    .btn-mobile-cat-toggle:hover,
    .btn-mobile-cat-toggle.is-active {
        background: #1e293b !important;
        border-color: #e11d48 !important;
    }

    .btn-mobile-cat-left {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .btn-mobile-cat-icon {
        font-size: 1.2rem !important;
        color: #e11d48 !important;
    }

    .btn-mobile-cat-label {
        font-size: 0.88rem !important;
        color: #f1f5f9 !important;
    }

    .btn-mobile-cat-chevron {
        font-size: 0.82rem !important;
        color: #94a3b8 !important;
        transition: transform 0.25s ease !important;
        margin-left: 8px !important;
    }

    .btn-mobile-cat-toggle.is-active .btn-mobile-cat-chevron {
        transform: rotate(180deg) !important;
        color: #e11d48 !important;
    }

    /* SIDEBAR COLAPSABLE EN DISPOSITIVOS MÓVILES */
    #sidebar-menu.sidebar-categories {
        display: none; /* Oculto por defecto en móvil */
        background: #0b1120 !important;
        border: 1.5px solid #334155 !important;
        border-radius: 12px !important;
        padding: 16px !important;
        margin-bottom: 20px !important;
        box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45) !important;
    }

    #sidebar-menu.sidebar-categories.drawer-open {
        display: block !important;
        animation: mobileDrawerSlide 0.25s ease-out !important;
    }

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

    .sidebar-header-actions {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .btn-close-mobile-drawer {
        display: inline-flex !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        color: #ffffff !important;
        width: 30px !important;
        height: 30px !important;
        border-radius: 50% !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0.95rem !important;
        cursor: pointer !important;
        line-height: 1 !important;
    }

    .btn-close-mobile-drawer:hover {
        background: #e11d48 !important;
        border-color: #e11d48 !important;
    }

    /* BARRA SUPERIOR DE PRODUCTOS (MOSTRANDO CATEGORÍA Y ORDENAR POR EN CELULAR) */
    .content-toolbar {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        padding: 12px 14px !important;
        margin-bottom: 16px !important;
        background: #ffffff !important;
    }

    .active-category-indicator {
        font-size: 0.88rem !important;
        line-height: 1.35 !important;
    }

    .sort-selector {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        border-top: 1px dashed #e2e8f0 !important;
        padding-top: 8px !important;
    }

    .sort-selector label {
        font-size: 0.82rem !important;
        color: #64748b !important;
        white-space: nowrap !important;
    }

    .sort-selector select {
        flex: 1 !important;
        max-width: 65% !important;
        font-size: 0.82rem !important;
        padding: 6px 8px !important;
    }

    /* BANNER DE ASISTENCIA TÉCNICA INFERIOR (COMPACTO Y ORDENADO EN CELULAR) */
    .catalog-bottom-cta {
        padding: 14px 16px !important;
        margin: 18px 0 12px 0 !important;
        border-radius: 12px !important;
    }

    .catalog-bottom-cta .cta-inner {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    .catalog-bottom-cta .cta-text h3 {
        font-size: 0.98rem !important;
        margin-bottom: 4px !important;
        line-height: 1.3 !important;
    }

    .catalog-bottom-cta .cta-text p {
        font-size: 0.78rem !important;
        line-height: 1.35 !important;
        margin-bottom: 2px !important;
        color: #94a3b8 !important;
    }

    .catalog-bottom-cta .cta-actions {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }

    .catalog-bottom-cta .btn-cta-wpp,
    .catalog-bottom-cta .btn-cta-quote {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 10px 14px !important;
        font-size: 0.85rem !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .catalog-bottom-cta .btn-cta-top {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 8px 12px !important;
        font-size: 0.78rem !important;
        justify-content: center !important;
        text-align: center !important;
        background: rgba(255, 255, 255, 0.06) !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        color: #cbd5e1 !important;
    }
}

/* ==========================================================================
   HOMOLOGACIÓN DEL PIE DE PÁGINA OSCURO EN PÁGINA DE CATÁLOGO
   ========================================================================== */
body.catalog-page .main-footer {
    background-color: #070b14 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #94a3b8 !important;
}

body.catalog-page .main-footer h4 {
    color: #ffffff !important;
}

body.catalog-page .main-footer p {
    color: #94a3b8 !important;
}

body.catalog-page .main-footer strong {
    color: #f8fafc !important;
}

body.catalog-page .main-footer a {
    color: #94a3b8 !important;
}

body.catalog-page .main-footer a:hover {
    color: #ffffff !important;
}

body.catalog-page .main-footer .footer-social-link {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #cbd5e1 !important;
}

body.catalog-page .main-footer .footer-social-link:hover {
    background: rgba(225, 29, 72, 0.2) !important;
    border-color: #e11d48 !important;
    color: #ffffff !important;
}

body.catalog-page .main-footer .footer-bottom {
    background-color: #03050a !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

body.catalog-page .main-footer .footer-bottom p {
    color: #64748b !important;
}

/* ==========================================================================
   AJUSTES RESPONSIVOS DEL MODAL DE PRODUCTO EN DISPOSITIVOS MÓVILES
   ========================================================================== */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 0 !important;
        align-items: flex-end !important;
    }

    .modal-card {
        padding: 14px 14px 28px !important;
        width: 100vw !important;
        max-width: 100% !important;
        max-height: 94vh !important;
        border-radius: 18px 18px 0 0 !important;
        position: relative !important;
        overflow-y: auto !important;
    }

    /* BARRA SUPERIOR DEL MODAL: 1 SOLA LÍNEA HORIZONTAL SIN COLISIONES */
    .modal-header-toolbar {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        padding: 0 0 10px 0 !important;
        margin-bottom: 12px !important;
        border-bottom: 1px solid #e2e8f0 !important;
        position: relative !important;
    }

    .btn-modal-back-catalog {
        padding: 6px 10px !important;
        font-size: 0.78rem !important;
        flex-shrink: 0 !important;
        border-radius: 6px !important;
        background: #f1f5f9 !important;
        border: 1px solid #cbd5e1 !important;
        color: #1e293b !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
    }

    .modal-category-breadcrumb {
        flex: 1 !important;
        min-width: 0 !important;
        font-size: 0.74rem !important;
        line-height: 1.2 !important;
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        gap: 4px !important;
    }

    .modal-category-breadcrumb a,
    .modal-category-breadcrumb span {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .modal-close-btn {
        position: static !important;
        flex-shrink: 0 !important;
        top: auto !important;
        right: auto !important;
        width: 32px !important;
        height: 32px !important;
        font-size: 1.3rem !important;
        background: #f1f5f9 !important;
        border: 1px solid #cbd5e1 !important;
        margin-left: 4px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1 !important;
    }

    .modal-top-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        margin-bottom: 18px !important;
    }

    .modal-main-img-box {
        height: 220px !important;
        padding: 10px !important;
        border-radius: 10px !important;
    }

    .modal-title {
        font-size: 1.22rem !important;
        line-height: 1.28 !important;
        margin-bottom: 8px !important;
    }

    .modal-ref-sku {
        font-size: 0.78rem !important;
        padding: 6px 10px !important;
        gap: 8px !important;
        margin-bottom: 12px !important;
    }

    .modal-status-badge {
        font-size: 0.75rem !important;
        padding: 4px 10px !important;
        margin-bottom: 12px !important;
    }

    .modal-quick-highlights {
        padding: 10px 14px !important;
        margin-bottom: 14px !important;
    }

    .modal-quick-highlights h4 {
        font-size: 0.76rem !important;
        margin-bottom: 6px !important;
    }

    .modal-highlights-list li {
        font-size: 0.8rem !important;
        gap: 6px !important;
    }

    /* BOTONES DE ACCIÓN COMERCIAL DENTRO DEL MODAL (LIMPIOS Y SEPARADOS) */
    .modal-actions-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important;
        margin-top: 14px !important;
        padding-top: 10px !important;
        border-top: 1px solid #f1f5f9 !important;
    }

    .btn-modal-buy-now,
    .btn-modal-quote-wpp,
    .btn-modal-quote-doc {
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        padding: 12px 14px !important;
        font-size: 0.88rem !important;
        justify-content: center !important;
        text-align: center !important;
        border-radius: 8px !important;
    }

    /* PESTAÑAS TÉCNICAS ALKOSTO EN CELULAR */
    .prod-tabs-nav {
        display: flex !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        gap: 6px !important;
        padding-bottom: 6px !important;
        border-bottom: 1px solid #e2e8f0 !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .prod-tab-nav-btn {
        padding: 8px 12px !important;
        font-size: 0.78rem !important;
        flex-shrink: 0 !important;
        border-bottom-width: 2px !important;
    }

    .prod-desc-content {
        padding: 14px 16px !important;
        font-size: 0.86rem !important;
        line-height: 1.5 !important;
    }

    .prod-features-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .prod-feature-card {
        padding: 12px 14px !important;
    }

    .specs-tables-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .specs-table td {
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
    }
}
