:root {
    --bg: #1a1918;
    --bg-elev: #21201f;
    --bg-card: #282725;
    --bg-card-2: #2e2d2b;
    --fg: #ffffff;
    --fg-dim: #94a3b8;
    --accent: #9af924;
    --accent-hover: #6ac000;
    --border: rgba(255, 255, 255, 0.05);
    --border-strong: rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 120px;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    color: var(--fg);
    overflow-x: hidden;
    line-height: 1.5;
}

/* Top Banner */
.top-banner {
    background-color: var(--accent);
    color: #000;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    position: relative;
    z-index: 60;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    justify-content: center;
}

.top-banner-marquee {
    display: block;
}

.top-banner-marquee span:nth-child(2) {
    display: none;
}

@keyframes banner-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Nav */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.hamburger-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--fg);
    cursor: pointer;
    padding: 4px;
    z-index: 100;
    position: relative;
}

.hamburger-btn svg line {
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-btn.active .line-1 { opacity: 0; }
.hamburger-btn.active .line-2 { transform: translateY(6px) rotate(45deg); }
.hamburger-btn.active .line-3 { transform: translateY(-6px) rotate(-45deg); }

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-overlay {
    display: none;
}

.logo {
    font-weight: 800;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--fg);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo-img {
    height: 30px;
}

.nav-links {
    display: flex;
    gap: 32px;
    font-size: 15px;
    color: var(--fg);
    align-items: center;
    font-weight: 500;
}

.nav-links a:not(.btn) {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.nav-links a:not(.btn):hover {
    color: var(--accent);
}

/* Botones */
.btn {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 50px;
    /* Pill shape */
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: #000;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
}

.btn-secondary {
    background: transparent;
    color: var(--fg);
    border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.02);
}

/* Typography Generics */
h1,
h2,
h3 {
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

/* Hero Section */
.hero {
    padding: 100px 20px;
    text-align: center;
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    font-size: clamp(40px, 6vw, 72px);
    margin: 0 0 20px;
}

.hero h1 .highlight {
    background-color: var(--accent);
    color: #000;
    padding: 0 12px;
    border-radius: 12px;
    display: inline-block;
}

.hero p {
    font-size: 18px;
    color: var(--fg-dim);
    max-width: 800px;
    margin: 0 auto 40px;
    font-weight: 400;
}

/* Cards & Layouts */
section {
    padding: 80px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: 16px;
}

.section-title .highlight {
    color: var(--accent);
}

.section-title .highlight-bg {
    background: var(--accent);
    color: var(--bg);
    padding: 0 8px;
    border-radius: 4px;
    display: inline-block;
}

.cursor {
    display: inline-block;
    width: 6px;
    height: 0.9em;
    background-color: #fff;
    margin-left: 6px;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
    position: relative;
    top: -2px;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.section-kicker {
    color: var(--fg-dim);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px 32px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-4px);
}

.feature-icon {
    color: var(--accent);
    font-size: 24px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--fg-dim);
    font-size: 15px;
    line-height: 1.6;
}

/* Infinite Marquee (Devices) */
.marquee-wrapper {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
}

.marquee-content {
    display: flex;
    align-items: center;
    width: max-content;
    animation: scroll 20s linear infinite;
}

.marquee-track {
    display: flex;
    gap: 60px;
    padding-right: 60px;
    /* Actúa como el gap entre los dos sets */
}

.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.device-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--fg-dim);
    font-weight: 500;
    font-size: 18px;
    padding: 0 10px;
}

.device-item span {
    color: var(--fg);
}

/* Accordion (FAQ / Disclaimers) */
.accordion-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.accordion-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.accordion-item h3 {
    font-size: 16px;
    color: var(--fg);
    margin-bottom: 12px;
}

.accordion-item p {
    font-size: 15px;
    color: var(--fg-dim);
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 60px 20px;
    text-align: center;
}

/* Mockup UI */
.mockup-container {
    width: 100%;
    max-width: 800px;
    margin: 60px auto 0;
    aspect-ratio: 16/9;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-strong);
    padding: 16px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    position: relative;
}

/* Decorative stars (from reference) */
.star {
    position: absolute;
    color: var(--accent);
    font-size: 24px;
}

#devices {
    padding: 140px 0;
}

@media (max-width: 768px) {
    .hamburger-btn {
        display: block;
    }

    .nav-container {
        padding: 16px 20px;
        justify-content: space-between;
    }

    .nav-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(3px);
        z-index: 80;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -300px;
        width: 260px;
        height: 100vh;
        background: var(--bg-elev);
        border-left: 1px solid var(--border);
        padding: 80px 24px 24px 24px;
        gap: 24px;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 90;
    }

    .nav-links.active {
        right: 0;
    }

    .hero {
        padding: 60px 20px 0 20px;
    }

    .top-banner {
        padding: 8px 0;
        justify-content: flex-start;
    }

    .top-banner-marquee {
        display: flex;
        animation: banner-scroll 15s linear infinite;
    }

    .top-banner-marquee span:nth-child(2) {
        display: inline;
    }

    .hero h1 {
        font-size: clamp(32px, 8vw, 40px);
    }

    #devices {
        padding: 60px 0;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .mockup-container {
        aspect-ratio: auto;
        height: 300px;
        overflow: hidden;
    }
}

/* ── App Showcase (Tab Carousel) ─────────────────────────── */
.app-showcase {
    margin-top: 80px;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    text-align: center;
}

.showcase-eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.showcase-title {
    font-size: clamp(28px, 5vw, 46px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 40px;
    color: var(--fg);
}

.showcase-accent {
    color: var(--accent);
}

/* Tabs */
.showcase-tabs {
    display: inline-flex;
    gap: 8px;
    background: var(--bg-elev);
    border: 1px solid var(--border-strong);
    border-radius: 50px;
    padding: 6px;
    margin-bottom: 40px;
}

.s-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--fg-dim);
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid transparent;
    font-family: 'Outfit', sans-serif;
}

.s-tab-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--fg-dim);
    transition: background 0.25s ease;
    flex-shrink: 0;
}

.s-tab.active {
    background: var(--accent);
    color: #fff;
    border-color: transparent;
}

.s-tab.active .s-tab-dot {
    background: rgba(255, 255, 255, 0.8);
}

.s-tab:not(.active):hover {
    color: var(--fg);
    border-color: var(--border-strong);
}

/* Vertical Panels */
.showcase-vertical-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    text-align: left;
    margin-bottom: 120px;
}

.showcase-vertical-panel.reverse {
    direction: rtl;
}

.showcase-vertical-panel.reverse>* {
    direction: ltr;
}

/* Left side */
.showcase-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    background: rgba(154, 249, 36, 0.12);
    border: 1px solid rgba(154, 249, 36, 0.3);
    border-radius: 50px;
    padding: 4px 12px;
    margin-bottom: 16px;
}

.showcase-app-name {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 800;
    color: var(--fg);
    margin-bottom: 16px;
    line-height: 1.1;
}

.showcase-desc {
    font-size: 15px;
    line-height: 1.5;
    color: var(--fg-dim);
    margin-bottom: 20px;
}

.showcase-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.showcase-features li {
    font-size: 14px;
    color: var(--fg-dim);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Right side */
.showcase-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.showcase-main-img-wrap {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-strong);
    background: var(--bg-elev);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.showcase-main-img {
    width: 100%;
    display: block;
    border-radius: 16px;
    transition: opacity 0.3s ease;
}

.showcase-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background 0.3s;
}

.nav-arrow:hover {
    background: rgba(154, 249, 36, 0.8);
}

.left-arrow {
    left: 10px;
}

.right-arrow {
    right: 10px;
}

.showcase-thumb {
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.55;
    transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.showcase-thumb:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.showcase-thumb.active-thumb {
    opacity: 1;
    border-color: var(--accent);
}

.showcase-disclaimer {
    font-size: 12px;
    color: var(--fg-dim);
    text-align: center;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .showcase-vertical-panel {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 80px;
    }

    .showcase-vertical-panel.reverse {
        direction: ltr;
    }
}

/* App Actions (Side by Side Buttons) */
.app-actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
}

.app-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    text-align: center;
    white-space: nowrap;
    padding: 12px 16px;
}

@media (max-width: 480px) {
    .app-actions {
        gap: 8px;
    }

    .app-actions .btn {
        padding: 10px 6px !important;
        font-size: 12px !important;
        gap: 4px !important;
        white-space: normal;
        line-height: 1.2;
    }

    .app-actions .btn svg {
        width: 14px;
        height: 14px;
    }
}