/* ==========================================================================
   #GOCHO NEXUS VISUAL CORE - DIAMOND SUPREME v3.6.5 (ELEMENTOR READY)
   ========================================================================== */

:root {
    /* Variables base - Editables vía CSS personalizado de Elementor si es necesario */
    --nexus-radius: 16px;
    --nexus-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    --nexus-hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --nexus-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --nexus-glass: rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   1. ELEMENTOR & WOOCOMMERCE BUTTONS (SHAPE ONLY)
   Dejamos que Elementor controle los colores, nosotros controlamos la FORMA y FÍSICA.
   ========================================================================== */
   
button, 
.button, 
input[type="submit"], 
.elementor-button {
    border-radius: var(--nexus-radius) !important; /* Forma Diamond forzada */
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: var(--nexus-transition) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); /* Sombra suave por defecto */
    border: none; /* Limpieza base */
}

/* Efecto Hover "Levitación" - Compatible con cualquier color de fondo */
button:hover, 
.button:hover, 
input[type="submit"]:hover, 
.elementor-button:hover {
    transform: translateY(-3px); /* Se levanta físicamente */
    box-shadow: var(--nexus-hover-shadow) !important;
}

/* ==========================================================================
   2. INPUTS & FORMS (Modernización Visual)
   ========================================================================== */
input[type="text"], 
input[type="email"], 
input[type="password"], 
select, 
textarea,
.elementor-field-textual {
    border-radius: var(--nexus-radius) !important;
    border: 1px solid #E2E8F0;
    padding: 12px 16px;
    background-color: #ffffff;
    transition: var(--nexus-transition);
}

input:focus, 
textarea:focus,
.elementor-field-textual:focus {
    border-color: var(--nexus-brand, #F97316) !important;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1) !important;
    outline: none;
}

/* ==========================================================================
   3. PRODUCT CARDS (Structure Repair & Unification)
   Afecta tanto al Loop normal de Woo como a los Grids de Elementor Pro
   ========================================================================== */

/* Unificar alturas en grids */
ul.products, 
.elementor-widget-woocommerce-products .elementor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); /* Bajamos el min para que quepan mejor 2 */
    gap: 1rem; /* Menos espacio entre tarjetas en grid */
}

/* Estilo de la Tarjeta */
ul.products li.product, 
.elementor-widget-woocommerce-products .product {
    background: #ffffff;
    border-radius: 20px !important; 
    overflow: hidden; 
    transition: var(--nexus-transition) !important;
    border: 1px solid #f1f5f9; 
    box-shadow: var(--nexus-shadow);
    
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important; /* Alineación arriba para evitar estiramiento */
    height: 100% !important;
    padding: 12px !important; /* Padding reducido para ganar espacio */
}

/* Imagen del Producto */
ul.products li.product img,
.elementor-widget-woocommerce-products .product img {
    border-radius: 12px !important;
    margin-bottom: 0.8rem !important;
    object-fit: contain !important;
    height: 160px !important; /* Altura más compacta */
    width: 100% !important;
    background: #f8fafc; 
}

/* Título (Optimizado para 2 columnas) */
ul.products li.product .woocommerce-loop-product__title,
.elementor-widget-woocommerce-products .woocommerce-loop-product__title {
    font-size: 0.95rem !important; /* Un poco más pequeño */
    font-weight: 800 !important;
    line-height: 1.2 !important;
    margin-bottom: 0.5rem !important;
    padding: 0;
    height: auto !important;
    min-height: 38px !important; /* Altura mínima justa para 2 líneas */
    display: -webkit-box !important;
    -webkit-line-clamp: 2; /* Limitar a 2 líneas para uniformidad */
    -webkit-box-orient: vertical;
    overflow: hidden !important;
    white-space: normal !important;
    color: #0f172a !important;
}

/* Precio */
ul.products li.product .price,
.elementor-widget-woocommerce-products .price {
    font-weight: 900 !important;
    font-size: 1.1rem !important;
    color: var(--nexus-brand, #F97316);
    margin-bottom: 0.8rem !important;
    padding: 0;
}

/* Botón Añadir al Carrito */
ul.products li.product .button,
.elementor-widget-woocommerce-products .button {
    width: 100% !important;
    margin-top: auto !important; 
    text-align: center;
    border-radius: 10px !important;
    padding: 10px 5px !important;
    font-size: 0.8rem !important; /* Texto de botón más compacto */
}

/* Ajustes específicos para Móvil (2 Columnas perfectas) */
@media (max-width: 480px) {
    ul.products, .elementor-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* Forzar 2 columnas */
        gap: 10px !important;
    }
    
    ul.products li.product img {
        height: 130px !important; /* Imagen más pequeña en móvil */
    }
    
    ul.products li.product .woocommerce-loop-product__title {
        font-size: 0.85rem !important;
    }
}

/* ==========================================================================
   4. NOTIFICATIONS (Glassmorphism Toasts)
   Reemplaza las cajas feas de Woo
   ========================================================================== */
.woocommerce-message, 
.woocommerce-info, 
.woocommerce-error {
    border-radius: var(--nexus-radius) !important;
    background: var(--nexus-glass) !important;
    backdrop-filter: blur(12px);
    border-left: 5px solid var(--nexus-brand, #F97316) !important; /* Acento de color */
    box-shadow: var(--nexus-shadow) !important;
    color: #1e293b !important;
    font-weight: 500;
}

/* Ocultar iconos default viejos */
.woocommerce-message::before, 
.woocommerce-info::before, 
.woocommerce-error::before {
    display: none !important; 
}

/* ==========================================================================
   5. SWEETALERT OVERRIDES (Para que coincidan con el tema)
   ========================================================================== */
div:where(.swal2-popup) {
    border-radius: 24px !important;
    font-family: inherit !important;
    border: 1px solid rgba(255,255,255,0.5);
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
}

/* ==========================================================================
   6. PRODUCT PAGE ENHANCEMENTS (Badges, WhatsApp, Info)
   ========================================================================== */

.nexus-badges-container {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.nexus-badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sale-badge {
    background: #fee2e2;
    color: #ef4444;
}

.stock-badge {
    background: #ffedd5;
    color: #f97316;
    animation: nexus-pulse 2s infinite;
}

@keyframes nexus-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* WhatsApp Button */
.nexus-wa-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25D366 !important;
    color: #ffffff !important;
    padding: 14px 24px !important;
    border-radius: var(--nexus-radius) !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    margin: 15px 0;
    transition: var(--nexus-transition);
}

.nexus-wa-button:hover {
    background: #128C7E !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 211, 102, 0.3) !important;
}

/* Info Blocks (Shipping/Store) */
.nexus-info-block {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #f8fafc;
    border-radius: var(--nexus-radius);
    margin-bottom: 12px;
    border: 1px solid #f1f5f9;
}

.nexus-info-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.nexus-info-content strong {
    display: block;
    font-size: 14px;
    color: #0f172a;
    margin-bottom: 4px;
    font-weight: 800;
}

.nexus-info-content p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* Payment Grid */
.nexus-payment-block {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.nexus-payment-block strong {
    font-size: 14px;
    display: block;
    margin-bottom: 12px;
    font-weight: 800;
}

.nexus-payment-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.nexus-payment-grid img {
    height: 24px;
    width: auto;
    filter: grayscale(1) opacity(0.6);
    transition: var(--nexus-transition);
}

/* ==========================================================================
   7. REVIEWS, META & TABS (Diamond Polish)
   ========================================================================== */

/* --- Star Ratings --- */
.woocommerce-product-rating {
    margin-bottom: 15px !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.star-rating {
    color: #F59E0B !important; /* Amber-500 for stars */
    font-size: 1.1em !important;
}

.woocommerce-review-link {
    color: #64748b !important;
    font-size: 0.9em !important;
    text-decoration: none !important;
    font-weight: 500;
}

/* --- Product Meta (SKU, Categories) --- */
.product_meta {
    margin-top: 20px !important;
    padding-top: 20px !important;
    border-top: 1px solid #f1f5f9;
    font-size: 0.9em;
    color: #64748b;
}

.product_meta > span {
    display: block;
    margin-bottom: 8px;
}

/* Make Categories look like tags/pills */
.product_meta .posted_in a {
    display: inline-block;
    background: #f1f5f9;
    color: #334155;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    text-decoration: none;
    margin-left: 5px;
    transition: var(--nexus-transition);
}

.product_meta .posted_in a:hover {
    background: var(--nexus-brand, #F97316);
    color: white;
}

.product_meta .sku_wrapper .sku {
    font-family: 'JetBrains Mono', monospace; /* Tech feel for SKU */
    font-weight: 700;
    color: #0f172a;
}

/* --- WooCommerce Tabs (Description/Reviews) --- */
.woocommerce-tabs ul.tabs {
    border: none !important;
    padding: 0 !important;
    margin: 0 0 20px 0 !important;
    display: flex;
    gap: 10px;
    background: transparent !important;
}

.woocommerce-tabs ul.tabs li {
    background: transparent !important;
    border: none !important;
    border-radius: var(--nexus-radius) !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce-tabs ul.tabs li a {
    padding: 10px 20px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    border-radius: var(--nexus-radius) !important;
    transition: var(--nexus-transition);
}

.woocommerce-tabs ul.tabs li.active a {
    background: #fff !important;
    color: var(--nexus-brand, #F97316) !important;
    box-shadow: var(--nexus-shadow) !important;
}

.woocommerce-tabs .panel {
    background: #fff !important;
    border-radius: 20px !important;
    box-shadow: var(--nexus-shadow) !important;
    padding: 30px !important;
    border: 1px solid #f1f5f9;
}

/* Review Comments */
.commentlist li .comment_container {
    border-radius: 16px !important;
    background: #f8fafc !important;
    border: none !important;
    padding: 20px !important;
}

/* ==========================================================================
   8. SINGLE PRODUCT IMAGE STANDARDIZATION (Diamond Supreme)
   ========================================================================== */

/* Contenedor Principal de la Galería */
.woocommerce-product-gallery {
    opacity: 1 !important;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--nexus-shadow);
    background: #ffffff;
    border: 1px solid #f1f5f9;
    padding: 10px !important; /* Menos borde, más imagen */
    margin-bottom: 30px;
    transition: var(--nexus-transition);
}

.woocommerce-product-gallery:hover {
    box-shadow: var(--nexus-hover-shadow);
    border-color: rgba(249, 115, 22, 0.3);
}

/* Imagen Principal (La Grande) */
.woocommerce-product-gallery__image img,
.elementor-widget-woocommerce-product-images img {
    width: 100% !important;
    height: auto !important; /* Permitir que crezca */
    max-height: 950px !important; /* Prácticamente sin límite en desktop */
    object-fit: contain !important;
    border-radius: 16px !important;
    margin: 0 auto !important;
    display: block !important;
}

/* En Móviles: Mantener control para que no ocupe 3 pantallas de alto */
@media (max-width: 768px) {
    .woocommerce-product-gallery__image img,
    .elementor-widget-woocommerce-product-images img {
        max-height: 450px !important;
    }
}

/* Miniaturas de la Galería (Thumbnails) */
.flex-control-thumbs {
    margin-top: 20px !important;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.flex-control-thumbs li {
    width: 80px !important;
    height: 80px !important;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: var(--nexus-transition);
    cursor: pointer;
}

.flex-control-thumbs li:hover {
    transform: translateY(-3px);
    border-color: var(--nexus-brand, #F97316);
}

.flex-control-thumbs img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Las miniaturas sí pueden recortarse para ser cuadradas */
    opacity: 0.7;
    transition: 0.3s;
}

.flex-control-thumbs img.flex-active,
.flex-control-thumbs img:hover {
    opacity: 1;
}

/* ==========================================================================
   9. NEW STICKY HEADER (FINAL FIXED VERSION)
   ========================================================================== */
header.site-header, 
#masthead,
.elementor-location-header,
.ast-main-header-wrap {
    position: fixed !important; /* Volvemos a Fixed: Es lo único que garantiza Top 0 real */
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 100000 !important; /* Encima de todo */
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(15px) !important;
    box-shadow: 0 4px 20px -5px rgba(0,0,0,0.1) !important;
    transform: translate3d(0,0,0) !important; /* Forzar aceleración GPU */
}

/* Matar huecos del tema */
.site-header-space, .ast-header-break-point { display: none !important; }

/* El JS se encargará de añadir padding-top al body para que no se oculte el contenido */

/* ==========================================================================
   11. CHECKOUT DIAMOND SUPREME (FINAL STRUCTURE FIX)
   ========================================================================== */

/* 1. ARREGLAR CONTENEDOR PRINCIPAL (Centrado y Ancho) */
.woocommerce-checkout,
.woocommerce-page .entry-content,
.elementor-widget-woocommerce-checkout,
div.woocommerce {
    width: 100% !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    float: none !important;
}

/* 2. GRID SYSTEM INDESTRUCTIBLE (Desktop > 1000px) */
@media (min-width: 1000px) {
    form.checkout.woocommerce-checkout {
        display: grid !important;
        grid-template-columns: 1.5fr 1fr !important; /* 60% vs 40% */
        column-gap: 40px !important;
        row-gap: 20px !important;
        align-items: start !important;
    }

    /* Columna Izquierda (Datos) */
    #customer_details, 
    .col2-set {
        grid-column: 1 / 2 !important;
        grid-row: 1 / 10 !important; /* Ocupar todo el alto necesario */
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
    }

    /* Columna Derecha (Orden y Pago) */
    #order_review_heading, 
    #order_review,
    .woocommerce-checkout-review-order {
        grid-column: 2 / 3 !important;
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        clear: none !important;
    }

    /* Ubicación exacta de elementos derechos */
    #order_review_heading {
        grid-row: 1 / 2 !important;
        margin-top: 0 !important;
        margin-bottom: 20px !important;
    }

    #order_review {
        grid-row: 2 / 3 !important;
    }
}

/* 3. MOBILE (Stack) */
@media (max-width: 999px) {
    form.checkout.woocommerce-checkout {
        display: flex !important;
        flex-direction: column !important;
    }
    
    #customer_details, 
    #order_review, 
    #order_review_heading {
        width: 100% !important;
        margin-bottom: 20px !important;
    }
}

/* Estilos Visuales de las Cajas (Sin cambios estructurales) */
#customer_details, 
#order_review {
    background: #ffffff !important;
    padding: 30px !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.05) !important;
    border: 1px solid #f1f5f9 !important;
}

#order_review_heading {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    padding: 0 !important;
    border: none !important;
}

/* FOOTER INJECTION FIX (Asegurar que baje) */
.nexus-footer-wrapper-full {
    clear: both !important;
    width: 100% !important;
    display: block !important;
    margin-top: 60px !important;
}

/* ==========================================================================
   10. PRODUCT PRICE & TAXES (Clean & Big)
   ========================================================================== */
.single-product .price {
    font-size: 2.5rem !important;
    font-weight: 900 !important;
    color: #0f172a !important;
    display: flex !important;
    align-items: baseline !important;
    gap: 10px;
    margin-bottom: 5px !important;
}

/* Texto "Sujeto a impuesto" (WooCommerce Tax Suffix) */
.woocommerce-price-suffix {
    font-size: 0.65rem !important;
    text-transform: uppercase !important;
    color: #94a3b8 !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
    vertical-align: middle;
}

/* ==========================================================================
   11. CHECKOUT DIAMOND SUPREME (UX/UI Fix - GRID SYSTEM)
   ========================================================================== */
.woocommerce-checkout {
    background: #f8fafc;
    padding: 40px 0;
}

/* DESKTOP LAYOUT (GRID) */
@media (min-width: 992px) {
    form.checkout.woocommerce-checkout {
        display: grid !important;
        grid-template-columns: 1.5fr 1fr; /* 60% - 40% */
        gap: 30px;
        align-items: start;
    }

    #customer_details {
        width: 100% !important;
        float: none !important;
        margin: 0 !important;
    }

    /* El bloque de revisión de orden y pago va a la derecha */
    #order_review_heading, 
    #order_review {
        width: 100% !important;
        float: none !important;
        clear: none !important;
    }
    
    /* Agrupar título y tabla de review en una "columna visual" derecha si es necesario
       o dejar que el grid lo maneje si Woo los imprime secuencialmente. 
       A menudo Woo imprime customer_details primero, luego review_heading, luego review.
       Haremos que customer_details sea row 1-2 y lo demás row 1, 2 en col 2.
    */
    
    #customer_details {
        grid-column: 1 / 2;
        grid-row: 1 / span 2;
    }

    #order_review_heading {
        grid-column: 2 / 3;
        grid-row: 1;
        margin-top: 0 !important;
    }

    #order_review {
        grid-column: 2 / 3;
        grid-row: 2;
    }
}

/* Estilos Comunes de las Cajas */
#customer_details, 
#order_review {
    background: #ffffff !important;
    padding: 30px !important;
    border-radius: 24px !important;
    box-shadow: var(--nexus-shadow) !important;
    border: 1px solid #f1f5f9 !important;
}

#order_review_heading {
    background: transparent !important;
    padding: 0 0 15px 0 !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 1.5rem !important;
}

/* Labels más limpios */
.woocommerce-checkout label {
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    margin-bottom: 8px !important;
    display: block;
    color: #334155;
}

/* Inputs en checkout */
.woocommerce-checkout .input-text,
.select2-container .select2-selection--single {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    padding: 12px 15px !important;
    height: auto !important;
    border-radius: 12px !important;
}

/* Formas de Pago */
#payment {
    background: transparent !important;
    border-radius: 0 !important;
}

#payment ul.payment_methods {
    border-bottom: 1px solid #f1f5f9 !important;
    padding-bottom: 20px !important;
}

#payment div.payment_box {
    background: #f1f5f9 !important;
    border-radius: 12px !important;
    color: #475569 !important;
    margin-top: 15px !important;
}

/* MOBILE LAYOUT */
@media (max-width: 991px) {
    form.checkout.woocommerce-checkout {
        display: block !important;
    }

    #customer_details, 
    #order_review, 
    #order_review_heading {
        width: 100% !important;
        margin-bottom: 20px !important;
    }
}

/* ==========================================================================
   12. FOOTER & CRYPTO PILL
   ========================================================================== */
.nexus-footer-info {
    text-align: center;
    padding: 40px 20px;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
}

.nexus-address-link {
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    transition: var(--nexus-transition);
    max-width: 600px;
    line-height: 1.6;
}

.nexus-address-link:hover {
    color: var(--nexus-brand, #F97316);
}

.nexus-crypto-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
    margin-top: 20px;
    box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.3);
    border: 1px solid rgba(255,255,255,0.1);
    animation: nexus-float 3s ease-in-out infinite;
}

@keyframes nexus-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ==========================================================================
   13. HOME FEATURES (FAQs & SHORTS)
   ========================================================================== */

/* FAQs Accordion */
.nexus-faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.nexus-faq-item {
    background: #ffffff;
    border-radius: 16px;
    margin-bottom: 12px;
    border: 1px solid #f1f5f9;
    overflow: hidden;
    transition: var(--nexus-transition);
}

.nexus-faq-question {
    padding: 20px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nexus-faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    color: #64748b;
}

.nexus-faq-item.active .nexus-faq-answer {
    padding: 0 20px 20px 20px;
    max-height: 500px;
}

/* YouTube Shorts Grid */
.nexus-shorts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.nexus-short-card {
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 9/16;
    background: #000;
    position: relative;
    box-shadow: var(--nexus-shadow);
}

.nexus-short-card iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   14. NEXUS 3D TILT CARDS (Holographic Effect)
   ========================================================================== */
.nexus-3d-card-wrapper {
    perspective: 1000px; /* Profundidad 3D */
    transform-style: preserve-3d;
}

/* Modificamos la tarjeta de producto existente para soportar 3D */
ul.products li.product, 
.elementor-widget-woocommerce-products .product {
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform;
    /* La transición la controla JS para suavidad, pero dejamos una base */
    transition: transform 0.1s ease-out, box-shadow 0.3s ease !important;
}

/* Brillo Holográfico (Overlay dinámico) */
.nexus-holo-shine {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
        135deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.4) 50%, 
        rgba(255,255,255,0) 100%
    );
    transform: translateX(-100%) rotate(45deg); /* Fuera de vista inicial */
    pointer-events: none;
    z-index: 10;
    transition: none; /* JS controla esto */
}

/* ==========================================================================
   15. IMMERSIVE SEARCH (Focus Mode)
   ========================================================================== */
.nexus-search-trigger {
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--nexus-brand, #F97316);
    padding: 10px;
    transition: var(--nexus-transition);
}

.nexus-search-trigger:hover {
    transform: scale(1.1);
}

/* Overlay Pantalla Completa - CORRECCIÓN NUCLEAR */
#nexus-search-overlay {
    position: fixed !important;
    top: 0 !important; 
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(15, 23, 42, 0.98) !important; /* Fondo casi sólido para evitar transparencias raras */
    backdrop-filter: blur(25px);
    z-index: 2147483647 !important; /* Máximo entero posible en CSS */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Flexbox Centering */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding-top: 100px !important; /* Espacio desde arriba */
    margin: 0 !important;
}

#nexus-search-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Botón Cerrar */
.nexus-search-close {
    position: absolute !important;
    top: 30px !important; 
    right: 30px !important;
    font-size: 3rem !important;
    color: #ffffff !important;
    cursor: pointer;
    opacity: 0.8;
    z-index: 2147483648;
}

.nexus-search-close:hover { opacity: 1; transform: rotate(90deg); }

/* Input Gigante */
.nexus-search-input-wrapper {
    width: 90% !important;
    max-width: 800px !important;
    position: relative !important;
    margin-bottom: 50px !important;
    z-index: 2147483648;
}

#nexus-search-input {
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid rgba(255,255,255,0.5) !important;
    color: #ffffff !important;
    font-size: 2.5rem !important; /* Un poco más pequeño para móviles */
    font-weight: 300 !important;
    padding: 20px 0 !important;
    text-align: center !important;
    outline: none !important;
    box-shadow: none !important;
}

#nexus-search-input:focus {
    border-bottom-color: var(--nexus-brand, #F97316) !important;
}

#nexus-search-input::placeholder { color: rgba(255,255,255,0.3) !important; }

/* Resultados Flotantes */
#nexus-search-results {
    width: 90% !important;
    max-width: 1100px !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 20px !important;
    overflow-y: auto !important;
    max-height: 65vh !important;
    padding: 20px !important;
    z-index: 2147483648;
}

/* Tarjeta de Resultado */
.nexus-result-card {
    background: rgba(255,255,255,0.08) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 16px !important;
    padding: 20px !important;
    text-align: center !important;
    transition: 0.3s !important;
    text-decoration: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.nexus-result-card:hover {
    background: rgba(255,255,255,0.15) !important;
    transform: translateY(-5px) !important;
    border-color: var(--nexus-brand, #F97316) !important;
}

.nexus-result-img {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    margin-bottom: 15px !important;
    border: 2px solid #fff !important;
    background: #fff; /* Fondo por si es PNG transparente */
}

.nexus-result-title {
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    margin-bottom: 8px !important;
    line-height: 1.3 !important;
}

.nexus-result-price {
    color: var(--nexus-brand, #F97316) !important;
    font-weight: 800 !important;
    font-size: 1.1rem !important;
}

/* ==========================================================================
   16. COPYRIGHT FOOTER FIX (FORCE DESKTOP ROW)
   ========================================================================== */
@media (min-width: 769px) {
    .site-footer .ast-container,
    .ast-footer-copyright,
    .ast-small-footer-section {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        text-align: left !important;
    }
    
    .ast-footer-copyright > * {
        margin-bottom: 0 !important;
        width: auto !important;
    }
}

/* REFUERZO DE CHECKOUT (Old School Float Method) */
/* Si el Grid falla, usamos floats clásicos que Elementor respeta mejor */
@media (min-width: 992px) {
    .woocommerce-checkout .col2-set {
        width: 58% !important;
        float: left !important;
        margin-right: 2% !important;
    }
    
    .woocommerce-checkout #order_review_heading,
    .woocommerce-checkout #order_review {
        width: 38% !important;
        float: right !important;
        clear: right !important;
    }
    
    /* Asegurar limpieza al final */
    .woocommerce-checkout::after {
        content: "";
        display: table;
        clear: both;
    }
}