/* ============================================================
   SIF — Landing page stylesheet
   Estilo oscuro, sobrio e institucional. Sin gradientes,
   sin glows y sin efectos de cristal. Colores apagados y
   tipografía contenida para evitar el aspecto "generado por IA".
   ============================================================ */

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

:root {
    --bg:        #111317;
    --bg-2:      #16181d;
    --surface:   #1c1f25;
    --card:      #20242b;
    --border:    rgba(255,255,255,0.08);
    --border-hi: rgba(255,255,255,0.14);
    --text:      #e8eaed;
    --muted:     #9ca3af;
    --muted-2:   #6b7280;
    --accent:    #e8eaed;
    --accent-hi: #ffffff;
    --accent-2:  #5b8def;
    --btn-bg:    #d4d4d8;
    --btn-text:  #111317;
    --success:   #22c55e;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow:    0 4px 12px rgba(0,0,0,0.25);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.3);
    --r:         8px;
    --r-lg:      12px;
    --ease:      cubic-bezier(0.22, 1, 0.36, 1);
    --t:         all 0.2s var(--ease);
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

:focus-visible {
    outline: 2px solid rgba(255,255,255,0.5);
    outline-offset: 2px;
    border-radius: 4px;
}

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================================
   LAYOUT
   ============================================================ */
.page { position: relative; min-height: 100vh; display: flex; flex-direction: column; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; width: 100%; }
.section { padding: 80px 0; }
.section-header { max-width: 680px; margin-bottom: 44px; }
.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-bottom: 10px;
}
.section-title {
    font-size: clamp(24px, 3.2vw, 32px);
    font-weight: 600;
    letter-spacing: -0.2px;
    line-height: 1.25;
    color: var(--text);
}
.section-subtitle {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.65;
    margin-top: 12px;
    max-width: 580px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    padding: 10px 18px;
    border-radius: 8px;
    transition: var(--t);
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid transparent;
}
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 13px 26px; font-size: 15.5px; }
.btn-primary {
    background: var(--btn-bg);
    color: var(--btn-text);
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--accent-hi); transform: translateY(-1px); }
.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-hi);
}
.btn-ghost:hover { background: rgba(255,255,255,0.04); border-color: var(--border-hi); }
.btn-arrow { font-size: 12px; transition: transform 0.2s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }
.btn-tag {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: var(--btn-text);
    background: rgba(0,0,0,0.12);
    border: 1px solid rgba(0,0,0,0.2);
    padding: 3px 7px;
    border-radius: 999px;
    margin-left: 4px;
    line-height: 1;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(17,19,23,0.96);
    border-bottom: 1px solid var(--border);
    height: 72px;
    display: flex;
    align-items: center;
    transition: var(--t);
}
.nav.scrolled {
    background: rgba(17,19,23,0.98);
    border-bottom-color: var(--border-hi);
}
.nav-inner {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.nav-logo { display: flex; align-items: center; }
.nav-wordmark {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.3px;
    line-height: 1;
    color: var(--text);
    padding: 4px 2px;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    padding: 7px 14px;
    border-radius: 7px;
    transition: var(--t);
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-hamburger {
    display: none;
    background: transparent;
    border: 1px solid var(--border-hi);
    border-radius: 8px;
    padding: 8px 10px;
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
}

/* Mobile overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 84px 28px 28px;
    gap: 6px;
}
.mobile-overlay.open { display: flex; }
.mobile-overlay a {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    padding: 14px 4px;
    width: 100%;
    border-bottom: 1px solid var(--border);
}
.mobile-overlay a:hover { color: var(--accent); }
.mob-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: transparent;
    border: 1px solid var(--border-hi);
    border-radius: 8px;
    padding: 8px 10px;
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    padding: 80px 0 72px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-2);
    overflow: hidden;
}
.hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.hero-content { max-width: 720px; }
.hero-title {
    font-size: clamp(30px, 4.2vw, 44px);
    font-weight: 600;
    letter-spacing: -0.4px;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 18px;
}
.hero-title-accent { color: inherit; }
.hero-desc {
    font-size: 17px;
    color: var(--muted);
    line-height: 1.65;
    max-width: 580px;
    margin: 0 auto 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 12px; margin-bottom: 28px; }
.hero-actions .btn { padding: 12px 22px; font-size: 15px; min-height: 48px; }
.hero-primary-col {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}
.hero-secondary-link {
    display: block;
    text-align: center;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--muted);
    transition: var(--t);
    text-decoration: none;
    white-space: nowrap;
}
.hero-secondary-link:hover { color: var(--accent); }
.hero-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 22px;
    font-size: 13px;
    color: var(--muted-2);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta i { font-size: 14px; color: var(--muted); }

/* ============================================================
   STATS / TRUST
   ============================================================ */
.stats-section { background: var(--bg); border-bottom: 1px solid var(--border); }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 48px;
}
.stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 26px 22px;
    text-align: left;
    transition: var(--t);
}
.stat:hover { border-color: var(--border-hi); }
.stat-num {
    display: block;
    font-size: clamp(24px, 2.8vw, 32px);
    font-weight: 600;
    letter-spacing: -0.2px;
    line-height: 1;
    color: var(--text);
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
}
.stat-label {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.5;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features-section { background: var(--bg-2); }
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.feature {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px;
    transition: var(--t);
    position: relative;
    overflow: hidden;
}
.feature:hover { border-color: var(--border-hi); }
.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-2);
    color: var(--muted);
    font-size: 18px;
    margin-bottom: 18px;
    border: 1px solid var(--border);
}
.feature h4 { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 8px; letter-spacing: -0.1px; }
.feature p  { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ============================================================
   DOWNLOADS
   ============================================================ */
.downloads-section { background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.downloads-groups {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.download-group {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
}
.download-group-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 22px;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
}
.download-group-header i {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    color: var(--muted);
    font-size: 18px;
    border: 1px solid var(--border);
}
.download-group-header h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.1px; }
.download-items { padding: 8px; }
.download-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 15px;
    border-radius: 8px;
    transition: var(--t);
}
.download-item:hover { background: rgba(255,255,255,0.03); }
.platform-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--text);
}
.download-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.download-item-name { font-size: 14px; font-weight: 600; color: var(--text); }
.download-item-detail { font-size: 12px; color: var(--muted-2); }
.badge-soon {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--muted-2);
    background: var(--bg-2);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 4px;
}
.badge-download {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--btn-text);
    background: var(--btn-bg);
    padding: 5px 12px;
    border-radius: 4px;
    transition: var(--t);
    text-decoration: none;
    white-space: nowrap;
}
a.download-item:hover .badge-download { background: var(--accent-hi); }
a.download-item { text-decoration: none; color: inherit; }
a.download-item:hover { background: rgba(255,255,255,0.03); }

/* ============================================================
   CONTACT / FOOTER
   ============================================================ */
.contact-section { padding: 72px 0 40px; background: var(--bg-2); }
.contact-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 44px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 36px;
    align-items: center;
    margin-bottom: 40px;
}
.contact-box-text h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; letter-spacing: -0.2px; margin-bottom: 8px; color: var(--text); }
.contact-box-text p  { font-size: 15px; color: var(--muted); line-height: 1.6; }
.contact-actions { display: flex; gap: 12px; }
.footer-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand .nav-wordmark { font-size: 20px; }
.footer-logo { height: 34px; width: auto; }
.footer-copy { font-size: 13px; color: var(--muted-2); text-align: left; }
.footer-links { display: flex; gap: 12px; }
.footer-links a {
    font-size: 16px;
    color: var(--muted-2);
    width: 38px; height: 38px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border);
    transition: var(--t);
}
.footer-links a:hover { color: var(--text); border-color: var(--border-hi); background: rgba(255,255,255,0.04); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; gap: 48px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-box { grid-template-columns: 1fr; text-align: left; }
    .contact-actions { justify-content: flex-start; }
    .nav-links { display: none; }
    .nav-hamburger { display: block; }
}
@media (max-width: 680px) {
    .section { padding: 64px 0; }
    .hero { padding: 56px 0 56px; }
    .features-grid,
    .downloads-groups { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn { width: 100%; }
    .hero-primary-col { width: 100%; }
    .contact-box { padding: 32px; }
    .contact-actions { flex-direction: column; width: 100%; }
    .contact-actions .btn { width: 100%; }
    .footer-bar { grid-template-columns: 1fr; gap: 18px; }
    .footer-brand { flex-direction: column; align-items: flex-start; gap: 6px; }
}
