@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

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

:root {
    --blue: #0E4BF1;
    --blue-dark: #0a38c0;
    --dark: #0a0f1e;
    --dark2: #111827;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --card-bg: #1e293b;
    --border: rgba(255,255,255,0.08);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark);
    color: var(--text);
    overflow-x: hidden;
}

/* ── NAVBAR ── */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 18px 0;
    transition: background 0.3s, box-shadow 0.3s;
}
.navbar.scrolled {
    background: rgba(10, 15, 30, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.nav-logo img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.nav-logo span { font-size: 20px; font-weight: 700; color: #fff; }

/* ── BUTTONS ── */
.btn-nav {
    background: var(--blue);
    color: #fff;
    padding: 10px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s, transform 0.15s;
}
.btn-nav:hover { background: var(--blue-dark); transform: translateY(-1px); }

.btn-primary {
    background: var(--blue);
    color: #fff;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(14,75,241,0.4);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 6px 28px rgba(14,75,241,0.5); }
.btn-primary.large { padding: 16px 36px; font-size: 16px; }

.btn-ghost {
    color: rgba(255,255,255,0.7);
    padding: 14px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.5); color: #fff; }

/* ── HERO ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0 24px;
    background: var(--dark);
}
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(10,15,30,0.88) 0%, rgba(14,75,241,0.22) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}
.hero-tag {
    display: inline-block;
    background: rgba(14,75,241,0.2);
    border: 1px solid rgba(14,75,241,0.5);
    color: #6b9fff;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}
.hero-content h1 {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 40%, #6b9fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-content p {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}
.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── STATS ── */
.stats {
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 36px 24px;
}
.stats-container {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}
.stat-num {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--blue);
}
.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
}

/* ── SECTION COMMONS ── */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.section-header {
    text-align: center;
    margin-bottom: 56px;
}
.section-header h2 {
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 700;
    margin-bottom: 14px;
    color: #fff;
}
.section-header p {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}
.section-header.light h2 { color: #fff; }
.section-header.light p { color: rgba(255,255,255,0.6); }

/* ── FEATURES ── */
.features {
    padding: 96px 24px;
    background: var(--dark);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 28px;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(14,75,241,0.4);
    box-shadow: 0 8px 32px rgba(14,75,241,0.15);
}
.feature-icon {
    width: 52px;
    height: 52px;
    background: rgba(14,75,241,0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.feature-icon i { font-size: 26px; color: var(--blue); }
.feature-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; color: #fff; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ── INDUSTRIES ── */
.industries {
    padding: 96px 24px;
    background: linear-gradient(135deg, #0a1628 0%, #0d2147 100%);
}
.industries-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.industry-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-align: center;
    transition: background 0.2s, transform 0.2s;
    cursor: default;
}
.industry-item:hover {
    background: rgba(14,75,241,0.15);
    transform: translateY(-3px);
    border-color: rgba(14,75,241,0.4);
}
.industry-item i { font-size: 30px; color: #6b9fff; }
.industry-item span { font-size: 13px; color: var(--text-muted); font-weight: 500; }

/* ── HOW IT WORKS ── */
.how-it-works {
    padding: 96px 24px;
    background: var(--dark);
}
.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}
.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 260px;
    padding: 0 16px;
}
.step-num {
    width: 56px;
    height: 56px;
    background: var(--blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(14,75,241,0.4);
}
.step h3 { font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 10px; }
.step p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.step-arrow {
    font-size: 36px;
    color: rgba(14,75,241,0.5);
    padding: 0 8px;
    align-self: flex-start;
    margin-top: 10px;
}

/* ── CTA ── */
.cta {
    padding: 96px 24px;
    background: url('/static/img/Fondo2.webp') center/cover no-repeat;
    position: relative;
    text-align: center;
}
.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10,15,30,0.82);
}
.cta-content {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}
.cta h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 700; color: #fff; margin-bottom: 16px; }
.cta p { font-size: 17px; color: rgba(255,255,255,0.65); margin-bottom: 36px; line-height: 1.6; }

/* ── FOOTER ── */
.footer {
    background: #060b17;
    border-top: 1px solid var(--border);
    padding: 28px 24px;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-logo img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.footer-logo span { font-size: 16px; font-weight: 600; color: #fff; }
.footer-copy { font-size: 13px; color: var(--text-muted); }

/* ── CONTROLES DE MEDIA ── */
.media-controls {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 200;
    display: flex;
    gap: 10px;
}
.media-controls button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(10,15,30,0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(255,255,255,0.7);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.media-controls button:hover {
    background: rgba(14,75,241,0.35);
    border-color: rgba(14,75,241,0.6);
    color: #fff;
}
.media-controls button.active {
    background: rgba(14,75,241,0.5);
    border-color: rgba(14,75,241,0.8);
    color: #fff;
}

/* ── MODO VIDEO ── */
.navbar,
.stats,
.features,
.industries,
.how-it-works,
.cta,
.footer,
.hero-content,
.hero-overlay {
    transition: opacity 0.5s ease;
}
body.video-mode .navbar,
body.video-mode .stats,
body.video-mode .features,
body.video-mode .industries,
body.video-mode .how-it-works,
body.video-mode .cta,
body.video-mode .footer,
body.video-mode .hero-content,
body.video-mode .hero-overlay {
    opacity: 0;
    pointer-events: none;
}
body.video-mode {
    overflow: hidden;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .industries-grid { grid-template-columns: repeat(3, 1fr); }
    .stats-container { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .step-arrow { display: none; }
    .steps { gap: 32px; }
}
@media (max-width: 600px) {
    .features-grid { grid-template-columns: 1fr; }
    .industries-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-btns { flex-direction: column; align-items: center; }
}
