/* =============================================================
   VEYRO TECH / INFORMÁTICA & TECNOLOGÍA - ULTRA-LUXURY SYSTEM v8.0
   Modo Claro Titanio Mate Suave & Escáner Cibernético HUD Laser
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@600;700;800;900&family=Space+Grotesk:wght@600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================================
   1. VARIABLES DE TEMA (MODO OSCURO CYBER POR DEFECTO & MODO CLARO TITANIO)
   ============================================================ */
:root,
html.dark,
[data-theme="dark"] {
    --tech-bg:           #04060a;
    --tech-bg-secondary: #0a0e17;
    --tech-card-bg:      rgba(10, 14, 23, 0.88);
    --tech-card-hover:   rgba(16, 22, 36, 0.95);
    --tech-sticky-bg:    rgba(4, 6, 10, 0.95);
    --tech-header-bg:    rgba(8, 9, 13, 0.95);
    --tech-text-main:    #ffffff;
    --tech-text-muted:   #9ca3af;
    --tech-text-sub:     #cbd5e1;
    --tech-border-subtle:rgba(255, 255, 255, 0.08);
    --tech-cyan:         #00f0ff;
    --tech-cyan-glow:    rgba(0, 240, 255, 0.25);
    --tech-blue:         #3b82f6;
    --tech-violet:       #7c3aed;
    --tech-amber:        #f59e0b;
    --tech-red:          #ef4444;
    --tech-green:        #10b981;
    --tech-border:       rgba(0, 240, 255, 0.18);
    --tech-border-glow:  rgba(0, 240, 255, 0.5);
    --tech-radius:       1.5rem;
    --tech-radius-lg:    2rem;
    --tech-hero-radial:  radial-gradient(circle at 70% 30%, rgba(0, 240, 255, 0.12) 0%, rgba(124, 58, 237, 0.08) 35%, rgba(4, 6, 10, 1) 80%);
}

html:not(.dark),
html.light,
[data-theme="light"] {
    --tech-bg:           #e2e8f0;
    --tech-bg-secondary: #cbd5e1;
    --tech-card-bg:      #f1f5f9;
    --tech-card-hover:   #ffffff;
    --tech-sticky-bg:    rgba(226, 232, 240, 0.94);
    --tech-header-bg:    rgba(226, 232, 240, 0.94);
    --tech-text-main:    #1e293b;
    --tech-text-muted:   #64748b;
    --tech-text-sub:     #475569;
    --tech-border-subtle:rgba(148, 163, 184, 0.35);
    --tech-cyan:         #0891b2;
    --tech-cyan-glow:    rgba(8, 145, 178, 0.18);
    --tech-blue:         #2563eb;
    --tech-violet:       #6d28d9;
    --tech-amber:        #d97706;
    --tech-red:          #dc2626;
    --tech-green:        #059669;
    --tech-border:       rgba(8, 145, 178, 0.25);
    --tech-border-glow:  rgba(8, 145, 178, 0.5);
    --tech-radius:       1.5rem;
    --tech-radius-lg:    2rem;
    --tech-hero-radial:  radial-gradient(circle at 70% 30%, rgba(8, 145, 178, 0.09) 0%, rgba(226, 232, 240, 1) 75%);
}

/* ============================================================
   2. REGLAS BASE ADAPTABLES
   ============================================================ */
body.tech-theme-body,
.tech-theme-body {
    background-color: var(--tech-bg) !important;
    color: var(--tech-text-main) !important;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

.header-tech-wrap {
    background-color: var(--tech-header-bg) !important;
    color: var(--tech-text-main) !important;
    border-bottom: 1px solid var(--tech-border-subtle) !important;
}

.font-heading {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.03em;
}

.font-subheading {
    font-family: 'Space Grotesk', sans-serif;
}

/* Overlay Malla Cibernética Suave Titanio */
.tech-theme-body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(8, 145, 178, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 85% 70%, rgba(109, 40, 217, 0.04) 0%, transparent 45%),
        linear-gradient(to right, rgba(100, 116, 139, 0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(100, 116, 139, 0.06) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
    pointer-events: none;
    z-index: 0;
}

/* ============================================================
   3. HERO BANNER TITANIO MATE
   ============================================================ */
.tech-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--tech-hero-radial) !important;
    border-bottom: 1px solid var(--tech-border-subtle);
}

html:not(.dark) .tech-hero,
html.light .tech-hero {
    background: radial-gradient(circle at 70% 30%, rgba(8, 145, 178, 0.09) 0%, rgba(226, 232, 240, 1) 75%) !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.35) !important;
}

.tech-hero-scanner {
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--tech-cyan), transparent);
    animation: techScanLaser 6s infinite linear;
    opacity: 0.6;
    pointer-events: none;
}

@keyframes techScanLaser {
    0% { top: 0%; opacity: 0; }
    50% { opacity: 0.85; }
    100% { top: 100%; opacity: 0; }
}

.tech-floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
    opacity: 0.35;
    animation: techFloatOrb 8s ease-in-out infinite alternate;
}

.tech-orb-1 {
    width: 320px;
    height: 320px;
    background: var(--tech-cyan-glow);
    top: 10%;
    right: 15%;
}

.tech-orb-2 {
    width: 260px;
    height: 260px;
    background: rgba(109, 40, 217, 0.15);
    bottom: 15%;
    left: 10%;
    animation-delay: -4s;
}

@keyframes techFloatOrb {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-30px) scale(1.1); }
}

.tech-hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.75rem, 6vw, 5.25rem);
    font-weight: 900;
    line-height: 0.98;
    text-transform: uppercase;
    color: var(--tech-text-main) !important;
}

html:not(.dark) .tech-hero-title,
html.light .tech-hero-title {
    color: #1e293b !important;
}

.tech-hero-title .accent {
    background: linear-gradient(135deg, var(--tech-cyan) 0%, #2563eb 50%, #6d28d9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    filter: drop-shadow(0 0 25px var(--tech-cyan-glow));
}

.tech-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1.35rem;
    background: rgba(8, 145, 178, 0.08);
    border: 1px solid var(--tech-border);
    border-radius: 9999px;
    color: var(--tech-cyan);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    backdrop-filter: blur(16px);
    box-shadow: 0 0 20px var(--tech-cyan-glow);
}

.tech-live-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--tech-cyan);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--tech-cyan);
    animation: techPulseDot 1.5s infinite ease-in-out;
}

@keyframes techPulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

/* ============================================================
   4. TICKER INFINITO (MARQUEE)
   ============================================================ */
.tech-ticker {
    background: var(--tech-bg-secondary) !important;
    border-y: 1px solid var(--tech-border-subtle);
    overflow: hidden;
    padding: 0.85rem 0;
    white-space: nowrap;
    position: relative;
    z-index: 20;
}

html:not(.dark) .tech-ticker,
html.light .tech-ticker {
    background-color: #cbd5e1 !important;
    border-top: 1px solid rgba(148, 163, 184, 0.4) !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.4) !important;
}

.tech-ticker-track {
    display: inline-flex;
    align-items: center;
    gap: 3rem;
    animation: techMarquee 25s linear infinite;
}

.tech-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--tech-text-main) !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

html:not(.dark) .tech-ticker-item,
html.light .tech-ticker-item {
    color: #1e293b !important;
}

.tech-ticker-item .sep {
    color: var(--tech-cyan);
}

@keyframes techMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================================
   5. STICKY CATEGORY NAVIGATION
   ============================================================ */
.tech-sticky-nav-container {
    padding: 1.5rem 0;
    background: var(--tech-sticky-bg) !important;
    border-bottom: 1px solid var(--tech-border-subtle);
    position: sticky;
    top: 65px;
    z-index: 45;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

html:not(.dark) .tech-sticky-nav-container,
html.light .tech-sticky-nav-container {
    background: rgba(226, 232, 240, 0.94) !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.35) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
}

.tech-cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    border-radius: 9999px;
    background: var(--tech-card-bg) !important;
    border: 1px solid var(--tech-border-subtle) !important;
    color: var(--tech-text-sub) !important;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
}

html:not(.dark) .tech-cat-btn,
html.light .tech-cat-btn {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid rgba(148, 163, 184, 0.35) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
}

.tech-cat-btn:hover,
.tech-cat-btn.active {
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.18) 0%, rgba(37, 99, 235, 0.18) 100%) !important;
    border-color: var(--tech-cyan) !important;
    color: var(--tech-text-main) !important;
    box-shadow: 0 0 20px var(--tech-cyan-glow);
    transform: translateY(-2px);
}

html:not(.dark) .tech-cat-btn:hover,
html:not(.dark) .tech-cat-btn.active,
html.light .tech-cat-btn:hover,
html.light .tech-cat-btn.active {
    background: #0891b2 !important;
    color: #ffffff !important;
    border-color: #0891b2 !important;
    box-shadow: 0 6px 20px rgba(8, 145, 178, 0.35) !important;
}

/* ============================================================
   6. PRODUCTO ESTRELLA / FLAGSHIP SHOWCASE
   ============================================================ */
.tech-flagship-card {
    background: var(--tech-card-bg) !important;
    border: 1px solid var(--tech-border) !important;
    border-radius: var(--tech-radius-lg);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08), 0 0 40px var(--tech-cyan-glow);
    backdrop-filter: blur(24px);
}

html:not(.dark) .tech-flagship-card,
html.light .tech-flagship-card {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%) !important;
    border: 1px solid rgba(8, 145, 178, 0.25) !important;
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.06), 0 0 30px rgba(8, 145, 178, 0.08) !important;
}

.tech-flagship-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(8, 145, 178, 0.1);
    border: 1px solid var(--tech-cyan);
    color: var(--tech-cyan);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 0.45rem 1rem;
    border-radius: 9999px;
    box-shadow: 0 0 15px var(--tech-cyan-glow);
}

.tech-flagship-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 900;
    line-height: 1.05;
    text-transform: uppercase;
    color: var(--tech-text-main) !important;
}

html:not(.dark) .tech-flagship-title,
html.light .tech-flagship-title {
    color: #1e293b !important;
}

.tech-flagship-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-aura-ring {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--tech-cyan-glow) 0%, transparent 70%);
    animation: techAuraPulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes techAuraPulse {
    0%, 100% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.08); opacity: 0.85; }
}

.tech-flagship-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px var(--tech-cyan-glow));
    transition: all 0.5s ease-out;
}

.tech-flagship-nav-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 0.75rem;
    background: var(--tech-border-subtle);
    border: 1px solid var(--tech-border-subtle);
    color: var(--tech-text-sub);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    transition: all 0.25s ease;
    cursor: pointer;
}

.tech-flagship-nav-btn:hover,
.tech-flagship-nav-btn.active {
    background: rgba(8, 145, 178, 0.15) !important;
    border-color: var(--tech-cyan) !important;
    color: var(--tech-text-main) !important;
    box-shadow: 0 0 15px var(--tech-cyan-glow);
}

/* ============================================================
   7. CARDS DE PRODUCTOS RELAJANTES (_CardInformatica)
   ============================================================ */
.tech-card {
    position: relative;
    background: var(--tech-card-bg) !important;
    border: 1px solid var(--tech-border) !important;
    border-radius: var(--tech-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(20px);
}

html:not(.dark) .tech-card,
html.light .tech-card {
    background: #f1f5f9 !important;
    border: 1px solid rgba(148, 163, 184, 0.35) !important;
    box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.05), 0 4px 10px rgba(0, 0, 0, 0.03) !important;
}

.tech-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: var(--tech-border-glow) !important;
    background: var(--tech-card-hover) !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15), 0 0 30px var(--tech-cyan-glow) !important;
}

html:not(.dark) .tech-card:hover,
html.light .tech-card:hover {
    background: #ffffff !important;
    border-color: rgba(8, 145, 178, 0.4) !important;
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.08), 0 0 25px rgba(8, 145, 178, 0.15) !important;
}

.tech-card-img-wrap {
    position: relative;
    width: 100%;
    padding-top: 92%;
    background: radial-gradient(circle at center, rgba(226, 232, 240, 0.8) 0%, var(--tech-bg-secondary) 100%);
    overflow: hidden;
}

.tech-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-card:hover .tech-card-img {
    transform: scale(1.08);
}

.tech-card-badges {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: flex-start;
}

.tech-badge-chip {
    padding: 0.35rem 0.75rem;
    border-radius: 0.6rem;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tech-badge-cyan {
    background: rgba(8, 145, 178, 0.15);
    border: 1px solid var(--tech-cyan);
    color: var(--tech-cyan);
}

.tech-badge-amber {
    background: rgba(217, 119, 6, 0.15);
    border: 1px solid var(--tech-amber);
    color: var(--tech-amber);
}

.tech-badge-danger {
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid var(--tech-red);
    color: var(--tech-red);
}

.tech-card-price-corner {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 10;
    background: linear-gradient(135deg, #0891b2 0%, #2563eb 100%);
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 1.15rem;
    padding: 0.4rem 0.95rem;
    border-radius: 0.85rem;
    box-shadow: 0 8px 20px rgba(8, 145, 178, 0.3);
    letter-spacing: -0.02em;
}

.tech-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    gap: 1.2rem;
}

.tech-card-category {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--tech-cyan);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.tech-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--tech-text-main) !important;
    transition: color 0.2s ease;
}

html:not(.dark) .tech-card-title,
html.light .tech-card-title {
    color: #1e293b !important;
}

.tech-card:hover .tech-card-title {
    color: var(--tech-cyan) !important;
}

.tech-spec-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    background: var(--tech-border-subtle);
    border: 1px solid var(--tech-border-subtle);
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--tech-text-sub);
    transition: all 0.25s ease;
}

/* Botones con estilo Ultra-Lujo */
.btn-tech-primary {
    background: linear-gradient(135deg, #0891b2 0%, #0284c7 100%);
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.85rem 1.75rem;
    border-radius: 0.85rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(8, 145, 178, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-tech-primary:hover {
    background: linear-gradient(135deg, #0e7490 0%, #0369a1 100%);
    box-shadow: 0 8px 30px rgba(8, 145, 178, 0.45);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-tech-secondary {
    background: rgba(8, 145, 178, 0.08);
    border: 1px solid var(--tech-border);
    color: var(--tech-cyan);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 0.875rem;
    padding: 0.85rem 1.5rem;
    border-radius: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-tech-secondary:hover {
    background: rgba(8, 145, 178, 0.18);
    border-color: var(--tech-cyan);
    color: var(--tech-text-main);
    box-shadow: 0 0 20px var(--tech-cyan-glow);
}

/* Floating Cart Bar */
.tech-floating-cart {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(140%);
    z-index: 100;
    width: calc(100% - 3rem);
    max-width: 620px;
    background: var(--tech-card-bg) !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--tech-cyan) !important;
    border-radius: 1.5rem;
    padding: 0.85rem 1.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15), 0 0 35px var(--tech-cyan-glow);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

html:not(.dark) .tech-floating-cart,
html.light .tech-floating-cart {
    background: rgba(226, 232, 240, 0.96) !important;
    border-color: #0891b2 !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12) !important;
}

.tech-floating-cart.visible {
    transform: translateX(-50%) translateY(0);
}
