/* ============================================================
   LUMA LAB — style.css
   Business AI Partner landing
============================================================ */

/* === TOKENS === */
:root {
    --bg: #0D1117;
    --bg-2: #0A0E15;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-2: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);

    --text: #F5F7FA;
    --text-muted: #8B949E;
    --text-dim: #6B7280;

    --cyan: #00F2FF;
    --violet: #7000FF;
    --amber: #FAC775;

    --cyan-glow: 0 0 32px rgba(0, 242, 255, 0.35);
    --violet-glow: 0 0 32px rgba(112, 0, 255, 0.40);
    --combo-glow: 0 8px 40px rgba(0, 242, 255, 0.25), 0 8px 40px rgba(112, 0, 255, 0.25);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --font-sans: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
    --font-display: 'General Sans', 'Inter', system-ui, sans-serif;

    --container: 1200px;
    --container-narrow: 820px;

    --section-py: 80px;
    --header-h: 72px;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-std: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 1024px) {
    :root {
        --section-py: 120px;
        --header-h: 80px;
    }
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    margin: 0;
    background: transparent;
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

#particle-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

img,
svg,
video {
    display: block;
    max-width: 100%;
}

button {
    font: inherit;
    color: inherit;
    cursor: pointer;
    border: 0;
    background: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-wrap: balance;
}

p {
    margin: 0;
    text-wrap: pretty;
}

/* === LAYOUT === */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: var(--container-narrow);
}

@media (min-width: 768px) {
    .container {
        padding: 0 32px;
    }
}

.section {
    padding: var(--section-py) 0;
    position: relative;
}

.section-head {
    max-width: 720px;
    margin: 0 auto 56px;
    text-align: center;
}

@media (min-width: 1024px) {
    .section-head {
        margin-bottom: 80px;
    }
}

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

.section-lede {
    color: var(--text-muted);
    font-size: clamp(16px, 1.6vw, 18px);
    line-height: 1.6;
}

/* === EYEBROW === */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cyan);
    margin: 0 0 16px;
}

.eyebrow-light {
    color: var(--text);
}

.eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: var(--cyan-glow);
}

/* === GRADIENT TEXT === */
.gradient-text {
    background: linear-gradient(90deg, var(--cyan), var(--violet));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 20px;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.005em;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.3s var(--ease-out),
                box-shadow 0.3s var(--ease-out),
                background 0.3s var(--ease-out),
                border-color 0.3s var(--ease-out);
}

.btn-lg {
    height: 56px;
    padding: 0 28px;
    font-size: 15px;
    border-radius: var(--radius-md);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(90deg, var(--cyan), var(--violet));
    color: #0A0E15;
    box-shadow: 0 4px 24px rgba(0, 242, 255, 0.20),
                0 4px 24px rgba(112, 0, 255, 0.20);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--combo-glow);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.24);
    transform: translateY(-2px);
}

.btn-arrow {
    transition: transform 0.3s var(--ease-out);
}

.btn:hover .btn-arrow {
    transform: translateX(3px);
}

/* === SKIP LINK === */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--text);
    color: var(--bg);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-weight: 600;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 16px;
}

/* === HEADER / NAV === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-h);
    background: rgba(13, 17, 23, 0.6);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border-bottom: 1px solid transparent;
    transition: background 0.3s var(--ease-std), border-color 0.3s var(--ease-std);
}

.site-header.is-scrolled {
    background: rgba(13, 17, 23, 0.85);
    border-bottom-color: var(--border);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-logo {
    height: 72px;
    width: auto;
    display: block;
}

@media (min-width: 1024px) {
    .brand-logo {
        height: 88px;
    }
}

.nav-primary {
    display: none;
}

@media (min-width: 1024px) {
    .nav-primary {
        display: block;
    }
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-list a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s ease;
    position: relative;
}

.nav-list a:hover {
    color: var(--text);
}

.nav-list a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 1px;
    background: linear-gradient(90deg, var(--cyan), var(--violet));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease-out);
}

.nav-list a:hover::after {
    transform: scaleX(1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-toggle {
    display: none;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.06em;
}

@media (min-width: 768px) {
    .lang-toggle {
        display: inline-flex;
    }
}

.lang-btn {
    padding: 4px 6px;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.lang-btn:hover {
    color: var(--text);
}

.lang-btn.is-active {
    color: var(--text);
}

.lang-sep {
    color: var(--text-dim);
}

.nav-cta {
    display: none;
}

@media (min-width: 768px) {
    .nav-cta {
        display: inline-flex;
        height: 40px;
        padding: 0 18px;
        font-size: 13px;
    }
}

.nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0 9px;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
}

.nav-burger:hover {
    background: rgba(255, 255, 255, 0.06);
}

.nav-burger span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
}

.nav-burger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-burger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-burger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 1024px) {
    .nav-burger {
        display: none;
    }
}

/* === MOBILE MENU === */
.mobile-menu {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 99;
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 40px 24px;
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0;
    transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

.mobile-menu:not([hidden]) {
    transform: translateY(0);
    opacity: 1;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 32px;
}

.mobile-nav-list a {
    display: block;
    padding: 16px 0;
    font-size: 24px;
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: -0.02em;
    border-bottom: 1px solid var(--border);
}

.mobile-menu-footer {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu-footer .lang-toggle {
    display: inline-flex;
    align-self: flex-start;
}

/* === HERO === */
.hero {
    position: relative;
    min-height: 100svh;
    padding: calc(var(--header-h) + 24px) 0 60px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-veil {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 30%, rgba(0, 242, 255, 0.08), transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(112, 0, 255, 0.10), transparent 55%),
        linear-gradient(180deg, rgba(13, 17, 23, 0.35) 0%, rgba(13, 17, 23, 0.60) 60%, var(--bg) 100%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 960px;
}

.hero-eyebrow {
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(40px, 8vw, 96px);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.02;
    margin-bottom: 24px;
}

.hero-subtitle {
    max-width: 640px;
    color: var(--text-muted);
    font-size: clamp(16px, 1.8vw, 20px);
    line-height: 1.6;
    margin-bottom: 36px;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
}

.hero-bullets {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 28px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.hero-bullets li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bullet-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 12px rgba(0, 242, 255, 0.6);
}

.hero-bullets li:nth-child(2) .bullet-dot {
    background: var(--violet);
    box-shadow: 0 0 12px rgba(112, 0, 255, 0.6);
}

.hero-bullets li:nth-child(3) .bullet-dot {
    background: var(--amber);
    box-shadow: 0 0 12px rgba(250, 199, 117, 0.5);
}

.scroll-indicator {
    display: none;
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.28em;
    z-index: 2;
    transition: color 0.2s ease, transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.7;
}

.scroll-indicator:hover {
    color: var(--text-primary);
    opacity: 1;
    transform: translateX(-50%) translateY(2px);
}

@media (min-width: 768px) {
    .scroll-indicator {
        display: flex;
        bottom: 32px;
    }
}

@media (min-width: 1024px) {
    .scroll-indicator {
        bottom: 40px;
    }
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, var(--cyan), transparent);
    animation: scroll-pulse 2.4s var(--ease-std) infinite;
}

@keyframes scroll-pulse {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* === MARQUEE === */
.marquee-section {
    padding: 48px 0 32px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.015);
}

.marquee-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    text-align: center;
    margin-bottom: 32px;
}

.marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.marquee-group {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-right: 16px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .marquee-group {
        gap: 20px;
        padding-right: 20px;
    }
}

/* === SECTOR CHIPS (marquee) === */
.sector-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
    letter-spacing: 0.02em;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    cursor: default;
    flex-shrink: 0;
}

.sector-chip:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.20);
    color: var(--text);
}

.sector-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sector-dot-cyan {
    background: var(--cyan);
    box-shadow: 0 0 8px rgba(0, 242, 255, 0.7);
}

.sector-dot-violet {
    background: var(--violet);
    box-shadow: 0 0 8px rgba(112, 0, 255, 0.7);
}

.sector-dot-amber {
    background: var(--amber);
    box-shadow: 0 0 8px rgba(250, 199, 117, 0.7);
}

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* === GLASS CARD BASE === */
.glass {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* === PROBLEMAS === */
.problem-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .problem-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

.problem-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 32px;
    transition: transform 0.4s var(--ease-out),
                border-color 0.4s var(--ease-out),
                background 0.4s var(--ease-out);
}

.problem-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    background: var(--surface-2);
}

.problem-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.12), rgba(112, 0, 255, 0.12));
    border: 1px solid var(--border);
    color: var(--cyan);
    margin-bottom: 24px;
}

.problem-card:nth-child(2) .problem-icon { color: var(--violet); }
.problem-card:nth-child(3) .problem-icon { color: var(--amber); }

.problem-title {
    font-size: clamp(20px, 2.2vw, 24px);
    margin-bottom: 12px;
}

.problem-body {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.problem-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* === SERVICIOS === */
.services-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.service-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform 0.4s var(--ease-out),
                border-color 0.4s var(--ease-out);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.06), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
    pointer-events: none;
}

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

.service-card:hover::before {
    opacity: 1;
}

.service-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid transparent;
    background-image:
        linear-gradient(var(--bg), var(--bg)),
        linear-gradient(135deg, var(--cyan) 0%, var(--violet) 100%);
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    text-shadow: 0 0 12px rgba(0, 242, 255, 0.7);
    letter-spacing: 0.04em;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.15);
}

.service-title {
    font-size: 22px;
    margin-bottom: 12px;
    position: relative;
}

.service-body {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    position: relative;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.service-list li {
    position: relative;
    padding-left: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 1.5px;
    background: var(--cyan);
}

/* === CASOS === */
.case-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .case-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

.case-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform 0.4s var(--ease-out),
                border-color 0.4s var(--ease-out),
                box-shadow 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.case-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan), var(--violet), transparent);
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
}

.case-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: 0 12px 48px rgba(0, 242, 255, 0.08),
                0 12px 48px rgba(112, 0, 255, 0.08);
}

.case-card:hover::after {
    opacity: 1;
}

.case-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.case-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid transparent;
    background-image:
        linear-gradient(var(--bg), var(--bg)),
        linear-gradient(135deg, var(--cyan) 0%, var(--violet) 100%);
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    text-shadow: 0 0 12px rgba(0, 242, 255, 0.7);
    letter-spacing: 0.04em;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.15);
}

.case-industry {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cyan);
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 242, 255, 0.08);
    border: 1px solid rgba(0, 242, 255, 0.16);
}

.case-title {
    font-size: clamp(22px, 2.4vw, 28px);
    margin-bottom: 12px;
}

.case-body {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 28px;
    flex: 1;
}

.case-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 20px 0;
    margin-bottom: 24px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.case-stats li {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.case-stats strong {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(24px, 3vw, 32px);
    color: var(--amber);
    letter-spacing: -0.02em;
    line-height: 1;
}

.case-stats span {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

.case-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--cyan);
    padding: 0;
    align-self: flex-start;
    transition: gap 0.3s var(--ease-out);
}

.case-link:hover {
    gap: 12px;
}

/* === PROCESO === */
.process-steps {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
    counter-reset: step;
}

@media (min-width: 768px) {
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .process-steps {
        grid-template-columns: repeat(4, 1fr);
        position: relative;
    }

    .process-steps::before {
        content: '';
        position: absolute;
        top: 36px;
        left: 6%;
        right: 6%;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--cyan), var(--violet), transparent);
        opacity: 0.6;
        transform: scaleX(0);
        transform-origin: left center;
        transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
    }

    .process-steps.line-active::before {
        transform: scaleX(1);
    }
}

.process-step {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform 0.4s var(--ease-out),
                border-color 0.5s var(--ease-out),
                box-shadow 0.5s var(--ease-out);
    overflow: hidden;
}

/* Top border "draw" animation on reveal */
.process-step::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--cyan), var(--violet));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.7s var(--ease-out);
}

.process-step.visible::before {
    transform: scaleX(1);
}

/* Subtle gradient fill on reveal */
.process-step::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.04), transparent 55%, rgba(112, 0, 255, 0.04));
    opacity: 0;
    transition: opacity 0.8s var(--ease-out);
    pointer-events: none;
}

.process-step.visible::after {
    opacity: 1;
}

.process-step:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: 0 12px 40px rgba(0, 242, 255, 0.06),
                0 12px 40px rgba(112, 0, 255, 0.06);
}

/* Staggered delays for each step */
.process-steps .process-step:nth-child(1) { transition-delay: 0.05s; }
.process-steps .process-step:nth-child(2) { transition-delay: 0.15s; }
.process-steps .process-step:nth-child(3) { transition-delay: 0.25s; }
.process-steps .process-step:nth-child(4) { transition-delay: 0.35s; }

.process-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid transparent;
    background-image:
        linear-gradient(var(--bg), var(--bg)),
        linear-gradient(135deg, var(--cyan) 0%, var(--violet) 100%);
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
    text-shadow: 0 0 12px rgba(0, 242, 255, 0.7);
    margin-bottom: 20px;
    box-shadow: 0 0 24px rgba(0, 242, 255, 0.18);
    position: relative;
    z-index: 1;
    transition: box-shadow 0.4s var(--ease-out);
}

.process-step.visible .process-num {
    animation: num-pulse 2.8s ease-in-out infinite;
}

@keyframes num-pulse {
    0%, 100% {
        box-shadow: 0 0 24px rgba(0, 242, 255, 0.15),
                    0 0 0 0 rgba(0, 242, 255, 0.25);
    }
    50% {
        box-shadow: 0 0 36px rgba(0, 242, 255, 0.35),
                    0 0 0 10px rgba(0, 242, 255, 0);
    }
}

/* Stagger glow start per step */
.process-steps .process-step:nth-child(2).visible .process-num { animation-delay: 0.5s; }
.process-steps .process-step:nth-child(3).visible .process-num { animation-delay: 1s; }
.process-steps .process-step:nth-child(4).visible .process-num { animation-delay: 1.5s; }

.process-title {
    font-size: 20px;
    margin-bottom: 8px;
}

.process-body {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.process-time {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--amber);
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(250, 199, 117, 0.08);
    border: 1px solid rgba(250, 199, 117, 0.20);
}

/* === FAQ === */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
    transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}

.faq-item[open] {
    border-color: var(--border-strong);
    background: var(--surface-2);
}

.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 24px;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -0.01em;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.faq-q::-webkit-details-marker {
    display: none;
}

.faq-icon {
    position: relative;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 1.5px;
    background: var(--cyan);
    transform: translate(-50%, -50%);
    transition: transform 0.3s var(--ease-out);
}

.faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    padding: 0 24px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.65;
    transition: max-height 0.4s var(--ease-out), padding 0.4s var(--ease-out);
}

.faq-item[open] .faq-a {
    max-height: 400px;
    padding: 0 24px 24px;
}

/* === CTA FINAL === */
.section-cta {
    padding-bottom: var(--section-py);
}

.cta-card {
    position: relative;
    text-align: center;
    padding: 56px 24px;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(ellipse at 30% 20%, rgba(0, 242, 255, 0.12), transparent 55%),
        radial-gradient(ellipse at 70% 80%, rgba(112, 0, 255, 0.18), transparent 55%),
        var(--surface);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan), var(--violet), transparent);
}

@media (min-width: 768px) {
    .cta-card {
        padding: 80px 56px;
    }
}

.cta-title {
    font-size: clamp(28px, 4.5vw, 48px);
    max-width: 720px;
    margin: 0 auto 16px;
}

.cta-body {
    color: var(--text-muted);
    font-size: clamp(16px, 1.6vw, 18px);
    max-width: 560px;
    margin: 0 auto 32px;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

/* === FOOTER === */
.site-footer {
    padding: 64px 0 32px;
    border-top: 1px solid var(--border);
    background: var(--bg-2);
}

.footer-grid {
    display: grid;
    gap: 40px;
    grid-template-columns: 1fr;
    padding-bottom: 48px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 32px;
    }
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    height: 120px;
    width: auto;
    margin-bottom: 16px;
}

.footer-tag {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.footer-heading {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
    margin: 0 0 16px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a,
.footer-col span {
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--text);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 12px;
}

/* === MODAL === */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-std);
}

.modal:not([hidden]) {
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 7, 13, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.modal-dialog {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(180deg, rgba(20, 24, 32, 0.95), rgba(13, 17, 23, 0.95));
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-xl);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(0, 242, 255, 0.06);
    transform: translateY(12px) scale(0.98);
    transition: transform 0.4s var(--ease-out);
}

.modal:not([hidden]) .modal-dialog {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-muted);
    transition: background 0.2s ease, color 0.2s ease;
    z-index: 1;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.modal-body {
    padding: 40px 32px;
}

@media (min-width: 768px) {
    .modal-body {
        padding: 48px 48px 40px;
    }
}

.modal-title {
    font-size: clamp(24px, 3vw, 32px);
    margin-bottom: 12px;
}

.modal-lede {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 28px;
}

/* === FORM === */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

@media (min-width: 600px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.5;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.form-field textarea {
    resize: vertical;
    min-height: 100px;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--cyan);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(0, 242, 255, 0.12);
}

.form-field input:invalid:not(:placeholder-shown),
.form-field textarea:invalid:not(:placeholder-shown) {
    border-color: rgba(255, 99, 99, 0.6);
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.form-note {
    font-size: 12px;
    color: var(--text-dim);
    text-align: center;
    margin: 0;
}

.form-status {
    margin-top: 8px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    text-align: center;
    display: none;
}

.form-status.is-success {
    display: block;
    background: rgba(0, 242, 255, 0.08);
    border: 1px solid rgba(0, 242, 255, 0.24);
    color: var(--cyan);
}

.form-status.is-error {
    display: block;
    background: rgba(255, 99, 99, 0.08);
    border: 1px solid rgba(255, 99, 99, 0.24);
    color: #ff8585;
}

/* === CHATBOT BUTTON === */
.chatbot-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), var(--violet));
    color: #0A0E15;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 90;
    box-shadow: 0 8px 32px rgba(0, 242, 255, 0.30),
                0 8px 32px rgba(112, 0, 255, 0.30);
    cursor: pointer;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
    animation: chatbot-pulse 2.4s ease-in-out infinite;
}

.chatbot-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 40px rgba(0, 242, 255, 0.45),
                0 12px 40px rgba(112, 0, 255, 0.45);
}

@keyframes chatbot-pulse {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(0, 242, 255, 0.30),
                    0 8px 32px rgba(112, 0, 255, 0.30),
                    0 0 0 0 rgba(0, 242, 255, 0.4);
    }
    50% {
        box-shadow: 0 8px 32px rgba(0, 242, 255, 0.30),
                    0 8px 32px rgba(112, 0, 255, 0.30),
                    0 0 0 14px rgba(0, 242, 255, 0);
    }
}

/* === FADE-UP ANIMATIONS === */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-up.delay-1 { transition-delay: 0.08s; }
.fade-up.delay-2 { transition-delay: 0.16s; }
.fade-up.delay-3 { transition-delay: 0.24s; }
.fade-up.delay-4 { transition-delay: 0.32s; }

/* === ANIMATED BORDER TRACE (conic gradient on hover) === */

@property --card-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes card-border-spin {
    to { --card-angle: 360deg; }
}

/* On hover: replace static border with a spinning conic gradient "light trace" */
.problem-card:hover,
.service-card:hover,
.case-card:hover,
.process-step:hover {
    border-color: transparent;
    background-image:
        linear-gradient(rgba(13, 17, 23, 0.92), rgba(13, 17, 23, 0.92)),
        conic-gradient(
            from var(--card-angle),
            rgba(0, 242, 255, 0)    0deg,
            rgba(0, 242, 255, 0)  260deg,
            rgba(0, 242, 255, 0.9) 290deg,
            rgba(112, 0, 255, 0.9) 320deg,
            rgba(0, 242, 255, 0.9) 350deg,
            rgba(0, 242, 255, 0)  360deg
        );
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    animation: card-border-spin 3s linear infinite;
}

/* Reduce motion: no spin, just a static glow border */
@media (prefers-reduced-motion: reduce) {
    .problem-card:hover,
    .service-card:hover,
    .case-card:hover,
    .process-step:hover {
        animation: none;
        border-color: var(--border-strong);
        background-image: none;
    }
}

/* === FOCUS STATES === */
:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
    border-radius: 4px;
}

button:focus-visible,
.btn:focus-visible {
    outline-offset: 4px;
}

/* === SECTION BACKGROUND ORBS === */

/* Clip orbs within each section */
.section-problemas,
.section-servicios,
.section-casos,
.section-proceso,
.section-faq {
    overflow: hidden;
}

/* Lift section content above orbs */
.section-problemas > .container,
.section-servicios > .container,
.section-casos > .container,
.section-proceso > .container,
.section-faq > .container {
    position: relative;
    z-index: 1;
}

/* Shared base */
.section-problemas::before, .section-problemas::after,
.section-servicios::before, .section-servicios::after,
.section-casos::before,    .section-casos::after,
.section-proceso::before,  .section-proceso::after,
.section-faq::before {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* Problemas */
.section-problemas::before {
    width: 600px; height: 600px;
    background: radial-gradient(circle at center, rgba(0, 242, 255, 0.09), transparent 70%);
    top: -200px; left: -150px;
    animation: orb-drift-a 16s ease-in-out infinite;
}
.section-problemas::after {
    width: 500px; height: 500px;
    background: radial-gradient(circle at center, rgba(112, 0, 255, 0.10), transparent 70%);
    bottom: -150px; right: -120px;
    animation: orb-drift-b 18s ease-in-out infinite;
}

/* Servicios */
.section-servicios::before {
    width: 700px; height: 700px;
    background: radial-gradient(circle at center, rgba(112, 0, 255, 0.08), transparent 70%);
    top: -280px; right: -200px;
    animation: orb-drift-b 20s ease-in-out infinite;
}
.section-servicios::after {
    width: 450px; height: 450px;
    background: radial-gradient(circle at center, rgba(0, 242, 255, 0.07), transparent 70%);
    bottom: -120px; left: -100px;
    animation: orb-drift-a 14s ease-in-out infinite 3s;
}

/* Casos */
.section-casos::before {
    width: 560px; height: 560px;
    background: radial-gradient(circle at center, rgba(250, 199, 117, 0.07), transparent 70%);
    top: -120px;
    left: calc(50% - 280px);
    animation: orb-drift-a 12s ease-in-out infinite;
}
.section-casos::after {
    width: 420px; height: 420px;
    background: radial-gradient(circle at center, rgba(0, 242, 255, 0.08), transparent 70%);
    bottom: -100px; right: -80px;
    animation: orb-drift-b 15s ease-in-out infinite 2s;
}

/* Proceso */
.section-proceso::before {
    width: 620px; height: 620px;
    background: radial-gradient(circle at center, rgba(0, 242, 255, 0.07), transparent 70%);
    bottom: -200px; left: -120px;
    animation: orb-drift-b 18s ease-in-out infinite 1s;
}
.section-proceso::after {
    width: 520px; height: 520px;
    background: radial-gradient(circle at center, rgba(112, 0, 255, 0.09), transparent 70%);
    top: -120px; right: -130px;
    animation: orb-drift-a 22s ease-in-out infinite;
}

/* FAQ */
.section-faq::before {
    width: 500px; height: 500px;
    background: radial-gradient(circle at center, rgba(112, 0, 255, 0.08), transparent 70%);
    top: calc(50% - 250px); left: -200px;
    animation: orb-drift-a 20s ease-in-out infinite;
}

/* Orb keyframes — transform-only for GPU performance */
@keyframes orb-drift-a {
    0%, 100% { transform: translate(0, 0); }
    33%       { transform: translate(40px, -30px); }
    66%       { transform: translate(-20px, 25px); }
}

@keyframes orb-drift-b {
    0%, 100% { transform: translate(0, 0); }
    33%       { transform: translate(-35px, 28px); }
    66%       { transform: translate(22px, -18px); }
}

/* === REDUCED MOTION === */
@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;
    }

    .marquee-track {
        animation: none;
    }

    .hero-video {
        /* Keep the video visible but let the browser pause it via prefers-reduced-motion handling in JS.
           Previously we hid it entirely, which made the hero look broken on systems with reduced motion. */
        opacity: 1 !important;
    }

    .fade-up {
        opacity: 1;
        transform: none;
    }

    .chatbot-fab {
        animation: none;
    }

    .section-problemas::before, .section-problemas::after,
    .section-servicios::before, .section-servicios::after,
    .section-casos::before,    .section-casos::after,
    .section-proceso::before,  .section-proceso::after,
    .section-faq::before {
        animation: none;
    }

    .process-step.visible .process-num {
        animation: none;
    }
}

/* === BODY LOCK (modal/menu open) === */
body.is-locked {
    overflow: hidden;
}
