/* ForGan - landing page */

:root {
    --ink: #0b1424;
    --ink-2: #13213a;
    --navy: #2c3e50;
    --blue: #1f6fae;
    --sky: #3ba3f5;
    --mint: #3cc99a;
    --text: #1d2939;
    --muted: #5b6b80;
    --line: #e4e9f0;
    --bg: #ffffff;
    --bg-alt: #f5f8fc;
    --radius: 18px;
    --shadow: 0 20px 50px -20px rgba(15, 35, 70, 0.35);
    --font: 'Inter Variable', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.6em; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }
.muted { color: var(--muted); }

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: #fff; padding: 0.6rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

/* ------------------------------------------------------------------ Botones */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    font-weight: 600; font-size: 0.95rem;
    padding: 0.75rem 1.3rem; border-radius: 12px; border: 1px solid transparent;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, color 0.2s;
    white-space: nowrap; cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.875rem; border-radius: 10px; }
.btn-lg { padding: 0.95rem 1.6rem; font-size: 1rem; }
.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--sky));
    box-shadow: 0 10px 25px -10px rgba(59, 163, 245, 0.8);
}
.btn-primary:hover { box-shadow: 0 14px 30px -10px rgba(59, 163, 245, 0.9); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.06); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-light { color: var(--ink); background: #fff; }
.btn i { transition: transform 0.2s; }
.btn:hover i.bi-arrow-right { transform: translateX(3px); }

.eyebrow {
    display: inline-flex; align-items: center; gap: 0.45rem;
    font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
    color: var(--blue); margin-bottom: 1rem;
}

/* ------------------------------------------------------------- Navegación */
.nav {
    position: fixed; inset: 0 0 auto; z-index: 50;
    transition: background-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
.nav.scrolled { background: rgba(11, 20, 36, 0.85); backdrop-filter: saturate(160%) blur(14px); box-shadow: 0 1px 0 rgba(255,255,255,0.06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.2rem; color: #fff; }
.brand img { border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { color: rgba(255,255,255,0.78); font-size: 0.92rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 0.6rem; }
.nav-toggle {
    display: none; width: 42px; height: 42px; border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2); background: transparent; color: #fff; font-size: 1.4rem; cursor: pointer;
}
.nav-cta-mobile { display: none; }

/* ------------------------------------------------------------------- Hero */
.hero {
    position: relative; overflow: hidden;
    background: radial-gradient(1200px 600px at 80% -10%, #1b3b66 0%, transparent 60%), var(--ink);
    color: #fff;
    padding: 150px 0 110px;
}
.hero-glow {
    position: absolute; inset: auto -20% -40% auto; width: 700px; height: 700px; border-radius: 50%;
    background: radial-gradient(circle, rgba(60, 201, 154, 0.22), transparent 65%);
    filter: blur(20px); pointer-events: none;
}
.hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 4rem; align-items: center; }
.hero .eyebrow { color: #8fd3ff; background: rgba(59,163,245,0.12); border: 1px solid rgba(59,163,245,0.25); padding: 0.4rem 0.8rem; border-radius: 999px; text-transform: none; letter-spacing: 0; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); font-weight: 800; }
.grad { background: linear-gradient(90deg, #6cc2ff, var(--mint)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.12rem; color: rgba(255,255,255,0.75); max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 2rem 0 1.6rem; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; color: rgba(255,255,255,0.75); font-size: 0.92rem; }
.hero-points i { color: var(--mint); margin-right: 0.35rem; }

/* Vista previa del producto */
.hero-visual { position: relative; }
.mock {
    border-radius: 16px; overflow: hidden;
    background: #fff; color: var(--text);
    box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.08);
    transform: perspective(1400px) rotateY(-8deg) rotateX(4deg);
    transition: transform 0.6s ease;
}
.hero-visual:hover .mock { transform: perspective(1400px) rotateY(-3deg) rotateX(2deg); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #eef2f7; border-bottom: 1px solid var(--line); }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: #d0d7e2; }
.mock-bar span:nth-child(1) { background: #ff6b6b; }
.mock-bar span:nth-child(2) { background: #ffc94d; }
.mock-bar span:nth-child(3) { background: #3cc99a; }
.mock-url { margin-left: 10px; flex: 1; font-size: 0.72rem; color: var(--muted); background: #fff; border-radius: 6px; padding: 3px 10px; }
.mock-body { display: grid; grid-template-columns: 120px 1fr; min-height: 300px; }
.mock-side { background: var(--navy); padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; }
.mock-logo { display: flex; align-items: center; gap: 6px; color: #fff; font-weight: 700; font-size: 0.8rem; margin-bottom: 8px; }
.mock-logo img { border-radius: 4px; }
.mock-side i { display: block; height: 8px; border-radius: 4px; background: rgba(255,255,255,0.15); }
.mock-side i.active { background: var(--sky); width: 80%; }
.mock-main { padding: 16px; background: #f6f8fb; }
.mock-title { font-weight: 700; font-size: 0.85rem; margin-bottom: 12px; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.mock-stats div { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.mock-stats b { display: block; font-size: 1.1rem; color: var(--navy); }
.mock-stats small { font-size: 0.65rem; color: var(--muted); }
.mock-rows { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.mock-rows li { display: flex; align-items: center; gap: 8px; padding: 9px 10px; font-size: 0.72rem; border-bottom: 1px solid var(--line); }
.mock-rows li:last-child { border-bottom: 0; }
.mock-rows i { font-size: 0.95rem; }
.mock-rows .bi-file-earmark-word { color: #2b6cd8; }
.mock-rows .bi-file-earmark-excel { color: #1e8e57; }
.mock-rows span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-rows em { font-style: normal; font-weight: 600; font-size: 0.62rem; padding: 2px 8px; border-radius: 999px; }
.mock-rows em.ok { background: #e3f7ee; color: #18865b; }
.mock-rows em.draft { background: #fff4d6; color: #a26a00; }

.float-card {
    position: absolute; display: flex; align-items: center; gap: 0.7rem;
    background: rgba(255,255,255,0.96); color: var(--text);
    border-radius: 14px; padding: 0.75rem 1rem; box-shadow: var(--shadow);
    font-size: 0.8rem; max-width: 260px;
    animation: flotar 6s ease-in-out infinite;
}
.float-card i { font-size: 1.2rem; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.float-card b { display: block; font-size: 0.85rem; }
.float-card small { color: var(--muted); }
.float-a { left: -40px; bottom: -56px; }
.float-a i { background: #e3f7ee; color: #18865b; }
.float-b { right: -24px; top: -26px; animation-delay: -3s; }
.float-b i { background: #e5f1fd; color: var(--blue); }
@keyframes flotar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ----------------------------------------------------------------- Cifras */
.stats { background: var(--ink-2); color: #fff; padding: 34px 0; border-top: 1px solid rgba(255,255,255,0.06); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stats b { display: block; font-size: 2rem; font-weight: 800; background: linear-gradient(90deg, #6cc2ff, var(--mint)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { color: rgba(255,255,255,0.65); font-size: 0.9rem; }

/* --------------------------------------------------------------- Secciones */
.section { padding: 110px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3.5rem; }
.section-head h2, .split h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.feature {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.feature .icon {
    width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.2rem;
    font-size: 1.35rem; color: #fff; background: linear-gradient(135deg, var(--blue), var(--sky));
    box-shadow: 0 10px 20px -10px rgba(31,111,174,0.8);
}
.feature h3 { font-size: 1.12rem; }
.feature p { color: var(--muted); font-size: 0.95rem; margin: 0; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; counter-reset: paso; }
.step { position: relative; background: #fff; border-radius: var(--radius); padding: 2rem 1.8rem; border: 1px solid var(--line); }
.step-n {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; margin-bottom: 1.2rem;
    font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--mint), #22a87a);
}
.step h3 { font-size: 1.15rem; }
.step p { color: var(--muted); margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: center; }
.split .btn { margin-top: 0.8rem; }
.roles { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.roles li {
    display: flex; gap: 1rem; align-items: flex-start;
    padding: 1.2rem 1.4rem; border: 1px solid var(--line); border-radius: 16px; background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.roles li:hover { border-color: rgba(59,163,245,0.5); box-shadow: 0 10px 30px -18px rgba(31,111,174,0.6); }
.roles i { font-size: 1.3rem; color: var(--blue); background: #e5f1fd; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.roles b { display: block; }
.roles span { color: var(--muted); font-size: 0.93rem; }

.section-dark { background: var(--ink); color: #fff; }
.section-dark .section-head h2 { color: #fff; }
.section-dark .eyebrow { color: #8fd3ff; }
.security { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.security > div { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius); padding: 1.6rem; }
.security i { font-size: 1.5rem; color: var(--mint); }
.security h3 { font-size: 1.05rem; margin-top: 1rem; }
.security p { color: rgba(255,255,255,0.65); font-size: 0.93rem; margin: 0; }

.faq { display: grid; gap: 0.8rem; }
.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.3rem; background: #fff; transition: box-shadow 0.2s; }
.faq details[open] { box-shadow: 0 12px 30px -20px rgba(15,35,70,0.5); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.3rem; line-height: 1; color: var(--blue); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin: 0.8rem 0 0; }

.cta { padding: 0 0 110px; }
.cta-box {
    text-align: center; color: #fff; border-radius: 28px; padding: 4rem 2rem;
    background: radial-gradient(600px 300px at 20% 0%, rgba(60,201,154,0.35), transparent 60%), linear-gradient(135deg, #12305a, var(--blue));
    box-shadow: var(--shadow);
}
.cta-box h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; }
.cta-box p { color: rgba(255,255,255,0.8); max-width: 34rem; margin: 0 auto 2rem; }

.footer { background: var(--ink); color: rgba(255,255,255,0.6); padding: 2.2rem 0; font-size: 0.88rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer p { margin: 0; }
.footer-link { color: #fff; font-weight: 600; }

/* --------------------------------------------------- Animación al aparecer */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------- Responsive */
@media (max-width: 1080px) {
    .float-a { left: -10px; }
    .float-b { right: -10px; }
    .security { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
    .hero { padding: 120px 0 90px; }
    .hero-grid, .split { grid-template-columns: 1fr; gap: 3rem; }
    .hero-copy { text-align: center; }
    .lead { margin-inline: auto; }
    .hero-actions, .hero-points { justify-content: center; }
    .hero-visual { max-width: 620px; margin-inline: auto; width: 100%; }
    .features, .steps { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 1.6rem; }

    .nav-toggle { display: inline-grid; place-items: center; }
    .nav-actions .btn { display: none; }
    .nav-links {
        position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
        padding: 0.5rem 20px 1.2rem; background: rgba(11,20,36,0.97); backdrop-filter: blur(14px);
        border-bottom: 1px solid rgba(255,255,255,0.08);
        transform: translateY(-8px); opacity: 0; visibility: hidden;
        transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    }
    .nav-links a { padding: 0.85rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
    .nav-links .nav-cta-mobile { display: inline-flex; margin-top: 1rem; border-bottom: 0; color: #fff; }
    .nav.open { background: rgba(11,20,36,0.97); }
    .nav.open .nav-links { transform: none; opacity: 1; visibility: visible; }
}

@media (max-width: 640px) {
    .section { padding: 80px 0; }
    .features, .steps, .security { grid-template-columns: 1fr; }
    .mock { transform: none; }
    .hero-visual:hover .mock { transform: none; }
    .mock-body { grid-template-columns: 1fr; }
    .mock-side { display: none; }
    .float-card { position: static; margin-top: 1rem; max-width: none; animation: none; }
    .hero-actions .btn { width: 100%; }
    .footer-inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal { opacity: 1; transform: none; }
}
