﻿/* --- VARIABLES & SETUP --- */
:root {
    --bg-dark: #0b0c10;
    --bg-darker: #050507;
    --primary: #45a29e;      /* Cyan apagado */
    --accent: #66fcf1;       /* Cyan Neón brillante */
    --secondary: #c5c6c7;    /* Gris claro */
    --glass: rgba(255, 255, 255, 0.05);
    --border-glass: rgba(255, 255, 255, 0.1);
    
    --font-main: 'Rajdhani', sans-serif;
    --font-display: 'Orbitron', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--secondary);
    font-family: var(--font-main);
    overflow-x: hidden;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, .navbar-brand, .btn {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.text-accent { color: var(--accent); }
.text-gray { color: #8892b0; }
.ls-2 { letter-spacing: 2px; }

/* --- NAVBAR --- */
.navbar {
    background: rgba(5, 5, 7, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-link {
    color: #fff !important;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    margin: 0 10px;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    bottom: 0; left: 0;
    background-color: var(--accent);
    transition: width 0.3s;
    box-shadow: 0 0 10px var(--accent);
}

.nav-link:hover::after { width: 100%; }

/* --- HERO SECTION --- */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #1f2833 0%, #0b0c10 100%);
    overflow: hidden;
}

/* Canvas de fondo */
#tech-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, transparent 50%, var(--bg-dark) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 10px rgba(102, 252, 241, 0.5);
}

@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
}

/* Glitch Effect */
.glitch-wrapper { position: relative; display: inline-block; }
.hero-title { position: relative; }

/* --- BUTTONS --- */
.btn-cyber {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 10px 25px;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    z-index: 1;
}

.btn-cyber::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: var(--accent);
    transition: left 0.3s;
    z-index: -1;
}

.btn-cyber:hover { color: var(--bg-dark); box-shadow: 0 0 20px rgba(102, 252, 241, 0.4); }
.btn-cyber:hover::before { left: 0; }

.btn-glow {
    background-color: var(--accent);
    color: var(--bg-dark);
    border: none;
    box-shadow: 0 0 15px rgba(102, 252, 241, 0.3);
    transition: transform 0.2s;
}
.btn-glow:hover {
    background-color: #fff;
    box-shadow: 0 0 25px rgba(102, 252, 241, 0.6);
    transform: translateY(-2px);
    color: #000;
}

/* --- CARDS (GLASSMORPHISM) --- */
.section-padding { padding: 5rem 0; }
.bg-darker { background-color: var(--bg-darker); }

.tech-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    padding: 2.5rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: transform 0.1s; /* JS tilt maneja esto */
    transform-style: preserve-3d;
}

.tech-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(102, 252, 241, 0.1);
}

.tech-card h4 { color: #fff; margin-bottom: 1rem; }
.tech-card p { color: var(--secondary); font-size: 0.95rem; line-height: 1.6; }

.icon-box {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    transform: translateZ(20px); /* Efecto 3D */
}

/* --- SHOP SECTION --- */
.product-card {
    background: #121212;
    border: 1px solid #333;
    transition: all 0.3s;
    position: relative;
}

.product-img {
    height: 250px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.product-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-img img { transform: scale(1.1); }

.product-img .overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover .product-img .overlay { opacity: 1; }

.product-info { padding: 1.5rem; text-align: center; }
.product-info h5 { color: white; font-size: 1.1rem; margin-bottom: 0.5rem; }
.product-info .price { color: var(--accent); font-weight: bold; }

/* --- UTILITIES --- */
.separator {
    height: 3px;
    width: 60px;
    background: var(--accent);
    margin-top: 1rem;
    box-shadow: 0 0 10px var(--accent);
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.social-btn {
    width: 40px; height: 40px;
    border: 1px solid #333;
    display: flex;
    align-items: center; justify-content: center;
    color: #fff;
    transition: all 0.3s;
}
.social-btn:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}