/* === VARIABLES REFLECT STYLE === */
:root {
    --bg-base: #000000;
    --bg-surface: #0a0a0a;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --text-main: #ffffff;
    --text-muted: #888899;
    
    --magenta: #ff0055;
    --cyan: #00f0ff;
    --purple: #7a00ff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection { background: rgba(0, 240, 255, 0.3); color: #fff; }

/* === LENIS SMOOTH SCROLL === */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* === FONDO AURORA === */
.aurora-bg { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; overflow: hidden; background: #000; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.35; animation: floatBlob 20s infinite alternate ease-in-out; will-change: transform; }
.blob.magenta { width: 40vw; height: 40vw; background: var(--magenta); top: -10%; left: -10%; }
.blob.cyan { width: 50vw; height: 50vw; background: var(--cyan); top: 40%; right: -20%; animation-delay: -5s; }
.blob.dark-blue { width: 60vw; height: 60vw; background: #001133; bottom: -20%; left: 10%; animation-delay: -10s; }
@keyframes floatBlob { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(10vw, 10vh) scale(1.2); } }
.noise-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E"); opacity: 0.05; pointer-events: none; mix-blend-mode: overlay; }

/* === NAVEGACIÓN PILL === */
header { position: fixed; top: 20px; left: 0; width: 100%; z-index: 100; display: flex; justify-content: center; padding: 0 20px; }
.nav-pill {
    background: rgba(15, 15, 15, 0.6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color); border-radius: 100px;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.5rem 0.5rem 0.5rem 1.5rem; width: 100%; max-width: 800px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: 1px; font-size: 0.95rem; }
.logo-orb { width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at top left, var(--cyan), var(--purple)); box-shadow: 0 0 10px rgba(0,240,255,0.5); }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: var(--text-main); }
.btn-ghost { color: #fff; text-decoration: none; font-size: 0.9rem; font-weight: 600; padding: 0.6rem 1.2rem; border-radius: 100px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.05); transition: 0.3s; }
.btn-ghost:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.2); }
@media (max-width: 600px) { .nav-links { display: none; } }

/* === BOTÓN PRIMARIO === */
.btn-primary {
    display: inline-flex; justify-content: center; align-items: center;
    background: #fff; color: #000; text-decoration: none;
    padding: 0.9rem 2rem; border-radius: 100px; font-weight: 600; font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s; border: none; cursor: pointer;
}
.btn-primary:hover { transform: scale(1.02); box-shadow: 0 0 20px rgba(255,255,255,0.3); }
.full-width { width: 100%; }

/* === HERO SECTION & APP MOCKUP === */
.hero { min-height: 100vh; max-width: 900px; margin: 0 auto; padding: 10rem 2rem 4rem 2rem; display: flex; flex-direction: column; align-items: center; text-align: center; }
.gs-reveal, .gs-card { opacity: 0; visibility: hidden; }

.badge {
    background: rgba(255,255,255,0.03); border: 1px solid var(--border-color);
    padding: 0.4rem 1rem; border-radius: 100px; font-size: 0.8rem; font-weight: 500;
    color: var(--text-muted); margin-bottom: 2rem; display: flex; align-items: center; gap: 8px;
}
.badge span { color: var(--magenta); font-size: 1rem; }
.hero h1 { font-size: clamp(3rem, 6vw, 6rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.04em; margin-bottom: 1.5rem; }
.text-glow { background: linear-gradient(180deg, #fff 0%, #888 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 20px rgba(255,255,255,0.2)); }
.hero p { font-size: 1.15rem; color: var(--text-muted); max-width: 600px; margin-bottom: 2.5rem; letter-spacing: -0.01em; }

/* El Mockup de la App */
.hero-app-preview {
    margin-top: 4rem; width: 100%; max-width: 800px;
    background: rgba(10, 10, 10, 0.7); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color); border-radius: 16px; overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.1);
    text-align: left;
}
.app-header { background: rgba(255,255,255,0.03); padding: 12px 20px; display: flex; align-items: center; border-bottom: 1px solid var(--border-color); }
.mac-dots { display: flex; gap: 6px; }
.mac-dots span { width: 10px; height: 10px; border-radius: 50%; }
.mac-dots .red { background: #ff5f56; } .mac-dots .yellow { background: #ffbd2e; } .mac-dots .green { background: #27c93f; }
.app-title { flex: 1; text-align: center; font-size: 0.8rem; color: var(--text-muted); font-family: monospace; margin-left: -48px; }
.app-body { display: flex; height: 250px; }
.sidebar { width: 120px; border-right: 1px solid var(--border-color); padding: 20px; background: rgba(0,0,0,0.2); }
.skeleton-line { height: 8px; background: rgba(255,255,255,0.1); border-radius: 4px; margin-bottom: 12px; }
.skeleton-line.short { width: 60%; }
.main-content { padding: 20px; flex: 1; }
.code-block { font-family: 'Courier New', monospace; font-size: 0.9rem; line-height: 1.6; color: #a9b7c6; }
.code-block .keyword { color: #cc7832; } .code-block .string { color: #6a8759; } .code-block .number { color: #6897bb; } .code-block .method { color: #ffc66d; }

/* === TECH MARQUEE === */
.tech-marquee { padding: 2rem 0 6rem 0; text-align: center; overflow: hidden; }
.marquee-label { font-size: 0.75rem; color: var(--text-muted); letter-spacing: 2px; margin-bottom: 2rem; }
.marquee-track { width: 100%; overflow: hidden; position: relative; }
.marquee-track::before, .marquee-track::after { content: ''; position: absolute; top: 0; width: 100px; height: 100%; z-index: 2; }
.marquee-track::before { left: 0; background: linear-gradient(90deg, var(--bg-base), transparent); }
.marquee-track::after { right: 0; background: linear-gradient(-90deg, var(--bg-base), transparent); }
.marquee-items { display: inline-flex; gap: 3rem; animation: scrollMarquee 20s linear infinite; font-size: 1.2rem; font-weight: 700; color: rgba(255,255,255,0.4); white-space: nowrap; }
.marquee-items span:nth-child(even) { color: var(--border-color); font-size: 0.8rem; }
@keyframes scrollMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* === BENTO GRID Nivel Dios === */
.bento-section { max-width: 1000px; margin: 0 auto; padding: 0 2rem 6rem 2rem; }
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; grid-auto-rows: minmax(320px, auto); }
@media (max-width: 800px) { .bento-grid { grid-template-columns: 1fr; grid-auto-rows: auto; } }

.bento-card {
    background: var(--bg-surface); border-radius: 24px; position: relative;
    border: 1px solid var(--border-color); overflow: hidden;
    transition: border-color 0.3s;
}
.bento-card:hover { border-color: var(--border-hover); }

/* Efecto Spotlight Cristalino */
.bento-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255,255,255,0.06), transparent 40%);
    opacity: 0; transition: opacity 0.5s; z-index: 0; pointer-events: none;
}
.bento-card:hover::before { opacity: 1; }

.span-2 { grid-column: span 2; }
@media (max-width: 800px) { .span-2 { grid-column: span 1; } }

.card-inner { padding: 2rem; position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
.card-inner.horizontal { flex-direction: row; align-items: center; gap: 2rem; }
@media (max-width: 600px) { .card-inner.horizontal { flex-direction: column; align-items: flex-start; } }

/* Visuales dentro de las tarjetas */
.card-visual { height: 120px; margin-bottom: 2rem; background: rgba(0,0,0,0.3); border-radius: 12px; border: 1px solid var(--border-color); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.abstract-glow-magenta { background: radial-gradient(circle at center, rgba(255,0,85,0.2), transparent 70%); }

/* Mockup de Frontend UI */
.ui-mockup { width: 80%; height: 60%; display: flex; flex-direction: column; gap: 8px; }
.ui-element { background: rgba(255,255,255,0.1); border-radius: 4px; height: 12px; }
.ui-element.pulse { width: 30px; height: 30px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 15px var(--cyan); }
.ui-element.short { width: 60%; }

/* Mockup de Backend Nodes */
.server-node-mockup { position: relative; width: 100px; height: 60px; }
.node { position: absolute; width: 12px; height: 12px; background: var(--border-color); border-radius: 50%; border: 2px solid var(--bg-surface); }
.node.main { top: 50%; left: 50%; transform: translate(-50%, -50%); width: 20px; height: 20px; background: var(--purple); box-shadow: 0 0 15px var(--purple); z-index: 2; }
.node.sub1 { top: 0; left: 0; } .node.sub2 { bottom: 0; left: 20px; } .node.sub3 { top: 10px; right: 0; }

.card-text h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 0.5rem; letter-spacing: -0.03em; }
.card-text p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* Visual de Métrica */
.metric-visual { display: flex; align-items: center; justify-content: center; min-width: 150px; }
.progress-ring { width: 100px; height: 100px; border-radius: 50%; border: 4px solid var(--border-color); border-top-color: var(--cyan); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.score { font-size: 2rem; font-weight: 800; color: #fff; line-height: 1; }
.score-label { font-size: 0.6rem; letter-spacing: 1px; color: var(--text-muted); }

/* === FORMULARIO ESTILO REFLECT === */
.contact-section { max-width: 700px; margin: 0 auto; padding: 0 2rem 8rem 2rem; }
.contact-box { padding: 1rem; }
.contact-header { margin-bottom: 2rem; text-align: left; display: flex; align-items: flex-start; gap: 1rem; }
.status-dot { width: 12px; height: 12px; border-radius: 50%; background: #27c93f; margin-top: 8px; box-shadow: 0 0 10px #27c93f; }
.contact-header h2 { font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }

.reflect-form { display: flex; flex-direction: column; gap: 1.5rem; }
.input-row { display: flex; gap: 1.5rem; }
@media (max-width: 500px) { .input-row { flex-direction: column; gap: 1.5rem; } }
.input-group { flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.input-group label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }
.input-group input, .input-group textarea {
    width: 100%; padding: 0.8rem 1rem; background: rgba(0,0,0,0.4);
    border: 1px solid var(--border-color); border-radius: 8px;
    color: #fff; font-family: inherit; font-size: 0.95rem; outline: none; transition: 0.3s;
}
.input-group textarea { min-height: 100px; resize: vertical; }
.input-group input:focus, .input-group textarea:focus { border-color: rgba(255,255,255,0.4); background: rgba(0,0,0,0.8); }

#statusMessage { margin-top: 1rem; text-align: center; font-size: 0.9rem; font-weight: 500; }

/* === FOOTER === */
footer { border-top: 1px solid var(--border-color); padding: 4rem 2rem; }
.footer-container { max-width: 1000px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
@media (max-width: 600px) { .footer-container { flex-direction: column; gap: 2rem; text-align: center; } }
.footer-brand .logo { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: 1px; margin-bottom: 0.5rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; }
.footer-legal p { color: rgba(255,255,255,0.3); font-size: 0.8rem; }