/* RESET & VARIABLES */
:root {
    --bg-dark: #0a0e27;
    --bg-darker: #050714;
    --primary: #00ffff;
    --secondary: #ff00ff;
    --text: #ffffff;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --navbar-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text);
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 255, 255, 0.03) 2px, rgba(0, 255, 255, 0.03) 4px);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    height: var(--navbar-height);
}

.logo {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    font-weight: 900;
    letter-spacing: 2px;
    text-decoration: none;
    color: var(--text);
    flex-shrink: 0;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--secondary);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* BOTONES */
.cta-btn {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    padding: 12px 28px;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

    /* Nav actions (CTA buttons to the right) */
    .nav-actions {
        display: flex;
        gap: 12px;
        align-items: center;
    }

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

/* HERO SECTION */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: #0a0e27;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.8;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.6);
    z-index: 1;
}

.hero-content {
    z-index: 2;
    padding: 20px;
    position: relative;
    max-width: 1200px;
}

.hero h1 {
    font-size: clamp(2rem, 8vw, 4rem);
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 900;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.secondary-btn {
    padding: 12px 30px;
    border: 2px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: inline-block;
}

.secondary-btn:hover {
    background: var(--primary);
    color: #000;
}

/* SECCIONES COMUNES */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 60px;
    text-transform: uppercase;
}

.neon-dot {
    color: var(--secondary);
}

/* ABOUT SECTION */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: var(--glass);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    text-align: center;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.icon {
    font-size: clamp(2.5rem, 5vw, 3rem);
    color: var(--primary);
    margin-bottom: 20px;
}

.card.highlight .icon {
    color: var(--secondary);
}

.card h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 15px;
}

.card p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.6;
}

/* CATALOGO */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid transparent;
    transition: all 0.3s;
}

.product-card:hover {
    border-color: var(--secondary);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.2);
}

.product-img {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover .overlay {
    opacity: 1;
}

.quick-view {
    padding: 10px 20px;
    border: 2px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.quick-view:hover {
    background: var(--primary);
    color: #000;
}

.product-info {
    padding: 20px;
}

.category {
    color: var(--secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-info h3 {
    margin: 5px 0 15px 0;
    font-size: clamp(1.1rem, 2.5vw, 1.2rem);
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-weight: bold;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
}

.add-cart {
    background: var(--glass);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-cart:hover {
    background: var(--primary);
    color: #000;
}

/* FINAL CTA */
.final-cta {
    background: linear-gradient(0deg, #1a0b2e 0%, transparent 100%);
    text-align: center;
    padding: 80px 20px;
}

.cta-content h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 15px;
}

.cta-content p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 30px;
}

.big-pulse {
    margin-top: 30px;
    display: inline-block;
    padding: 20px 50px;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 255, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(0, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 255, 0); }
}

/* FOOTER */
footer {
    background: var(--bg-darker);
    padding: 50px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto 30px;
    max-width: 1200px;
    padding: 0 20px;
}

.brand h4 {
    font-size: clamp(1.3rem, 3vw, 1.5rem);
    margin-bottom: 10px;
    color: #fff;
}

.brand h4 span {
    color: var(--primary);
}

.brand p {
    color: #888;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.socials {
    display: flex;
    gap: 20px;
}

.socials a {
    color: white;
    font-size: clamp(1.3rem, 3vw, 1.5rem);
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.socials a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    color: #555;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .navbar {
        padding: 15px 20px;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }
    
    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-links {
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(20px);
        padding: 20px;
        gap: 15px;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        pointer-events: none;
        border-bottom: 1px solid var(--glass-border);
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-links li {
        text-align: center;
        padding: 10px 0;
    }
    
    .nav-links a {
        font-size: 1.1rem;
    }
    
    .nav-btn {
        display: none;
    }

        .nav-actions {
            display: none;
        }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .cta-btn,
    .hero-buttons .secondary-btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
        justify-content: center;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    section {
        padding: 50px 0;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: 30px 20px;
    }
}

/* CASESKIN SECTION */
.caseskin-section {
    padding: 60px 0;
}

.caseskin-card {
    display: flex;
    gap: 30px;
    align-items: center;
    padding: 30px;
}

.caseskin-card .video-wrap {
    flex: 1 1 60%;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.caseskin-card .video-wrap .hero-video {
    position: static;
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}

.caseskin-card .card-content {
    flex: 1 1 40%;
    text-align: left;
}

.caseskin-card .card-content h3 {
    margin-top: 0;
}

@media (max-width: 992px) {
    .caseskin-card {
        flex-direction: column;
        text-align: center;
    }

    .caseskin-card .card-content {
        text-align: center;
        padding-left: 0;
    }
}

/* Indicador de sonido sobre el video */
.sound-hint {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(0,0,0,0.65), rgba(10,14,39,0.8));
    color: var(--text);
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 700;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
    pointer-events: auto;
    cursor: pointer;
    opacity: 0.95;
}

.sound-hint .fa-volume-up {
    color: var(--primary);
}

.sound-hint.hidden {
    display: none;
}