/* CSS Variables for Premium Dark Theme */
:root {
    --bg-main: #050507;
    --bg-secondary: #0a0a0f;
    --bg-glass: rgba(15, 15, 20, 0.6);
    
    --text-main: #ffffff;
    --text-muted: #a0a0ab;
    
    --accent-primary: #00f0ff;
    --accent-glow: rgba(0, 240, 255, 0.4);
    --accent-secondary: #ff3366;
    
    --border-color: rgba(255, 255, 255, 0.1);
    
    --font-heading: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    letter-spacing: -0.04em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.05em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img, video {
    max-width: 100%;
    display: block;
}

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

.text-center { text-align: center; }

/* Utilities */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1) inset;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--accent-primary);
    opacity: 0;
    z-index: -1;
    transition: var(--transition);
}

.btn-primary:hover {
    color: #000;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.5);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary.small {
    padding: 10px 20px;
    font-size: 0.85rem;
}

.btn-primary.large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.w-100 { width: 100%; }

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 7, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 40px;
    object-fit: contain;
    mix-blend-mode: screen;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: var(--text-main);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a:not(.btn-primary) {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:not(.btn-primary):hover {
    color: var(--text-main);
    text-shadow: 0 0 8px rgba(255,255,255,0.5);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 24px 120px;
    overflow: hidden;
}

.hero-bg, .hero-bg-fallback {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-bg-fallback {
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(5,5,7,0.4) 0%, rgba(5,5,7,0.9) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin-bottom: 60px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 32px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge .dot {
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-primary);
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 24px;
    background: linear-gradient(180deg, #FFFFFF 0%, #A0A0AB 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.scroll-indicator p {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

/* Sections General */
section {
    padding: 120px 0;
    position: relative;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 64px;
}

/* El Sistema */
.sistema {
    background: var(--bg-secondary);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 80px;
}

.step-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    padding: 40px 32px;
    border-radius: 16px;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    transform: scaleX(0);
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    border-color: rgba(0, 240, 255, 0.3);
}

.step-card:hover::before {
    transform: scaleX(1);
}

.step-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: rgba(255,255,255,0.03);
    line-height: 1;
}

.step-icon {
    width: 64px;
    height: 64px;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    margin-bottom: 24px;
}

.step-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.step-text {
    color: var(--text-muted);
}

/* App Feature Mockup */
.app-feature {
    display: flex;
    align-items: center;
    gap: 60px;
    background: linear-gradient(135deg, rgba(15,15,20,0.8) 0%, rgba(5,5,7,0.9) 100%);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 60px;
    box-shadow: inset 0 0 40px rgba(0, 240, 255, 0.05);
}

.app-content {
    flex: 1;
}

.app-content h3 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.app-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.app-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 260px;
    height: 520px;
    background: #000;
    border-radius: 36px;
    border: 8px solid #333;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.8), 0 0 30px rgba(0, 240, 255, 0.2);
    overflow: hidden;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background-image: url('assets/hero.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.camera-ui {
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

.rec-indicator {
    color: #ff3366;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: monospace;
}

.rec-indicator span {
    width: 10px; height: 10px;
    background: #ff3366;
    border-radius: 50%;
    animation: blink 1s infinite;
}

.crosshair {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 40px; height: 40px;
    border: 1px solid rgba(0, 240, 255, 0.5);
}
.crosshair::before, .crosshair::after {
    content: ''; position: absolute; background: rgba(0, 240, 255, 0.8);
}
.crosshair::before { top: 50%; left: -10px; right: -10px; height: 1px; }
.crosshair::after { left: 50%; top: -10px; bottom: -10px; width: 1px; }

.stats {
    font-family: monospace;
    color: #fff;
    font-size: 0.8rem;
    text-shadow: 1px 1px 2px #000;
}

/* Beneficios */
.beneficios {
    background: var(--bg-main);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.benefit-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

.benefit-image {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.benefit-card:hover .benefit-image {
    transform: scale(1.05);
}

.benefit-content {
    padding: 32px;
    background: linear-gradient(180deg, rgba(15,15,20,0.4) 0%, rgba(5,5,7,0.9) 100%);
    position: relative;
    z-index: 1;
}

.benefit-content h4 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--accent-primary);
}

.benefit-content p {
    color: var(--text-muted);
}

/* Cotizar */
.cotizar {
    background: radial-gradient(circle at top, rgba(0,240,255,0.05) 0%, var(--bg-secondary) 100%);
    position: relative;
}

.cotizar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.3), transparent);
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h2 {
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.form-header p {
    color: var(--text-muted);
}

.custom-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.form-group input {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

.form-success {
    text-align: center;
    padding: 40px 0;
}

.form-success svg {
    margin-bottom: 16px;
}

.form-success h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--accent-primary);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 0 24px;
    background: #000;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand .footer-logo {
    height: 32px;
    mix-blend-mode: screen;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 300px;
}

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

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 24px;
    text-align: center;
    color: rgba(255,255,255,0.3);
    font-size: 0.85rem;
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0, 240, 255, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 240, 255, 0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Reveal Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpAnim 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { animation-delay: 0.2s; transition-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; transition-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; transition-delay: 0.6s; }

@keyframes fadeUpAnim {
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 900px) {
    .app-feature {
        flex-direction: column;
        text-align: center;
        padding: 40px 24px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 73px;
        left: 0;
        width: 100%;
        background: rgba(5, 5, 7, 0.95);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 40px 24px;
        transform: translateY(-100%);
        opacity: 0;
        transition: var(--transition);
        pointer-events: none;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    
    .hamburger { display: flex; }
    
    .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }
    
    .form-container { padding: 32px 24px; }
    
    .footer-content { flex-direction: column; text-align: center; }
}
