/* ═══════════════════════════════════════════
   TECNOSYSCOL — TIENDA & COMPRA ASISTIDA (Módulo CSS Independiente)
   ═══════════════════════════════════════════ */

/* ── 1 · HERO TIENDA ── */
.tn-hero {
    position: relative;
    padding: 100px 0 45px;
    background: var(--ts-bg, #0B1528);
    overflow: hidden;
}
.tn-hero__glow {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 450px;
    background: radial-gradient(circle, rgba(8, 102, 245, 0.20) 0%, rgba(8, 102, 245, 0) 70%);
    pointer-events: none;
}
.tn-hero__inner {
    max-width: var(--ts-container, 1320px);
    margin-inline: auto;
    padding-inline: var(--ts-pad-inline, 24px);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}
.tn-hero__tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(8, 102, 245, 0.12);
    border: 1px solid rgba(8, 102, 245, 0.3);
    color: #0866F5;
    font-family: var(--ts-font);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
[data-theme="dark"] .tn-hero__tag {
    background: rgba(95, 160, 255, 0.15);
    border-color: rgba(95, 160, 255, 0.35);
    color: #5FA0FF;
}
.tn-hero h1 {
    font-family: var(--ts-font-h);
    font-size: clamp(32px, 3.8vw, 46px);
    font-weight: 800;
    line-height: 1.15;
    color: var(--ts-text);
    margin-bottom: 16px;
}
.tn-hero h1 em {
    font-style: normal;
    background: linear-gradient(135deg, #0866F5 0%, #00C8FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.tn-hero__sub {
    font-family: var(--ts-font);
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--ts-text-3);
    margin-bottom: 26px;
    max-width: 580px;
}
.tn-hero__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.tn-hero__micro {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.tn-hero__micro-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--ts-font);
    font-size: 12px;
    font-weight: 600;
    color: var(--ts-text-2);
    background: rgba(8, 102, 245, 0.06);
    border: 1px solid rgba(8, 102, 245, 0.18);
    padding: 6px 14px;
    border-radius: 999px;
}
.tn-hero__micro-item svg {
    width: 15px;
    height: 15px;
    color: #0866F5;
}

/* FOTOGRAFÍA HERO FLOTANTE SIN CAJA GRIS SÓLIDA */
.tn-hero__visual {
    position: relative;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
    display: flex;
    justify-content: center;
    align-items: center;
}
.tn-hero__slide {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 20px 38px rgba(8, 102, 245, 0.25));
    animation: tnHeroFloat 7s ease-in-out infinite;
}
@keyframes tnHeroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* MICRO INSIGNIAS FLOTANTES B2B SOBRE LA IMAGEN */
.tn-hero__floating-badge {
    position: absolute;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 16px;
    background: var(--ts-card-bg, #FFFFFF);
    border: 1px solid var(--ts-card-border, #E7EBF1);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(12px);
    font-family: var(--ts-font);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ts-text);
    white-space: nowrap;
    animation: tnBadgeFloat 5s ease-in-out infinite alternate;
}
[data-theme="dark"] .tn-hero__floating-badge {
    background: rgba(14, 32, 62, 0.92);
    border-color: rgba(100, 165, 245, 0.25);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.tn-hero__floating-badge--top {
    top: 10px;
    left: -10px;
}
.tn-hero__floating-badge--bottom {
    bottom: 20px;
    right: -10px;
    animation-delay: -2.5s;
}
.tn-hero__floating-icon {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: rgba(8, 102, 245, 0.12);
    color: #0866F5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@keyframes tnBadgeFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-6px); }
}

/* ── 2 · BANNER DE COMPRA ASISTIDA COMPACTO & PROCESO 1-2-3-4 ── */
.tn-compra {
    padding: 40px 0 50px;
    background: var(--ts-bg, #0B1528);
}
.tn-compra__inner {
    max-width: var(--ts-container, 1320px);
    margin-inline: auto;
    padding-inline: var(--ts-pad-inline, 24px);
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 36px;
    align-items: center;
    padding: 32px 36px;
    border-radius: 24px;
    background: var(--ts-card-bg, #FFFFFF);
    border: 1px solid var(--ts-card-border, #E7EBF1);
    box-shadow: 0 12px 36px rgba(13, 38, 76, 0.06);
    position: relative;
    overflow: hidden;
}
[data-theme="dark"] .tn-compra__inner {
    background: linear-gradient(135deg, rgba(14, 32, 62, 0.95), rgba(8, 20, 42, 0.95));
    border-color: rgba(100, 165, 245, 0.22);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.45);
}
.tn-compra__media {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(8, 102, 245, 0.12) 0%, transparent 75%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}
.tn-compra__img {
    width: 100%;
    height: auto;
    max-height: 260px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 14px 28px rgba(8, 102, 245, 0.18));
}
.tn-compra__contenido h2 {
    font-family: var(--ts-font-h);
    font-size: clamp(22px, 2.3vw, 28px);
    font-weight: 800;
    color: var(--ts-text);
    margin: 6px 0 10px;
}
.tn-compra__contenido p {
    font-family: var(--ts-font);
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--ts-text-2);
    margin-bottom: 20px;
}

/* PASOS PROCESO 1-2-3-4 ANIMADOS Y DINÁMICOS */
.tn-compra__timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(8, 102, 245, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(8, 102, 245, 0.12);
}
[data-theme="dark"] .tn-compra__timeline {
    background: rgba(10, 25, 48, 0.65);
    border-color: rgba(100, 165, 245, 0.18);
}

/* LÍNEA DE CONEXIÓN CON PULSO NEÓN DE IZQUIERDA A DERECHA */
.tn-timeline__line {
    position: absolute;
    top: 34px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: rgba(8, 102, 245, 0.15);
    border-radius: 999px;
    z-index: 1;
    overflow: hidden;
}
.tn-timeline__progress {
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, transparent, #0866F5, #00C8FF, transparent);
    border-radius: 999px;
    animation: tnLineShimmer 3s ease-in-out infinite;
}
@keyframes tnLineShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(300%); }
}

/* TARJETAS INTERACTIVAS DE PASO */
.tn-step-card {
    position: relative;
    z-index: 2;
    background: var(--ts-card-bg, #FFFFFF);
    border: 1px solid var(--ts-card-border, #E7EBF1);
    border-radius: 16px;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}
[data-theme="dark"] .tn-step-card {
    background: rgba(14, 32, 62, 0.9);
    border-color: rgba(100, 165, 245, 0.2);
}
.tn-step-card:hover {
    transform: translateY(-4px);
    border-color: #0866F5;
    box-shadow: 0 10px 24px rgba(8, 102, 245, 0.2);
}

.tn-step-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.tn-step-badge {
    font-family: var(--ts-font-h);
    font-size: 11px;
    font-weight: 800;
    color: #FFFFFF;
    background: linear-gradient(135deg, #0866F5 0%, #0099FF 100%);
    padding: 3px 9px;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(8, 102, 245, 0.3);
}
.tn-step-icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(8, 102, 245, 0.1);
    color: #0866F5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.tn-step-card:hover .tn-step-icon {
    transform: scale(1.12) rotate(6deg);
    background: #0866F5;
    color: #FFFFFF;
}

.tn-step-label {
    font-family: var(--ts-font-h);
    font-size: 12.5px;
    font-weight: 800;
    color: var(--ts-text);
    line-height: 1.25;
}
.tn-step-desc {
    font-family: var(--ts-font);
    font-size: 11px;
    line-height: 1.35;
    color: var(--ts-text-3);
}

/* FEATURE GRID 2X2 CON ICONOS */
.tn-compra__grid-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 22px;
}
.tn-compra-feat-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--ts-bg-light, #F8FAFC);
    border: 1px solid var(--ts-card-border, #E7EBF1);
    font-family: var(--ts-font);
    font-size: 12px;
    font-weight: 700;
    color: var(--ts-text-2);
}
[data-theme="dark"] .tn-compra-feat-card {
    background: rgba(10, 25, 48, 0.7);
    border-color: rgba(100, 165, 245, 0.15);
    color: #CBD5E1;
}
.tn-compra-feat-icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(8, 102, 245, 0.12);
    color: #0866F5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── 3 · CATÁLOGO E-COMMERCE CON FILTROS DINÁMICOS ── */
.tn-catalogo {
    padding: 50px 0 90px;
    background: var(--ts-bg, #0B1528);
    position: relative;
}
.tn-catalogo__inner {
    max-width: var(--ts-container, 1320px);
    margin-inline: auto;
    padding-inline: var(--ts-pad-inline, 24px);
}
.tn-catalogo__head {
    max-width: 800px;
    margin: 0 auto 36px;
    text-align: center;
}
.tn-catalogo__head h2 {
    font-family: var(--ts-font-h);
    font-size: clamp(26px, 2.8vw, 36px);
    font-weight: 800;
    color: var(--ts-text);
    margin: 8px 0;
}
.tn-catalogo__head p {
    font-family: var(--ts-font);
    font-size: 14.5px;
    color: var(--ts-text-3);
}

/* BARRA DE FILTROS MÓVIL (STICKY TOP EN RESPONSIVE) */
.tn-mobile-filter-bar {
    display: none;
    position: sticky;
    top: 72px;
    z-index: 90;
    background: var(--ts-card-bg, #FFFFFF);
    border: 1px solid var(--ts-card-border, #E7EBF1);
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
}
/* DROPDOWN CUSTOM ELEGANTE PARA MÓVIL */
.tn-custom-dropdown {
    position: relative;
    width: 100%;
    margin-bottom: 12px;
}

.tn-custom-dropdown__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--ts-card-bg, #FFFFFF);
    border: 1.5px solid #0866F5;
    border-radius: 14px;
    padding: 11px 16px;
    font-family: var(--ts-font);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ts-text);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(8, 102, 245, 0.12);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
[data-theme="dark"] .tn-custom-dropdown__trigger {
    background: rgba(14, 32, 62, 0.95);
    border-color: rgba(95, 160, 255, 0.4);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.tn-custom-dropdown__label {
    flex-grow: 1;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tn-custom-dropdown__arrow {
    color: #0866F5;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}
.tn-custom-dropdown.is-open .tn-custom-dropdown__arrow {
    transform: rotate(180deg);
}

/* MENÚ FLOTANTE CUSTOM DE OPCIONES CON SOMBRA Y GRADIENTE */
.tn-custom-dropdown__menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--ts-card-bg, #FFFFFF);
    border: 1px solid var(--ts-card-border, #E7EBF1);
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}
[data-theme="dark"] .tn-custom-dropdown__menu {
    background: rgba(14, 32, 62, 0.96);
    border-color: rgba(100, 165, 245, 0.25);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55);
}
.tn-custom-dropdown.is-open .tn-custom-dropdown__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ÍTEMS DEL MENÚ CUSTOM */
.tn-custom-dropdown__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: none;
    background: transparent;
    font-family: var(--ts-font);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ts-text-2);
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease, color 0.2s ease;
}
.tn-custom-dropdown__item:hover {
    background: rgba(8, 102, 245, 0.08);
    color: #0866F5;
}
.tn-custom-dropdown__item.is-selected {
    background: #0866F5;
    color: #FFFFFF !important;
    font-weight: 700;
}

.tn-custom-dropdown__item-badge {
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 8px;
    background: rgba(8, 102, 245, 0.12);
    color: #0866F5;
}
.tn-custom-dropdown__item.is-selected .tn-custom-dropdown__item-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
}
.tn-scroll-hint {
    font-family: var(--ts-font);
    font-size: 11px;
    font-weight: 700;
    color: var(--ts-text-3);
    margin-bottom: 6px;
    display: block;
}

.tn-mobile-search {
    position: relative;
    margin-bottom: 12px;
}
.tn-mobile-search input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border-radius: 12px;
    border: 1px solid var(--ts-card-border, #E7EBF1);
    background: var(--ts-bg-light, #F8FAFC);
    color: var(--ts-text);
    font-family: var(--ts-font);
    font-size: 13.5px;
    outline: none;
    transition: border-color 0.2s ease;
}
[data-theme="dark"] .tn-mobile-search input {
    background: rgba(10, 25, 48, 0.8);
    border-color: rgba(100, 165, 245, 0.2);
    color: #F8FAFC;
}
.tn-mobile-search input:focus {
    border-color: #0866F5;
}
.tn-mobile-search svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--ts-text-3);
    pointer-events: none;
}

.tn-mobile-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.tn-mobile-chips::-webkit-scrollbar {
    display: none;
}
.tn-mobile-chips .tn-cat-btn {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    width: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 14px !important;
    border-radius: 999px !important;
    font-size: 12.5px !important;
    line-height: 1 !important;
    background: var(--ts-bg-light, #F1F5F9);
    border: 1px solid var(--ts-card-border, #E2E8F0);
}
[data-theme="dark"] .tn-mobile-chips .tn-cat-btn {
    background: rgba(10, 25, 48, 0.8);
    border-color: rgba(100, 165, 245, 0.2);
}
.tn-mobile-chips .tn-cat-btn.is-active {
    background: #0866F5 !important;
    border-color: #0866F5 !important;
    color: #FFFFFF !important;
}
.tn-mobile-chips .tn-cat-btn span:first-child {
    white-space: nowrap !important;
}

/* LAYOUT E-COMMERCE CON SIDEBAR (DESKTOP) */
.tn-catalogo__layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
}

/* SIDEBAR DE FILTROS DESKTOP */
.tn-filters-sidebar {
    background: var(--ts-card-bg, #FFFFFF);
    border: 1px solid var(--ts-card-border, #E7EBF1);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 30px rgba(13, 38, 76, 0.05);
    position: sticky;
    top: 90px;
}
[data-theme="dark"] .tn-filters-sidebar {
    background: rgba(14, 32, 62, 0.9);
    border-color: rgba(100, 165, 245, 0.2);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.tn-filter-group {
    margin-bottom: 26px;
}
.tn-filter-group:last-child {
    margin-bottom: 0;
}
.tn-filter-title {
    font-family: var(--ts-font-h);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ts-text);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* BUSCADOR EN SIDEBAR */
.tn-search-box {
    position: relative;
}
.tn-search-box input {
    width: 100%;
    padding: 11px 16px 11px 40px;
    border-radius: 12px;
    border: 1px solid var(--ts-card-border, #E7EBF1);
    background: var(--ts-bg-light, #F8FAFC);
    color: var(--ts-text);
    font-family: var(--ts-font);
    font-size: 13.5px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
[data-theme="dark"] .tn-search-box input {
    background: rgba(10, 25, 48, 0.7);
    border-color: rgba(100, 165, 245, 0.2);
    color: #F8FAFC;
}
.tn-search-box input:focus {
    border-color: #0866F5;
    box-shadow: 0 0 0 3px rgba(8, 102, 245, 0.15);
}
.tn-search-box svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--ts-text-3);
    pointer-events: none;
}

/* LISTA DE CATEGORÍAS */
.tn-cat-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.tn-cat-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--ts-text-2);
    font-family: var(--ts-font);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.tn-cat-btn:hover {
    background: rgba(8, 102, 245, 0.08);
    color: #0866F5;
}
.tn-cat-btn.is-active {
    background: #0866F5;
    color: #FFFFFF !important;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(8, 102, 245, 0.3);
}
.tn-cat-count {
    font-size: 11.5px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(8, 102, 245, 0.12);
    color: #0866F5;
    transition: background 0.2s ease, color 0.2s ease;
}
.tn-cat-btn.is-active .tn-cat-count {
    background: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
}

/* LISTA DE STOCK / DISPONIBILIDAD */
.tn-stock-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tn-stock-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    font-family: var(--ts-font);
    font-size: 13px;
    color: var(--ts-text-2);
    cursor: pointer;
    transition: background 0.2s ease;
}
.tn-stock-item:hover {
    background: rgba(8, 102, 245, 0.06);
}
.tn-stock-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #0866F5;
    cursor: pointer;
}
.tn-stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.tn-stock-dot--green { background: #10B981; box-shadow: 0 0 6px rgba(16, 185, 129, 0.5); }
.tn-stock-dot--amber { background: #F59E0B; box-shadow: 0 0 6px rgba(245, 158, 11, 0.5); }
.tn-stock-dot--blue { background: #3B82F6; box-shadow: 0 0 6px rgba(59, 130, 246, 0.5); }

/* WIDGET DE ASISTENCIA EN SIDEBAR */
.tn-asistencia-widget {
    background: rgba(8, 102, 245, 0.06);
    border: 1px solid rgba(8, 102, 245, 0.2);
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    margin-top: 10px;
}
[data-theme="dark"] .tn-asistencia-widget {
    background: rgba(8, 102, 245, 0.12);
    border-color: rgba(95, 160, 255, 0.25);
}
.tn-asistencia-widget p {
    font-family: var(--ts-font);
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--ts-text-2);
    margin-bottom: 12px;
}
.tn-asistencia-widget a {
    font-size: 12px;
    padding: 8px 14px;
    width: 100%;
    justify-content: center;
}

/* BARRA SUPERIOR DE CONTEO Y RESULTADOS EN CONTENEDOR DE PRODUCTOS */
.tn-catalogo__main-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ts-card-border, #E7EBF1);
}
.tn-results-count {
    font-family: var(--ts-font);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ts-text-3);
}
.tn-reset-btn {
    background: transparent;
    border: none;
    color: #0866F5;
    font-family: var(--ts-font);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s ease;
}
.tn-reset-btn:hover {
    opacity: 0.8;
}

/* GRILLA DE PRODUCTOS */
.tn-catalogo__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 24px;
    min-height: 380px;
}

/* TARJETA DE PRODUCTO */
.tn-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: var(--ts-card-bg, #FFFFFF);
    border: 1px solid var(--ts-card-border, #E7EBF1);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(13, 38, 76, 0.05);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
    position: relative;
    overflow: hidden;
}
[data-theme="dark"] .tn-card {
    background: rgba(14, 32, 62, 0.88);
    border-color: rgba(100, 165, 245, 0.18);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}
.tn-card:hover {
    transform: translateY(-4px);
    border-color: rgba(8, 102, 245, 0.4);
    box-shadow: 0 16px 38px rgba(8, 102, 245, 0.18);
}
.tn-card--hidden {
    display: none !important;
}

.tn-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.tn-card__badge {
    font-size: 10.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(8, 102, 245, 0.1);
    border: 1px solid rgba(8, 102, 245, 0.22);
    color: #0866F5;
    letter-spacing: 0.02em;
}
[data-theme="dark"] .tn-card__badge {
    background: rgba(95, 160, 255, 0.15);
    border-color: rgba(95, 160, 255, 0.3);
    color: #5FA0FF;
}

.tn-card__stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #10B981;
}
.tn-card__stock--amber { color: #F59E0B; }
.tn-card__stock--blue { color: #3B82F6; }

.tn-card__img-box {
    width: 100%;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 102, 245, 0.04);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
    transition: background 0.3s ease;
}
[data-theme="dark"] .tn-card__img-box {
    background: rgba(10, 25, 48, 0.6);
}
.tn-card:hover .tn-card__img-box {
    background: rgba(8, 102, 245, 0.08);
}
.tn-card__img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.tn-card:hover .tn-card__img {
    transform: scale(1.06);
}

.tn-card__title {
    font-family: var(--ts-font-h);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--ts-text);
    margin-bottom: 8px;
}
.tn-card__desc {
    font-family: var(--ts-font);
    font-size: 13px;
    line-height: 1.55;
    color: var(--ts-text-3);
    margin-bottom: 16px;
    flex-grow: 1;
}

.tn-card__price-box {
    padding-top: 14px;
    border-top: 1px dashed var(--ts-card-border, #E7EBF1);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
}
.tn-card__price-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ts-text-3);
}
.tn-card__price-value {
    font-family: var(--ts-font-h);
    font-size: 18px;
    font-weight: 800;
    color: #0866F5;
}
[data-theme="dark"] .tn-card__price-value {
    color: #5FA0FF;
}

.tn-card__btn {
    width: 100%;
    justify-content: center;
}

/* ESTADO VACÍO CUANDO NO HAY RESULTADOS DE FILTRADO */
.tn-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 24px;
    background: var(--ts-card-bg, #FFFFFF);
    border: 1px dashed var(--ts-card-border, #E7EBF1);
    border-radius: 20px;
}
[data-theme="dark"] .tn-empty-state {
    background: rgba(14, 32, 62, 0.6);
    border-color: rgba(100, 165, 245, 0.2);
}
.tn-empty-state svg {
    width: 56px;
    height: 56px;
    color: var(--ts-text-3);
    margin-bottom: 16px;
    opacity: 0.6;
}
.tn-empty-state h3 {
    font-family: var(--ts-font-h);
    font-size: 18px;
    font-weight: 800;
    color: var(--ts-text);
    margin-bottom: 8px;
}
.tn-empty-state p {
    font-family: var(--ts-font);
    font-size: 14px;
    color: var(--ts-text-3);
    margin-bottom: 20px;
}

/* RESPONSIVE TIENDA */
@media (max-width: 991px) {
    .tn-hero__inner,
    .tn-compra__inner {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px 20px;
    }
    .tn-hero__floating-badge {
        display: none;
    }
    .tn-compra__timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 12px;
    }
    .tn-timeline__line {
        display: none;
    }
    .tn-step-card {
        padding: 10px 10px;
    }
    .tn-catalogo__layout {
        grid-template-columns: 1fr;
    }
    .tn-filters-sidebar {
        display: none;
    }
    .tn-mobile-filter-bar {
        display: block;
    }
    .tn-catalogo__grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 576px) {
    .tn-compra__inner {
        padding: 20px 16px;
    }
    .tn-compra__timeline {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 10px;
    }
    .tn-step-card {
        padding: 10px 8px;
    }
    .tn-step-label {
        font-size: 11.5px;
    }
    .tn-step-desc {
        font-size: 10px;
    }
    .tn-compra__grid-features {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .tn-compra-feat-card {
        font-size: 11.5px;
        padding: 9px 10px;
    }
    .tn-catalogo__grid {
        grid-template-columns: 1fr;
    }
}
