/*
Theme Name: U-TECH Base
Theme URI: https://utech.cl/
Description: Un tema completamente en blanco, construido desde cero para control total.
Author: FNAT & IA
Version: 35.1.17
Text Domain: utech-base
*/

/* ==========================================================================
   RESET CSS & TIPOGRAFÍA GLOBAL
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #fcfcfc; 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: #333333;
    line-height: 1.5;
    font-weight: 400 !important; 
    
    /* Escala Global al 90% */
    zoom: 0.9;
    -moz-transform: scale(0.9);
    -moz-transform-origin: top left;
    -o-transform: scale(0.9);
    -o-transform-origin: top left;
    -webkit-transform: scale(0.9);
    -webkit-transform-origin: top left;
}

/* Fix para Safari (que no soporta zoom bien) */
@media screen and (-webkit-min-device-pixel-ratio:0) and (min-resolution:.001dpcm) { 
  _::-webkit-full-page-media, _:future, :root body {
    transform: none; 
  }
}

.utech-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#site-content .utech-container {
    padding-top: 15px !important; 
}

/* ==========================================================================
   CABECERA PRINCIPAL Y NAVEGACIÓN
   ========================================================================== */

.header-top-bar { 
    background-color: #e6e6e6; 
    color: #333333; 
    text-align: center; 
    padding: 4px 0; 
    font-size: 13px; 
}
.header-top-bar p { margin: 0; line-height: 1.2; }
.header-main-bar { background-color: #1e293b; padding: 12px 0; }
.header-main-grid { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.header-logo { flex: 0 0 auto; }
.header-logo a { text-decoration: none; }
.logo-text { color: #ffffff; font-size: 28px; letter-spacing: -1px; font-weight: 600; }

.header-search-wrapper { flex: 1 1 auto; max-width: 800px; display: flex; align-items: center; gap: 15px; }
.header-search { flex: 1; width: 100%; }
.search-form { display: flex; background-color: #ffffff; border-radius: 4px; overflow: hidden; height: 40px; width: 100%; }
.search-field { flex: 1; border: none; padding: 0 20px; font-size: 14px; color: #333333; outline: none; }
.search-field::placeholder { color: #999999; }
.search-submit { background-color: #ffffff; border: none; padding: 0 20px; cursor: pointer; color: #1e293b; font-size: 16px; border-left: 1px solid #e0e0e0; }

.header-actions { display: flex; align-items: center; gap: 20px; color: #ffffff; }
.header-account { display: flex; align-items: center; gap: 10px; }
.header-account i { font-size: 20px; }
.account-text { display: flex; flex-direction: column; line-height: 1.2; }
.greeting { font-size: 11px; color: #cbd5e1; }
.login-link { color: #ffffff; text-decoration: none; font-size: 13px; font-weight: 500; }
.header-divider { width: 1px; height: 25px; background-color: rgba(255, 255, 255, 0.2); }
.header-cart a { color: #ffffff; text-decoration: none; display: flex; align-items: center; transition: opacity 0.2s; }
.header-cart a:hover { opacity: 0.8; }
.header-cart i { font-size: 20px; }

.mobile-menu-toggle { display: none; }

.header-bottom-bar { background-color: #ffffff; border-bottom: 1px solid #eaeaea; box-shadow: 0 1px 3px rgba(0,0,0,0.02); padding: 0; }
.primary-navigation .nav-menu { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.primary-navigation .nav-item { position: relative; }
.primary-navigation .nav-btn { display: block; padding: 4px 12px; color: #4b5563; text-decoration: none; font-size: 13px; background-color: transparent; border: 1px solid transparent; border-radius: 4px; transition: all 0.2s ease; font-weight: 500; }
.primary-navigation .nav-btn:hover { background-color: #f8f9fa; color: #1e293b; }
.primary-navigation .sub-menu { display: none; position: absolute; background-color: #ffffff; min-width: max-content; white-space: nowrap; box-shadow: 0 10px 25px rgba(0,0,0,0.05); border: 1px solid #f0f0f0; border-radius: 6px; padding: 6px; z-index: 100; flex-direction: column; }
.primary-navigation .sub-item { position: relative; width: 100%; }
.primary-navigation .sub-link { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 6px 14px; color: #4b5563; text-decoration: none; font-size: 13px; border-radius: 4px; transition: all 0.2s ease; }
.primary-navigation .sub-link:hover, .primary-navigation .sub-link:focus { background-color: #f8f9fa; color: #111827; }

@media (min-width: 993px) {
    .primary-navigation .nav-item > .sub-menu { top: 100%; left: 0; margin-top: 8px; }
    .primary-navigation .nested-menu { top: 0; left: 100%; margin-top: -7px; margin-left: 4px; }
    @keyframes fadeInMenuDesktop { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
    .primary-navigation .nav-item:hover > .sub-menu, .primary-navigation .sub-item:hover > .sub-menu { display: flex; animation: fadeInMenuDesktop 0.2s ease; }
    .primary-navigation .nav-item > .sub-menu::before { content: ''; position: absolute; top: -10px; left: 0; width: 100%; height: 10px; }
    .primary-navigation .nested-menu::after { content: ''; position: absolute; top: -10px; bottom: -10px; left: -15px; width: 15px; z-index: -1; }
}

/* ==========================================================================
   SLIDER PRINCIPAL (HERO BANNER)
   ========================================================================== */
.utech-hero-slider { position: relative; width: 100%; height: 450px; background-color: #1e293b; overflow: hidden; margin-bottom: 30px; }
.slider-container { width: 100%; height: 100%; position: relative; }
.hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; visibility: hidden; transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out; background-size: cover; background-position: center; display: flex; align-items: center; }
.hero-slide.active { opacity: 1; visibility: visible; z-index: 1; }
.slide-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%); z-index: 2; }
.slide-content-wrapper { position: relative; z-index: 3; width: 100%; }
.slide-content { max-width: 500px; color: #ffffff; }
.slide-content h2 { font-size: 40px; font-weight: 700; line-height: 1.1; margin-bottom: 15px; letter-spacing: -0.5px; }
.slide-content p { font-size: 16px; color: #e2e8f0; margin-bottom: 25px; line-height: 1.5; }
.slide-btn { display: inline-block; background-color: #10b981; color: #ffffff; padding: 12px 24px; border-radius: 4px; text-decoration: none; font-weight: 500; font-size: 14px; transition: background-color 0.3s ease, transform 0.2s ease; }
.slide-btn:hover { background-color: #059669; color: #ffffff; transform: translateY(-2px); }

.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.2); color: #ffffff; border: none; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 4; transition: background 0.3s ease; font-size: 16px; }
.slider-arrow:hover { background: rgba(255, 255, 255, 0.5); }
.prev-arrow { left: 20px; }
.next-arrow { right: 20px; }

.slider-dots-container { position: absolute; bottom: 20px; width: 100%; display: flex; justify-content: center; z-index: 4; }
.slider-dots { display: flex; gap: 8px; background: rgba(0, 0, 0, 0.4); padding: 8px 12px; border-radius: 20px; backdrop-filter: blur(4px); }
.slider-dots .dot { width: 8px; height: 8px; background-color: rgba(255, 255, 255, 0.5); border-radius: 50%; cursor: pointer; transition: all 0.3s ease; }
.slider-dots .dot.active { width: 24px; background-color: #ffffff; border-radius: 10px; }

/* ==========================================================================
   ESTILO GLOBAL: TEXTO "IVA INCLUIDO" INYECTADO SOLO POR PHP
   ========================================================================== */
.utech-iva-text { 
    font-size: 11px !important; 
    color: #9ca3af !important; 
    font-weight: 400 !important; 
    margin-top: 4px !important; 
    display: block !important;
    letter-spacing: 0px !important;
    text-transform: none !important; 
    line-height: 1 !important;
}

/* ==========================================================================
   DISEÑO MAESTRO DE TARJETAS (OFICIAL U-TECH - APLICA A TODO EL SITIO)
   Vitrina, Categorías, Búsquedas y Productos Relacionados
   ========================================================================== */
.utech-product-vitrine { margin-bottom: 0px; } 
.vitrine-title { font-size: 20px; font-weight: 400; color: #374151; margin-bottom: 20px; }
.vitrine-wrapper { position: relative; width: 100%; }

/* Contenedor Flex para la Vitrina Inicio */
.vitrine-track { display: flex; gap: 10px; overflow-x: auto; scroll-behavior: smooth; padding-bottom: 20px; }
.vitrine-track::-webkit-scrollbar { display: none; }
.vitrine-track { -ms-overflow-style: none; scrollbar-width: none; }

/* Títulos de Encabezados y Relacionados */
body.woocommerce .woocommerce-products-header { margin-bottom: 25px; }
body.woocommerce .woocommerce-products-header__title { font-size: 24px; font-weight: 500; color: #111827; }
body.woocommerce .woocommerce-result-count, 
body.woocommerce .woocommerce-ordering { display: none !important; }

body.woocommerce .related.products > h2, 
body.woocommerce .upsells.products > h2 { 
    font-size: 20px !important; 
    font-weight: 400 !important; 
    color: #374151 !important; 
    margin-bottom: 20px !important; 
    margin-top: 40px !important; 
    border-top: 1px solid #eaeaea !important; 
    padding-top: 30px !important; 
}

/* Contenedor Grid Universal (Reestablece plantillas de Categorías) */
body.woocommerce ul.products,
body.woocommerce-page ul.products { 
    display: flex !important; 
    flex-wrap: wrap !important;
    gap: 15px !important; 
    justify-content: flex-start !important;
    margin: 0 !important; 
    padding: 0 !important; 
    list-style: none !important; 
}

/* Productos Relacionados y Upsells (Carrusel horizontal siempre en desktop) */
body.woocommerce .related.products ul.products,
body.woocommerce .upsells.products ul.products {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-behavior: smooth !important;
    padding-bottom: 20px !important;
    gap: 15px !important;
}
body.woocommerce ul.products::before, body.woocommerce ul.products::after { display: none !important; }

/* 1. La Tarjeta (Borde sutil, redondeo 12px, esbelta, tamaño forzado en desktop) */
.vitrine-card,
body.woocommerce ul.products li.product,
body.woocommerce-page ul.products li.product { 
    flex: 0 0 210px !important; 
    width: 210px !important; 
    max-width: 210px !important;
    background: #ffffff !important; 
    border: 1px solid #e5e7eb !important; 
    border-radius: 12px !important; 
    transition: all 0.2s ease !important; 
    overflow: hidden !important; 
    display: flex !important; 
    flex-direction: column !important; 
    margin: 0 !important; 
    padding: 0 !important; 
    float: none !important;
    clear: both !important;
    text-align: left !important;
    position: relative !important;
    box-shadow: none !important;
}
.vitrine-card:hover,
body.woocommerce ul.products li.product:hover { 
    box-shadow: 0 6px 24px rgba(0,0,0,0.06) !important; 
    border-color: #d1d5db !important;
    transform: translateY(-2px) !important; 
}

/* 2. El Enlace (Separación interior generosa) */
.vitrine-card-link,
body.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { 
    text-decoration: none !important; 
    color: #374151 !important; 
    display: flex !important; 
    flex-direction: column !important; 
    flex-grow: 1 !important; 
    padding: 15px !important; 
    width: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
    outline: none !important;
}
body.woocommerce ul.products li.product a.woocommerce-LoopProduct-link:hover {
    color: #111827 !important;
}

/* 3. MARCA FLOTANTE (Esquina superior derecha, sutil) */
.v-card-brand-top,
body.woocommerce ul.products li.product .v-card-brand-top {
    position: absolute !important;
    top: 15px !important; 
    right: 15px !important; 
    font-size: 10px !important; 
    color: #9ca3af !important; 
    font-weight: 500 !important; 
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    z-index: 10 !important;
    background: transparent !important;
}

/* 4. Imagen de Tarjeta */
.v-card-image,
body.woocommerce ul.products li.product img { 
    height: 140px !important; 
    width: 100% !important; 
    object-fit: contain !important; 
    margin: 15px 0 15px 0 !important; 
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
}
.v-card-image img { max-height: 100%; max-width: 100%; object-fit: contain; }
.v-card-info { display: flex !important; flex-direction: column !important; flex-grow: 1 !important; justify-content: flex-start !important; }

/* 5. El SKU (Gris, limpio) */
.v-card-meta,
body.woocommerce ul.products li.product .v-card-meta { 
    display: flex !important; 
    justify-content: flex-start !important; 
    align-items: center !important; 
    margin-bottom: 6px !important; 
    width: 100% !important;
}
.v-card-sku,
body.woocommerce ul.products li.product .v-card-sku { 
    font-size: 11px !important; 
    font-weight: 400 !important; 
    color: #9ca3af !important; 
    text-transform: uppercase !important; 
    white-space: nowrap !important;
    letter-spacing: 0px !important;
}

/* 6. El Título del Producto */
.v-card-title,
body.woocommerce ul.products li.product .woocommerce-loop-product__title,
body.woocommerce ul.products li.product a h2 { 
    font-size: 13px !important; 
    color: #111827 !important; 
    font-weight: 500 !important; 
    line-height: 1.3 !important; 
    margin: 0 0 10px 0 !important; 
    display: -webkit-box !important; 
    -webkit-line-clamp: 2 !important; 
    -webkit-box-orient: vertical !important; 
    overflow: hidden !important; 
    height: 34px !important; 
    padding: 0 !important; 
    width: 100% !important;
    word-break: normal !important; 
    word-wrap: break-word !important;
    text-align: left !important;
}

/* 7. INDICADOR DE STOCK EN TARJETAS */
.v-card-stock,
body.woocommerce ul.products li.product .v-card-stock {
    font-size: 11px !important;
    color: #4b5563 !important;
    display: flex !important;
    align-items: center !important;
    margin-bottom: 12px !important; 
    font-weight: 500 !important;
}
.v-card-stock .stock-dot,
body.woocommerce ul.products li.product .v-card-stock .stock-dot {
    display: inline-block !important;
    width: 6px !important;
    height: 6px !important;
    background-color: #10b981 !important; 
    border-radius: 50% !important;
    margin-right: 6px !important;
}
.v-card-stock.out-of-stock .stock-dot,
body.woocommerce ul.products li.product .v-card-stock.out-of-stock .stock-dot {
    background-color: #ef4444 !important; 
}

/* 8. Bloque de Precios */
.v-card-price-block,
body.woocommerce ul.products li.product .price { 
    margin-top: auto !important; 
    margin-bottom: 0px !important; 
    display: flex !important; 
    flex-direction: column !important; 
    align-items: flex-start !important; 
    width: 100% !important;
    text-align: left !important;
    line-height: 1.1 !important;
    color: #111827 !important; 
}

body.woocommerce ul.products li.product .price del { 
    font-size: 13px !important; 
    color: #9ca3af !important; 
    text-decoration: line-through !important; 
    display: block !important; 
    margin-bottom: 2px !important; 
    font-weight: 400 !important; 
    opacity: 1 !important; 
    order: 1 !important; 
}
body.woocommerce ul.products li.product .price ins { 
    text-decoration: none !important; 
    background: transparent !important; 
    padding: 0 !important; 
    order: 2 !important; 
}

.v-current-price,
body.woocommerce ul.products li.product .price > .amount,
body.woocommerce ul.products li.product .price ins .amount {
    font-size: 22px !important; 
    font-weight: 600 !important; 
    color: #111827 !important; 
    order: 2 !important; 
    display: flex !important; 
    flex-direction: column !important;
}

/* Texto IVA Incluido en la Vitrina y en Loop */
.v-current-price::after,
body.woocommerce ul.products li.product .price .utech-iva-text {
    content: "IVA Incluido";
    font-size: 11px !important; 
    color: #9ca3af !important; 
    font-weight: 400 !important; 
    margin-top: 4px !important; 
    margin-left: 0 !important; 
    display: block !important;
    letter-spacing: 0px !important;
    text-transform: none !important;
    order: 3 !important; 
}

.v-discount-badge { background-color: #ef4444; color: #ffffff; font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 4px; align-self: flex-start; }
.v-old-price { font-size: 13px; color: #9ca3af; text-decoration: line-through; display: block; margin-bottom: 0px !important; font-weight: 400; }

/* 9. Destruir basura del Tema Customify */
body.woocommerce ul.products li.product .button,
body.woocommerce ul.products li.product .add_to_cart_button,
body.woocommerce ul.products li.product .added_to_cart,
body.woocommerce ul.products li.product .star-rating,
body.woocommerce ul.products li.product .onsale,
body.woocommerce ul.products li.product .woocommerce-product-rating { 
    display: none !important; 
    visibility: hidden !important;
}

/* Controles vitrina de Inicio */
.vitrine-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; background-color: #ffffff; border: 1px solid #d1d5db; border-radius: 50%; box-shadow: 0 2px 5px rgba(0,0,0,0.1); color: #374151; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10; transition: all 0.2s ease; }
.vitrine-arrow:hover { background-color: #f3f4f6; color: #111827; }
.vitrine-prev { left: -18px; }
.vitrine-next { right: -18px; }

/* ==========================================================================
   NUEVO BANNER PANORÁMICO EXTREMO A EXTREMO
   ========================================================================== */
.utech-promo-banner-full {
    width: 100%;
    background-color: #F6F8FA; 
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    border-top: 1px solid #eaeaea; 
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 60px;
    position: relative;
}
.promo-banner-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 160px; 
    padding: 15px 20px !important; 
}
.promo-content {
    flex: 1;
    max-width: 650px;
    background: rgba(255, 255, 255, 0.65); 
    backdrop-filter: blur(5px);
    padding: 20px 25px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.4);
}
.unifi-logo-text {
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 6px;
    text-transform: uppercase;
}
.unifi-logo-text strong {
    color: #111827;
    font-weight: 700;
}
.promo-content h2 {
    font-size: 22px; 
    font-weight: 600;
    color: #111827;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}
.promo-content p {
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 15px;
    line-height: 1.4;
}

.promo-specs-grid {
    display: flex;
    gap: 25px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.spec-item {
    display: flex;
    flex-direction: column;
}
.spec-item strong {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    line-height: 1.1;
}
.spec-item span {
    font-size: 10px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.promo-btn {
    display: inline-block;
    background-color: #005BEA; 
    color: #ffffff;
    padding: 8px 24px;
    border-radius: 4px; 
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: background-color 0.2s ease;
}
.promo-btn:hover {
    background-color: #004ac2;
    color: #ffffff;
}

/* ==========================================================================
   MIGAS DE PAN (Breadcrumbs)
   ========================================================================== */
.woocommerce .woocommerce-breadcrumb { max-width: 1100px; margin: 0 auto 20px auto; padding: 0; font-size: 11px; color: #9ca3af; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; display: flex; align-items: center; width: 100%; }
.woocommerce .woocommerce-breadcrumb a { color: #6b7280; text-decoration: none; transition: color 0.2s ease; }
.woocommerce .woocommerce-breadcrumb a:hover { color: #111827; }

/* ==========================================================================
   ALERTAS Y MENSAJES MINIMALISTAS
   ========================================================================== */
.woocommerce-message, .woocommerce-error, .woocommerce-info { background-color: #ffffff !important; color: #374151 !important; padding: 12px 20px !important; border-radius: 6px !important; margin-bottom: 20px !important; border: 1px solid #e5e7eb !important; border-left: 4px solid #10b981 !important; font-size: 13px !important; display: flex !important; align-items: center !important; justify-content: space-between !important; flex-wrap: wrap !important; gap: 15px !important; width: 100% !important; box-shadow: 0 2px 8px rgba(0,0,0,0.02) !important; line-height: 1.5 !important; list-style: none !important; }
.woocommerce-message::before, .woocommerce-error::before, .woocommerce-info::before { display: none !important; }
.woocommerce-error { border-left-color: #ef4444 !important; } 
.woocommerce-info { border-left-color: #3b82f6 !important; }  
.woocommerce-message a.restore-item, .woocommerce-message a.button, .woocommerce-error a.button, .woocommerce-info a.button { background-color: #f8f9fa !important; color: #111827 !important; padding: 6px 14px !important; border-radius: 4px !important; font-size: 12px !important; font-weight: 500 !important; text-decoration: none !important; border: 1px solid #e5e7eb !important; transition: all 0.2s ease !important; margin: 0 !important; }
.woocommerce-message a.restore-item:hover, .woocommerce-message a.button:hover, .woocommerce-error a.button:hover, .woocommerce-info a.button:hover { background-color: #e5e7eb !important; color: #000000 !important; }

/* ==========================================================================
   🔥 CARRITO DE COTIZACIÓN (DESKTOP) 🔥
   ========================================================================== */
.woocommerce-cart .woocommerce { display: grid !important; grid-template-columns: 63% 1fr !important; gap: 40px !important; max-width: 1100px; margin: 10px auto 80px auto; align-items: start !important; }
.woocommerce-notices-wrapper { grid-column: 1 / -1 !important; width: 100% !important; }
.woocommerce-cart .woocommerce-cart-form { grid-column: 1 / 2 !important; width: 100% !important; background: #ffffff !important; border-radius: 8px !important; border: 1px solid #e5e7eb !important; padding: 30px !important; box-shadow: 0 2px 8px rgba(0,0,0,0.02) !important; }
.woocommerce table.shop_table.cart { border: none !important; border-radius: 0 !important; margin-bottom: 0 !important; border-collapse: collapse !important; width: 100%; }
.woocommerce table.shop_table.cart th { border: none !important; border-bottom: 1px solid #e5e7eb !important; padding: 0 10px 10px 10px !important; font-size: 11px !important; color: #9ca3af !important; font-weight: 600 !important; text-transform: uppercase !important; letter-spacing: 1px !important; }
.woocommerce table.shop_table.cart td { border: none !important; border-bottom: 1px solid #f3f4f6 !important; padding: 15px 10px !important; vertical-align: middle !important; }
.woocommerce table.shop_table.cart tr:last-child td { border-bottom: none !important; }
.woocommerce table.shop_table.cart td.product-remove { width: 25px; padding-left: 0 !important; }
.woocommerce table.shop_table.cart td.product-remove a.remove { color: #d1d5db !important; font-size: 18px !important; font-weight: 300 !important; background: transparent !important; text-decoration: none !important; transition: all 0.2s ease !important; }
.woocommerce table.shop_table.cart td.product-remove a.remove:hover { color: #ef4444 !important; background: transparent !important; }
.woocommerce table.shop_table.cart td.product-thumbnail { width: 80px; }
.woocommerce table.shop_table.cart td.product-thumbnail img { width: 65px !important; height: auto !important; border-radius: 4px !important; border: 1px solid #f0f0f0 !important; background: #fff; padding: 2px; }
.woocommerce table.shop_table.cart td.product-name a { color: #374151 !important; font-weight: 500 !important; text-decoration: none !important; font-size: 13px !important; display: block; margin-bottom: 4px; line-height: 1.4; }
.woocommerce table.shop_table.cart td.product-price, .woocommerce table.shop_table.cart td.product-subtotal { color: #111827 !important; font-weight: 500 !important; font-size: 13px !important; }
.woocommerce table.shop_table.cart .quantity input.qty { width: 50px !important; height: 36px !important; border: 1px solid #e5e7eb !important; border-radius: 4px !important; text-align: center; font-size: 13px !important; color: #111827 !important; background-color: #ffffff !important; outline: none !important; box-shadow: none !important; }
.woocommerce table.shop_table.cart .quantity input.qty:focus { border-color: #1e293b !important; }
.woocommerce-cart .actions .button[name="update_cart"], .woocommerce-cart .actions .coupon { display: none !important; }
.woocommerce-cart .actions { border: none !important; padding: 0 !important; }
.woocommerce-cart .cart-collaterals { grid-column: 2 / 3 !important; width: 100% !important; min-width: unset !important; }
.woocommerce .cart-collaterals .cart_totals { width: 100%; background: #ffffff !important; border-radius: 6px !important; padding: 20px !important; border: 1px solid #e5e7eb !important; box-shadow: 0 2px 8px rgba(0,0,0,0.02) !important; }
.woocommerce .cart-collaterals .cart_totals h2 { font-size: 0 !important; margin-bottom: 15px !important; padding-bottom: 12px !important; border-bottom: 1px solid #f3f4f6 !important; }
.woocommerce .cart-collaterals .cart_totals h2::before { content: 'Resumen de Cotización'; font-size: 14px !important; font-weight: 600 !important; text-transform: uppercase !important; color: #111827 !important; letter-spacing: 0.5px !important; }
.woocommerce .cart-collaterals .cart_totals table.shop_table th, .woocommerce .cart-collaterals .cart_totals table.shop_table td { padding: 10px 0 !important; border-bottom: 1px solid #f3f4f6 !important; background: transparent !important; }
.woocommerce .cart-collaterals .cart_totals table.shop_table tr.order-total th { font-size: 14px !important; font-weight: 500 !important; color: #6b7280 !important; border-bottom: none !important; }
.woocommerce .cart-collaterals .cart_totals table.shop_table tr.order-total td { border-bottom: none !important; font-size: 18px !important; font-weight: 600 !important; color: #111827 !important; text-align: right !important; }
.woocommerce-shipping-totals, .shipping, .woocommerce-shipping-destination, .cart-subtotal { display: none !important; }
.woocommerce .cart-collaterals .checkout-button, .woocommerce a.checkout-button, .woocommerce-cart .wc-proceed-to-checkout a.checkout-button { display: flex !important; align-items: center !important; justify-content: center !important; width: 100% !important; height: 42px !important; background-color: #1e293b !important; color: #ffffff !important; border-radius: 4px !important; font-size: 13px !important; font-weight: 500 !important; letter-spacing: 0.5px !important; text-decoration: none !important; transition: all 0.2s ease !important; margin-top: 15px !important; border: none !important; box-shadow: none !important; }
.woocommerce .cart-collaterals .checkout-button:hover, .woocommerce a.checkout-button:hover, .woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover { background-color: #0f172a !important; transform: translateY(-1px) !important; box-shadow: 0 4px 10px rgba(15, 23, 42, 0.1) !important; }

/* ==========================================================================
   DISEÑO DE PRODUCTO INDIVIDUAL
   ========================================================================== */
.woocommerce div.product { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; max-width: 1100px; margin: 0 auto 80px auto; gap: 50px; }
.woocommerce div.product div.images { width: 45%; position: relative; }
.woocommerce div.product div.images img { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid #e5e7eb; background-color: #fff; padding: 20px;}
.woocommerce-product-gallery__trigger { position: absolute; top: 15px; right: 15px; background: #ffffff; border-radius: 50%; width: 36px; height: 36px; display: flex !important; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,0.1); z-index: 10; text-indent: -9999px; }
.woocommerce-product-gallery__trigger::before { content: "\f00e"; font-family: "Font Awesome 6 Free"; font-weight: 900; text-indent: 0; color: #333; font-size: 14px; display: block; }
.woocommerce div.product div.images .flex-control-thumbs { display: flex; gap: 10px; margin-top: 15px; padding: 0; overflow-x: auto; scrollbar-width: none; }
.woocommerce div.product div.images .flex-control-thumbs::-webkit-scrollbar { display: none; }
.woocommerce div.product div.images .flex-control-thumbs li { list-style: none; flex: 0 0 70px; }
.woocommerce div.product div.images .flex-control-thumbs img { border-radius: 4px; cursor: pointer; opacity: 0.5; transition: all 0.3s ease; border: 1px solid transparent; }
.woocommerce div.product div.images .flex-control-thumbs img:hover, .woocommerce div.product div.images .flex-control-thumbs img.flex-active { opacity: 1; border-color: #1e293b; }
.woocommerce div.product div.summary { width: 50%; display: flex; flex-direction: column; }
.woocommerce div.product .product_title { font-size: 28px; font-weight: 500 !important; color: #111827; margin-bottom: 15px; line-height: 1.3; letter-spacing: -0.5px; }
.woocommerce div.product .product_meta { font-size: 13px; color: #6b7280; display: flex; flex-direction: column; gap: 6px; margin-bottom: 25px; padding-bottom: 25px; border-bottom: 1px solid #eaeaea; }
.woocommerce div.product .product_meta a { color: #1e293b; text-decoration: none; font-weight: 400 !important; }
.woocommerce div.product .product_meta span.sku_wrapper, .woocommerce div.product .product_meta span.posted_in { display: flex; gap: 5px; }
.utech-action-box { background: transparent; border: none; padding: 0; display: flex; flex-direction: column; }
.woocommerce div.product p.price { font-size: 32px; color: #111827; font-weight: 400 !important; margin-bottom: 20px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.woocommerce div.product p.price .utech-iva-text { font-size: 12px !important; color: #9ca3af !important; font-weight: 400 !important; margin-left: 5px; letter-spacing: 0px !important; text-transform: none !important; display: inline-block; margin-top: 0 !important; }
.woocommerce div.product .stock { color: #374151; font-size: 13px; background: transparent; padding: 0; display: inline-flex; align-items: center; margin-bottom: 20px; font-weight: 400 !important; border: none; letter-spacing: 0.3px; }
.woocommerce div.product .stock::before { content: ''; display: inline-block; width: 6px; height: 6px; background-color: #10b981; border-radius: 50%; margin-right: 8px; box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15); }
.woocommerce div.product form.cart { display: flex; align-items: center; gap: 15px; margin: 0; padding: 0; border: none; }
.woocommerce div.product form.cart .quantity { display: flex; align-items: center; }
.woocommerce div.product form.cart .quantity input.qty { width: 60px; height: 42px; border: 1px solid #d1d5db; border-radius: 4px; text-align: center; font-size: 14px; color: #111827; background-color: #ffffff; outline: none; transition: border 0.3s; }
.woocommerce div.product form.cart .quantity input.qty:focus { border-color: #1e293b; }
.woocommerce div.product form.cart .button { display: flex; align-items: center; justify-content: center; flex-grow: 1; height: 42px; background-color: #1e293b; color: #ffffff !important; border-radius: 4px; font-size: 14px; font-weight: 500 !important; letter-spacing: 0.5px; border: none; cursor: pointer; transition: all 0.3s ease; }
.woocommerce div.product form.cart .button:hover { background-color: #0f172a; transform: translateY(-1px); box-shadow: 0 4px 10px rgba(15, 23, 42, 0.1); }
.woocommerce div.product form.cart .quantity input[type="number"]::-webkit-inner-spin-button, .woocommerce div.product form.cart .quantity input[type="number"]::-webkit-outer-spin-button { opacity: 1; }
.woocommerce div.product .woocommerce-tabs { display: none !important; }

/* ==========================================================================
   🔥 PANTALLA DE INICIO DE SESIÓN Y REGISTRO (ESTILO TARJETA MINIMALISTA) 🔥
   ========================================================================== */

body.woocommerce-account:not(.logged-in) .u-column2 { display: none !important; }
body.woocommerce-account:not(.logged-in).show-register .u-column1 { display: none !important; }
body.woocommerce-account:not(.logged-in).show-register .u-column2 { display: block !important; }

body.woocommerce-account:not(.logged-in) .woocommerce {
    max-width: 400px !important; 
    margin: 40px auto 80px auto !important; 
    display: block !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    padding: 30px 40px 40px 40px !important; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
}
body.woocommerce-account:not(.logged-in) .u-columns { display: flex !important; flex-direction: column !important; gap: 0 !important; position: relative !important; }
body.woocommerce-account:not(.logged-in) .u-column1,
body.woocommerce-account:not(.logged-in) .u-column2 { width: 100% !important; float: none !important; transition: all 0.3s ease !important; }
body.woocommerce-account:not(.logged-in) h2 { font-size: 24px !important; font-weight: 500 !important; color: #111827 !important; margin-top: 0 !important; margin-bottom: 30px !important; text-align: left !important; border: none !important; padding: 0 !important; }
body.woocommerce-account:not(.logged-in) form.login,
body.woocommerce-account:not(.logged-in) form.register { border: none !important; padding: 0 !important; background: transparent !important; box-shadow: none !important; border-radius: 0 !important; }
body.woocommerce-account:not(.logged-in) form .form-row { margin-bottom: 25px !important; }
body.woocommerce-account:not(.logged-in) form label { font-size: 13px !important; color: #374151 !important; font-weight: 500 !important; margin-bottom: 8px !important; display: block !important; }

body.woocommerce-account:not(.logged-in) form input[type="text"],
body.woocommerce-account:not(.logged-in) form input[type="email"],
body.woocommerce-account:not(.logged-in) form input[type="password"] {
    border: none !important; border-bottom: 1px solid #d1d5db !important; border-radius: 0 !important; padding: 10px 0 !important; background: transparent !important; height: auto !important; box-shadow: none !important; font-size: 15px !important; color: #111827 !important; width: 100% !important;
}
body.woocommerce-account:not(.logged-in) form input[type="text"]:focus,
body.woocommerce-account:not(.logged-in) form input[type="email"]:focus,
body.woocommerce-account:not(.logged-in) form input[type="password"]:focus { border-bottom: 2px solid #1e293b !important; box-shadow: none !important; background: transparent !important; outline: none !important; }

body.woocommerce-account:not(.logged-in) form .woocommerce-form__label-for-checkbox { display: flex !important; align-items: center !important; gap: 8px !important; font-size: 13px !important; color: #6b7280 !important; margin-top: 10px !important; margin-bottom: 25px !important; }
body.woocommerce-account:not(.logged-in) form input[type="checkbox"] { accent-color: #1e293b !important; width: 16px !important; height: 16px !important; }
body.woocommerce-account:not(.logged-in) form.register p.woocommerce-privacy-policy-text { font-size: 11px !important; color: #9ca3af !important; line-height: 1.4 !important; margin-bottom: 20px !important; }
body.woocommerce-account:not(.logged-in) form .woocommerce-button { width: 100% !important; background-color: #1e293b !important; color: #ffffff !important; padding: 15px !important; font-size: 16px !important; font-weight: 500 !important; border-radius: 6px !important; margin-top: 10px !important; margin-bottom: 20px !important; transition: all 0.2s ease !important; border: none !important; }
body.woocommerce-account:not(.logged-in) form .woocommerce-button:hover { background-color: #0f172a !important; transform: translateY(-1px) !important; }
body.woocommerce-account:not(.logged-in) form .woocommerce-LostPassword { text-align: center !important; margin-top: 15px !important; }
body.woocommerce-account:not(.logged-in) form .woocommerce-LostPassword a { color: #4b5563 !important; font-size: 14px !important; text-decoration: underline !important; }
body.woocommerce-account:not(.logged-in) form .woocommerce-LostPassword a:hover { color: #111827 !important; }

/* ==========================================================================
   🔥 DASHBOARD B2B: ÁREA "MI CUENTA" Y FORMULARIOS GLOBALES 🔥
   ========================================================================== */
body.woocommerce-account.logged-in .woocommerce { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; gap: 30px !important; max-width: 1100px !important; margin: 0 auto 60px auto !important; align-items: flex-start !important; }
body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation { width: 250px !important; flex: 0 0 250px !important; float: none !important; }
body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation ul { list-style: none !important; padding: 0 !important; margin: 0 !important; background: #ffffff !important; border: 1px solid #e5e7eb !important; border-radius: 12px !important; overflow: hidden !important; box-shadow: 0 2px 8px rgba(0,0,0,0.02) !important; }
body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation ul li { border-bottom: 1px solid #f3f4f6 !important; margin: 0 !important; padding: 0 !important; }
body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation ul li:last-child { border-bottom: none !important; }
body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation ul li a { display: block !important; padding: 15px 20px !important; color: #4b5563 !important; text-decoration: none !important; font-size: 14px !important; font-weight: 500 !important; transition: all 0.2s ease !important; }
body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation ul li a:hover { background-color: #f9fafb !important; color: #111827 !important; }
body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation ul li.is-active a { background-color: #1e293b !important; color: #ffffff !important; }
body.woocommerce-account.logged-in .woocommerce-MyAccount-content { width: auto !important; flex: 1 1 auto !important; float: none !important; background: #ffffff !important; border: 1px solid #e5e7eb !important; border-radius: 12px !important; padding: 30px !important; box-shadow: 0 2px 8px rgba(0,0,0,0.02) !important; }
.woocommerce-MyAccount-content h3, .woocommerce-MyAccount-content h2 { font-size: 20px !important; font-weight: 500 !important; color: #111827 !important; margin-top: 0 !important; margin-bottom: 20px !important; padding-bottom: 15px !important; border-bottom: 1px solid #eaeaea !important; }
.woocommerce-MyAccount-content p { color: #4b5563 !important; font-size: 14px !important; margin-bottom: 15px !important; line-height: 1.5 !important; }

/* ----------------------------------------------------
   ESTILOS DE FORMULARIO MAESTRO (APLICA A TODO "MI CUENTA")
   ---------------------------------------------------- */
.woocommerce-account form label { font-size: 13px !important; color: #374151 !important; font-weight: 500 !important; margin-bottom: 8px !important; display: block !important; }
.woocommerce-account form input[type="text"],
.woocommerce-account form input[type="email"],
.woocommerce-account form input[type="password"],
.woocommerce-account form input[type="tel"],
.woocommerce-account form select { border: none !important; border-bottom: 1px solid #d1d5db !important; border-radius: 0 !important; padding: 10px 0 !important; background: transparent !important; height: auto !important; box-shadow: none !important; font-size: 15px !important; color: #111827 !important; width: 100% !important; transition: all 0.2s ease !important; }
.woocommerce-account form input[type="text"]:focus,
.woocommerce-account form input[type="email"]:focus,
.woocommerce-account form input[type="password"]:focus,
.woocommerce-account form input[type="tel"]:focus,
.woocommerce-account form select:focus { border-bottom: 2px solid #1e293b !important; box-shadow: none !important; background: transparent !important; outline: none !important; }
.woocommerce-account form .utech-readonly,
.woocommerce-account form select[disabled] { border-bottom: 1px dashed #e5e7eb !important; color: #9ca3af !important; pointer-events: none !important; background: transparent !important; }
.woocommerce-account form span.description, .woocommerce-account form em { display: none !important; }

.woocommerce-account.logged-in form.edit-account,
.woocommerce-account.logged-in form .woocommerce-address-fields__field-wrapper { display: flex; flex-wrap: wrap; gap: 20px; }
.woocommerce-account.logged-in form.edit-account .form-row,
.woocommerce-account.logged-in form .woocommerce-address-fields__field-wrapper .form-row { margin: 0 !important; }
.woocommerce-account.logged-in form.edit-account .form-row-first,
.woocommerce-account.logged-in form.edit-account .form-row-last,
.woocommerce-account.logged-in form .woocommerce-address-fields__field-wrapper .form-row-first,
.woocommerce-account.logged-in form .woocommerce-address-fields__field-wrapper .form-row-last { width: calc(50% - 10px) !important; }
.woocommerce-account.logged-in form.edit-account .form-row-wide,
.woocommerce-account.logged-in form .woocommerce-address-fields__field-wrapper .form-row-wide { width: 100% !important; }
.u-column1.col-1.woocommerce-Address { width: 100% !important; float: none !important; }
.woocommerce-account.logged-in form.edit-account fieldset { width: 100%; background: #f8f9fa !important; border: 1px solid #eaeaea !important; border-radius: 8px !important; padding: 25px !important; margin-top: 10px !important; }
.woocommerce-account.logged-in form.edit-account fieldset legend { font-size: 16px !important; font-weight: 600 !important; color: #111827 !important; margin-bottom: 15px !important; padding: 0 !important; }

.woocommerce-account form .woocommerce-button,
.woocommerce-account form button.button,
.woocommerce-account form .utech-btn-editar { background-color: #1e293b !important; color: #ffffff !important; padding: 12px 24px !important; border: none !important; border-radius: 6px !important; font-size: 14px !important; font-weight: 500 !important; cursor: pointer !important; transition: all 0.2s ease !important; display: inline-block !important; margin-top: 15px !important; }
.woocommerce-account form .woocommerce-button:hover,
.woocommerce-account form button.button:hover,
.woocommerce-account form .utech-btn-editar:hover { background-color: #0f172a !important; transform: translateY(-1px) !important; }

/* ==========================================================================
   🔥 CHECKOUT B2B (DESKTOP) - DISEÑO EN DOS COLUMNAS SEGURO 🔥
   ========================================================================== */
/* 1. Contenedor Principal: Flexbox seguro */
.woocommerce-checkout form.checkout {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: flex-start !important; 
    max-width: 1100px;
    margin: 40px auto 80px auto !important;
}

/* Asignación de áreas */
.woocommerce-NoticeGroup { width: 100% !important; margin-bottom: 20px !important; }
#customer_details { width: 55% !important; display: flex !important; flex-direction: column !important; gap: 40px !important; }
#order_review_heading { width: 40% !important; margin-top: 0 !important; margin-bottom: 15px !important; }
#order_review { width: 40% !important; margin-top: 0 !important; }

.woocommerce-checkout form.checkout::before,
.woocommerce-checkout form.checkout::after { display: none !important; }

.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2 { width: 100% !important; max-width: 100% !important; float: none !important; padding: 0 !important; margin: 0 !important; }

.woocommerce-checkout h3 { font-size: 18px !important; font-weight: 500 !important; color: #111827 !important; margin-bottom: 20px !important; padding-bottom: 12px !important; border-bottom: 1px solid #eaeaea !important; }

.woocommerce-checkout form .form-row { margin-bottom: 20px !important; padding: 0 !important; float: none !important; }
.woocommerce-checkout form .form-row::after { content: ""; display: table; clear: both; }
.woocommerce-checkout form .form-row-first, .woocommerce-checkout form .form-row-last { width: calc(50% - 10px) !important; }
.woocommerce-checkout form .form-row-first { float: left !important; }
.woocommerce-checkout form .form-row-last { float: right !important; }
.woocommerce-checkout form .form-row-wide { width: 100% !important; clear: both !important; }
.woocommerce-checkout form label { font-size: 13px !important; color: #4b5563 !important; font-weight: 500 !important; margin-bottom: 8px !important; display: block !important; }

.woocommerce-checkout form input.input-text,
.woocommerce-checkout form select { width: 100% !important; height: 44px !important; padding: 0 12px !important; border: 1px solid #d1d5db !important; border-radius: 6px !important; background-color: #ffffff !important; font-size: 14px !important; color: #111827 !important; transition: all 0.2s ease !important; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important; }
.woocommerce-checkout form textarea { width: 100% !important; min-height: 80px !important; padding: 12px !important; border: 1px solid #d1d5db !important; border-radius: 6px !important; background-color: #ffffff !important; font-size: 14px !important; color: #111827 !important; transition: all 0.2s ease !important; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important; resize: vertical; }
.woocommerce-checkout form input.input-text:focus, .woocommerce-checkout form textarea:focus, .woocommerce-checkout form select:focus { border-color: #1e293b !important; outline: none !important; box-shadow: 0 0 0 3px rgba(30, 41, 59, 0.1) !important; }

#order_review { background-color: #ffffff !important; border: 1px solid #e5e7eb !important; border-radius: 8px !important; padding: 25px !important; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important; }
#order_review table.shop_table { border: none !important; margin: 0 !important; width: 100% !important; }
#order_review table.shop_table th { font-size: 12px !important; color: #6b7280 !important; text-transform: uppercase !important; padding: 10px 0 !important; border-bottom: 1px solid #e5e7eb !important; }
#order_review table.shop_table td { padding: 15px 0 !important; border-bottom: 1px solid #f3f4f6 !important; color: #374151 !important; font-size: 14px !important; vertical-align: top; }
#order_review table.shop_table tfoot th, #order_review table.shop_table tfoot td { border-top: 1px solid #e5e7eb !important; border-bottom: none !important; padding-top: 20px !important; }
#order_review table.shop_table tr.order-total th { color: #111827 !important; font-size: 15px !important; }
#order_review table.shop_table tr.order-total td { color: #111827 !important; font-size: 18px !important; font-weight: 600 !important; }

/* Ocultar Pagos pero dejar Botón */
.woocommerce-checkout-payment { background: transparent !important; }
.woocommerce-checkout-payment ul.payment_methods, .woocommerce-checkout-payment .payment_box, .woocommerce-checkout-payment .wc_payment_methods, .woocommerce-terms-and-conditions-wrapper { display: none !important; }
#payment { background: transparent !important; padding: 0 !important; border-radius: 0 !important; }
#payment div.form-row { padding: 0 !important; border: none !important; }
#place_order { width: 100% !important; background-color: #1e293b !important; color: #ffffff !important; padding: 14px !important; font-size: 15px !important; font-weight: 500 !important; border-radius: 6px !important; border: none !important; margin-top: 20px !important; transition: background-color 0.2s ease, transform 0.2s ease !important; cursor: pointer !important; display: block !important; }
#place_order:hover { background-color: #0f172a !important; transform: translateY(-1px); }

/* ==========================================================================
   RESPONSIVE Y MÓVILES (REGLA DE ORO: MINIMALISTA, PROFESIONAL, ORDENADO)
   ========================================================================== */
@media (max-width: 992px) {
    .header-main-grid { flex-wrap: wrap; gap: 15px; }
    .account-text { display: none; } 
    .header-logo { order: 1; }
    .header-actions { order: 2; margin-left: auto; }
    
    .header-search-wrapper { order: 3; flex: 1 1 100%; max-width: 100%; display: flex; gap: 12px; align-items: center; }
    .header-search { flex: 1; width: 100%; }
    .header-top-bar { font-size: 12px; padding: 6px 10px; }
    .header-bottom-bar { padding: 0 !important; }
    
    .mobile-menu-toggle { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; background-color: transparent; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 4px; font-size: 16px; color: #ffffff; cursor: pointer; transition: all 0.2s ease; }
    .mobile-menu-toggle:hover { background-color: rgba(255, 255, 255, 0.1); }
    .primary-navigation .nav-menu { display: none; flex-direction: column; width: 100%; margin-top: 0; background-color: #ffffff; border: 1px solid #eaeaea; border-radius: 6px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); overflow: hidden; }
    .primary-navigation .nav-menu.is-open { display: flex; animation: slideDownMenu 0.3s ease forwards; }

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

    .primary-navigation .nav-item { width: 100%; border-bottom: 1px solid #f0f0f0; }
    .primary-navigation .nav-item:last-child { border-bottom: none; }
    .primary-navigation .nav-btn { padding: 10px 15px; width: 100%; text-align: left; border-radius: 0; display: flex; justify-content: space-between; font-size: 12px; }
    
    .primary-navigation .nav-item > .sub-menu { position: static; transform: none; box-shadow: none; border: none; border-top: 1px solid #eeeeee; border-radius: 0; margin: 0; padding: 4px 0 0 15px; width: 100%; }
    .primary-navigation .nested-menu { position: static; transform: none; box-shadow: none; border: none; border-top: 1px solid #eeeeee; border-radius: 0; margin: 4px 0 0 15px; width: 100%; }

    @keyframes fadeInMenuMobile { from { opacity: 0; transform: translate(-5px, 0); } to { opacity: 1; transform: translate(0, 0); } }
    @keyframes slideDownMobile { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

    .primary-navigation .nav-item.mobile-active > .sub-menu { display: flex; animation: fadeInMenuMobile 0.2s ease-in-out; }
    .primary-navigation .sub-item.mobile-active > .nested-menu { display: flex; animation: slideDownMobile 0.2s ease-in-out; }
    .primary-navigation .sub-item.mobile-active > .sub-link i { transform: rotate(90deg); transition: transform 0.2s ease; }
    
    .utech-hero-slider { height: 380px; }
    .vitrine-arrow { display: none !important; } 
    
    .woocommerce .woocommerce-breadcrumb { display: none !important; }

    /* ----------------------------------------------------
       🔥 TARJETAS DE PRODUCTOS EN MÓVIL (CUADRÍCULA COMPACTA DE 2 COLUMNAS) 🔥
       ---------------------------------------------------- */
    /* Este es el bloque que arregla el estiramiento de las tarjetas en la página de tienda y archivo */
    body.woocommerce ul.products,
    body.woocommerce-page ul.products {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 0 10px !important;
        justify-content: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    body.woocommerce ul.products li.product,
    body.woocommerce-page ul.products li.product { 
        width: 100% !important; 
        max-width: 100% !important;
        flex: none !important; /* Desactivar flex-basis fijo del escritorio */
        margin: 0 !important;
    }

    /* Ajustar las proporciones internas para que quepan perfecto en la pantalla pequeña */
    .vitrine-card-link,
    body.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
        padding: 12px !important; /* Menos espacio para no ahogar la foto */
    }

    .v-card-brand-top,
    body.woocommerce ul.products li.product .v-card-brand-top {
        top: 12px !important;
        right: 12px !important;
        font-size: 9px !important;
    }

    .v-card-image,
    body.woocommerce ul.products li.product img {
        height: 110px !important; /* Imagen un poco más compacta */
        margin: 10px 0 !important;
    }

    .v-card-title,
    body.woocommerce ul.products li.product .woocommerce-loop-product__title,
    body.woocommerce ul.products li.product a h2 {
        font-size: 12px !important;
        height: 32px !important; /* Exactamente para 2 líneas */
        line-height: 1.3 !important;
    }

    .v-card-sku,
    body.woocommerce ul.products li.product .v-card-sku {
        font-size: 10px !important;
    }

    .v-card-stock,
    body.woocommerce ul.products li.product .v-card-stock {
        font-size: 10px !important;
        margin-bottom: 8px !important;
    }

    .v-current-price,
    body.woocommerce ul.products li.product .price > .amount,
    body.woocommerce ul.products li.product .price ins .amount {
        font-size: 18px !important; /* Precio ligeramente más chico para que no rompa */
    }

    .v-current-price::after,
    body.woocommerce ul.products li.product .price .utech-iva-text {
        font-size: 10px !important;
    }

    /* ----------------------------------------------------
       CARRUSELES (VITRINA, RELACIONADOS) - DESLIZABLE HORIZONTAL EN MÓVIL
       ---------------------------------------------------- */
    .vitrine-track,
    body.woocommerce .related.products ul.products, 
    body.woocommerce .upsells.products ul.products { 
        display: flex !important; 
        flex-wrap: nowrap !important; 
        overflow-x: auto !important; 
        scroll-behavior: smooth !important; 
        gap: 10px !important; 
        -webkit-overflow-scrolling: touch !important; 
        padding: 0 20px 20px 20px !important; 
        margin: 0 -20px !important; /* Quita los márgenes para deslizar fluido */
        width: calc(100% + 40px) !important; 
    }
    
    .vitrine-track::-webkit-scrollbar,
    body.woocommerce .related.products ul.products::-webkit-scrollbar, 
    body.woocommerce .upsells.products ul.products::-webkit-scrollbar { 
        display: none !important; 
    }
    
    /* El ancho de la tarjeta cuando estamos deslizando (no en el grid principal) */
    .vitrine-card,
    body.woocommerce .related.products ul.products li.product,
    body.woocommerce .upsells.products ul.products li.product { 
        flex: 0 0 160px !important; 
        width: 160px !important; 
        max-width: 160px !important;
    }

    /* ----------------------------------------------------
       🔥 CARRITO MÓVIL (CART MOBILE) - RECONSTRUIDO LIMPIO 🔥
       ---------------------------------------------------- */
    .woocommerce-cart .woocommerce { display: block !important; margin-bottom: 40px; }
    .woocommerce-cart .woocommerce-cart-form { width: 100% !important; padding: 0 !important; border: none !important; box-shadow: none !important; background: transparent !important; }
    .woocommerce table.shop_table_responsive thead { display: none !important; }
    
    .woocommerce table.shop_table_responsive tbody tr.cart_item {
        display: grid !important;
        grid-template-columns: 90px 1fr !important;
        grid-template-areas: 
            "thumb name"
            "thumb price"
            "thumb qty"
            "thumb total";
        gap: 5px 15px !important;
        align-items: center !important;
        background: #ffffff !important;
        border: 1px solid #eaeaea !important;
        border-radius: 8px !important;
        padding: 15px !important;
        margin-bottom: 15px !important;
        position: relative !important;
        box-shadow: 0 2px 5px rgba(0,0,0,0.02) !important;
    }
    .woocommerce table.shop_table_responsive td { 
        display: flex !important; align-items: center !important; justify-content: flex-start !important; 
        border: none !important; padding: 0 !important; text-align: left !important;
    }
    
    /* ELIMINA TODOS LOS TEXTOS INVISIBLES FEOS DEL TEMA PADRE */
    .woocommerce table.shop_table_responsive td::before { display: none !important; }
    
    .woocommerce table.shop_table_responsive td.product-remove { 
        position: absolute !important; top: -10px !important; right: -10px !important; 
        z-index: 10 !important; width: 30px !important; height: 30px !important; 
        background: #ef4444 !important; border-radius: 50% !important; justify-content: center !important; 
    }
    .woocommerce table.shop_table_responsive td.product-remove a.remove { 
        color: #ffffff !important; font-size: 22px !important; line-height: 28px !important; 
        height: 30px !important; width: 30px !important; display: block !important; 
        text-align: center !important; font-weight: 400 !important; 
    }
    .woocommerce table.shop_table_responsive td.product-thumbnail { grid-area: thumb !important; align-items: flex-start !important; height: 100%; }
    .woocommerce table.shop_table_responsive td.product-thumbnail img { width: 100% !important; max-width: 90px !important; border: 1px solid #f0f0f0 !important; border-radius: 6px !important; }
    .woocommerce table.shop_table_responsive td.product-name { grid-area: name !important; align-items: flex-start !important; }
    .woocommerce table.shop_table_responsive td.product-name a { font-size: 13px !important; font-weight: 500 !important; color: #111827 !important; line-height: 1.3 !important; }
    
    .woocommerce table.shop_table_responsive td.product-price { grid-area: price !important; }
    .woocommerce table.shop_table_responsive td.product-price::before { content: "Precio:" !important; display: inline-block !important; font-size: 11px !important; color: #9ca3af !important; text-transform: uppercase !important; margin-right: 5px !important; }
    
    .woocommerce table.shop_table_responsive td.product-quantity { grid-area: qty !important; }
    .woocommerce table.shop_table_responsive td.product-quantity::before { content: "Cant:" !important; display: inline-block !important; font-size: 11px !important; color: #9ca3af !important; text-transform: uppercase !important; margin-right: 10px !important; }
    .woocommerce table.shop_table.cart .quantity input.qty { width: 50px !important; height: 32px !important; font-size: 13px !important; }
    
    .woocommerce table.shop_table_responsive td.product-subtotal { grid-area: total !important; }
    .woocommerce table.shop_table_responsive td.product-subtotal::before { content: "Total:" !important; display: inline-block !important; font-size: 11px !important; color: #9ca3af !important; text-transform: uppercase !important; margin-right: 5px !important; }
    .woocommerce table.shop_table_responsive td.product-subtotal .amount { font-weight: 600 !important; color: #111827 !important; }

    /* ----------------------------------------------------
       PÁGINA DE PRODUCTO INDIVIDUAL EN MÓVIL
       ---------------------------------------------------- */
    .woocommerce div.product { padding: 0 15px; margin-top: 0px; margin-bottom: 40px; }
    .woocommerce div.product div.images { margin-bottom: 10px; width: 100%; }
    .woocommerce div.product div.summary { width: 100%; }
    .woocommerce div.product .product_title { font-size: 18px !important; font-weight: 500 !important; line-height: 1.4 !important; margin-bottom: 15px !important; letter-spacing: -0.3px !important; word-wrap: break-word; }
    .woocommerce div.product p.price { font-size: 26px !important; font-weight: 400 !important; margin-bottom: 15px !important; align-items: center; }
    .woocommerce div.product .product_meta { font-size: 12px !important; padding-bottom: 15px !important; margin-bottom: 20px !important; gap: 8px !important; border-color: #f0f0f0; }
    .woocommerce div.product .stock { margin-bottom: 20px !important; }
    .woocommerce div.product form.cart { display: flex !important; flex-wrap: nowrap !important; gap: 12px !important; width: 100% !important; }
    .woocommerce div.product form.cart .quantity { flex: 0 0 70px !important; }
    .woocommerce div.product form.cart .quantity input.qty { width: 100% !important; height: 46px !important; border-radius: 6px !important; }
    .woocommerce div.product form.cart .button { flex: 1 1 auto !important; height: 46px !important; font-size: 14px !important; border-radius: 6px !important; font-weight: 400 !important;}

    /* ----------------------------------------------------
       BANNER Y OTROS
       ---------------------------------------------------- */
    .promo-banner-inner { flex-direction: column; text-align: left; padding: 20px !important; min-height: auto; }
    .promo-content { width: 100%; background: rgba(255, 255, 255, 0.85); }
    .promo-specs-grid { gap: 12px; }
    .spec-item { flex: 1 1 45%; }
    
    /* ----------------------------------------------------
       MI CUENTA EN MÓVIL
       ---------------------------------------------------- */
    body.woocommerce-account:not(.logged-in) .woocommerce { margin: 40px auto 60px auto !important; padding: 30px 20px !important; border-radius: 8px !important; }
    body.woocommerce-account.logged-in .woocommerce { flex-direction: column !important; gap: 20px !important; }
    body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation, body.woocommerce-account.logged-in .woocommerce-MyAccount-content { width: 100% !important; flex: 1 1 100% !important; }
    .woocommerce-account form .form-row-first, .woocommerce-account form .form-row-last, .woocommerce-account form .woocommerce-address-fields__field-wrapper .form-row-first, .woocommerce-account form .woocommerce-address-fields__field-wrapper .form-row-last { width: 100% !important; }
    
    /* ----------------------------------------------------
       CHECKOUT EN MÓVIL (DESHACER POSICIÓN ABSOLUTA)
       ---------------------------------------------------- */
    .woocommerce-checkout form.checkout { display: flex !important; flex-direction: column !important; margin: 20px auto 60px auto !important; }
    .woocommerce-checkout #customer_details { width: 100% !important; float: none !important; }
    .woocommerce-checkout form.checkout #order_review_heading { position: static !important; width: 100% !important; margin-top: 30px !important; }
    .woocommerce-checkout form.checkout #order_review { position: static !important; width: 100% !important; margin-top: 15px !important; }
    .woocommerce-checkout form .form-row-first, .woocommerce-checkout form .form-row-last { width: 100% !important; float: none !important; }
}