﻿/* =============================================
   INICIOstilo.css  v3.0  — KOmultiPos
   Tema: Suave / Claro / Profesional
   Tipografía: Syne (display) + DM Sans (body)
============================================= */

:root {
    --bg-base: #f7f8fc;
    --bg-white: #ffffff;
    --bg-surface: #fafbff;
    --bg-accent-soft: #eef2fe;
    --accent: #5b8ef5;
    --accent-hover: #4878e8;
    --accent-light: #c7d4fb;
    --text-dark: #0f1626;
    --text-primary: #1e2235;
    --text-muted: #6b7280;
    --text-faint: #adb5cc;
    --border: #e8eaf2;
    --border-hover: #c7d4fb;
    --green-bg: #e6f9ee;
    --green-txt: #22a05a;
    --red-bg: #fef0f0;
    --red-txt: #e05050;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --nav-h: 64px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', 'Segoe UI', sans-serif;
    background: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    padding-top: var(--nav-h);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

/* ---- Loader ---- */
#loader {
    position: fixed;
    inset: 0;
    background: var(--bg-white);
    display: none;
    z-index: 9999;
}

.loader-backdrop {
    display: none;
}

.loader-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

    .loader-content p {
        color: var(--text-muted);
        font-size: 14px;
    }

.spinner {
    width: 38px;
    height: 38px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =============================================
   HEADER
============================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    background: #0f1626;
    border-bottom: 2px solid #f0b429; /* ✅ línea dorada */
    z-index: 1000;
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    height: 100%;
    padding: 0 32px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.logo {
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.logo-ko {
    color: #7da8ff;
}

.logo-rest {
    color: #ffffff;
}

.main-nav {
    flex: 1;
}

    .main-nav ul {
        list-style: none;
        display: flex;
        gap: 4px;
        align-items: center;
    }

        .main-nav ul li a {
            display: flex;
            align-items: center;
            gap: 7px;
            padding: 8px 14px;
            font-size: 14px;
            color: #ffffff;
            border-radius: var(--radius-sm);
            transition: color 0.18s, background 0.18s;
        }

            .main-nav ul li a i {
                font-size: 13px;
            }

            .main-nav ul li a:hover {
                color: #7da8ff;
                background: rgba(255,255,255,0.08);
            }

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-login {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.18s;
}

    .btn-login:hover {
        color: #7da8ff;
        border-color: #7da8ff;
        background: rgba(125,168,255,0.08);
    }

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    padding: 9px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: background 0.18s, transform 0.15s, box-shadow 0.18s;
}

    .btn-cta:hover {
        background: var(--accent-hover);
        transform: translateY(-1px);
        box-shadow: 0 4px 16px rgba(91,142,245,0.28);
    }

.flag-wrap {
    flex-shrink: 0;
}

.flag-img {
    border-radius: 2px;
    width: 22px;
}

#menu-toggle {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    order: 10;
}

    .hamburger span {
        display: block;
        width: 22px;
        height: 2px;
        background: #ffffff;
        border-radius: 2px;
        transition: all 0.25s;
    }

#menu-toggle:checked ~ .hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

#menu-toggle:checked ~ .hamburger span:nth-child(2) {
    opacity: 0;
}

#menu-toggle:checked ~ .hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =============================================
   HERO
============================================= */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 52px;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 32px 96px;
}

.hero-content {
    display: flex;
    flex-direction: column;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    background: var(--bg-accent-soft);
    border: 1px solid var(--accent-light);
    color: #4265d4;
    font-size: 12.5px;
    font-weight: 500;
    padding: 5px 15px;
    border-radius: 99px;
    margin-bottom: 28px;
    animation: fadeDown 0.6s ease both;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
    0%,100% {
        opacity: 1;
        transform: scale(1)
    }

    50% {
        opacity: .4;
        transform: scale(.75)
    }
}

.hero-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    color: var(--text-dark);
    margin-bottom: 20px;
    animation: fadeDown 0.7s 0.1s ease both;
}

.hero-accent {
    color: var(--accent);
}

.hero-sub {
    font-size: 16.5px;
    font-weight: 300;
    line-height: 1.72;
    color: var(--text-muted);
    max-width: 480px;
    margin-bottom: 36px;
    animation: fadeDown 0.7s 0.18s ease both;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
    animation: fadeUp 0.7s 0.3s ease both;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    padding: 13px 28px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
    cursor: pointer;
}

    .btn-hero-primary:hover {
        background: var(--accent-hover);
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(91,142,245,0.28);
    }

.btn-hero-ghost {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-white);
    padding: 13px 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: color 0.18s, border-color 0.18s, box-shadow 0.18s;
    cursor: pointer;
}

    .btn-hero-ghost:hover {
        color: var(--text-primary);
        border-color: var(--border-hover);
        box-shadow: 0 2px 10px rgba(91,142,245,0.08);
    }

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    animation: fadeUp 0.7s 0.42s ease both;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-faint);
}

    .trust-item i {
        color: var(--accent);
        font-size: 12px;
    }

.trust-sep {
    color: var(--border);
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-14px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* Mockup */
.hero-visual {
    animation: fadeUp 0.9s 0.4s ease both;
}

.mockup-frame {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 16px 56px rgba(91,142,245,0.12), 0 2px 8px rgba(0,0,0,0.05);
}

.mockup-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 11px 18px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
}

.mb-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

    .mb-dot.r {
        background: #ff8585;
    }

    .mb-dot.y {
        background: #ffd066;
    }

    .mb-dot.g {
        background: #5dd88a;
    }

.mb-url {
    margin-left: 10px;
    font-size: 11px;
    color: var(--text-faint);
    background: var(--bg-base);
    border: 1px solid var(--border);
    padding: 3px 12px;
    border-radius: var(--radius-sm);
    font-family: monospace;
    letter-spacing: 0.04em;
}

.mockup-body {
    display: flex;
    height: 300px;
}

.mock-sidebar {
    width: 178px;
    background: var(--bg-surface);
    border-right: 1px solid var(--border);
    padding: 16px 12px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.mock-logo {
    font-family: 'Syne',sans-serif;
    font-size: 12px;
    font-weight: 800;
    color: var(--text-dark);
    padding: 4px 9px 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
}

.mock-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mock-nav-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    font-size: 12px;
    color: var(--text-faint);
    border-radius: var(--radius-sm);
}

    .mock-nav-item i {
        font-size: 11px;
        width: 13px;
    }

    .mock-nav-item.active {
        background: var(--bg-accent-soft);
        color: #4265d4;
        font-weight: 500;
    }

.mock-main {
    flex: 1;
    padding: 18px 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.mock-header-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.mock-page-title {
    font-family: 'Syne',sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-dark);
}

.mock-date {
    font-size: 11px;
    color: var(--text-faint);
}

.mock-stats {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 9px;
}

.mock-stat {
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 11px;
}

.stat-lbl {
    font-size: 9.5px;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 4px;
}

.stat-num {
    font-family: 'Syne',sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -.5px;
}

.stat-tag {
    display: inline-block;
    margin-top: 4px;
    font-size: 9px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 99px;
}

    .stat-tag.up {
        background: var(--green-bg);
        color: var(--green-txt);
    }

    .stat-tag.dn {
        background: var(--red-bg);
        color: var(--red-txt);
    }

.mock-charts {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 9px;
    flex: 1;
}

.mock-chart-bar, .mock-chart-ring {
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 11px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chart-lbl {
    font-size: 9.5px;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: .07em;
}

.bars {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    flex: 1;
    min-height: 48px;
}

.bar {
    flex: 1;
    border-radius: 3px 3px 0 0;
    background: #d6e4fd;
}

    .bar.hi {
        background: var(--accent);
    }

.mock-chart-ring {
    align-items: center;
    justify-content: center;
    position: relative;
}

.ring-svg {
    width: 66px;
    height: 66px;
}

.ring-label {
    position: absolute;
    font-family: 'Syne',sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
}

/* =============================================
   FEATURES
============================================= */
.features-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 88px 32px;
    text-align: center;
}

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--accent);
    margin-bottom: 14px;
}

.section-title {
    font-family: 'Syne',sans-serif;
    font-size: clamp(26px,3vw,40px);
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -1px;
    line-height: 1.12;
    margin-bottom: 52px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px;
}

.feat-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px 26px;
    text-align: left;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

    .feat-card:hover {
        border-color: var(--border-hover);
        transform: translateY(-4px);
        box-shadow: 0 8px 28px rgba(91,142,245,0.10);
    }

.feat-icon {
    width: 44px;
    height: 44px;
    background: var(--bg-accent-soft);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 18px;
    color: var(--accent);
}

.feat-card h3 {
    font-family: 'Syne',sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 9px;
}

.feat-card p {
    font-size: 14px;
    line-height: 1.68;
    color: var(--text-muted);
}

/* =============================================
   CTA
============================================= */
.cta-section {
    padding: 0 32px 88px;
}

.cta-inner {
    max-width: 1280px;
    margin: 0 auto;
    background: var(--bg-accent-soft);
    border: 1px solid var(--accent-light);
    border-radius: var(--radius-xl);
    padding: 72px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

    .cta-inner h2 {
        font-family: 'Syne',sans-serif;
        font-size: clamp(24px,2.8vw,36px);
        font-weight: 800;
        color: var(--text-dark);
        letter-spacing: -1px;
    }

    .cta-inner p {
        font-size: 16px;
        color: var(--text-muted);
        line-height: 1.65;
    }

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 8px;
}

/* =============================================
   FOOTER
============================================= */
.site-footer {
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    padding: 60px 32px 24px;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 48px;
    padding-bottom: 44px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .footer-brand .logo {
        font-size: 18px;
    }

    .footer-brand p {
        font-size: 13.5px;
        color: var(--text-faint);
        line-height: 1.65;
        max-width: 220px;
    }

.footer-links {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 24px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fc-title {
    font-family: 'Syne',sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 4px;
}

.footer-col a {
    font-size: 13.5px;
    color: var(--text-faint);
    transition: color .18s;
}

    .footer-col a:hover {
        color: var(--text-primary);
    }

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 22px;
    border-top: 1px solid var(--border);
    font-size: 12.5px;
    color: var(--text-faint);
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        display: none;
    }

    .hero-content {
        align-items: center;
        text-align: center;
    }

    .hero-badge {
        margin: 0 auto;
    }

    .hero-sub {
        text-align: center;
        margin: 0 auto;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-h: 56px;
    }

    .hamburger {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        background: var(--bg-white);
        border-bottom: 1px solid var(--border);
        padding: 16px 24px;
        display: none;
        flex-direction: column;
        z-index: 999;
        box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    }

    #menu-toggle:checked ~ .main-nav {
        display: flex;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 2px;
    }

        .main-nav ul li a {
            font-size: 16px;
            padding: 12px 16px;
        }

    .header-actions {
        display: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: repeat(2,1fr);
    }

    .hero {
        padding: 48px 20px 64px;
    }

    .features-section {
        padding: 64px 20px;
    }

    .cta-section {
        padding: 0 20px 64px;
    }

    .cta-inner {
        padding: 48px 24px;
    }

    .site-footer {
        padding: 48px 20px 20px;
    }
}

@media (max-width: 480px) {
    .footer-links {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 30px;
    }

    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-hero-primary, .btn-hero-ghost {
        justify-content: center;
    }
}
@media (max-width: 768px) {

    /* ... tu código existente ... */

    /* ✅ Letras oscuras en el menú desplegable móvil */
    .main-nav ul li a {
        color: var(--text-primary);
    }

        .main-nav ul li a:hover {
            color: var(--accent);
            background: var(--bg-accent-soft);
        }
}