/* ===========================================
 * TecDoc Connector - Estilos base
 * Metodología BEM con prefijo tecdoc-
 * =========================================== */

:root {
    --tecdoc-primary: #325BC8;
    --tecdoc-primary-dark: #090736;
    --tecdoc-cta: #fcb900;
    --tecdoc-cta-hover: #e0a800;
    --tecdoc-dark: #00272d;
    --tecdoc-success: #1e9466;
    --tecdoc-success-hover: #178053;
    --tecdoc-error: #dc3545;
    --tecdoc-border: #dee2e6;
    --tecdoc-radius: 6px;
    --tecdoc-gradient: linear-gradient(180deg, #325BC8 0%, #090736 100%);
    --tecdoc-spacing-sm: 8px;
    --tecdoc-spacing-md: 16px;
    --tecdoc-spacing-lg: 24px;
    --tecdoc-spacing-xl: 48px;
}

/* ===========================================
 * Footer — Signet TecDoc Inside
 * =========================================== */

.tecdoc-footer-signet {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--tecdoc-spacing-md) 0;
}

.tecdoc-footer-signet__copyright {
    max-width: 720px;
    margin: 10px auto 0;
    padding: 0 16px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.6875rem;
    line-height: 1.5;
    text-align: center;
}

.tecdoc-footer-signet__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tecdoc-footer-signet__badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.tecdoc-footer-signet__img {
    display: block;
    height: 32px;
    width: auto;
}

.tecdoc-footer-signet__text-badge {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--tecdoc-radius);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    line-height: 1.3;
    text-align: center;
    letter-spacing: 0.05em;
}

/* ===========================================
 * Header — Barra principal unificada
 * =========================================== */

.tecdoc-header {
    background: var(--tecdoc-primary-dark) !important;
    border-bottom: none !important;
}

.tecdoc-header .header-bottom__row {
    min-height: 60px;
}

.tecdoc-header .logo img {
    filter: brightness(0) invert(1);
    max-height: 36px;
}

.tecdoc-header__nav {
    gap: 8px;
}

/* ===========================================
 * Header — Pills genéricos (carrito, usuario)
 * =========================================== */

.tecdoc-header-pill__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    line-height: 1.4;
    border: none;
}

.tecdoc-header-pill__btn--outline,
.tecdoc-header-pill__btn--dark {
    background: #fff;
    color: var(--tecdoc-primary-dark);
}

.tecdoc-header-pill__btn--outline:hover,
.tecdoc-header-pill__btn--dark:hover {
    background: #f0f2f5;
    color: var(--tecdoc-primary-dark);
    text-decoration: none;
}

.tecdoc-header-pill__icon {
    font-size: 1.125rem;
    color: var(--tecdoc-primary);
}

.tecdoc-header-pill__label {
    font-size: 0.8125rem;
    font-weight: 600;
}

.tecdoc-header-pill__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 50px;
    background: var(--tecdoc-primary);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1;
}

/* Header responsive */
@media (max-width: 767px) {
    .tecdoc-header .logo img {
        max-height: 28px;
        max-width: 140px;
        width: auto;
    }

    /* Override Hummingbird: el contenedor displayNav2 tiene d-none d-md-flex
       (oculto en mobile). Forzamos visibilidad para que el pill aparezca
       entre el logo y los iconos mobile. Bootstrap .col en mobile aplica
       width:100% por defecto — necesitamos width:auto para no forzar wrap.
       El logo ya tiene me-auto que empuja todo a la derecha, no añadimos
       otro margin-left:auto aquí (causaría wrap del cart). */
    .tecdoc-header__nav {
        display: flex !important;
        flex: 0 0 auto !important;
        width: auto !important;
    }

    /* Compactar pill 'Iniciar sesión' en mobile (solo icono, sin texto). */
    #_mobile_user_info .tecdoc-header-pill__label {
        display: none;
    }

    #_mobile_user_info .tecdoc-header-pill__btn {
        padding: 8px 10px;
    }

    /* El _mobile_cart del template Hummingbird está vacío en este sitio
       (cart hook no rellenado por configuración o datos). Ocupa 8px de
       padding que fuerza el wrap del row. Lo ocultamos si no tiene
       elementos hijos reales (sólo whitespace). Cuando se rellene en
       el futuro, esta regla deja de aplicar y vuelve a mostrarse. */
    #_mobile_cart:not(:has(*)) {
        display: none !important;
    }
}

/* ===========================================
 * Picker genérico — Desplegable custom
 * =========================================== */

.tecdoc-picker {
    position: relative;
    width: 100%;
}

.tecdoc-picker__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 12px;
    border: 1.5px solid #dee2e6;
    border-radius: 10px;
    background: #fff;
    font-size: 0.8125rem;
    color: #495057;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tecdoc-picker__trigger:hover {
    border-color: #adb5bd;
}

.tecdoc-picker--open .tecdoc-picker__trigger,
.tecdoc-picker__trigger:focus {
    border-color: var(--tecdoc-primary);
    box-shadow: 0 0 0 3px rgba(50, 91, 200, 0.1);
    outline: none;
}

.tecdoc-picker__trigger .material-icons {
    font-size: 18px;
    color: #6c757d;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.tecdoc-picker--open .tecdoc-picker__trigger .material-icons {
    transform: rotate(180deg);
}

.tecdoc-picker__trigger--selected {
    color: #1a1a1a;
    font-weight: 500;
}

.tecdoc-picker__trigger span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    text-align: left;
}

/* Panel desplegable */
.tecdoc-picker__panel {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 200;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04);
    animation: tecdoc-dropdown-in 0.2s ease-out;
    overflow: hidden;
}

.tecdoc-picker--open .tecdoc-picker__panel {
    display: block;
}

/* Input de búsqueda */
.tecdoc-picker__search {
    padding: 10px 12px 6px;
    border-bottom: 1px solid #f0f0f0;
}

.tecdoc-picker__search-input {
    width: 100%;
    padding: 8px 10px;
    border: 1.5px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.8125rem;
    color: #344054;
    background: #f8f9fa;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.tecdoc-picker__search-input:focus {
    outline: none;
    border-color: var(--tecdoc-primary);
    background: #fff;
}

.tecdoc-picker__search-input::placeholder {
    color: #adb5bd;
}

/* Lista scrollable */
.tecdoc-picker__list {
    max-height: 300px;
    overflow-y: auto;
    padding: 4px 0;
}

.tecdoc-picker__list::-webkit-scrollbar {
    width: 6px;
}

.tecdoc-picker__list::-webkit-scrollbar-track {
    background: transparent;
}

.tecdoc-picker__list::-webkit-scrollbar-thumb {
    background: #d0d5dd;
    border-radius: 3px;
}

/* Grupo */
.tecdoc-picker__group {
    border-bottom: 1px solid #f0f0f0;
}

.tecdoc-picker__group:last-child {
    border-bottom: none;
}

.tecdoc-picker__group-header {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #344054;
    cursor: pointer;
    transition: background 0.15s;
    user-select: none;
}

.tecdoc-picker__group-header:hover {
    background: #f5f7ff;
}

.tecdoc-picker__group-header span {
    flex: 1;
}

.tecdoc-picker__group-header .material-icons {
    font-size: 18px;
    color: #adb5bd;
    transition: transform 0.2s;
}

.tecdoc-picker__group--open > .tecdoc-picker__group-header .material-icons {
    transform: rotate(180deg);
}

.tecdoc-picker__group--open > .tecdoc-picker__group-header {
    color: var(--tecdoc-primary);
}

/* Items dentro de grupo */
.tecdoc-picker__group-items {
    display: none;
    padding: 0 0 4px;
}

.tecdoc-picker__group--open > .tecdoc-picker__group-items {
    display: block;
}

/* Item genérico */
.tecdoc-picker__item {
    padding: 9px 14px;
    font-size: 0.8125rem;
    color: #344054;
    cursor: pointer;
    transition: background 0.15s;
}

.tecdoc-picker__item:hover {
    background: #f0f4ff;
    color: var(--tecdoc-primary);
}

/* Items dentro de grupo — indentados */
.tecdoc-picker__group-items .tecdoc-picker__item {
    padding-left: 28px;
}

/* --- Estilos específicos: Marca --- */
.tecdoc-picker__brand-name {
    font-weight: 500;
}

/* --- Estilos específicos: Modelo --- */
.tecdoc-picker__model-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.tecdoc-picker__model-name {
    font-weight: 500;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tecdoc-picker__model-years {
    font-size: 0.75rem;
    color: #6c757d;
    white-space: nowrap;
    flex-shrink: 0;
}

/* --- Estilos específicos: Motorización --- */
.tecdoc-picker__type-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tecdoc-picker__type-img {
    width: 60px;
    height: 40px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
    background: #f8f9fa;
}

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

.tecdoc-picker__type-desc {
    display: block;
    font-weight: 600;
    font-size: 0.8125rem;
    color: #1a1a1a;
}

.tecdoc-picker__type-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.tecdoc-picker__type-power {
    font-size: 0.75rem;
    color: var(--tecdoc-primary);
    font-weight: 600;
}

.tecdoc-picker__type-years {
    font-size: 0.75rem;
    color: #6c757d;
}

/* ===========================================
 * Banda búsqueda por referencia (full-width)
 * =========================================== */

/* ===========================================
 * Barra búsqueda por referencia (tarjeta centrada)
 * =========================================== */

.tecdoc-search-band {
    padding: 2rem 0 0;
    position: relative;
    background: #fff;
}

.tecdoc-search-band__inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: linear-gradient(135deg, #1a3a8f 0%, #0d1b4a 100%);
    border-radius: 14px;
    padding: 1.25rem 1.75rem;
}

.tecdoc-search-band__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.tecdoc-search-band__icon .material-icons {
    font-size: 1.5rem;
    color: #fff;
}

.tecdoc-search-band__content {
    flex-shrink: 0;
}

.tecdoc-search-band__title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 2px;
}

.tecdoc-search-band__subtitle {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.tecdoc-search-band__form {
    display: flex;
    flex: 1;
}

.tecdoc-search-band__input-wrap {
    flex: 1;
    position: relative;
}

.tecdoc-search-band__input {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: var(--tecdoc-radius) 0 0 var(--tecdoc-radius);
    background: #fff;
    color: #333;
    font-size: 0.9375rem;
    outline: none;
    box-sizing: border-box;
}

.tecdoc-search-band__input::placeholder {
    color: #999;
}

.tecdoc-search-band__btn {
    padding: 12px 28px;
    border: none;
    border-radius: 0 var(--tecdoc-radius) var(--tecdoc-radius) 0;
    background: var(--tecdoc-cta);
    color: #1a1a1a;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.tecdoc-search-band__btn:hover {
    background: var(--tecdoc-cta-hover);
}

.tecdoc-search-band__results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 100;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04);
    max-height: 420px;
    overflow-y: auto;
    color: #333;
    padding: 6px 0;
    animation: tecdoc-dropdown-in 0.2s ease-out;
}

.tecdoc-search-band__results::-webkit-scrollbar {
    width: 6px;
}

.tecdoc-search-band__results::-webkit-scrollbar-track {
    background: transparent;
}

.tecdoc-search-band__results::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 3px;
}

.tecdoc-search-band__results::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

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

@media (max-width: 767px) {
    .tecdoc-search-band__inner {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1rem 1.25rem;
    }

    .tecdoc-search-band__icon {
        display: none;
    }

    .tecdoc-search-band__form {
        width: 100%;
        max-width: none;
    }
}

/* ===========================================
 * Hero — Selector vehículo + Banner promo
 * =========================================== */

.tecdoc-hero {
    background: #fff;
    padding: 1.5rem 0 2.5rem;
}

/* Tarjeta selector de vehículo */
.tecdoc-hero__selector-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.03);
    overflow: visible;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tecdoc-hero__selector-header {
    background: linear-gradient(135deg, var(--tecdoc-primary) 0%, var(--tecdoc-primary-dark) 100%);
    padding: 1.15rem 1.5rem;
    position: relative;
    border-radius: 20px 20px 0 0;
}

.tecdoc-hero__selector-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    margin-bottom: -1.5px;
}

.tecdoc-hero__selector-heading {
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
    text-align: center;
    letter-spacing: 0.01em;
}

.tecdoc-hero__selector-body {
    padding: 1.25rem 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Tabs */
.tecdoc-hero__tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 1.25rem;
    background: #f4f5f7;
    border-radius: 10px;
    padding: 4px;
}

.tecdoc-hero__tab {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    padding: 10px 8px;
    border: none;
    background: transparent;
    color: #999;
    font-size: 0.6875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: 8px;
}

.tecdoc-hero__tab:hover {
    color: #555;
}

.tecdoc-hero__tab--active {
    color: var(--tecdoc-primary);
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tecdoc-hero__tab .material-icons {
    font-size: 1.25rem;
}

/* Campos numerados */
.tecdoc-hero__field {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f2f2f2;
}

.tecdoc-hero__field:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 18px;
}

.tecdoc-hero__field-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--tecdoc-primary);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tecdoc-hero__field:hover .tecdoc-hero__field-num {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(50, 91, 200, 0.3);
}

.tecdoc-hero__field-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #444;
    min-width: 48px;
}

.tecdoc-hero__select {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #dce1e8;
    border-radius: 10px;
    font-size: 0.8125rem;
    color: #333;
    background: #fff;
    appearance: auto;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tecdoc-hero__select:focus {
    border-color: var(--tecdoc-primary);
    box-shadow: 0 0 0 3px rgba(50, 91, 200, 0.12);
    outline: none;
}

.tecdoc-hero__select:disabled {
    background: #f8f9fa;
    color: #aaa;
}

/* Botón buscar */
.tecdoc-hero__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 10px;
    background: var(--tecdoc-cta);
    color: #1a1a1a;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: auto;
}

.tecdoc-hero__submit:hover:not(:disabled) {
    background: var(--tecdoc-cta-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(252, 185, 0, 0.35);
}

.tecdoc-hero__submit:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.tecdoc-hero__submit .material-icons {
    font-size: 1.125rem;
}

/* Vehículo seleccionado */
.tecdoc-hero__selected {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f0fe 100%);
    border-top: none;
    margin: 0 12px 12px;
    border-radius: 12px;
}

.tecdoc-hero__selected > .material-icons {
    color: var(--tecdoc-primary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

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

.tecdoc-hero__selected-name {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tecdoc-hero__selected-desc {
    display: block;
    font-size: 0.75rem;
    color: #666;
    margin-top: 2px;
}

.tecdoc-hero__selected-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    color: #999;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.tecdoc-hero__selected-clear:hover {
    border-color: var(--tecdoc-error);
    color: var(--tecdoc-error);
    background: #fff5f5;
}

.tecdoc-hero__selected-clear .material-icons {
    font-size: 1rem;
}

/* Carrusel hero */
.tecdoc-hero__carousel {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.tecdoc-hero__carousel-track {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
}

.tecdoc-hero__carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    padding: 3rem 3rem 4rem;
}

.tecdoc-hero__carousel-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(9, 7, 54, 0.85) 0%, rgba(50, 91, 200, 0.55) 100%);
    pointer-events: none;
}

.tecdoc-hero__carousel-slide--active {
    opacity: 1;
}

.tecdoc-hero__slide-content {
    position: relative;
    z-index: 2;
    max-width: 480px;
    color: #fff;
}

.tecdoc-hero__slide-title {
    font-size: clamp(1.5rem, 2.6vw, 2.25rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 0.75rem;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.tecdoc-hero__slide-subtitle {
    font-size: clamp(0.9rem, 1.3vw, 1.0625rem);
    line-height: 1.5;
    opacity: 0.92;
    margin: 0 0 1.5rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.tecdoc-hero__slide-cta {
    display: inline-block;
    padding: 12px 28px;
    background: var(--tecdoc-cta);
    color: #1a1a1a;
    font-size: 0.9375rem;
    font-weight: 700;
    border-radius: var(--tecdoc-radius);
    text-decoration: none;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(252, 185, 0, 0.35);
}

.tecdoc-hero__slide-cta:hover {
    background: var(--tecdoc-cta-hover);
    color: #1a1a1a;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(252, 185, 0, 0.45);
}

.tecdoc-hero__slide-badge {
    position: absolute;
    top: 16px;
    right: 20px;
    z-index: 3;
    padding: 4px 12px;
    background: var(--tecdoc-primary-dark);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    border-radius: 4px;
}

.tecdoc-hero__carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.tecdoc-hero__carousel-dot {
    width: 32px;
    height: 4px;
    border-radius: 2px;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.tecdoc-hero__carousel-dot--active {
    background: #fff;
    width: 48px;
}

/* Hero responsive */
@media (max-width: 991px) {
    .tecdoc-hero .row {
        flex-direction: column-reverse;
    }

    .tecdoc-hero__carousel-track {
        aspect-ratio: 3 / 2;
    }
}

@media (max-width: 575px) {
    .tecdoc-hero {
        padding: 1.5rem 0;
    }

    .tecdoc-hero__tabs {
        justify-content: center;
    }

    .tecdoc-hero__field-label {
        display: none;
    }

    .tecdoc-hero__carousel-slide {
        padding: 1.5rem 1.5rem 3rem;
    }

    .tecdoc-hero__slide-content {
        max-width: 100%;
    }
}

/* ===========================================
 * Marcas de confianza — Carrusel
 * =========================================== */

.tecdoc-brands {
    padding: var(--tecdoc-spacing-xl) 0;
    background: var(--tecdoc-gradient);
    color: #fff;
    overflow-x: hidden;
}

.tecdoc-brands__header {
    text-align: center;
    margin-bottom: 2rem;
}

.tecdoc-brands__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tecdoc-brands__subtitle {
    font-size: 1rem;
    opacity: 0.8;
    margin: 0;
}

.tecdoc-brands__carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tecdoc-brands__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}

.tecdoc-brands__arrow:hover {
    background: rgba(255, 255, 255, 0.2);
}

.tecdoc-brands__carousel {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
    flex: 1;
    min-width: 0;
    padding: 0.5rem 0;
}

.tecdoc-brands__carousel::-webkit-scrollbar {
    display: none;
}

.tecdoc-brands__item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 120px;
    height: 70px;
    background: #fff;
    border-radius: var(--tecdoc-radius);
    padding: 10px;
    scroll-snap-align: start;
    transition: transform 0.2s;
}

.tecdoc-brands__item:hover {
    transform: scale(1.05);
}

.tecdoc-brands__logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@media (max-width: 767px) {
    .tecdoc-brands__item {
        width: 100px;
        height: 56px;
    }

    .tecdoc-brands__arrow {
        display: none;
    }
}

.tecdoc-brands__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1.5rem;
}

.tecdoc-brands__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.tecdoc-brands__dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.tecdoc-brands__dot--active {
    background: var(--tecdoc-cta);
    transform: scale(1.2);
}

/* ===========================================
 * Override Hummingbird — Home: continuidad CTA→footer
 * Hummingbird añade padding-bottom al #content-wrapper y margin-top
 * al .page-footer interno (vacío) que juntos crean ~112px de hueco
 * blanco entre el último bloque CTA (azul oscuro) y el footer real
 * (también azul oscuro). En home queremos continuidad visual.
 * =========================================== */

body#index #content-wrapper {
    padding-bottom: 0;
}

body#index #content-wrapper > .page-footer {
    margin-top: 0;
}


/* ===========================================
 * Catálogo por vehículo — base compartida.
 * Fuentes locales de la vista (el CSS del módulo no hereda las vars SCSS).
 * =========================================== */

.tecdoc-vehicle {
    --tv-display: "Bricolage Grotesque", system-ui, sans-serif;
    --tv-mono: "JetBrains Mono", ui-monospace, monospace;
}

/* ===========================================
 * Vehículos recientes (modal de cambio de vehículo). Estilos globales del
 * módulo: la marca del taller re-selecciona un coche anterior en un clic.
 * =========================================== */
/* ===========================================
 * Vehículos recientes (modal de cambio de vehículo). Estilos globales del
 * módulo: la marca del taller re-selecciona un coche anterior en un clic.
 * =========================================== */
.tecdoc-recent {
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid #E1E7EF;
}

/* Cabecera de la tira (#57): etiqueta + «Ver todos» al garaje del cliente. */
.tecdoc-recent__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px;
}

.tecdoc-recent__head .tecdoc-recent__label {
    margin-bottom: 0;
}

.tecdoc-recent__all {
    font-size: 12.5px;
    font-weight: 600;
    color: #2A4A75;
    text-decoration: underline;
}

.tecdoc-recent__all:hover {
    color: #1a3158;
}

/* Guardado a propósito (#57): marcador relleno en navy. */
.tecdoc-recent__chip--saved svg {
    color: #2A4A75;
}

.tecdoc-recent__label {
    display: block;
    margin-bottom: 9px;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8A98AE;
}

.tecdoc-recent__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tecdoc-recent__chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    padding: 7px 13px;
    background: #fff;
    border: 1px solid #E1E7EF;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #2A4A75;
    text-decoration: none;
    transition: border-color .15s ease, background .15s ease;
}

.tecdoc-recent__chip:hover {
    border-color: #2A4A75;
    background: #F5F7FA;
}

.tecdoc-recent__chip svg {
    flex: 0 0 auto;
    color: #8A98AE;
}

.tecdoc-recent__chip-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* La banda navy del vehículo (.tecdoc-vband) se retiró en el #34 v4: la página
   usa el recuadro .va-ref-band del tema (_va-ref-band.scss), el mismo que
   /buscar-oem. */

/* Paginación del detalle por vehículo */
.tecdoc-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 28px 0 8px;
}

.tecdoc-pagination__page,
.tecdoc-pagination__nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    font-size: 14px;
    font-weight: 600;
    color: #2A4A75;
    text-decoration: none;
    background: #fff;
    border: 1px solid #E1E7EF;
    border-radius: 8px;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.tecdoc-pagination__page:hover,
.tecdoc-pagination__nav:not(.tecdoc-pagination__nav--disabled):hover {
    border-color: #2A4A75;
    background: #F5F7FA;
}

.tecdoc-pagination__page--active {
    background: #2A4A75;
    border-color: #2A4A75;
    color: #fff;
}

.tecdoc-pagination__nav--disabled {
    color: #C4CDDB;
    cursor: default;
}

.tecdoc-pagination__gap {
    padding: 0 4px;
    color: #8A98AE;
}

/* ===========================================
 * Catálogo por vehículo v7 «árbol real» (Claude Design «Busqueda por vehiculo
 * v7»). Layout sidebar + explorador: tarjetas de sección, panel de rama con
 * borde naranja, chips de ruta/facetas/universales y árbol filtrable.
 * Valores literales del sistema de diseño (tokens/_colors.scss): navy #2A4A75,
 * navy-deep #1A3158, accent #ff8300, accent-dark #E07300, accent-soft #FFE4CC,
 * ink #0F1F3A, ink-soft #5A6B85, ink-muted #8A98AE, surface #F5F7FA,
 * border #E1E7EF, bg #FAFBFC.
 * =========================================== */

@keyframes tecdoc-vs7-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .45; transform: scale(.75); }
}

.tecdoc-vs7-icon { flex-shrink: 0; }

/* --- Layout de 2 columnas --- */
.tecdoc-vs7-layout {
    display: grid;
    grid-template-columns: 292px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    margin: 20px auto 48px; /* #34 v4: mismo hueco bajo el recuadro que en /buscar-oem */
}

/* --- Sidebar: buscador + árbol --- */
.tecdoc-vs7-side {
    position: sticky;
    top: 84px;
    background: #fff;
    border: 1px solid #E1E7EF;
    border-radius: 12px;
    overflow: hidden;
}

.tecdoc-vs7-side__head {
    padding: 14px 14px 12px;
    border-bottom: 1px solid #E1E7EF;
    background: #F5F7FA;
}

.tecdoc-vs7-side__label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 9px;
    font-family: var(--tv-mono);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #E07300;
}

.tecdoc-vs7-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff8300;
    animation: tecdoc-vs7-pulse 1.6s ease-in-out infinite;
}

.tecdoc-vs7-side__searchwrap { position: relative; }

.tecdoc-vs7-side__searchwrap > .tecdoc-vs7-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #8A98AE;
    pointer-events: none;
}

.tecdoc-vs7-side__search {
    width: 100%;
    height: 40px;
    padding: 0 34px 0 36px;
    border: 1px solid #E1E7EF;
    border-radius: 8px;
    background: #fff;
    font-family: inherit;
    font-size: 13px;
    color: #0F1F3A;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

/* L2211 (WCAG 1.4.11): el borde naranja daba 2,30:1 sobre el lateral (medido); navy
   (#2a4a75) con su halo, como los campos del tema (mixin va-form-fields): 8,38:1. */
.tecdoc-vs7-side__search:focus {
    border-color: #2a4a75;
    box-shadow: 0 0 0 3px rgba(42, 74, 117, .12);
}

/* El aspa nativa del input search duplicaría el botón limpiar propio. */
.tecdoc-vs7-side__search::-webkit-search-cancel-button { display: none; }

.tecdoc-vs7-side__clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 1px solid #E1E7EF;
    border-radius: 5px;
    background: #F5F7FA;
    color: #5A6B85;
    cursor: pointer;
    transition: color .15s ease, border-color .15s ease;
}

.tecdoc-vs7-side__clear:hover { color: #1A3158; border-color: #2A4A75; }

.tecdoc-vs7-side__filterline {
    display: block;
    margin-top: 8px;
    font-family: var(--tv-mono);
    font-size: 10px;
    color: #5A6B85;
}

.tecdoc-vs7-side__tree {
    padding: 10px 10px 12px;
    max-height: 58vh;
    overflow-y: auto;
}

.tecdoc-vs7-side__caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 10px 12px;
}

.tecdoc-vs7-side__caption span {
    font-family: var(--tv-mono);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #8A98AE;
}

.tecdoc-vs7-side__caption a {
    font-size: 11.5px;
    font-weight: 700;
    color: #2A4A75;
    text-decoration: none;
    white-space: nowrap;
}

.tecdoc-vs7-side__caption a:hover { color: #E07300; }

.tecdoc-vs7-side__empty {
    padding: 18px 12px;
    text-align: center;
    font-size: 12.5px;
    color: #5A6B85;
    line-height: 1.5;
}

.tecdoc-vs7-side__empty p { margin: 0; }

.tecdoc-vs7-side__empty a {
    display: block;
    margin-top: 6px;
    font-weight: 700;
    color: #E07300;
    text-decoration: none;
}

.tecdoc-vs7-side__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-top: 1px solid #E1E7EF;
}

.tecdoc-vs7-side__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--tv-mono);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #5A6B85;
}

.tecdoc-vs7-side__badge .tecdoc-vs7-icon { color: #E07300; }

/* --- Filas del árbol del sidebar (server-rendered + re-render JS) --- */
.tecdoc-vs7-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border-radius: 6px;
    font-size: 13px;
    color: #5A6B85;
    text-decoration: none;
    cursor: pointer;
    line-height: 1.4;
    transition: color .12s ease, background .12s ease, box-shadow .12s ease;
}

.tecdoc-vs7-row--l0 { font-size: 13.5px; font-weight: 600; }

/* #53 (s183): 3 px entre filas para que el anillo de la activa y el del hover
   contiguo no se toquen. Con el filtro activo, las reglas de .is-filtering
   (más específicas) mandan en las filas de nivel 0. */
.tecdoc-vs7-row + .tecdoc-vs7-row { margin-top: 3px; }

/* #53 (s179): el cliente no distinguía el hover ni la sección activa (solo un
   fondo gris claro). Anillo interior de 1,5 px —navy al pasar el ratón, naranja
   en la activa— con box-shadow para no mover el layout ni recortarse con el
   scroll del árbol. La activa conserva su aspecto también bajo el ratón. */
.tecdoc-vs7-row:hover {
    color: #1A3158;
    background: #F5F7FA;
    box-shadow: inset 0 0 0 1.5px #2A4A75;
}

.tecdoc-vs7-row--path { color: #0F1F3A; font-weight: 700; }

.tecdoc-vs7-row--active,
.tecdoc-vs7-row--active:hover {
    color: #1A3158;
    font-weight: 700;
    background: #FFE4CC;
    box-shadow: inset 0 0 0 1.5px #ff8300;
}

.tecdoc-vs7-row__stripe {
    position: absolute;
    left: 0;
    top: 9px;
    bottom: 9px;
    width: 3px;
    border-radius: 2px;
    background: transparent;
}

.tecdoc-vs7-row--active > .tecdoc-vs7-row__stripe { background: #ff8300; }

.tecdoc-vs7-row > .tecdoc-vs7-icon { color: #8A98AE; }

.tecdoc-vs7-row--active > .tecdoc-vs7-icon { color: #E07300; }

.tecdoc-vs7-row__name { min-width: 0; flex: 1; }

.tecdoc-vs7-row__name .tecdoc-vs7-row__hl {
    background: #FFE4CC;
    color: #1A3158;
    border-radius: 3px;
    padding: 0;
}

.tecdoc-vs7-row__count {
    flex-shrink: 0;
    font-family: var(--tv-mono);
    font-size: 11px;
    color: #8A98AE;
}

/* Estado filtrado: cada sección que sobrevive al filtro encabeza un grupo de
   resultados. Sin separación se leen como una lista plana y cuesta ver de qué
   sección cuelga cada coincidencia. */
.tecdoc-vs7-side__tree.is-filtering .tecdoc-vs7-row--l0 {
    margin-top: 14px;
}

.tecdoc-vs7-side__tree.is-filtering .tecdoc-vs7-row--l0:first-of-type {
    margin-top: 4px;
}

.tecdoc-vs7-side__tree.is-filtering .tecdoc-vs7-row {
    padding-top: 8px;
    padding-bottom: 8px;
}

/* --- Cabecera del contenido --- */
.tecdoc-vs7-head,
.tecdoc-vs7-l2head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.tecdoc-vs7-l2head { margin-top: 4px; }

.tecdoc-vs7-head__title {
    margin: 0;
    font-family: var(--tv-display);
    font-variation-settings: 'wdth' 96;
    font-weight: 700;
    font-size: 24px;
    letter-spacing: -.02em;
    color: #0F1F3A;
}

.tecdoc-vs7-head__meta {
    font-family: var(--tv-mono);
    font-size: 12px;
    color: #5A6B85;
}

.tecdoc-vs7-head__sub {
    margin: 0 0 18px;
    max-width: 720px;
    font-size: 13px;
    color: #5A6B85;
    line-height: 1.5;
}

.tecdoc-vs7-notice {
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #FFE4CC;
    border-radius: 10px;
    font-size: 13px;
    color: #1A3158;
    line-height: 1.5;
}

/* --- Tarjetas de sección (raíz del explorador) --- */
/* 3 por fila: con las 22 secciones del coche cabe casi todo sin scroll. Por
   debajo de 1200px el cuerpo de la tarjeta se queda sin ancho útil y baja a 2. */
.tecdoc-vs7-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.tecdoc-vs7-card {
    position: relative;
    overflow: hidden;
    display: flex;
    min-width: 0;
    background: #fff;
    border: 1px solid #E1E7EF;
    border-radius: 10px;
    transition: border-color .35s cubic-bezier(.16, 1, .3, 1), transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s ease;
}

.tecdoc-vs7-card:hover {
    border-color: #2A4A75;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px -6px rgba(20, 37, 68, .12);
}

.tecdoc-vs7-card__stripe {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    height: 3px;
    width: 0;
    background: #ff8300;
    transition: width .4s cubic-bezier(.16, 1, .3, 1);
}

.tecdoc-vs7-card:hover .tecdoc-vs7-card__stripe { width: 100%; }

.tecdoc-vs7-card__thumb {
    flex-shrink: 0;
    width: 98px;
    padding: 14px 6px 14px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.tecdoc-vs7-card__thumb picture { display: contents; }

.tecdoc-vs7-card__thumb img {
    width: 100%;
    height: 74px;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform .45s cubic-bezier(.16, 1, .3, 1);
}

.tecdoc-vs7-card:hover .tecdoc-vs7-card__thumb img { transform: scale(1.06); }

.tecdoc-vs7-card__thumb .tecdoc-vs7-icon { color: #C4CDDB; }

.tecdoc-vs7-card__body {
    min-width: 0;
    flex: 1;
    padding: 12px 14px 11px;
    display: flex;
    flex-direction: column;
}

.tecdoc-vs7-card__title {
    font-size: 14.5px;
    font-weight: 700;
    color: #0F1F3A;
    line-height: 1.25;
    text-decoration: none;
}

.tecdoc-vs7-card__title:hover { color: #2A4A75; }

.tecdoc-vs7-card__meta {
    margin-top: 3px;
    font-family: var(--tv-mono);
    font-size: 10.5px;
    color: #5A6B85;
}

.tecdoc-vs7-card__quick {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 9px;
    border-top: 1px solid #E1E7EF;
    padding-top: 8px;
}

.tecdoc-vs7-card__qlink {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #5A6B85;
    text-decoration: none;
    line-height: 1.5;
    transition: color .12s ease;
}

.tecdoc-vs7-card__qlink:hover { color: #1A3158; }

.tecdoc-vs7-card__qlink .tecdoc-vs7-icon { color: #E07300; }

.tecdoc-vs7-card__qlink span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tecdoc-vs7-card__full {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
    font-size: 12px;
    font-weight: 700;
    color: #E07300;
    text-decoration: none;
}

.tecdoc-vs7-card__full:hover { color: #ff8300; }

/* --- Selector de vista (rejilla / lista) del listado de piezas --- */
.tecdoc-vs7-viewsel {
    display: inline-flex;
    margin-left: auto;
    padding: 3px;
    background: #F5F7FA;
    border: 1px solid #E1E7EF;
    border-radius: 8px;
    gap: 2px;
}

.tecdoc-vs7-viewsel__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 6px;
    font-family: var(--tv-mono);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #5A6B85;
    text-decoration: none;
    transition: color .15s ease, background .15s ease, box-shadow .15s ease;
}

/* #53 (s179): el botón de vista activo se distinguía solo por una sombra. */
.tecdoc-vs7-viewsel__btn:hover {
    color: #1A3158;
    box-shadow: inset 0 0 0 1.5px #2A4A75;
}

.tecdoc-vs7-viewsel__btn--active,
.tecdoc-vs7-viewsel__btn--active:hover {
    background: #fff;
    color: #0F1F3A;
    box-shadow: inset 0 0 0 1.5px #ff8300, 0 1px 3px rgba(20, 37, 68, .1);
}

.tecdoc-vs7-viewsel__btn--active .tecdoc-vs7-icon { color: #E07300; }

/* --- Rejilla de productos (vista por defecto, mockup v7) --- */
/* auto-fill + minmax: 4 columnas en pantallas anchas, 3 con el sidebar presente,
   y baja sola a 2 y 1 sin media queries por breakpoint. */
.tecdoc-vs7-pgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
    gap: 12px;
}

.tecdoc-vs7-pcard {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid #E1E7EF;
    border-radius: 10px;
    transition: border-color .35s cubic-bezier(.16, 1, .3, 1), transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s ease;
}

.tecdoc-vs7-pcard:hover {
    border-color: #2A4A75;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px -6px rgba(20, 37, 68, .12);
}

.tecdoc-vs7-pcard__stripe {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    height: 3px;
    width: 0;
    background: #ff8300;
    transition: width .4s cubic-bezier(.16, 1, .3, 1);
}

.tecdoc-vs7-pcard:hover .tecdoc-vs7-pcard__stripe { width: 100%; }

/* «Añadir a favoritos» (#38 e3): parcial va-fav-btn.tpl del tema, debajo de
   «Añadir»; el aspecto lo da .va-fav-btn de theme.css. */
.tecdoc-vs7-pcard .va-fav-btn {
    margin-top: 6px;
    height: 32px;
    font-size: 11.5px;
}

.tecdoc-vs7-pcard__thumb {
    display: block;
    height: 104px;
    padding: 14px 16px 6px;
    text-decoration: none;
    cursor: zoom-in; /* s153 (#25): clic = ampliar en el visor, no ir a la ficha */
}

/* s153 (#26): la tarjeta entera lleva a la ficha (delegado en catalog-lazy.js). */
.tecdoc-vs7-pcard { cursor: pointer; }

.tecdoc-vs7-pcard__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform .45s cubic-bezier(.16, 1, .3, 1);
}

.tecdoc-vs7-pcard:hover .tecdoc-vs7-pcard__img { transform: scale(1.06); }

.tecdoc-vs7-pcard__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0 14px 13px;
}

.tecdoc-vs7-pcard__brand {
    font-family: var(--tv-mono);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #8A98AE;
}

.tecdoc-vs7-pcard__title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    color: #0F1F3A;
    text-decoration: none;
}

.tecdoc-vs7-pcard__title:hover { color: #2A4A75; }

.tecdoc-vs7-pcard__ref {
    align-self: flex-start;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 2px 7px;
    background: #F5F7FA;
    border: 1px solid #E1E7EF;
    border-radius: 4px;
    font-family: var(--tv-mono);
    font-size: 10.5px;
    color: #5A6B85;
}

.tecdoc-vs7-pcard__stock {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 999px;
    font-family: var(--tv-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tecdoc-vs7-pcard__stock-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.tecdoc-vs7-pcard__stock--available { background: #E7F7EE; color: #1B7F4C; }
.tecdoc-vs7-pcard__stock--unavailable { background: #F0F2F6; color: #5A6B85; }

.tecdoc-vs7-pcard__foot {
    margin-top: auto;
    padding-top: 9px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.tecdoc-vs7-pcard__price-info {
    display: inline-flex;
    flex-direction: column;
    line-height: 1;
    min-width: 0;
}

.tecdoc-vs7-pcard__price-old {
    font-size: 11px;
    color: #8A98AE;
    text-decoration: line-through;
    margin-bottom: 3px;
}

.tecdoc-vs7-pcard__price {
    font-family: var(--tv-display);
    font-variation-settings: 'wdth' 80;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -.02em;
    color: #0F1F3A;
    white-space: nowrap;
}

.tecdoc-vs7-pcard__price-tax {
    margin-top: 4px;
    font-family: var(--tv-mono);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #8A98AE;
}

/* #75: el envío gratis bajo la píldora de stock (antes, sello naranja del #45),
   en su verde. Siempre en su línea: al lado solo cabía con «En stock» y, con
   «últimas unidades», saltaba y desalineaba los precios de la fila de tarjetas. */
.tecdoc-vs7-pcard__stock-line {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

.tecdoc-vs7-pcard__shipping {
    font-family: var(--tv-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #1B7F4C;
}

.tecdoc-vs7-pcard__form {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Mismo stepper que .va-equiv-row__qty (theme SCSS). Duplicado a propósito: la
   rejilla vive en el CSS del módulo y no debe depender del build del tema. */
.tecdoc-vs7-pcard__qty {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #E1E7EF;
    border-radius: 8px;
    overflow: hidden;
}

.tecdoc-vs7-pcard__qty-btn {
    width: 26px;
    height: 32px;
    border: none;
    background: transparent;
    color: #5A6B85;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

.tecdoc-vs7-pcard__qty-btn:hover {
    background: #F5F7FA;
    color: #1A3158;
    box-shadow: inset 0 0 0 1px #2A4A75;
}

/* #47 (s167): en el tope de stock el «+» se apaga pero sigue pulsable —
   pulsarlo muestra el aviso bajo el form (page-widgets.js + useStockLimit del tema). */
.tecdoc-vs7-pcard__qty.va-qty--maxed .tecdoc-vs7-pcard__qty-btn[data-qty-step="1"],
.tecdoc-vs7-pcard__qty.va-qty--maxed .tecdoc-vs7-pcard__qty-btn[data-qty-step="1"]:hover {
    background: transparent;
    color: #8A98AE;
    opacity: 0.45;
    cursor: not-allowed;
}

.tecdoc-vs7-pcard__qty-input {
    width: 30px;
    height: 32px;
    border: none;
    border-left: 1px solid #E1E7EF;
    border-right: 1px solid #E1E7EF;
    text-align: center;
    font-family: var(--tv-mono);
    font-size: 12px;
    color: #0F1F3A;
    -moz-appearance: textfield;
}

.tecdoc-vs7-pcard__qty-input::-webkit-outer-spin-button,
.tecdoc-vs7-pcard__qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.tecdoc-vs7-pcard__add {
    flex: 1;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 32px;
    padding: 0 10px;
    background: #ff8300;
    border: none;
    border-radius: 8px;
    color: #fff; /* s153 (#27): texto blanco sobre el naranja, petición del cliente */
    font-family: var(--tv-mono);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: background .18s ease, box-shadow .18s ease;
}

/* #53 (s179): anillo exterior navy además del oscurecido, para que el hover
   de un botón relleno también se vea por su contorno. */
.tecdoc-vs7-pcard__add:hover {
    background: #E07300;
    box-shadow: 0 0 0 2px rgba(42, 74, 117, .35);
}

.tecdoc-vs7-pcard__add svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* Sin stock: «Ver detalles» (antes «Avisar disponibilidad», retirado en s160:
   el aviso está apagado desde el #30 y el enlace no llevaba a nada). */
.tecdoc-vs7-pcard__details {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 10px;
    background: #fff;
    border: 1px solid #E1E7EF;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 600;
    color: #5A6B85;
    text-decoration: none;
}

.tecdoc-vs7-pcard__details:hover {
    border-color: #2A4A75;
    box-shadow: inset 0 0 0 1px #2A4A75;
    color: #1A3158;
    text-decoration: none;
}

/* --- Chips (ruta, facetas, universales) --- */
.tecdoc-vs7-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    background: #fff;
    border: 1.5px solid #E1E7EF;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #5A6B85;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.tecdoc-vs7-chip:hover {
    border-color: #2A4A75;
    color: #1A3158;
    box-shadow: 0 1px 3px rgba(20, 37, 68, .08);
}

.tecdoc-vs7-chip__n {
    font-family: var(--tv-mono);
    font-size: 10px;
    color: #8A98AE;
}

.tecdoc-vs7-chip--active {
    background: #1A3158;
    border-color: #1A3158;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.tecdoc-vs7-chip--active .tecdoc-vs7-chip__n { color: rgba(255, 255, 255, .7); }

/* --- Chips de ruta (explorador y vista l2) --- */
.tecdoc-vs7-path {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.tecdoc-vs7-path > .tecdoc-vs7-icon { color: #8A98AE; }

.tecdoc-vs7-path__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #fff;
    border: 1px solid #E1E7EF;
    border-radius: 6px;
    color: #5A6B85;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease;
}

.tecdoc-vs7-path__back:hover { border-color: #2A4A75; color: #1A3158; }

/* Variante plana (vista l2, #40 s161): texto en vez de píldoras. Los niveles son
   enlaces grises con separador fino, el actual en navy y negrita; el «atrás» es
   un icono sin caja integrado al principio. Las píldoras quedan para los chips
   de filtro (facetas, universales), que sí son acciones. */
.tecdoc-vs7-path--flat {
    gap: 6px;
    margin-bottom: 18px;
    font-size: 13px;
}

.tecdoc-vs7-path--flat > .tecdoc-vs7-icon {
    width: 14px;
    height: 14px;
    color: #B5BFCD;
}

.tecdoc-vs7-path--flat .tecdoc-vs7-path__back {
    width: 28px;
    height: 28px;
    margin-right: 2px;
    border-color: transparent;
    background: transparent;
    border-radius: 999px;
    color: #5A6B85;
}

.tecdoc-vs7-path--flat .tecdoc-vs7-path__back:hover {
    background: #EEF2F7;
    border-color: transparent;
    color: #1A3158;
}

.tecdoc-vs7-path--flat .tecdoc-vs7-chip {
    padding: 2px 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    font-size: 13px;
    font-weight: 500;
    color: #5A6B85;
    gap: 6px;
    transition: color .15s ease;
}

.tecdoc-vs7-path--flat .tecdoc-vs7-chip > .tecdoc-vs7-icon {
    width: 13px;
    height: 13px;
    color: #8A98AE;
}

.tecdoc-vs7-path--flat .tecdoc-vs7-chip:hover {
    box-shadow: none;
    color: #1A3158;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: #B5BFCD;
}

.tecdoc-vs7-path--flat .tecdoc-vs7-chip--active {
    background: transparent;
    border: 0;
    color: #1A3158;
    font-weight: 700;
    cursor: default;
}

/* --- Panel de rama (borde naranja) --- */
.tecdoc-vs7-panel {
    background: #fff;
    border: 1.5px solid #ff8300;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(20, 37, 68, .08), 0 1px 2px rgba(20, 37, 68, .05);
}

.tecdoc-vs7-panel__head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid #E1E7EF;
    flex-wrap: wrap;
}

.tecdoc-vs7-panel__name {
    font-family: var(--tv-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #0F1F3A;
    outline: none;
}

.tecdoc-vs7-panel__count {
    font-family: var(--tv-mono);
    font-size: 11.5px;
    letter-spacing: .04em;
    color: #8A98AE;
}

.tecdoc-vs7-panel__actions {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.tecdoc-vs7-panel__all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #0F1F3A;
    text-decoration: none;
    transition: color .15s ease;
}

.tecdoc-vs7-panel__all:hover { color: #E07300; }

.tecdoc-vs7-panel__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #fff;
    border: 1px solid #E1E7EF;
    border-radius: 6px;
    color: #5A6B85;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease;
}

.tecdoc-vs7-panel__close:hover { border-color: #2A4A75; color: #1A3158; }

.tecdoc-vs7-panel__cols {
    padding: 20px 24px;
    column-count: 3;
    column-gap: 44px;
}

.tecdoc-vs7-panel__group {
    break-inside: avoid;
    margin-bottom: 22px;
}

.tecdoc-vs7-panel__group-head {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #E1E7EF;
    padding-bottom: 8px;
    margin-bottom: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: #0F1F3A;
    line-height: 1.3;
    text-decoration: none;
}

.tecdoc-vs7-panel__group-head .tecdoc-vs7-icon { color: #E07300; }

a.tecdoc-vs7-panel__group-head:hover { color: #2A4A75; border-bottom-color: #2A4A75; cursor: pointer; }

.tecdoc-vs7-panel__group-head--static { cursor: default; }

.tecdoc-vs7-panel__link {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 5px 6px;
    margin: 0 -6px;
    border-radius: 5px;
    font-size: 13px;
    color: #2A4A75;
    text-decoration: none;
    cursor: pointer;
    line-height: 1.4;
    transition: color .12s ease, background .12s ease, box-shadow .12s ease;
}

/* #53 (s179): mismo anillo navy que las filas del árbol. */
.tecdoc-vs7-panel__link:hover {
    color: #1A3158;
    background: #F5F7FA;
    box-shadow: inset 0 0 0 1.5px #2A4A75;
}

.tecdoc-vs7-panel__link-name {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tecdoc-vs7-panel__link-name .tecdoc-vs7-icon {
    width: 11px;
    height: 11px;
    color: #8A98AE;
}

.tecdoc-vs7-panel__link-count {
    flex-shrink: 0;
    font-family: var(--tv-mono);
    font-size: 11px;
    color: #E07300;
}

/* --- Barra «Afina la búsqueda» (vista l2) --- */
/* #71 (s206): retoque a petición del cliente — rótulo como los demás de la
   página (navy con el icono naranja), chips más legibles con el recuento en
   píldora y hover/activo con el lenguaje del #53 (anillo navy al pasar,
   naranja suave con anillo naranja el activo). Las reglas van ANIDADAS bajo
   .tecdoc-vs7-facets porque .tecdoc-vs7-chip también pinta la ruta y los
   chips universales, que no cambian. */
.tecdoc-vs7-facets {
    margin: 14px 0;
    background: #fff;
    border: 1px solid #E1E7EF;
    border-radius: 12px;
    padding: 14px 18px 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
}

.tecdoc-vs7-facets__label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    font-family: var(--tv-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #2A4A75;
}

.tecdoc-vs7-facets__label > .tecdoc-vs7-icon { color: #FF8300; }

.tecdoc-vs7-facets__chips {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}

.tecdoc-vs7-facets .tecdoc-vs7-chip {
    gap: 8px;
    padding: 7px 8px 7px 14px;
    font-size: 13px;
    color: #1A3158;
    border-color: #E1E7EF;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}

.tecdoc-vs7-facets .tecdoc-vs7-chip:hover {
    background: #F5F7FA;
    border-color: #2A4A75;
    box-shadow: inset 0 0 0 .5px #2A4A75;
    color: #1A3158;
}

.tecdoc-vs7-facets .tecdoc-vs7-chip__n {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    background: #F0F3F7;
    font-size: 11px;
    font-weight: 700;
    color: #5A6B85;
}

.tecdoc-vs7-facets .tecdoc-vs7-chip--active,
.tecdoc-vs7-facets .tecdoc-vs7-chip--active:hover {
    background: #FFE4CC;
    border-color: #FF8300;
    box-shadow: inset 0 0 0 .5px #FF8300;
    color: #1A3158;
    font-weight: 700;
}

.tecdoc-vs7-facets .tecdoc-vs7-chip--active .tecdoc-vs7-chip__n {
    background: #fff;
    color: #E07300;
}

/* --- Categorías universales (chips al pie de la raíz) --- */
.tecdoc-vs7-uni-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 0 12px;
}

.tecdoc-vs7-uni-head span {
    font-family: var(--tv-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #5A6B85;
}

.tecdoc-vs7-uni-head__rule {
    flex: 1;
    height: 1px;
    background: #E1E7EF;
}

.tecdoc-vs7-uni {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tecdoc-vs7-uni .tecdoc-vs7-chip {
    padding: 8px 14px;
    border-width: 1px;
    font-size: 12.5px;
    color: #0F1F3A;
}

/* --- Responsive --- */
/* En multi-columna la foto va ARRIBA. Con la foto a la izquierda el cuerpo se
   queda en ~170-190px y el contador «N productos · M tipos de pieza» (necesita
   ~198px) parte de línea en todas las tarjetas. Solo en una columna (móvil) la
   disposición horizontal tiene ancho de sobra y además compacta la lista. */
@media (min-width: 881px) {
    .tecdoc-vs7-card { flex-direction: column; }

    .tecdoc-vs7-card__thumb {
        width: 100%;
        padding: 14px 16px 2px;
    }

    .tecdoc-vs7-card__thumb img { height: 86px; }

    .tecdoc-vs7-card__body { padding: 10px 14px 12px; }
}

/* Ese «ancho de sobra» se acaba por debajo de ~380px: el texto deja 193px a 375
   y 178 a 360, y el contador partía donde caía («…49 tipos de / pieza»). Por
   debajo de 400px va siempre en dos líneas, sin el «·» (s276, bloque B). */
@media (max-width: 399px) {
    .tecdoc-vs7-card__meta-sep {
        display: block;
        height: 0;
        overflow: hidden;
    }
}

@media (max-width: 1200px) {
    .tecdoc-vs7-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 992px) {
    .tecdoc-vs7-layout { grid-template-columns: 240px minmax(0, 1fr); }
    .tecdoc-vs7-panel__cols { column-count: 2; }
}

@media (max-width: 880px) {
    .tecdoc-vs7-layout { grid-template-columns: 1fr; }
    .tecdoc-vs7-side { position: static; }
    .tecdoc-vs7-side__tree { max-height: 42vh; }
    .tecdoc-vs7-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .tecdoc-vs7-panel__cols { column-count: 1; padding: 16px 18px; }
    .tecdoc-vs7-head__title { font-size: 20px; }
    .tecdoc-vs7-card__thumb { width: 96px; padding: 12px 4px 12px 12px; }
    .tecdoc-vs7-card__thumb img { height: 68px; }
}
