:root {
    --bg-primary: #06070c;
    --bg-secondary: #0c0e17;
    --bg-surface: rgba(17, 20, 34, 0.72);
    --bg-surface-solid: #111422;
    --border-subtle: rgba(148, 163, 184, 0.14);
    --border-glow: rgba(59, 130, 246, 0.35);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-blue: #3b82f6;
    --accent-violet: #8b5cf6;
    --accent-cyan: #22d3ee;
    --grad-brand: linear-gradient(135deg, #22d3ee 0%, #3b82f6 50%, #8b5cf6 100%);
    --grad-surface: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
    --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.45);
    --radius-lg: 20px;
    --radius-md: 14px;
    --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

[data-theme="light"] {
    --bg-primary: #f4f7fb;
    --bg-secondary: #ffffff;
    --bg-surface: rgba(255, 255, 255, 0.9);
    --bg-surface-solid: #ffffff;
    --border-subtle: rgba(15, 23, 42, 0.12);
    --border-glow: rgba(37, 99, 235, 0.35);
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #475569;
    --grad-surface: linear-gradient(180deg, rgba(37,99,235,0.03) 0%, rgba(124,58,237,0.01) 100%);
    --shadow-card: 0 18px 40px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] a {
    color: #1d4ed8;
}

[data-theme="light"] a:hover {
    color: #1e40af;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

button:disabled,
.btn:disabled,
.btn.disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.65;
    overflow-x: hidden;
    transition: background-color 0.25s ease, color 0.25s ease;
}

h1, h2, h3, h4, h5, h6, .font-display {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-blue);
}

/* Geometric Background Grid & Glow Orbs */
.groovi-bg-grid {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(148, 163, 184, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
    background-size: 56px 56px;
}

.groovi-bg-glow {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 18%, rgba(59, 130, 246, 0.14), transparent 36%),
        radial-gradient(circle at 86% 12%, rgba(139, 92, 246, 0.14), transparent 34%),
        radial-gradient(circle at 50% 88%, rgba(34, 211, 238, 0.09), transparent 40%);
}

/* Navbar */
.groovi-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(6, 7, 12, 0.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-subtle);
    transition: background 0.25s ease;
}

[data-theme="light"] .groovi-navbar {
    background: rgba(255, 255, 255, 0.85);
}

.groovi-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.08rem;
    letter-spacing: 0.04em;
    color: var(--text-primary);
}

.groovi-brand img {
    height: 44px;
    width: auto;
    max-width: 210px;
    object-fit: contain;
    display: block;
}

.groovi-nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.93rem;
    padding: 0.5rem 0.85rem !important;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.groovi-nav-link:hover,
.groovi-nav-link.active {
    color: var(--text-primary) !important;
    background: rgba(59, 130, 246, 0.12);
}

/* Buttons */
.btn-groovi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--grad-brand);
    color: #ffffff !important;
    border: none;
    font-weight: 600;
    padding: 0.72rem 1.45rem;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(59, 130, 246, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-groovi:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(139, 92, 246, 0.35);
    filter: brightness(1.06);
}

.btn-groovi-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--bg-surface);
    color: var(--text-primary) !important;
    border: 1px solid var(--border-subtle);
    font-weight: 600;
    padding: 0.72rem 1.45rem;
    border-radius: 12px;
    backdrop-filter: blur(12px);
    transition: all 0.2s ease;
}

.btn-groovi-outline:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
}

.icon-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.icon-btn:hover {
    color: var(--text-primary);
    border-color: var(--accent-blue);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 5.5rem 0 4.5rem;
    overflow: hidden;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(34, 211, 238, 0.28);
    background: rgba(34, 211, 238, 0.08);
    color: var(--accent-cyan);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(2.35rem, 5vw, 4.1rem);
    font-weight: 700;
    line-height: 1.08;
    margin: 1.25rem 0;
}

.text-gradient {
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 640px;
}

/* Hero Geometric Orbit Visual */
.hero-visual-card {
    position: relative;
    border-radius: 26px;
    padding: 2rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.hero-visual-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.4), rgba(139, 92, 246, 0.15), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.terminal-code {
    font-family: var(--font-mono);
    font-size: 0.84rem;
    color: #cbd5e1;
    background: rgba(6, 7, 12, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 14px;
    padding: 1.25rem;
}

[data-theme="light"] .terminal-code {
    background: #0f172a;
    color: #e2e8f0;
}

/* Glass Cards */
.glass-card {
    position: relative;
    background: var(--bg-surface);
    background-image: var(--grad-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    height: auto;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glow);
}

.glass-card-static:hover {
    transform: none;
}

.quote-step-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid var(--border-subtle);
}

.quote-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--grad-brand);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    flex-shrink: 0;
}

.quote-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 500;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.quote-chip:hover,
.quote-chip.active {
    background: rgba(59, 130, 246, 0.16);
    border-color: var(--accent-blue);
    color: var(--text-primary);
}

.icon-badge {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(139, 92, 246, 0.18));
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: var(--accent-cyan);
    margin-bottom: 1.15rem;
}

/* Status Pills */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.28rem 0.72rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid var(--border-subtle);
    background: rgba(59, 130, 246, 0.12);
    color: var(--accent-cyan);
}

.status-pill.status-concepto { background: rgba(148, 163, 184, 0.15); color: #cbd5e1; }
.status-pill.status-prototipo { background: rgba(139, 92, 246, 0.16); color: #c4b5fd; }
.status-pill.status-en_desarrollo { background: rgba(59, 130, 246, 0.16); color: #93c5fd; }
.status-pill.status-en_pruebas { background: rgba(34, 211, 238, 0.16); color: #67e8f9; }
.status-pill.status-finalizado,
.status-pill.status-publicado,
.status-pill.status-activo { background: rgba(16, 185, 129, 0.16); color: #6ee7b7; }

[data-theme="light"] .status-pill.status-concepto { color: #334155; }
[data-theme="light"] .status-pill.status-prototipo { color: #6d28d9; }
[data-theme="light"] .status-pill.status-en_desarrollo { color: #1d4ed8; }
[data-theme="light"] .status-pill.status-en_pruebas { color: #0e7490; }
[data-theme="light"] .status-pill.status-finalizado,
[data-theme="light"] .status-pill.status-publicado,
[data-theme="light"] .status-pill.status-activo { color: #047857; }

.tech-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.32rem 0.72rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

/* Section Headers */
.section-py {
    padding: 4.5rem 0;
}

.section-eyebrow {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
}

/* Forms */
.groovi-input,
.groovi-select,
.groovi-textarea {
    width: 100%;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 0.78rem 1rem;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.groovi-input:focus,
.groovi-select:focus,
.groovi-textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Animations */
@keyframes floatSlow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.animate-float {
    animation: floatSlow 6s ease-in-out infinite;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
.groovi-footer {
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
    padding: 4rem 0 2rem;
}

/* Filter Pills */
.filter-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.48rem 1rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 500;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    background: var(--bg-surface);
    transition: all 0.2s ease;
}

.filter-pill:hover,
.filter-pill.active {
    background: var(--grad-brand);
    color: #ffffff;
    border-color: transparent;
}

/* Honeypot hidden field */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Partners & Ecosystem Continuous Marquee */
.partners-marquee-section {
    position: relative;
    padding: 3.5rem 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    background: linear-gradient(180deg, transparent 0%, rgba(59, 130, 246, 0.03) 50%, transparent 100%);
}

.partners-marquee-viewport {
    position: relative;
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.partners-marquee-track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: groovi-marquee var(--marquee-duration, 32s) linear infinite;
}

.partners-marquee-viewport:hover .partners-marquee-track,
.partners-marquee-viewport:focus-within .partners-marquee-track {
    animation-play-state: paused;
}

.partners-marquee-group {
    display: flex;
    align-items: center;
    gap: 3.5rem;
    padding-right: 3.5rem;
}

.partner-logo-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-width: 130px;
    padding: 0.4rem 0.6rem;
    text-decoration: none;
    color: var(--text-secondary);
    transition: transform 0.25s ease, color 0.25s ease;
}

.partner-logo-img {
    height: 38px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.72);
    transition: filter 0.25s ease, transform 0.25s ease;
}

.partner-logo-wordmark {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    color: var(--text-secondary);
    white-space: nowrap;
    opacity: 0.8;
    transition: color 0.25s ease, opacity 0.25s ease;
}

.partner-logo-item:hover .partner-logo-img,
.partner-logo-item:focus-visible .partner-logo-img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.06);
}

.partner-logo-item:hover .partner-logo-wordmark,
.partner-logo-item:focus-visible .partner-logo-wordmark {
    color: var(--text-primary);
    opacity: 1;
}

.partner-logo-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.partner-logo-rel {
    font-size: 0.68rem;
    color: var(--text-muted);
    white-space: nowrap;
}

@keyframes groovi-marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 767.98px) {
    .partners-marquee-group {
        gap: 2.25rem;
        padding-right: 2.25rem;
    }
    .partner-logo-item {
        min-width: 105px;
    }
    .partner-logo-img {
        height: 28px;
        max-width: 115px;
    }
    .partner-logo-wordmark {
        font-size: 0.98rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .partners-marquee-viewport {
        mask-image: none;
        -webkit-mask-image: none;
    }
    .partners-marquee-track {
        animation: none;
        width: 100%;
        justify-content: center;
    }
    .partners-marquee-group {
        flex-wrap: wrap;
        justify-content: center;
        padding-right: 0;
        gap: 1.75rem;
    }
    .partners-marquee-group[aria-hidden="true"] {
        display: none;
    }
}
