﻿
:root {
    --bg-color: transparent; /* Importante para ver el video */
    --text-color: #f0f0f0;
    --primary: #8f5bff;
    --secondary: #31d7ff;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #050505; /* Fallback color si el video falla */
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    cursor: none;
}

/* --- VIDEO BACKGROUND SETUP --- */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1; /* Detrás de todo */
    overflow: hidden;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cubre toda la pantalla sin deformarse */
}

/* Capa oscura para que el texto resalte sobre el video */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.50); /* Ajusta el 0.75 para más/menos oscuridad */
    z-index: 1;
}

/* Custom Cursor */
.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--secondary);
}
.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--primary);
    transition: width 0.2s, height 0.2s;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    line-height: 1.1;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
}

.brand {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.links {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

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

/* Hero Section */
.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 100px 0;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.tech-label {
    font-family: monospace;
    color: var(--secondary);
    border: 1px solid var(--glass-border);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    background: rgba(49, 215, 255, 0.1);
    display: inline-block;
    margin-bottom: 24px;
}

.glitch-text {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    color: white;
    margin-bottom: 0;
    position: relative;
}

.sub {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.5);
}

.hero-desc {
    font-size: 1.1rem;
    color: #ccc; /* Un poco más claro para mejor contraste con video */
    max-width: 500px;
    margin: 32px 0;
    line-height: 1.6;
}

/* Buttons */
.cta-group {
    display: flex;
    gap: 16px;
}

.btn {
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn.primary {
    background: var(--text-color);
    color: #000; /* Texto negro para contraste */
}
.btn.primary:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

.btn.ghost {
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    backdrop-filter: blur(5px);
}
.btn.ghost:hover {
    background: var(--glass);
    border-color: var(--text-color);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.6;
}
.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--text-color), transparent);
}

/* Narrative Section */
.narrative {
    align-items: center;
    text-align: center;
}
.reveal-text {
    font-size: clamp(2rem, 4vw, 3.5rem);
    opacity: 0.1;
    transform: translateY(20px);
    transition: opacity 0.5s;
    margin-bottom: 10px;
}
.highlight-color {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Services Cards */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 60px;
}

.service-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 32px;
    border-radius: 16px;
    backdrop-filter: blur(15px); /* Más blur para separar del video */
    transition: transform 0.4s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(143, 91, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.service-card.feature {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(143, 91, 255, 0.1), rgba(0,0,0,0));
    backdrop-filter: blur(15px);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.service-card p {
    color: #ccc;
    line-height: 1.5;
    margin-bottom: 24px;
    flex-grow: 1;
}

.price-tag {
    font-family: monospace;
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.specs {
    list-style: none;
    color: #999;
    font-size: 0.9rem;
}
.specs li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.specs li::before {
    content: '•';
    color: var(--primary);
}

/* Contact Section */
.contact-box {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 60px;
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    backdrop-filter: blur(25px); /* Fuerte blur para que sea legible */
}

.col-left { flex: 2; }
.col-right { flex: 1; display: flex; flex-direction: column; gap: 40px; }

.big-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 2rem;
    text-decoration: none;
    color: white;
    border-bottom: 1px solid var(--glass-border);
    padding: 20px 0;
    transition: padding 0.3s;
}

.big-link:hover {
    padding-left: 20px;
    color: var(--secondary);
    border-color: var(--secondary);
}

.big-link .arr { font-size: 1.5rem; }

.info-block span {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #aaa;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .glitch-text { font-size: 3rem; }
    .contact-box { padding: 30px; flex-direction: column; gap: 40px; }
    .big-link { font-size: 1.5rem; }
}
