:root {
    --bg-dark: #040914;
    --bg-card: rgba(15, 23, 42, 0.65);
    --border-color: rgba(255, 255, 255, 0.08);
    
    --primary: #0ea5e9;     /* Cyan/Blue tech */
    --primary-glow: rgba(14, 165, 233, 0.4);
    --accent: #10b981;      /* Emerald Green */
    --accent-glow: rgba(16, 185, 129, 0.3);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

html {
    scroll-padding-top: 100px;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(14, 165, 233, 0.08), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.05), transparent 40%);
    background-attachment: fixed;
}

h1, h2, h3, h4, .title {
    font-family: var(--font-heading);
    color: #fff;
}

/* Utils */
.section-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
}

.center { text-align: center; }
.text-red { color: #ef4444 !important; }
.text-orange { color: #f59e0b !important; }
.title { font-size: 2.5rem; margin-bottom: 1rem; font-weight: 700; }
.subtitle { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 3rem; }

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
    background: #0284c7;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
}
.glass-panel.border-primary { border-top: 4px solid var(--primary); }
.glass-panel.border-accent { border-top: 4px solid var(--accent); }

/* Navbar */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    padding: 1.5rem 5%;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 1000; transition: all 0.3s ease;
}
.navbar.scrolled {
    padding: 1rem 5%;
    background: rgba(4, 9, 20, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}
.logo { font-size: 1.6rem; font-weight: 800; font-family: var(--font-heading); color: #fff; letter-spacing: 1px;}
.logo-accent { color: var(--primary); }

.nav-links { display: flex; gap: 1rem; list-style: none; }
.nav-links a {
    color: var(--text-main); 
    text-decoration: none; 
    font-weight: 600;
    transition: all 0.3s ease; 
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    background: rgba(14, 165, 233, 0.15); /* Stronger color */
    border: 1px solid rgba(14, 165, 233, 0.4);
}
.nav-links a:hover { 
    color: #fff;
    background: var(--primary); /* Full solid color on hover */
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--primary-glow);
}

/* Visibility classes for SPA */
.hidden-section {
    display: none !important;
}

/* Small navigation buttons */
.section-nav-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    border-radius: 6px;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 5% 4rem;
    position: relative;
}
.hero::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://w.wallhaven.cc/full/z8/wallhaven-z8k91j.jpg') center/cover;
    opacity: 0.15; z-index: -1; filter: grayscale(100%) contrast(150%);
}

.hero-content {
    max-width: 900px;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.6rem;
    color: var(--primary);
    font-weight: 400;
    margin-bottom: 3rem;
    letter-spacing: -0.5px;
}

.hero-quote {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-muted);
    border-left: 4px solid var(--primary);
    padding: 1rem 2rem;
    margin: 0 auto 3rem;
    background: rgba(14, 165, 233, 0.05);
    border-radius: 0 12px 12px 0;
    text-align: left;
    max-width: 800px;
}
.hero-quote strong { color: #fff; font-weight: 600; }

.hero-buttons {
    display: flex; justify-content: center; gap: 1rem;
}

/* Workflow Section */
.workflow-section { padding: 6rem 0; background: rgba(0,0,0,0.2); }
.workflow-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
    margin-bottom: 4rem;
}
.wf-card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    padding: 2.5rem 2rem; border-radius: 12px; text-align: center;
    transition: transform 0.3s;
}
.wf-card:hover { transform: translateY(-5px); border-color: var(--primary); }
.wf-icon {
    width: 60px; height: 60px; background: rgba(14,165,233,0.1);
    color: var(--primary); font-size: 1.8rem; font-weight: 800;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem; border: 1px solid rgba(14,165,233,0.3);
}
.wf-card h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.wf-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Media Showcase */
.media-showcase {
    display: flex; flex-direction: column; gap: 2rem;
}
.video-wrapper {
    width: 100%; height: 500px; background: #000; border-radius: 16px;
    border: 1px solid var(--border-color); position: relative;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.video-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    text-align: center; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
    cursor: pointer; transition: all 0.3s;
}
.video-overlay:hover { background: rgba(0,0,0,0.2); }
.video-overlay:hover ion-icon { transform: scale(1.1); }
.video-overlay ion-icon { font-size: 5rem; color: var(--primary); transition: transform 0.3s; }
.video-overlay span { font-weight: 600; font-size: 1.2rem; }

.images-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.img-box {
    height: 350px; background: #0f172a; border-radius: 16px;
    border: 1px solid var(--border-color);
    background-size: cover; background-position: center;
}
/* Estos IDs se actualizarán vía JS o in-line cuando tengamos las imagenes generadas */
#img-dashboard { background-image: url('./assets/dashboard.png'); }
#img-analysis { background-image: url('./assets/analysis.png'); }

/* Problem & Solution */
.problem-solution-section { padding: 6rem 0; }
.split-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.align-start { align-items: start; }

.badge {
    display: inline-block; padding: 0.3rem 1rem; background: rgba(16,185,129,0.1);
    color: var(--accent); border-radius: 20px; font-weight: 600; font-size: 0.85rem;
    margin-bottom: 1.5rem; border: 1px solid rgba(16,185,129,0.3);
}

.lista-detalles { list-style: none; display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
.lista-detalles li { display: flex; gap: 1rem; align-items: flex-start; }
.lista-detalles ion-icon { font-size: 1.8rem; flex-shrink: 0; margin-top: 0.2rem; }
.lista-detalles strong { display: block; font-size: 1.1rem; color: #fff; margin-bottom: 0.3rem;}
.lista-detalles span { color: var(--text-muted); font-size: 0.95rem; }

.lista-check { list-style: none; display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.lista-check li { display: flex; gap: 0.8rem; align-items: flex-start; color: var(--text-muted); }
.lista-check ion-icon { color: var(--accent); font-size: 1.4rem; flex-shrink: 0; }
.lista-check strong { color: #fff; }

.technologies { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border-color); }
.technologies h4 { margin-bottom: 1rem; color: var(--text-muted); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px;}
.tech-tags { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.tech-tags span {
    background: rgba(255,255,255,0.05); border: 1px solid var(--border-color);
    padding: 0.5rem 1rem; border-radius: 8px; font-size: 0.9rem; font-weight: 500;
}

/* Specialties */
.specialties-section { padding: 6rem 0; background: rgba(15,23,42,0.3); }
.categories-masonry {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem; align-items: start;
}
.cat-card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    padding: 1.5rem; border-radius: 12px; transition: all 0.3s;
}
.cat-card:hover { border-color: rgba(14,165,233,0.4); background: rgba(15,23,42,0.8); }
.cat-card h4 { font-size: 1.1rem; margin-bottom: 1rem; color: var(--primary); border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem;}
.cat-card ul { list-style: none; }
.cat-card li { font-size: 0.85rem; color: var(--text-muted); padding: 0.3rem 0; display: flex; align-items: center; gap: 0.5rem;}
.cat-card li::before { content: "•"; color: rgba(255,255,255,0.2); }
.misc-cats h4 { color: #fff; }
.misc-cats li::before { display: none; }

/* Benefits */
.benefits-section { padding: 6rem 0; }
.benefits-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 4rem;
}
.benefit-box {
    text-align: center; padding: 2.5rem 2rem; background: var(--bg-card);
    border-radius: 16px; border: 1px solid var(--border-color);
}
.benefit-box ion-icon { font-size: 3rem; color: var(--primary); margin-bottom: 1.5rem; }
.benefit-box h3 { margin-bottom: 1.5rem; font-size: 1.4rem; }
.benefit-box ul {
    text-align: left; list-style: none; display: flex; flex-direction: column; gap: 0.8rem;
}
.benefit-box li {
    font-size: 0.95rem; color: var(--text-muted); padding-left: 1.5rem; position: relative;
}
.benefit-box li::before {
    content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: bold;
}

/* Future & Contact */
.future-section { padding: 6rem 0; }
.future-header { margin-bottom: 4rem; }
.stats-list { list-style: none; margin-bottom: 2.5rem; }
.stats-list li {
    font-size: 1.1rem; color: var(--text-muted); padding: 1rem;
    background: rgba(255,255,255,0.03); border-radius: 8px; margin-bottom: 1rem;
    border-left: 3px solid var(--primary);
}
.stats-list strong { color: #fff; font-size: 1.2rem; }

/* Contact Form */
.contact-form-container {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}
.contact-form-container h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: #fff;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.form-group label {
    font-size: 0.9rem;
    color: var(--text-muted);
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    transition: all 0.3s;
}
.form-group select option {
    background: var(--bg-card); /* Dark background matching panels */
    color: #fff;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
    background: rgba(0, 0, 0, 0.4);
}
.form-group textarea {
    resize: vertical;
}
.btn-submit {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
}

.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}
.checkbox-group input[type="checkbox"] {
    width: auto;
    padding: 0;
    margin-top: 0.25rem;
    transform: scale(1.2);
    cursor: pointer;
}
.checkbox-group label {
    font-size: 0.9rem;
    line-height: 1.4;
    cursor: pointer;
    font-weight: normal;
}

.contact-box {
    margin-top: 3rem; display: flex; flex-direction: column; gap: 1rem;
}
.contact-box h4 { margin-bottom: 0.5rem; font-size: 1.2rem;}
.contact-box a {
    display: flex; align-items: center; gap: 0.8rem; color: var(--text-muted);
    text-decoration: none; font-size: 1.1rem; transition: color 0.3s;
}
.contact-box a:hover { color: var(--primary); }
.contact-box ion-icon { color: var(--primary); }

/* Footer */
footer {
    border-top: 1px solid var(--border-color); padding: 3rem 0;
    background: #020617;
}
.footer-layout {
    display: flex; justify-content: space-between; align-items: center;
}
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.5rem; }
.footer-copy { color: var(--text-muted); font-size: 0.9rem; }


/* Responsive */
@media (max-width: 1024px) {
    .workflow-grid, .benefits-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 3.5rem; }
    .split-grid { grid-template-columns: 1fr; }
    .images-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-title { font-size: 2.8rem; }
    .workflow-grid, .benefits-grid { grid-template-columns: 1fr; }
    .hero-quote { margin: 0 1rem 3rem; }
    .footer-layout { flex-direction: column; text-align: center; gap: 2rem; }
}
