/* ============================================================
   IdeasDevOps — tema oscuro compartido (home + landings SaaS)
   Inspiración: estructura de shadcn-saas-landing + estética
   "liquid glass" negra de Asme.

   Se carga DESPUÉS del styles.css de cada producto y se activa con
   <body class="ui">. El acento sale de --primary / --accent-warm de
   cada producto, así cada SaaS conserva su color sin tocar este archivo.
   ============================================================ */

:root {
    --ui-black: #000;
    --ui-surface: rgba(255, 255, 255, 0.025);
    --ui-surface-2: rgba(255, 255, 255, 0.045);
    --ui-line: rgba(255, 255, 255, 0.08);
    --ui-line-strong: rgba(255, 255, 255, 0.16);
    --ui-fg: #fff;
    --ui-fg-2: rgba(255, 255, 255, 0.68);
    --ui-fg-3: rgba(255, 255, 255, 0.42);
    --ui-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --ui-serif: 'Instrument Serif', Georgia, serif;
    --ui-radius: 24px;
    --ui-ease: cubic-bezier(0.22, 1, 0.36, 1);

    /* Variables que usan los styles.css de cada producto: pasan a oscuro. */
    --bg: #000;
    --bg-alt: #000;
    --bg-soft: #050505;
    --bg-card: var(--ui-surface);
    --border: var(--ui-line);
    --border-strong: var(--ui-line-strong);
    --text: var(--ui-fg);
    --text-muted: var(--ui-fg-2);
    --text-soft: var(--ui-fg-3);
    --ui-glass-bg: rgba(0, 0, 0, 0.55);
    --ui-glass-border: var(--ui-line);

    /* Variables de home.css */
    --bg-primary: #000;
    --bg-secondary: #000;
    --bg-tertiary: #0a0a0a;
    --text-primary: var(--ui-fg);
    --text-secondary: var(--ui-fg-2);
    --border-color: var(--ui-line);
    --accent-soft: rgba(255, 255, 255, 0.04);
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
}
body.ui {
    --ui-accent: var(--primary, #ff6a00);
    --ui-accent-2: var(--accent-warm, var(--primary-light, #ffb347));
}
body.ui.ui-home { --primary: #ff6a00; --accent-warm: #ffb347; }

html:has(body.ui) { overflow-x: hidden; }
body.ui {
    overflow-x: hidden;
    background: var(--ui-black);
    color: var(--ui-fg);
    font-family: var(--ui-sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body.ui ::selection { background: rgba(255, 255, 255, 0.85); color: #000; }
body.ui .decoration,
body.ui .particles,
body.ui #particles { display: none !important; }

/* ---------- Primitivas ---------- */
body.ui .ui-glass,
body.ui .header .container,
body.ui .badge,
body.ui .btn-outline,
body.ui .pricing-toggle {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08);
    border: none;
}
body.ui .ui-glass::before,
body.ui .header .container::before,
body.ui .badge::before,
body.ui .btn-outline::before,
body.ui .pricing-toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(180deg, rgba(255,255,255,.42) 0%, rgba(255,255,255,.12) 22%, rgba(255,255,255,0) 42%, rgba(255,255,255,0) 58%, rgba(255,255,255,.12) 80%, rgba(255,255,255,.36) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

body.ui .gradient-text {
    font-family: var(--ui-serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.01em;
    padding-right: 0.06em;
    background: linear-gradient(100deg, var(--ui-accent) 0%, var(--ui-accent-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ---------- Header: pastilla flotante ---------- */
body.ui .header {
    background: transparent !important; /* app.js pone fondo blanco inline al hacer scroll */
    border: none;
    box-shadow: none;
    height: auto;
    padding: 14px 16px 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
body.ui .header .container {
    max-width: 1120px;
    margin: 0 auto;
    height: 60px;
    padding: 0 10px 0 22px;
    border-radius: 999px;
    transition: background .4s var(--ui-ease), box-shadow .4s var(--ui-ease);
}
body.ui .header.is-scrolled .container {
    background: rgba(8, 8, 8, 0.72);
    box-shadow: inset 0 1px 1px rgba(255,255,255,.08), 0 18px 50px rgba(0,0,0,.55);
}
/* Logo: en el tema oscuro se usa el logo en texto de cada página (las imágenes
   están pensadas para fondo claro). Marca = rombo con el acento + nombre. */
body.ui .header .logo img { display: none !important; }
body.ui .header .logo-icon { display: none !important; }
body.ui .header .logo-text,
body.ui .header .logo > span:not(.logo-icon) {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    color: var(--ui-fg);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .06em;
}
body.ui .header .logo-text::before,
body.ui .header .logo:not(:has(.logo-text))::before {
    content: '';
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(135deg, var(--ui-accent), var(--ui-accent-2));
    box-shadow: 0 0 16px color-mix(in srgb, var(--ui-accent) 70%, transparent);
    transform: rotate(45deg) scale(.8);
}
body.ui .header .logo:not(:has(.logo-text)) { display: inline-flex; align-items: center; gap: 10px; }
body.ui .logo { color: var(--ui-fg); }
body.ui .nav { gap: 26px; }
body.ui .nav a:not(.btn),
body.ui .nav-ecosystem-toggle {
    color: var(--ui-fg-2);
    font-size: 0.88rem;
    font-weight: 500;
    background: none;
    transition: color .25s;
}
body.ui .nav a:not(.btn):hover,
body.ui .nav-ecosystem-toggle:hover { color: var(--ui-fg); }
body.ui .nav-ecosystem-menu {
    background: rgba(10, 10, 10, 0.92);
    border: 1px solid var(--ui-line);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 30px 60px rgba(0,0,0,.6);
}
body.ui .nav-ecosystem-label,
body.ui .ecosystem-links a { color: var(--ui-fg-3); }
body.ui .ecosystem-item { color: var(--ui-fg-2); background: transparent; border-color: var(--ui-line); }
body.ui .ecosystem-item:hover,
body.ui .ecosystem-links a:hover { color: var(--ui-fg); background: var(--ui-surface-2); }
body.ui .ecosystem-divider { background: var(--ui-line); }
body.ui .header-lang-switch { background: transparent; border-color: var(--ui-line); }
body.ui .lang-flag { opacity: .55; }
body.ui .lang-flag-active { opacity: 1; background: var(--ui-surface-2); }
body.ui .mobile-menu-btn { color: var(--ui-fg); background: transparent; border-color: var(--ui-line); }
body.ui .mobile-menu,
body.ui .mobile-menu-content { background: #050505; color: var(--ui-fg); }
body.ui .mobile-menu a:not(.btn) { color: var(--ui-fg-2); border-color: var(--ui-line); }
body.ui .mobile-menu .btn-primary { color: #000; }
body.ui .mobile-menu-divider { border-color: var(--ui-line) !important; }

/* ---------- Botones ---------- */
body.ui .btn {
    border-radius: 999px;
    font-family: var(--ui-sans);
    font-weight: 600;
    letter-spacing: -0.005em;
    transition: transform .3s var(--ui-ease), box-shadow .3s var(--ui-ease), background .3s, color .3s;
}
body.ui .btn-primary {
    background: #fff;
    color: #000;
    border: none;
    box-shadow: 0 0 0 0 transparent;
}
body.ui .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 40px -8px color-mix(in srgb, var(--ui-accent) 70%, transparent);
}
body.ui .btn-primary i { transition: transform .3s var(--ui-ease); }
body.ui .btn-primary:hover i { transform: translateX(2px) rotate(-8deg); }
body.ui .btn-outline { color: var(--ui-fg); border-radius: 999px; }
body.ui .btn-outline:hover { background: rgba(255,255,255,.06); color: var(--ui-fg); transform: translateY(-1px); }
body.ui .header .btn-primary { padding: 10px 20px; font-size: .86rem; color: #000; }

/* ---------- Hero ---------- */
body.ui .hero {
    position: relative;
    min-height: 100vh;
    padding: 150px 0 0;
    background: transparent;
    overflow: hidden;
    isolation: isolate;
}
body.ui .hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    position: relative;
    z-index: 2;
}
body.ui .hero-content {
    max-width: 900px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
body.ui .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 500;
    color: var(--ui-fg-2);
}
body.ui .badge i { color: var(--ui-accent); }
body.ui .hero h1 {
    margin: 26px 0 22px;
    font-size: clamp(2.6rem, 6.2vw, 5.4rem);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.045em;
    color: var(--ui-fg);
}
body.ui .hero-description {
    max-width: 640px;
    margin: 0 auto;
    font-size: 1.12rem;
    line-height: 1.65;
    color: var(--ui-fg-2);
}
body.ui .hero-cta { justify-content: center; margin-top: 34px; gap: 12px; }
body.ui .hero-stats {
    justify-content: center;
    gap: 0;
    margin-top: 44px;
    border-top: none;
}
body.ui .hero-stats .stat {
    padding: 0 30px;
    text-align: center;
    border-left: 1px solid var(--ui-line);
}
body.ui .hero-stats .stat:first-child { border-left: none; }
body.ui .stat-value {
    font-size: 1.7rem;
    font-weight: 500;
    letter-spacing: -0.03em;
    color: var(--ui-fg);
    background: none;
    -webkit-text-fill-color: currentColor;
}
body.ui .stat-label { color: var(--ui-fg-3); font-size: .8rem; }

/* Mockup del producto debajo del hero (estructura shadcn) */
body.ui .hero-visual {
    position: relative;
    width: 100%;
    max-width: 1040px;
    margin: 80px auto 0;
    perspective: 1600px;
}
body.ui .hero-visual::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -40px;
    width: 86%;
    height: 70%;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, color-mix(in srgb, var(--ui-accent) 55%, transparent), transparent);
    filter: blur(60px);
    opacity: .55;
    z-index: -1;
}
body.ui .hero-visual::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 45%;
    background: linear-gradient(180deg, transparent, #000 92%);
    pointer-events: none;
}
body.ui .hero-card {
    width: 100%;
    max-width: none;
    transform-origin: 50% 0;
    transform: rotateX(var(--ui-tilt, 18deg)) scale(var(--ui-tilt-scale, .96));
    transition: transform .1s linear;
    background: linear-gradient(180deg, rgba(20,20,20,.92), rgba(6,6,6,.96));
    border: 1px solid var(--ui-line);
    border-top-color: color-mix(in srgb, var(--ui-accent) 45%, transparent);
    border-radius: 20px;
    box-shadow: 0 40px 120px -20px rgba(0,0,0,.9);
    overflow: hidden;
    animation: none;
}
body.ui .hero-card .card-header {
    background: rgba(255,255,255,.02);
    border-bottom: 1px solid var(--ui-line);
}
body.ui .hero-card .card-title { color: var(--ui-fg-3); }
body.ui .dashboard-preview { grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 24px; }
body.ui .metric {
    background: var(--ui-surface);
    border: 1px solid var(--ui-line);
    border-radius: 16px;
    box-shadow: none;
}
body.ui .metric i {
    color: var(--ui-accent);
    background: color-mix(in srgb, var(--ui-accent) 14%, transparent);
}
body.ui .metric-value { color: var(--ui-fg); font-weight: 600; }
body.ui .metric-label { color: var(--ui-fg-3); }

/* Base del mockup (la home no tiene los estilos de .hero-card de las landings) */
body.ui .hero-visual { text-align: left; }
body.ui .hero-card .card-header { display: flex; align-items: center; gap: 14px; padding: 12px 18px; }
body.ui .hero-card .dots { display: flex; gap: 6px; }
body.ui .hero-card .dots span { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; display: block; }
body.ui .hero-card .dots span:nth-child(2) { background: #febc2e; }
body.ui .hero-card .dots span:nth-child(3) { background: #28c840; }
body.ui .hero-card .card-title { font-size: .8rem; }
body.ui .dashboard-preview { display: grid; }
body.ui .metric { display: flex; align-items: center; gap: 12px; padding: 14px; }
body.ui .metric i { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; font-size: .95rem; }
body.ui .metric-value { display: block; font-size: 1.15rem; line-height: 1.2; }
body.ui .metric-label { display: block; font-size: .74rem; line-height: 1.3; }

/* Mockup enriquecido: barra lateral + tablero (opcional por producto) */
.ui-mock { display: grid; grid-template-columns: 190px 1fr; min-height: 380px; }
.ui-mock-side {
    border-right: 1px solid var(--ui-line);
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ui-mock-side span {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: .8rem;
    color: var(--ui-fg-3);
}
.ui-mock-side span i { width: 14px; text-align: center; }
.ui-mock-side span.is-active { background: rgba(255,255,255,.06); color: var(--ui-fg); }
.ui-mock-side span.is-active i { color: var(--ui-accent); }
.ui-mock-main { padding: 22px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ui-mock-main .dashboard-preview { padding: 0 !important; }
.ui-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ui-col {
    background: rgba(255,255,255,.02);
    border: 1px solid var(--ui-line);
    border-radius: 14px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ui-col-title { display: flex; justify-content: space-between; font-size: .72rem; color: var(--ui-fg-3); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 2px; }
.ui-chip {
    background: rgba(255,255,255,.04);
    border: 1px solid var(--ui-line);
    border-radius: 10px;
    padding: 9px 10px;
    font-size: .76rem;
    color: var(--ui-fg-2);
    line-height: 1.35;
}
.ui-chip b { display: block; color: var(--ui-fg); font-weight: 500; }
.ui-chip.is-hot { border-color: color-mix(in srgb, var(--ui-accent) 50%, transparent); box-shadow: 0 0 24px -8px var(--ui-accent); }
.ui-chip.is-new { animation: ui-chip-in 4s var(--ui-ease) infinite; }
@keyframes ui-chip-in {
    0%, 12% { opacity: 0; transform: translateY(-8px); }
    20%, 85% { opacity: 1; transform: none; }
    100% { opacity: 1; }
}
@media (max-width: 900px) {
    .ui-mock { grid-template-columns: 1fr; }
    .ui-mock-side { display: none; }
    .ui-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ui-board .ui-col:nth-child(n+3) { display: none; }
    .ui-mock { min-height: 0; }
}

/* Fondo animado del hero (lo inyecta theme.js) */
.ui-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent);
    mask-image: linear-gradient(180deg, #000 60%, transparent);
}
.ui-hero-bg .ui-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .38;
    will-change: transform;
}
.ui-hero-bg .ui-orb-1 {
    width: 46vw; height: 46vw; left: -12vw; top: -18vw;
    background: radial-gradient(circle, var(--ui-accent), transparent 65%);
    animation: ui-drift-1 22s var(--ui-ease) infinite alternate;
}
.ui-hero-bg .ui-orb-2 {
    width: 38vw; height: 38vw; right: -10vw; top: 4vw;
    background: radial-gradient(circle, var(--ui-accent-2), transparent 65%);
    opacity: .22;
    animation: ui-drift-2 26s var(--ui-ease) infinite alternate;
}
.ui-hero-bg .ui-orb-3 {
    width: 30vw; height: 30vw; left: 35vw; top: 30vw;
    background: radial-gradient(circle, rgba(255,255,255,.5), transparent 65%);
    opacity: .06;
    animation: ui-drift-1 30s var(--ui-ease) infinite alternate-reverse;
}
.ui-hero-bg .ui-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 30%, transparent 75%);
    animation: ui-grid-pan 40s linear infinite;
}
.ui-hero-bg .ui-noise {
    position: absolute;
    inset: 0;
    opacity: .07;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes ui-drift-1 { to { transform: translate3d(14vw, 8vw, 0) scale(1.15); } }
@keyframes ui-drift-2 { to { transform: translate3d(-12vw, 10vw, 0) scale(.9); } }
@keyframes ui-grid-pan { to { background-position: 64px 64px; } }

/* Entrada del hero al cargar */
body.ui .hero-content > * {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(6px);
    animation: ui-in 1s var(--ui-ease) forwards;
}
body.ui .hero-content > *:nth-child(1) { animation-delay: .05s; }
body.ui .hero-content > *:nth-child(2) { animation-delay: .15s; }
body.ui .hero-content > *:nth-child(3) { animation-delay: .28s; }
body.ui .hero-content > *:nth-child(4) { animation-delay: .4s; }
body.ui .hero-content > *:nth-child(5) { animation-delay: .52s; }
@keyframes ui-in { to { opacity: 1; transform: none; filter: none; } }

/* ---------- Marquesina ---------- */
.ui-marquee {
    position: relative;
    padding: 36px 0;
    border-top: 1px solid var(--ui-line);
    border-bottom: 1px solid var(--ui-line);
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ui-marquee-label {
    text-align: center;
    font-size: .72rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--ui-fg-3);
    margin-bottom: 22px;
}
.ui-marquee-track {
    display: flex;
    width: max-content;
    gap: 56px;
    animation: ui-marquee 38s linear infinite;
}
.ui-marquee:hover .ui-marquee-track { animation-play-state: paused; }
.ui-marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--ui-fg-2);
}
.ui-marquee-item i { color: var(--ui-fg-3); font-size: 1.1rem; }
@keyframes ui-marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
body.ui section { background: transparent; }
body.ui .problem-section,
body.ui .features,
body.ui .usecases,
body.ui .pricing,
body.ui .verticals,
body.ui .faq,
body.ui .cta { padding: 130px 0; position: relative; }
body.ui .section-header { max-width: 780px; margin: 0 auto 64px; text-align: center; }
body.ui .section-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    background: none;
    border: none;
    color: var(--ui-fg-3);
    font-size: .74rem;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
}
body.ui .section-badge::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--ui-accent);
    box-shadow: 0 0 12px var(--ui-accent);
}
body.ui .section-header h2,
body.ui .cta h2 {
    margin-top: 18px;
    font-size: clamp(2rem, 4.2vw, 3.5rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: var(--ui-fg);
}
body.ui .section-header p { color: var(--ui-fg-2); font-size: 1.08rem; line-height: 1.6; margin-top: 16px; }
body.ui .glow-divider,
body.ui .features::before,
body.ui .pricing::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    width: min(900px, 80%);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ui-accent) 60%, transparent), transparent);
}

/* Tarjetas: base común */
body.ui .problem-card,
body.ui .feature-card,
body.ui .vertical-card,
body.ui .usecase-visual,
body.ui .pricing-card,
body.ui .ui-card {
    position: relative;
    background: var(--ui-surface);
    border: 1px solid var(--ui-line);
    border-radius: var(--ui-radius);
    box-shadow: none;
    overflow: hidden;
    transition: border-color .4s var(--ui-ease), transform .5s var(--ui-ease), background .4s;
}
body.ui .problem-card:hover,
body.ui .feature-card:hover,
body.ui .vertical-card:hover,
body.ui .ui-card:hover {
    border-color: var(--ui-line-strong);
    transform: translateY(-4px);
    background: var(--ui-surface-2);
}
/* Reflejo que sigue al mouse (theme.js setea --mx/--my) */
body.ui .problem-card::after,
body.ui .feature-card::after,
body.ui .vertical-card::after,
body.ui .pricing-card::after,
body.ui .ui-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), rgba(255,255,255,.07), transparent 45%);
    opacity: 0;
    transition: opacity .4s;
    pointer-events: none;
}
body.ui .problem-card:hover::after,
body.ui .feature-card:hover::after,
body.ui .vertical-card:hover::after,
body.ui .pricing-card:hover::after,
body.ui .ui-card:hover::after { opacity: 1; }

/* Problemas → tarjetas numeradas (Benefits de shadcn) */
body.ui .problem-grid { counter-reset: ui-n; gap: 16px; grid-template-columns: repeat(3, 1fr); }
body.ui .problem-card { counter-increment: ui-n; padding: 30px 28px; }
body.ui .problem-card::before {
    content: counter(ui-n, decimal-leading-zero);
    position: absolute;
    top: 18px; right: 24px;
    font-size: 3.2rem;
    font-weight: 500;
    letter-spacing: -0.04em;
    color: rgba(255,255,255,.05);
    transition: color .4s;
}
body.ui .problem-card:hover::before { color: rgba(255,255,255,.12); }
body.ui .problem-card .pain { color: var(--ui-accent); background: none; padding: 0; font-weight: 500; }
body.ui .problem-card h3 { color: var(--ui-fg); font-weight: 500; letter-spacing: -0.015em; padding-right: 54px; }
body.ui .problem-card .solution { color: var(--ui-fg-2); border-top: 1px solid var(--ui-line); }
body.ui .problem-card .solution strong { color: var(--ui-fg); }

/* Features (grilla de 3 con ícono en anillo) */
body.ui .features-grid { gap: 16px; }
body.ui .feature-card { padding: 32px 28px; }
body.ui .feature-icon {
    width: 48px; height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--ui-accent);
    background: color-mix(in srgb, var(--ui-accent) 16%, transparent);
    box-shadow: 0 0 0 8px color-mix(in srgb, var(--ui-accent) 7%, transparent);
    margin-bottom: 22px;
}
body.ui .feature-card h3 { color: var(--ui-fg); font-weight: 500; letter-spacing: -0.015em; }
body.ui .feature-card p { color: var(--ui-fg-2); }
body.ui .feature-example,
body.ui .vertical-example {
    background: rgba(255,255,255,.02);
    border: 1px solid var(--ui-line);
    border-left: 2px solid color-mix(in srgb, var(--ui-accent) 60%, transparent);
    border-radius: 12px;
    color: var(--ui-fg-3);
}
body.ui .feature-example strong,
body.ui .vertical-example strong { color: var(--ui-fg-2); }

/* Casos de uso (texto + panel) */
body.ui .usecase-row { gap: 56px; margin-bottom: 110px; }
body.ui .usecase-text .tag {
    color: var(--ui-accent);
    background: color-mix(in srgb, var(--ui-accent) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--ui-accent) 25%, transparent);
    border-radius: 999px;
}
body.ui .usecase-text h3 { color: var(--ui-fg); font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; }
body.ui .usecase-text p,
body.ui .usecase-text li { color: var(--ui-fg-2); }
body.ui .usecase-text li::marker,
body.ui .usecase-text li i,
body.ui .usecase-text li::before { color: var(--ui-accent); }
body.ui .usecase-visual {
    padding: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
    box-shadow: 0 30px 80px -30px rgba(0,0,0,.9);
}
body.ui .scene-title { color: var(--ui-fg-3); border-color: var(--ui-line); }
body.ui .scene-row {
    background: rgba(255,255,255,.025);
    border: 1px solid var(--ui-line);
    color: var(--ui-fg-2);
    border-radius: 12px;
}
body.ui .scene-row i { color: var(--ui-fg-3); }
body.ui .pill { border-radius: 999px; font-weight: 500; }
body.ui .pill.ok { background: rgba(34,197,94,.12); color: #4ade80; }
body.ui .pill.info { background: rgba(255,255,255,.07); color: var(--ui-fg-2); }
body.ui .pill.warn { background: rgba(245,158,11,.14); color: #fbbf24; }

/* Rubros */
body.ui .verticals-intro { color: var(--ui-fg-2); max-width: 760px; margin: -30px auto 56px; text-align: center; }
body.ui .verticals-grid { gap: 16px; }
body.ui .vertical-card { padding: 28px; }
body.ui .vertical-icon { color: var(--ui-accent); background: color-mix(in srgb, var(--ui-accent) 12%, transparent); border-radius: 14px; }
body.ui .vertical-card h3 { color: var(--ui-fg); font-weight: 500; }
body.ui .vertical-card p { color: var(--ui-fg-2); }

/* ---------- Precios ---------- */
body.ui .pricing-toggle {
    display: inline-flex;
    margin: 0 auto 48px;
    padding: 6px 8px 6px 18px;
    border-radius: 999px;
    left: 50%;
    transform: translateX(-50%);
}
body.ui .toggle-label { color: var(--ui-fg-3); font-weight: 500; }
body.ui .toggle-label.active { color: var(--ui-fg); }
body.ui .toggle-slider { background: rgba(255,255,255,.12); }
body.ui .toggle-switch input:checked + .toggle-slider { background: var(--ui-accent); }
body.ui .discount-badge { background: color-mix(in srgb, var(--ui-accent) 20%, transparent); color: var(--ui-fg); }
body.ui .pricing-grid { gap: 16px; align-items: stretch; }
body.ui .pricing-card { color: var(--ui-fg); }
body.ui .pricing-card.featured {
    background: linear-gradient(180deg, color-mix(in srgb, var(--ui-accent) 12%, rgba(255,255,255,.03)), rgba(255,255,255,.02));
    border-color: color-mix(in srgb, var(--ui-accent) 45%, transparent);
    box-shadow: 0 30px 90px -30px color-mix(in srgb, var(--ui-accent) 55%, transparent);
    transform: translateY(-8px);
}
body.ui .pricing-card.enterprise { order: 3; }
body.ui .plan-badge {
    position: absolute;
    top: 18px; right: 18px;
    width: auto;
    padding: 5px 12px;
    font-size: .72rem;
    background: #fff;
    color: #000;
    border-radius: 999px;
    font-weight: 600;
}
body.ui .plan-name { color: var(--ui-fg); font-weight: 500; }
body.ui .plan-price { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 4px; }
body.ui .price-amount { color: var(--ui-fg); font-size: 3rem; line-height: 1; font-weight: 500; letter-spacing: -0.045em; -webkit-text-fill-color: currentColor; background: none; }
body.ui .price-currency,
body.ui .price-period,
body.ui .plan-description { color: var(--ui-fg-3); }
body.ui .plan-features li { color: var(--ui-fg-2); border-color: var(--ui-line); }
body.ui .plan-features li i { color: var(--ui-accent); }
body.ui .pricing-card [style*="grid-template-columns"] > * {
    background: rgba(255,255,255,.03) !important;
    border-color: var(--ui-line) !important;
    color: var(--ui-fg-2) !important;
}
body.ui .pricing-card .btn-trial {
    background: transparent !important;
    color: var(--ui-fg) !important;
    border: 1px solid var(--ui-line-strong) !important;
}
body.ui .pricing-card .btn-trial:hover { background: rgba(255,255,255,.06) !important; }
body.ui .pricing-license-note { color: var(--ui-fg-3); }
body.ui .loading-plans { color: var(--ui-fg-3); }

/* ---------- FAQ: acordeón minimalista ---------- */
body.ui .faq-grid { max-width: 820px; margin: 0 auto; display: block; }
body.ui .faq-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--ui-line);
    border-radius: 0;
    box-shadow: none;
}
body.ui .faq-item.active { border-color: var(--ui-line-strong); }
body.ui .faq-question {
    color: var(--ui-fg);
    font-weight: 500;
    font-size: 1.05rem;
    padding: 26px 4px;
    background: none;
}
body.ui .faq-question i { color: var(--ui-fg-3); }
body.ui .faq-answer p { color: var(--ui-fg-2); line-height: 1.7; padding: 0 4px 24px; }

/* ---------- CTA final ---------- */
body.ui .cta { overflow: hidden; }
body.ui .cta .cta-content {
    position: relative;
    max-width: 1040px;
    margin: 0 auto;
    padding: 90px 40px;
    text-align: center;
    border-radius: 32px;
    background: radial-gradient(120% 120% at 50% 0%, color-mix(in srgb, var(--ui-accent) 22%, transparent), transparent 60%), rgba(255,255,255,.02);
    border: 1px solid var(--ui-line);
    overflow: hidden;
}
body.ui .cta .cta-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 70%);
    mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 70%);
    pointer-events: none;
}
body.ui .cta .cta-content > * { position: relative; }
body.ui .cta h2 { max-width: 760px; margin: 0 auto 18px; }
body.ui .cta p { color: var(--ui-fg-2); font-size: 1.1rem; max-width: 600px; margin: 0 auto 34px; }

/* ---------- Footer ---------- */
body.ui .footer { background: #000; border-top: 1px solid var(--ui-line); color: var(--ui-fg-3); }
body.ui .footer .logo,
body.ui .footer h4 { color: var(--ui-fg); }
body.ui .footer p,
body.ui .footer a { color: var(--ui-fg-3); }
body.ui .footer a:hover { color: var(--ui-fg); }
body.ui .social-links a { background: var(--ui-surface); border: 1px solid var(--ui-line); color: var(--ui-fg-2); }
body.ui .newsletter-form input {
    background: var(--ui-surface);
    border: 1px solid var(--ui-line);
    color: var(--ui-fg);
    border-radius: 999px;
}
body.ui .newsletter-form button { background: #fff; color: #000; border-radius: 999px; }
body.ui .footer-bottom { border-color: var(--ui-line); }

/* ---------- Modales (checkout, demo, trial, alertas) ---------- */
body.ui .modal-overlay,
body.ui .modal-backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
body.ui .modal-content,
body.ui .modal-container {
    background: #0a0a0a;
    color: var(--ui-fg);
    border: 1px solid var(--ui-line);
    border-radius: 24px;
    box-shadow: 0 40px 120px rgba(0,0,0,.8);
}
body.ui .modal-content h2,
body.ui .modal-content h3,
body.ui .modal-content h4,
body.ui .modal-content label { color: var(--ui-fg); }
body.ui .modal-content p,
body.ui .modal-content small { color: var(--ui-fg-2); }
body.ui .modal-close { color: var(--ui-fg-2); background: var(--ui-surface-2); }
body.ui .modal-content input,
body.ui .modal-content select,
body.ui .modal-content textarea,
body.ui .modal-container input,
body.ui .modal-container select,
body.ui .modal-container textarea {
    box-sizing: border-box;
    max-width: 100%;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--ui-line);
    color: var(--ui-fg);
    border-radius: 12px;
}
body.ui .modal-container input:focus,
body.ui .modal-container select:focus,
body.ui .modal-container textarea:focus,
body.ui .modal-content input:focus,
body.ui .modal-content select:focus,
body.ui .modal-content textarea:focus {
    border-color: color-mix(in srgb, var(--ui-accent) 60%, transparent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--ui-accent) 18%, transparent);
    outline: none;
}
body.ui .modal-content select option,
body.ui .modal-container select option { background: #0a0a0a; }
body.ui .modal-container h2,
body.ui .modal-container h3,
body.ui .modal-container label { color: var(--ui-fg); }
body.ui .modal-container p,
body.ui .form-note { color: var(--ui-fg-2); }
body.ui .modal-content input[type="checkbox"],
body.ui .modal-container input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--ui-accent); }
body.ui .checkbox-label { color: var(--ui-fg-2); }
body.ui .modal .form-row > *,
body.ui .modal .form-group { min-width: 0; }
body.ui .checkbox-label .checkmark { display: none; }
body.ui .demo-icon { background: color-mix(in srgb, var(--ui-accent) 18%, transparent); color: var(--ui-accent); }
body.ui .payment-method,
body.ui .order-summary,
body.ui #orderSummary,
body.ui #selectedPlanPreview,
body.ui .bank-transfer-info,
body.ui #bankTransferInfo {
    background: var(--ui-surface);
    border-color: var(--ui-line);
    color: var(--ui-fg-2);
}
body.ui .payment-method.active,
body.ui .payment-method.selected { border-color: var(--ui-accent); }
body.ui .step-indicator { color: var(--ui-fg-3); }
body.ui .step-indicator.active { color: var(--ui-fg); }


/* ============================================================
   HOME (index.html / en/index.html) — clases propias de home.css
   ============================================================ */
body.ui-home main { background: transparent; }
body.ui-home header {
    top: 14px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(1120px, calc(100% - 32px));
    padding: 10px 10px 10px 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02) !important;
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    box-shadow: inset 0 1px 1px rgba(255,255,255,.08);
    border: none;
    transition: background .4s var(--ui-ease), box-shadow .4s var(--ui-ease);
}
body.ui-home header::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(180deg, rgba(255,255,255,.42), rgba(255,255,255,.1) 25%, rgba(255,255,255,0) 50%, rgba(255,255,255,.1) 75%, rgba(255,255,255,.34));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
body.ui-home header.is-scrolled {
    background: rgba(8, 8, 8, 0.72) !important;
    box-shadow: inset 0 1px 1px rgba(255,255,255,.08), 0 18px 50px rgba(0,0,0,.55);
}
body.ui-home .logo { color: var(--ui-fg); font-weight: 600; letter-spacing: -0.02em; }
body.ui-home .logo span { color: var(--ui-accent); }
body.ui-home #main-nav a:not(.btn-header),
body.ui-home .nav-dropdown summary { color: var(--ui-fg-2); font-weight: 500; font-size: .9rem; }
body.ui-home #main-nav a:not(.btn-header):hover,
body.ui-home .nav-dropdown summary:hover { color: var(--ui-fg); }
body.ui-home .nav-dropdown-menu { background: rgba(10,10,10,.94); border: 1px solid var(--ui-line); box-shadow: 0 30px 60px rgba(0,0,0,.6); }
body.ui-home .nav-dropdown-menu a { color: var(--ui-fg-2) !important; }
body.ui-home .nav-dropdown-menu a:hover { background: var(--ui-surface-2); color: var(--ui-fg) !important; }
body.ui-home .btn-header {
    background: #fff;
    color: #000 !important;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: none;
}
body.ui-home .btn-header:hover { box-shadow: 0 10px 40px -8px color-mix(in srgb, var(--ui-accent) 70%, transparent); transform: translateY(-1px); }
body.ui-home .mobile-menu-toggle span { background: var(--ui-fg); }
body.ui-home header nav {
    background: rgba(10, 10, 10, 0.96);
    border: 1px solid var(--ui-line);
    box-shadow: 0 30px 60px rgba(0,0,0,.6);
}
body.ui-home header nav a:not(.btn-header):hover { background: var(--ui-surface-2); }
body.ui-home .mobile-menu-toggle { background: transparent; border-color: var(--ui-line); }

/* Hero home */
body.ui-home .hero {
    max-width: none;
    min-height: auto;
    padding: 170px 24px 0;
    margin: 0;
    text-align: center;
}
body.ui-home .hero > * { position: relative; z-index: 2; }
body.ui-home .hero > .ui-hero-bg { position: absolute; z-index: 0; }
body.ui-home .hero h1 {
    max-width: 980px;
    margin: 26px auto 24px;
    font-size: clamp(2.6rem, 6.4vw, 5.6rem);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.045em;
    color: var(--ui-fg);
}
body.ui-home .hero h1 span {
    font-family: var(--ui-serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.01em;
    background: linear-gradient(100deg, var(--ui-accent), var(--ui-accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
body.ui-home .hero > p { max-width: 660px; margin: 0 auto; color: var(--ui-fg-2); font-size: 1.12rem; line-height: 1.65; }
body.ui-home .hero .hero-brand-note { margin-top: 16px; font-size: .92rem; color: var(--ui-fg-3); }
body.ui-home .hero .hero-brand-note a { color: var(--ui-fg); border-bottom: 1px solid var(--ui-line-strong); }
body.ui-home .hero-actions { justify-content: center; margin-top: 34px; gap: 12px; }
body.ui-home .hero > *:not(.ui-hero-bg):not(.hero-visual) {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(6px);
    animation: ui-in 1s var(--ui-ease) forwards;
}
body.ui-home .hero > *:nth-child(2) { animation-delay: .05s; }
body.ui-home .hero > *:nth-child(3) { animation-delay: .15s; }
body.ui-home .hero > *:nth-child(4) { animation-delay: .27s; }
body.ui-home .hero > *:nth-child(5) { animation-delay: .38s; }
body.ui-home .hero > *:nth-child(6) { animation-delay: .5s; }
body.ui-home .btn-hero-primary,
body.ui-home .btn-hero-secondary,
body.ui .btn-submit {
    border-radius: 999px;
    font-weight: 600;
    transition: transform .3s var(--ui-ease), box-shadow .3s var(--ui-ease), background .3s;
}
body.ui-home .btn-hero-primary,
body.ui .btn-submit { background: #fff; color: #000; border: none; box-shadow: none; }
body.ui-home .btn-hero-primary:hover,
body.ui .btn-submit:hover { transform: translateY(-1px); box-shadow: 0 10px 40px -8px color-mix(in srgb, var(--ui-accent) 70%, transparent); background: #fff; }
body.ui-home .btn-hero-secondary {
    position: relative;
    background: rgba(255,255,255,.02);
    color: var(--ui-fg);
    border: 1px solid var(--ui-line-strong);
}
body.ui-home .btn-hero-secondary:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.3); }
body.ui-home .hero-visual { max-width: 1080px; margin-top: 80px; padding: 0 0; }
body.ui-home .hero { overflow: visible; }
body.ui-home .hero > .ui-hero-bg { left: 50%; right: auto; width: 100vw; top: -170px; transform: translateX(-50%); }
body.ui-home .section-title { text-transform: none; }
body.ui-home .products-grid { grid-template-columns: repeat(3, 1fr); }
body.ui-home .testimonials-section:has(.testimonials-grid:empty),
body.ui-home .videos-section:has(.videos-grid:empty) { display: none; }

/* Secciones home */
body.ui-home .section,
body.ui-home .products-section,
body.ui-home .opensource-section { padding-top: 120px; padding-bottom: 120px; background: transparent; }
body.ui-home .section-header { max-width: 800px; margin: 0 auto 64px; text-align: center; }
body.ui-home .section-header h2,
body.ui-home .section-title {
    font-size: clamp(2rem, 4.2vw, 3.5rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: var(--ui-fg);
}
body.ui-home .section-header h2 span {
    font-family: var(--ui-serif);
    font-style: italic;
    font-weight: 400;
    background: linear-gradient(100deg, var(--ui-accent), var(--ui-accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
body.ui-home .section-header p,
body.ui-home .section-title-sub { color: var(--ui-fg-2); font-size: 1.08rem; line-height: 1.6; }
body.ui-home .section-title-sub { max-width: 700px; margin: 16px auto 56px; text-align: center; }
body.ui-home .ui-kicker {
    display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
    color: var(--ui-fg-3); font-size: .74rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
}
body.ui-home .ui-kicker::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ui-accent); box-shadow: 0 0 12px var(--ui-accent); }

/* Problemas (mismo patrón numerado que las landings) */
body.ui-home .problems-grid { counter-reset: ui-n; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
body.ui-home .problem-card .problem-pain { color: var(--ui-accent); font-weight: 500; }
body.ui-home .problem-card .problem-solution { color: var(--ui-fg-2); border-top: 1px solid var(--ui-line); }
body.ui-home .problem-card .problem-solution strong { color: var(--ui-fg); }

/* Cómo trabajamos */
body.ui-home .how-card,
body.ui-home .platform-card,
body.ui-home .testimonial-card,
body.ui-home .video-card,
body.ui-home .product-card {
    position: relative;
    background: var(--ui-surface);
    border: 1px solid var(--ui-line);
    border-radius: var(--ui-radius);
    box-shadow: none;
    color: var(--ui-fg);
    transition: border-color .4s var(--ui-ease), transform .5s var(--ui-ease), background .4s;
    overflow: hidden;
}
body.ui-home .how-card:hover,
body.ui-home .platform-card:hover,
body.ui-home .product-card:hover { border-color: var(--ui-line-strong); background: var(--ui-surface-2); transform: translateY(-4px); box-shadow: none; }
body.ui-home .how-card::after,
body.ui-home .platform-card::after,
body.ui-home .product-card::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), rgba(255,255,255,.07), transparent 45%);
    opacity: 0; transition: opacity .4s;
}
body.ui-home .how-card:hover::after,
body.ui-home .platform-card:hover::after,
body.ui-home .product-card:hover::after { opacity: 1; }
body.ui-home .how-num {
    width: auto; height: auto; background: none; box-shadow: none;
    font-size: 3.4rem; font-weight: 500; letter-spacing: -0.05em; line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,.28);
}
body.ui-home .how-card h3,
body.ui-home .platform-card h3,
body.ui-home .product-card h3 { color: var(--ui-fg); font-weight: 500; letter-spacing: -0.015em; }
body.ui-home .how-card p,
body.ui-home .platform-card p,
body.ui-home .product-card p { color: var(--ui-fg-2); }

/* SaaS por industria */
body.ui-home .products-grid { gap: 16px; }
body.ui-home .product-icon { border-radius: 14px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.8); }
body.ui-home .product-price { color: var(--ui-fg); font-weight: 500; }
body.ui-home .product-cta { color: var(--ui-fg-3); }
body.ui-home .product-card:hover .product-cta { color: var(--ui-fg); }
body.ui-home .product-cta i { transition: transform .3s var(--ui-ease); }
body.ui-home .product-card:hover .product-cta i { transform: translateX(4px); }
body.ui-home .product-status-badge { background: rgba(255,255,255,.08); color: var(--ui-fg-2); border-radius: 999px; }
body.ui-home .testimonials-empty,
body.ui-home .videos-empty { color: var(--ui-fg-3); }

/* Plataforma DisruptIA */
body.ui-home .platform-badge {
    background: color-mix(in srgb, var(--ui-accent) 12%, transparent);
    color: var(--ui-accent);
    border: 1px solid color-mix(in srgb, var(--ui-accent) 30%, transparent);
    border-radius: 999px;
}
body.ui-home .platform-grid { gap: 16px; }
body.ui-home .platform-icon {
    width: 48px; height: 48px; border-radius: 50%;
    display: grid; place-items: center;
    color: var(--ui-accent);
    background: color-mix(in srgb, var(--ui-accent) 16%, transparent);
    box-shadow: 0 0 0 8px color-mix(in srgb, var(--ui-accent) 7%, transparent);
}
body.ui-home .platform-cta p { color: var(--ui-fg-3); }

/* Open source */
body.ui-home .os-summary {
    background: var(--ui-surface);
    border: 1px solid var(--ui-line);
    border-radius: var(--ui-radius);
    box-shadow: none;
}
body.ui-home .os-summary-text p,
body.ui-home .os-summary-points li { color: var(--ui-fg-2); }
body.ui-home .os-summary-text a { color: var(--ui-fg); }
body.ui-home .os-summary-points li i { color: var(--ui-accent); }
body.ui-home .os-chip {
    background: rgba(255,255,255,.03);
    border: 1px solid var(--ui-line);
    color: var(--ui-fg-2);
    border-radius: 999px;
    transition: border-color .3s, color .3s, transform .3s var(--ui-ease);
}
body.ui-home .os-chip:hover { border-color: var(--ui-line-strong); color: var(--ui-fg); transform: translateY(-2px); }
body.ui .opensource-cta {
    background: var(--ui-surface);
    border: 1px solid var(--ui-line);
    border-radius: var(--ui-radius);
    box-shadow: none;
}
body.ui .opensource-cta h3 { color: var(--ui-fg); font-weight: 500; }
body.ui .opensource-cta p,
body.ui .opensource-form label { color: var(--ui-fg-2); }
body.ui .opensource-form input,
body.ui .opensource-form select,
body.ui .opensource-form textarea {
    background: rgba(255,255,255,.04);
    border: 1px solid var(--ui-line);
    color: var(--ui-fg);
    border-radius: 12px;
}
body.ui .opensource-form input:focus,
body.ui .opensource-form select:focus,
body.ui .opensource-form textarea:focus {
    outline: none;
    border-color: color-mix(in srgb, var(--ui-accent) 60%, transparent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--ui-accent) 18%, transparent);
}
body.ui .opensource-form select option { background: #0a0a0a; }
body.ui .form-success { color: var(--ui-fg); }

/* CTA final + franja de garantías */
body.ui-home .final-cta-box {
    position: relative;
    max-width: 1040px;
    margin: 0 auto;
    padding: 90px 40px;
    border-radius: 32px;
    background: radial-gradient(120% 120% at 50% 0%, color-mix(in srgb, var(--ui-accent) 22%, transparent), transparent 60%), rgba(255,255,255,.02);
    border: 1px solid var(--ui-line);
    box-shadow: none;
    overflow: hidden;
}
body.ui-home .final-cta-box::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 70%);
    mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 70%);
}
body.ui-home .final-cta-box > * { position: relative; }
body.ui-home .final-cta-box h2 { color: var(--ui-fg); font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 500; letter-spacing: -0.035em; }
body.ui-home .final-cta-box p { color: var(--ui-fg-2); }
body.ui-home .features {
    border-top: 1px solid var(--ui-line);
    background: transparent;
    padding: 56px 24px;
}
body.ui-home .feature h4 { color: var(--ui-fg); font-weight: 500; }
body.ui-home .feature p { color: var(--ui-fg-3); }
body.ui-home .feature-icon { color: var(--ui-accent); background: color-mix(in srgb, var(--ui-accent) 12%, transparent); border-radius: 50%; }

/* Footer home */
body.ui-home footer { background: #000; border-top: 1px solid var(--ui-line); color: var(--ui-fg-3); }
body.ui-home footer a { color: var(--ui-fg-3); }
body.ui-home footer a:hover { color: var(--ui-fg); }
body.ui-home .footer-newsletter h4 { color: var(--ui-fg); }
body.ui-home .footer-social a { background: var(--ui-surface); border: 1px solid var(--ui-line); color: var(--ui-fg-2); }

@media (max-width: 1024px) {
    body.ui-home .problems-grid,
    body.ui-home .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    /* Sin backdrop-filter: haría que el menú móvil (fixed, adentro del header)
       se posicione relativo a la pastilla en vez de a la pantalla. */
    body.ui-home header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(8,8,8,.85) !important;
        padding: 8px 8px 8px 18px;
        left: 12px;
        right: 12px;
        width: auto;
        transform: none;
    }
    body.ui-home .hero { padding-top: 130px; }
    body.ui-home .problems-grid,
    body.ui-home .products-grid { grid-template-columns: 1fr; }
    body.ui-home .final-cta-box { padding: 60px 22px; }
}

/* ---------- Revelado al hacer scroll (theme.js agrega .ui-in) ---------- */
body.ui [data-reveal] {
    opacity: 0;
    transform: translate3d(var(--rx, 0), var(--ry, 36px), 0);
    filter: blur(4px);
    transition: opacity .9s var(--ui-ease), transform .9s var(--ui-ease), filter .9s var(--ui-ease);
    transition-delay: var(--rd, 0s);
}
body.ui [data-reveal].ui-in { opacity: 1; transform: none; filter: none; }
body.ui [data-reveal].ui-in:hover { transition-delay: 0s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    body.ui .dashboard-preview { grid-template-columns: repeat(2, 1fr); }
    body.ui .problem-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    body.ui .problem-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    body.ui .header { padding: 10px 10px 0; }
    body.ui .header .container { height: 54px; padding: 0 8px 0 16px; }
    body.ui .hero { padding-top: 120px; min-height: auto; }
    body.ui .hero h1 { font-size: clamp(2.2rem, 10vw, 3rem); }
    body.ui .hero-stats { flex-wrap: nowrap; }
    body.ui .hero-stats .stat { padding: 0 10px; flex: 1; }
    body.ui .stat-value { font-size: 1.3rem; }
    body.ui .stat-label { font-size: .7rem; }
    body.ui .dashboard-preview { padding: 0 !important; gap: 10px; }
    body.ui .ui-mock-main { padding: 14px; }
    body.ui .hero-visual { margin-top: 52px; }
    body.ui .problem-section,
    body.ui .features,
    body.ui .usecases,
    body.ui .pricing,
    body.ui .verticals,
    body.ui .faq,
    body.ui .cta { padding: 90px 0; }
    body.ui .cta .cta-content { padding: 60px 22px; border-radius: 24px; }
    body.ui .pricing-card.featured { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    body.ui *,
    body.ui *::before,
    body.ui *::after { animation: none !important; transition: none !important; }
    body.ui [data-reveal],
    body.ui .hero-content > * { opacity: 1 !important; transform: none !important; filter: none !important; }
    body.ui .hero-card { transform: none !important; }
}
