/* ============================================================
   S-FACTORY · Hoja de estilos — MOBILE-FIRST
   Base = teléfono (≤639px). Los breakpoints construyen hacia arriba:
     @media (min-width: 640px)  → tablet chica / 2 columnas
     @media (min-width: 900px)  → nav desktop / 3-4 columnas
     @media (min-width: 1140px) → desktop amplio
   Design system: light, naranja #f97316 + teal/mint/green/cyan,
   Space Grotesk / Manrope / JetBrains Mono, bordes hairline, Lucide.
   ============================================================ */

/* ---------------- TOKENS ---------------- */
:root {
    /* Brand accent: naranja */
    --orange-300: #fdba74;
    --orange-400: #fb923c;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --orange-glow: rgba(249, 115, 22, 0.16);
    --orange-grad: linear-gradient(180deg, #fb923c 0%, #f97316 100%);

    /* Acentos secundarios */
    --green-500:  #34c759;
    --green-400:  #4ae968;
    --teal-500:   #00c3d0;
    --mint-500:   #00c8b3;
    --cyan-500:   #00c0e8;
    --teal-ink:   #0d9aa8;
    --mint-ink:   #0a9e8d;
    --green-ink:  #1c9e4c;
    --cyan-ink:   #0891b2;

    /* Superficies neutrales (light) */
    --bg-base:     #fbfbfa;
    --bg-subtle:   #f4f5f4;
    --bg-elevated: #ffffff;
    --bg-raised:   #eef0ef;

    --glass-fill-2: rgba(255, 255, 255, 0.85);

    /* Bordes hairline */
    --border-subtle:  rgba(15, 23, 20, 0.08);
    --border-default: rgba(15, 23, 20, 0.13);
    --border-strong:  rgba(15, 23, 20, 0.20);
    --border-accent:  rgba(249, 115, 22, 0.50);

    /* Texto */
    --text-primary:   #14201c;
    --text-secondary: #4a5652;
    --text-muted:     #79837f;
    --text-faint:     #a7afab;
    --text-on-accent: #ffffff;
    --text-accent:    #d1500b;

    /* Estados */
    --hover-fill:  rgba(15, 23, 20, 0.04);
    --focus-ring:  rgba(249, 115, 22, 0.55);

    /* Semánticos */
    --success:     #34c759;
    --success-bg:  rgba(28, 158, 76, 0.12);
    --success-fg:  #1c7f43;
    --success-border: rgba(28, 158, 76, 0.28);
    --warning-bg:  rgba(210, 140, 0, 0.14);
    --warning-fg:  #9a6300;
    --warning-border: rgba(210, 140, 0, 0.30);
    --error-bg:    rgba(214, 45, 32, 0.10);
    --error-fg:    #b42318;
    --error-border: rgba(214, 45, 32, 0.26);
    --info-bg:     rgba(0, 150, 165, 0.12);
    --info-fg:     #0d7f8c;
    --info-border: rgba(0, 150, 165, 0.28);

    /* Tipografía */
    --font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
    --font-body:    'Manrope', ui-sans-serif, system-ui, sans-serif;
    --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
    --ls-display:  -0.03em;
    --ls-heading:  -0.02em;
    --ls-caps:      0.14em;

    /* Radios — técnicos, apretados */
    --radius-sm:   6px;
    --radius-md:   8px;
    --radius-lg:   12px;
    --radius-xl:   16px;
    --radius-2xl:  20px;
    --radius-pill: 999px;

    /* Sombras / efectos */
    --shadow-sm:  0 1px 2px rgba(20,32,28,0.06);
    --shadow-md:  0 4px 16px rgba(20,32,28,0.08);
    --shadow-lg:  0 14px 40px rgba(20,32,28,0.10);
    --shadow-xl:  0 26px 70px rgba(20,32,28,0.13);
    --edge-light: inset 0 1px 0 rgba(255,255,255,0.9);
    --glow-focus: 0 0 0 3px rgba(249,115,22,0.22);
    --wash-panel: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 100%);
    --grid-lines: linear-gradient(rgba(15,23,20,0.045) 1px, transparent 1px),
                  linear-gradient(90deg, rgba(15,23,20,0.045) 1px, transparent 1px);

    /* Transiciones — contenidas */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --dur-fast: 120ms;
    --dur-base: 180ms;
    --transition: all var(--dur-base) var(--ease-out);

    /* Layout responsivo */
    --container:  1200px;
    --gutter:     20px;      /* móvil */
    --sec-pad:    52px;      /* padding vertical de sección en móvil */
    --header-h:   60px;
}

/* ---------------- BASE ---------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    font-size: 15.5px;
    color: var(--text-primary);
    background: var(--bg-base);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;   /* seguro anti scroll lateral en móvil */
}
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: var(--ls-heading); color: var(--text-primary); font-weight: 700; line-height: 1.15; text-wrap: balance; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; }
i[data-lucide], svg.lucide { flex-shrink: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: var(--sec-pad) 0; }

/* ---------------- CARRUSEL BASE (patrón móvil central) ----------------
   En el teléfono, las grillas de cards se convierten en carruseles
   horizontales con scroll-snap: se deslizan con el pulgar y la página
   no se vuelve un rollo interminable. En pantallas grandes vuelven a grilla. */
.grid-3, .grid-4 {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px var(--gutter) 16px;
    margin: 0 calc(var(--gutter) * -1);   /* sangra al borde de la pantalla */
    scroll-padding-left: var(--gutter);
}
.grid-3::-webkit-scrollbar, .grid-4::-webkit-scrollbar { display: none; }
.grid-3 > *, .grid-4 > * {
    flex: 0 0 min(80vw, 320px);
    scroll-snap-align: start;
}

/* ---------------- SECCIONES / TITULARES ---------------- */
.section-head { max-width: 640px; margin: 0 auto 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.section-head h2 { font-size: clamp(24px, 5.6vw, 42px); }
.section-head p { color: var(--text-secondary); font-size: 15px; }
.accent-orange { color: var(--orange-500); }
.accent-teal   { color: var(--teal-ink); }
.accent-mint   { color: var(--mint-ink); }
.accent-green  { color: var(--green-ink); }
.accent-cyan   { color: var(--cyan-ink); }

/* ---------------- BADGE ---------------- */
.badge {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em;
    padding: 5px 12px; border-radius: var(--radius-pill);
    border: 1px solid; line-height: 1.4;
    max-width: 100%;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; flex-shrink: 0; }
/* Eyebrows de sección: sin punto y en MAYÚSCULAS (las píldoras de estado
   badge--sm conservan su punto indicador). */
.badge:not(.badge--sm) { text-transform: uppercase; letter-spacing: 0.07em; font-weight: 700; }
.badge:not(.badge--sm) .dot { display: none; }
.badge--info    { background: var(--info-bg);    color: var(--info-fg);    border-color: var(--info-border); }
.badge--success { background: var(--success-bg); color: var(--success-fg); border-color: var(--success-border); }
.badge--warning { background: var(--warning-bg); color: var(--warning-fg); border-color: var(--warning-border); }
.badge--error   { background: var(--error-bg);   color: var(--error-fg);   border-color: var(--error-border); }
.badge--accent  { background: var(--orange-glow); color: var(--text-accent); border-color: var(--border-accent); }
.badge--sm { font-size: 11px; padding: 3px 9px; }

/* ---------------- BOTONES (touch-first: mínimo 44px) ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 0 18px;
    font-family: var(--font-body); font-size: 14.5px; font-weight: 600; line-height: 1.2;
    border-radius: var(--radius-md); border: 1px solid transparent;
    cursor: pointer; user-select: none; text-align: center;
    transition: var(--transition);
}
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 50px; padding: 0 22px; font-size: 15px; }
.btn--sm { min-height: 38px; padding: 0 13px; font-size: 13px; border-radius: var(--radius-sm); }
.btn--full { display: flex; width: 100%; }

.btn--primary {
    background: var(--orange-grad); color: var(--text-on-accent);
    border-color: rgba(249,115,22,0.6);
    box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 6px 20px rgba(249,115,22,0.30);
}
.btn--primary:hover { filter: brightness(1.08); }
.btn--secondary {
    background: var(--glass-fill-2); color: var(--text-primary);
    border-color: var(--border-default); backdrop-filter: blur(8px);
}
.btn--secondary:hover { border-color: var(--border-strong); }
.btn--ghost { background: transparent; color: var(--text-secondary); }
.btn--ghost:hover { background: var(--hover-fill); }
.btn--outline { background: transparent; color: var(--text-accent); border-color: var(--border-accent); }
.btn--outline:hover { background: var(--orange-glow); }
.btn--white { background: #fff; color: var(--text-primary); border-color: rgba(255,255,255,.7); }
.btn--white:hover { filter: brightness(0.97); }
.btn--glass-dark {
    background: rgba(255, 255, 255, 0.07); color: #fff;
    border-color: rgba(255, 255, 255, 0.22); backdrop-filter: blur(8px);
}
.btn--glass-dark:hover { border-color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.11); }

/* CTA destacado del hero: glow más fuerte + brillo que lo recorre */
.btn--brillo {
    position: relative; overflow: hidden;
    box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 8px 28px rgba(249,115,22,0.45), 0 0 0 1px rgba(249,115,22,0.35);
}
.btn--brillo::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: 46%;
    left: -60%; transform: skewX(-20deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.34), transparent);
    animation: brillo-cta 3.2s var(--ease-out) infinite;
}
@keyframes brillo-cta {
    0%, 55% { left: -60%; }
    85%, 100% { left: 130%; }
}
@media (prefers-reduced-motion: reduce) { .btn--brillo::after { animation: none; } }

/* ---------------- HEADER / NAV (móvil primero) ---------------- */
.site-header {
    position: sticky; top: 0; z-index: 100; height: var(--header-h);
    background: rgba(251, 251, 250, 0.85); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-subtle);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 10px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 32px !important; width: auto !important; }

/* Menú móvil: panel deslizante bajo el header */
.main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg-base); padding: 12px var(--gutter) 20px;
    border-bottom: 1px solid var(--border-subtle); box-shadow: var(--shadow-lg);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    transform: translateY(-130%); transition: transform 260ms var(--ease-out);
    z-index: 90;
}
.main-nav.open { transform: translateY(0); }
.nav-link {
    font-size: 15px; font-weight: 500; color: var(--text-secondary);
    padding: 13px 6px; border-radius: var(--radius-md);
    display: flex; align-items: center;
    transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); }
.nav-link.active { font-weight: 700; }
/* CTA fijo al pie del panel: "Solicitar demo" siempre visible, haya o no scroll */
.main-nav .nav-cta {
    position: sticky; bottom: 0; margin-top: 10px;
    box-shadow: 0 -12px 14px -8px rgba(10, 12, 13, 0.18);
}
.nav-actions { display: flex; align-items: center; }

.nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; align-items: center;
    background: none; border: 0; cursor: pointer;
}
.nav-toggle span { width: 22px; height: 1.75px; background: var(--text-primary); border-radius: 2px; transition: var(--transition); }
.nav-toggle.open span:nth-child(1) { transform: translateY(6.75px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.75px) rotate(-45deg); }

/* Dropdown en móvil: acordeón COLAPSADO (pedido del cliente: que el botón
   de demo entre sin scroll). Tocás el ítem y se despliega; la página general
   del rubro queda accesible por el link "Ver …" dentro del submenú. */
.nav-item { display: block; }
.nav-item > .nav-link { justify-content: space-between; gap: 5px; }
.nav-item > .nav-link svg { display: inline-block; width: 13px; height: 13px; transition: transform var(--dur-base) var(--ease-out); }
.nav-item.abierto > .nav-link svg { transform: rotate(180deg); }
.nav-dropdown {
    display: none;
    padding: 0 0 6px 12px; margin-left: 6px;
    border-left: 1px solid var(--border-subtle);
}
.nav-item.abierto .nav-dropdown { display: block; }
.nav-dropdown a {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 6px; border-radius: var(--radius-md);
    font-size: 14px; font-weight: 500; color: var(--text-secondary);
    transition: var(--transition);
}
.nav-dropdown a:hover { background: var(--hover-fill); color: var(--text-primary); }
.nav-dropdown a i[data-lucide], .nav-dropdown a svg { width: 15px; height: 15px; color: var(--text-muted); flex-shrink: 0; }
.nav-dropdown .dd-sep { height: 1px; background: var(--border-subtle); margin: 6px 4px; }
.nav-dropdown .dd-todas { color: var(--text-accent); font-weight: 600; }

/* ---------------- HERO CON FOTO ---------------- */
.hero-photo {
    position: relative; overflow: hidden;
    padding: 56px 0 64px;
    background: #0e1113;
}
.hero-photo .hp-bg {
    position: absolute; inset: -4%;
    background-size: cover; background-position: center 30%;
    filter: saturate(0.92) brightness(1.12);
    animation: kenburns 26s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
    will-change: transform;
}
@keyframes kenburns {
    from { transform: scale(1) translate(0, 0); }
    to   { transform: scale(1.1) translate(-1.2%, 1.4%); }
}
.hero-photo .hp-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,12,13,0.72) 0%, rgba(10,12,13,0.5) 52%, rgba(10,12,13,0.42) 100%);
}
.hero-photo .hero-grid { opacity: .6; }
.hero-photo .hp-inner { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; text-align: left; }
.hero-photo h1 { font-size: clamp(30px, 8vw, 60px); line-height: 1.06; letter-spacing: var(--ls-display); color: #ffffff; text-shadow: 0 2px 22px rgba(6, 8, 9, 0.55); }
.hero-photo h1 .accent-orange { color: var(--orange-400); }
.hero-photo .lead { font-size: 15.5px; line-height: 1.6; color: rgba(237, 240, 238, 0.9); max-width: 560px; text-shadow: 0 1px 16px rgba(6, 8, 9, 0.5); }
.hero-photo .hero-note { color: rgba(237, 240, 238, 0.55); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.02em; line-height: 1.7; }
.hero-photo .badge--info { background: rgba(0, 195, 208, 0.14); color: #6adee8; border-color: rgba(0, 195, 208, 0.35); }

.hero-actions { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.hero-actions .btn { width: 100%; }

/* Variantes de hero para subpáginas */
.hero-photo--page { padding: 48px 0 56px; }
.hero-photo--page h1 { font-size: clamp(27px, 7vw, 50px); }
.hero-photo--center .hp-inner { align-items: center; text-align: center; margin: 0 auto; max-width: 760px; }

/* ---------------- GRID / WASHES DECORATIVOS ---------------- */
.hero-grid {
    position: absolute; inset: 0; pointer-events: none;
    background-image: var(--grid-lines); background-size: 40px 40px;
    -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 25%, transparent 72%);
    mask-image: radial-gradient(120% 80% at 50% 0%, #000 25%, transparent 72%);
}
.hero-wash-orange { position: absolute; top: -120px; left: 12%; width: 380px; height: 320px; background: radial-gradient(circle, rgba(249,115,22,0.16) 0%, transparent 65%); pointer-events: none; }
.hero-wash-teal   { position: absolute; top: -100px; right: 8%; width: 360px; height: 300px; background: radial-gradient(circle, rgba(0,195,208,0.16) 0%, transparent 65%); pointer-events: none; }

.section-fx { position: relative; overflow: hidden; }
.fx-grid {
    position: absolute; inset: 0; pointer-events: none;
    background-image: var(--grid-lines); background-size: 40px 40px;
    -webkit-mask-image: radial-gradient(110% 90% at 50% 50%, #000 30%, transparent 78%);
    mask-image: radial-gradient(110% 90% at 50% 50%, #000 30%, transparent 78%);
}
.fx-wash { position: absolute; top: -20%; width: 380px; height: 340px; pointer-events: none; }
.fx-wash--orange { background: radial-gradient(circle, rgba(249,115,22,0.12) 0%, transparent 65%); }
.fx-wash--teal   { background: radial-gradient(circle, rgba(0,195,208,0.12) 0%, transparent 65%); }

/* ---------------- PAGE HERO (claro, subpáginas sin foto) ---------------- */
.page-hero { position: relative; padding: 44px 0 36px; text-align: center; overflow: hidden; }
.page-hero-inner { position: relative; max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.page-hero h1 { font-size: clamp(26px, 6.6vw, 48px); letter-spacing: var(--ls-display); }
.page-hero p { font-size: 15px; color: var(--text-secondary); max-width: 620px; }
.page-hero--404 { padding: 56px 0 48px; }

/* ---------------- FRANJA DE CITA (industria) ---------------- */
.quote-strip { background: var(--bg-subtle); border-bottom: 1px solid var(--border-subtle); padding: 22px 0; }
.quote-strip-inner { display: flex; flex-direction: column; gap: 10px; max-width: 880px; }
.quote-strip blockquote { font-size: 14.5px; line-height: 1.6; color: var(--text-secondary); border: 0; }
.quote-strip .quote-author strong { display: block; font-size: 13.5px; }
.quote-strip .quote-author span { font-size: 11.5px; color: var(--text-muted); font-family: var(--font-mono); letter-spacing: 0.02em; }
.testi-quote-icon { color: var(--orange-400); }
.testi-quote-icon svg { width: 20px; height: 20px; }

/* ---------------- BANDA DE STATS (oscura) ---------------- */
.stats-band {
    position: relative; overflow: hidden;
    padding: 30px 0;
    background:
        radial-gradient(70% 130% at 15% 0%, rgba(249, 115, 22, 0.10) 0%, transparent 55%),
        radial-gradient(70% 130% at 85% 100%, rgba(0, 195, 208, 0.10) 0%, transparent 55%),
        #0e1113;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid var(--border-subtle);
}
.stats-band .fx-grid {
    background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
}
/* 2×2 compacto en el teléfono */
.stats-band-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 10px; }
.statb { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 0 6px; }
.statb-top { display: flex; align-items: center; gap: 8px; }
.statb-top i[data-lucide], .statb-top svg { width: 16px; height: 16px; opacity: .9; }
.statb-n { font-family: var(--font-mono); font-size: 30px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.statb-l { font-size: 12px; color: rgba(237, 240, 238, 0.55); max-width: 170px; line-height: 1.4; }
.statb--orange .statb-top { color: var(--orange-400); }
.statb--orange .statb-n   { text-shadow: 0 0 26px rgba(249, 115, 22, 0.45); }
.statb--teal   .statb-top { color: var(--teal-500); }
.statb--teal   .statb-n   { text-shadow: 0 0 26px rgba(0, 195, 208, 0.4); }
.statb--green  .statb-top { color: var(--green-400); }
.statb--green  .statb-n   { text-shadow: 0 0 26px rgba(52, 199, 89, 0.4); }
.statb--cyan   .statb-top { color: var(--cyan-500); }
.statb--cyan   .statb-n   { text-shadow: 0 0 26px rgba(0, 192, 232, 0.4); }

/* ---------------- CARD BASE ---------------- */
.card {
    position: relative; background: var(--bg-elevated);
    border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
    box-shadow: var(--edge-light); overflow: hidden;
    transition: var(--transition);
}
.card--pad { padding: 22px; }
.card--wash::before { content: ''; position: absolute; inset: 0 0 55% 0; background: var(--wash-panel); pointer-events: none; }
.card--glow { box-shadow: var(--shadow-md), var(--edge-light); }
.card--hover:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow-lg), var(--edge-light); }

/* Tile de icono con acento */
.tile {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: var(--radius-md); flex-shrink: 0;
}
.tile i[data-lucide], .tile svg { width: 20px; height: 20px; }
.tile--orange { background: rgba(249,115,22,0.12); border: 1px solid rgba(249,115,22,0.30); color: var(--orange-500); }
.tile--teal   { background: rgba(0,195,208,0.14);  border: 1px solid rgba(0,195,208,0.32);  color: var(--teal-ink); }
.tile--mint   { background: rgba(0,200,179,0.14);  border: 1px solid rgba(0,200,179,0.32);  color: var(--mint-ink); }
.tile--green  { background: rgba(52,199,89,0.14);  border: 1px solid rgba(52,199,89,0.30);  color: var(--green-ink); }
.tile--cyan   { background: rgba(0,192,232,0.14);  border: 1px solid rgba(0,192,232,0.32);  color: var(--cyan-ink); }

/* ---------------- MODULE CARD ---------------- */
.module-card {
    position: relative; display: flex; flex-direction: column; gap: 12px;
    padding: 20px; background: var(--bg-elevated);
    border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
    box-shadow: var(--edge-light); overflow: hidden;
    transition: var(--transition);
}
.module-card:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow-lg), var(--edge-light); }
.module-card .corner-wash { position: absolute; top: -40px; right: -40px; width: 140px; height: 140px; pointer-events: none; }
.module-card h3 { font-size: 16.5px; }
.module-card p { font-size: 13.5px; line-height: 1.55; color: var(--text-secondary); }
.cw--orange { background: radial-gradient(circle, rgba(249,115,22,0.18) 0%, transparent 70%); }
.cw--teal   { background: radial-gradient(circle, rgba(0,195,208,0.16) 0%, transparent 70%); }
.cw--mint   { background: radial-gradient(circle, rgba(0,200,179,0.16) 0%, transparent 70%); }
.cw--green  { background: radial-gradient(circle, rgba(52,199,89,0.16) 0%, transparent 70%); }
.cw--cyan   { background: radial-gradient(circle, rgba(0,192,232,0.16) 0%, transparent 70%); }

/* ---------------- PHOTO CARDS (problemas / industrias) ---------------- */
.photo-card { display: flex; flex-direction: column; padding: 0; }
.photo-card .pc-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.photo-card .pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease-out); }
.photo-card:hover .pc-media img { transform: scale(1.04); }
.photo-card .pc-media::after {
    content: ''; position: absolute; inset: 55% 0 0 0;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 14, 12, 0.55) 100%);
}
.photo-card .pc-media--square { aspect-ratio: 1 / 1; }
.photo-card .pc-media--square::after { display: none; }
.photo-card .pc-tile { position: absolute; bottom: 12px; left: 14px; z-index: 2; width: 38px; height: 38px; backdrop-filter: blur(6px); }
.photo-card .pc-body { display: flex; flex-direction: column; gap: 7px; padding: 18px 18px 20px; }
.photo-card .pc-body h3 { font-size: 16.5px; }
.photo-card .pc-body p { font-size: 13.5px; line-height: 1.55; color: var(--text-secondary); }
.photo-card--estatica { cursor: default; }
.photo-card--estatica:hover { transform: none; box-shadow: var(--edge-light); border-color: var(--border-subtle); }
.photo-card--estatica:hover .pc-media img { transform: none; }
.pc-proximamente { font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; color: var(--text-faint); margin-top: 4px; display: inline-flex; align-items: center; gap: 5px; }
.pc-proximamente svg { width: 13px; height: 13px; }

/* ---------------- DEMO DE MÓDULOS (pestañas del home) ----------------
   Pestañas tipo píldora: al hacer clic se muestra la pantalla simulada
   del módulo + su texto. Mobile: nav con scroll horizontal, panel apilado. */
.demo-nav {
    display: flex; gap: 8px;
    overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    padding: 4px 2px 10px;
}
.demo-nav::-webkit-scrollbar { display: none; }
.demo-tab {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
    min-height: 44px; padding: 10px 18px; white-space: nowrap;
    border-radius: var(--radius-pill); border: 1px solid var(--border-strong);
    background: var(--bg-elevated); color: var(--text-secondary);
    font-family: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
    transition: background 180ms ease-out, color 180ms ease-out, border-color 180ms ease-out, box-shadow 180ms ease-out;
}
.demo-tab svg { width: 16px; height: 16px; }
.demo-tab:hover { border-color: var(--border-accent); color: var(--text-accent); }
.demo-tab.activo {
    background: var(--orange-500); border-color: var(--orange-500); color: #fff;
    box-shadow: 0 6px 18px rgba(249, 115, 22, 0.28);
}
.demo-panel { display: none; }
.demo-panel.activo { display: grid; gap: 22px; margin-top: 14px; animation: demoFade 380ms ease-out; }
/* min-width:0 evita que la tabla interna infle la columna del grid en mobile */
.demo-screen, .demo-info { min-width: 0; }
@keyframes demoFade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}
.demo-eyebrow {
    display: block; margin-bottom: 10px;
    font-family: var(--font-mono); font-size: 11px; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-accent);
}
.demo-info h3 { font-size: 21px; letter-spacing: -0.01em; margin-bottom: 10px; }
.demo-info p { font-size: 14.5px; color: var(--text-secondary); margin-bottom: 16px; }
.demo-info .blog-link { margin-top: 16px; }

/* ---------------- PANELES DE SCREENSHOT ---------------- */

.shot-panel {
    position: relative; border-radius: var(--radius-lg);
    border: 1px solid var(--border-default);
    background:
        radial-gradient(90% 70% at 50% 0%, rgba(0, 195, 208, 0.05) 0%, transparent 60%),
        var(--bg-elevated);
    box-shadow: var(--shadow-md); overflow: hidden;
    padding: 12px;
}
.shot-panel .hero-grid { background-size: 28px 28px; }
.shot-panel img { position: relative; display: block; width: 100%; object-fit: contain; }

/* ---------------- MARQUEES (rubros / logos) ---------------- */
.marquee { position: relative; overflow: hidden; }
.marquee::before, .marquee::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: 48px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg-base), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--bg-base), transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee-scroll 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.rubro-card {
    position: relative; width: 190px; aspect-ratio: 1 / 1; flex-shrink: 0;
    border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--border-subtle); box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.rubro-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease-out); }
.rubro-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.rubro-card:hover img { transform: scale(1.05); }

.logos-track { display: flex; gap: 12px; width: max-content; animation: marquee-scroll 38s linear infinite; }
.logo-chip {
    display: flex; align-items: center; justify-content: center;
    width: 140px; height: 68px; flex-shrink: 0;
    background: var(--bg-elevated); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg); box-shadow: var(--edge-light);
    transition: var(--transition);
}
.logo-chip img { max-width: 76%; max-height: 62%; object-fit: contain; filter: grayscale(1); opacity: .7; transition: var(--transition); }
.logo-chip:hover { border-color: var(--border-strong); }
.logo-chip:hover img { filter: none; opacity: 1; }

/* ---------------- TESTIMONIOS (scroll-snap nativo, swipe con el pulgar) ---------------- */
.testi-carousel { position: relative; }
.testi-track {
    display: flex; gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px var(--gutter) 10px;
    margin: 0 calc(var(--gutter) * -1);
    scroll-padding-left: var(--gutter);
}
.testi-track::-webkit-scrollbar { display: none; }
.testi-slide { flex: 0 0 min(84vw, 340px); scroll-snap-align: start; display: flex; }
.testi-slide .testi-card { width: 100%; }
.testi-card { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.testi-card blockquote {
    font-size: 14px; line-height: 1.6; color: var(--text-secondary); border: 0;
    display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden;
}
.testi-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testi-author .avatar {
    width: 40px; height: 40px; border-radius: var(--radius-md);
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 700; font-size: 15px; flex-shrink: 0;
}
.testi-author strong { display: block; font-size: 13.5px; }
.testi-author span { font-size: 11.5px; color: var(--text-muted); font-family: var(--font-mono); letter-spacing: 0.02em; }
.testi-empresa {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11.5px; color: var(--text-muted); font-family: var(--font-mono); letter-spacing: 0.02em;
    transition: var(--transition);
}
.testi-empresa svg { width: 11px; height: 11px; opacity: .7; }
.testi-empresa:hover { color: var(--text-accent); }
.testi-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 14px; }
.testi-arrow {
    width: 44px; height: 44px; border-radius: var(--radius-md);
    background: var(--bg-elevated); border: 1px solid var(--border-default);
    color: var(--text-secondary); cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.testi-arrow:hover { border-color: var(--border-accent); color: var(--text-accent); }
.testi-arrow svg, .testi-arrow i[data-lucide] { width: 17px; height: 17px; }
.testi-dots { display: flex; gap: 7px; }
.testi-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong); border: 0; padding: 0; cursor: pointer; transition: var(--transition); }
.testi-dot.active { background: var(--orange-500); transform: scale(1.25); }

/* ---------------- EQUIPO (carrusel scroll-snap) ---------------- */
.equipo-carrusel { position: relative; max-width: var(--container); margin: 0 auto; }
.eq-viewport {
    display: flex; gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 6px var(--gutter) 14px;
    scroll-padding-left: var(--gutter);
}
.eq-viewport::-webkit-scrollbar { display: none; }
.eq-card {
    flex: 0 0 168px; scroll-snap-align: start;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    text-align: center;
}
.eq-foto {
    width: 148px; height: 148px; border-radius: 50%;
    overflow: hidden; display: flex; align-items: flex-end; justify-content: center;
    border-width: 2px;
}
.eq-foto img { width: 100%; height: 100%; object-fit: cover; }
.eq-card figcaption strong { display: block; font-family: var(--font-display); font-size: 14.5px; color: var(--text-primary); }
.eq-card figcaption span { display: block; font-size: 12px; color: var(--text-muted); line-height: 1.45; margin-top: 3px; max-width: 180px; }
.eq-arrow { display: none; position: absolute; top: 66px; z-index: 5; }
.eq-arrow--prev { left: 8px; }
.eq-arrow--next { right: 8px; }

/* ---------------- FUNDADORES ---------------- */
.fundadores-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.fundador-card {
    display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: start;
    padding: 20px; border-radius: var(--radius-xl);
    background: var(--bg-elevated); border: 1px solid var(--border-subtle);
    box-shadow: var(--edge-light);
}
.fundador-foto {
    width: 84px; height: 84px; border-radius: var(--radius-lg); overflow: hidden;
    padding: 3px; /* el tile-- pinta el aro de acento */
}
.fundador-foto img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--radius-lg) - 3px); display: block; }
.fundador-card figcaption strong { display: block; font-family: var(--font-display); font-size: 17px; color: var(--text-primary); }
.fundador-rol { display: block; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-accent); margin-top: 3px; }
.fundador-bio { font-size: 13.5px; line-height: 1.55; color: var(--text-secondary); margin-top: 10px; }
.fundador-quote {
    margin-top: 12px; padding-left: 12px; border-left: 2px solid var(--border-accent);
    font-size: 13.5px; font-style: italic; color: var(--text-primary);
}

/* ---------------- PROCESO ---------------- */
.process-flow { position: relative; }
.process-line { display: none; }
.process-grid { display: grid; grid-template-columns: 1fr; gap: 12px; position: relative; }
.process-col { display: flex; align-items: stretch; gap: 12px; }
.process-node {
    width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; align-self: flex-start;
    background: var(--bg-base); border: 2px solid var(--orange-500);
    color: var(--text-accent); font-family: var(--font-mono); font-size: 12.5px; font-weight: 600;
    display: flex; align-items: center; justify-content: center;
    position: relative; z-index: 1; margin-top: 6px;
}
.process-card {
    flex: 1; text-align: left;
    padding: 16px 18px; display: flex; flex-direction: column; gap: 5px; align-items: flex-start;
}
.process-card .step-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--text-muted); }
.process-card h3 { font-size: 16px; }
.process-card p { font-size: 13px; color: var(--text-secondary); }
.process-note {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    margin-top: 22px; font-size: 14px; color: var(--text-secondary); text-align: center;
}
.process-note strong { color: var(--text-primary); }
.process-note svg { width: 16px; height: 16px; color: var(--green-ink); flex-shrink: 0; }

/* ---------------- CTA BAND ---------------- */
.cta { position: relative; overflow: hidden; text-align: center; }
.cta-washes {
    position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(50% 100% at 35% 100%, rgba(249,115,22,0.14) 0%, transparent 68%),
                radial-gradient(50% 100% at 65% 100%, rgba(0,195,208,0.14) 0%, transparent 68%);
}
.cta-inner { position: relative; max-width: 680px; margin: 0 auto; padding: 56px 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.cta h2 { font-size: clamp(24px, 6vw, 46px); letter-spacing: var(--ls-display); }
.cta p { font-size: 15px; color: var(--text-secondary); }
.cta-actions { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 380px; }
.cta-actions .btn { width: 100%; }

/* ---------------- BLOG ---------------- */
.blog-card { display: flex; flex-direction: column; overflow: hidden; }
.blog-thumb { position: relative; display: block; border-bottom: 1px solid var(--border-subtle); background: var(--bg-subtle); overflow: hidden; }
/* Placeholder de marca cuando la nota no tiene foto (imagen "icon:") */
.blog-thumb-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.blog-thumb-ph::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.5) 1px, transparent 0); background-size: 18px 18px; opacity: .5; }
.blog-thumb-ph svg { width: 54px; height: 54px; color: #fff; opacity: .95; position: relative; z-index: 1; filter: drop-shadow(0 2px 8px rgba(6,8,9,.28)); }
.blog-thumb-ph--orange { background: linear-gradient(135deg, var(--orange-400) 0%, var(--orange-600) 100%); }
.blog-thumb-ph--teal   { background: linear-gradient(135deg, #2bb6bf 0%, #0f7d86 100%); }
.blog-thumb-ph--green  { background: linear-gradient(135deg, #35b98a 0%, #157a56 100%); }
.blog-thumb-ph--cyan   { background: linear-gradient(135deg, #22b6cc 0%, #0d7d92 100%); }
.blog-thumb-ph--mint   { background: linear-gradient(135deg, #4bc793 0%, #1c8f63 100%); }
.blog-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 20px; flex-grow: 1; }
.blog-body .cat { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: var(--ls-caps); text-transform: uppercase; }
.blog-body h3 { font-size: 16px; line-height: 1.3; }
.blog-body h3 a { color: inherit; transition: var(--transition); }
.blog-body h3 a:hover { color: var(--text-accent); }
.blog-body p { font-size: 13px; color: var(--text-secondary); flex-grow: 1; }
.blog-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--text-accent); min-height: 32px; }
.blog-link svg, .blog-link i[data-lucide] { width: 14px; height: 14px; }

/* ---------------- SPLITS (producto / nosotros) ---------------- */
.split { display: flex; flex-direction: column; gap: 22px; }
.split + .split { margin-top: 44px; }
.split-text { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.split-text h2 { font-size: clamp(21px, 5.4vw, 32px); }
.split-text > p { color: var(--text-secondary); font-size: 14.5px; }
.split-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.split-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-secondary); }
.split-list li svg, .split-list li i[data-lucide] { width: 16px; height: 16px; color: var(--green-ink); margin-top: 2px; flex-shrink: 0; }
.split-media { position: relative; }

.mini-panel { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.mini-panel .ph-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--bg-base); font-size: 12.5px; color: var(--text-secondary); flex-wrap: wrap; }
.mini-panel .ph-row .mono { font-family: var(--font-mono); font-size: 12px; color: var(--text-primary); }

/* ---------------- PLANES ---------------- */
.plan-grid { display: flex; flex-direction: column; gap: 16px; }
.plan-card {
    position: relative; display: flex; flex-direction: column; gap: 16px; padding: 22px;
    border-radius: var(--radius-xl); background: var(--bg-elevated);
    border: 1px solid var(--border-subtle); box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.plan-card:hover { box-shadow: var(--shadow-lg); }
.plan-card.featured { border-color: var(--border-accent); box-shadow: 0 0 0 1px rgba(249,115,22,0.20), var(--shadow-lg); order: -1; }
.plan-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); }
.plan-name { font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.plan-desc { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; }
.plan-price .amount { font-family: var(--font-mono); font-size: 30px; font-weight: 600; letter-spacing: -0.02em; }
.plan-price .period { font-size: 14px; color: var(--text-muted); }
.plan-incluye { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--text-muted); margin-top: 2px; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 9px; flex-grow: 1; }
.plan-features li { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--text-secondary); }
.plan-features li svg, .plan-features li i[data-lucide] { width: 15px; height: 15px; color: var(--green-ink); margin-top: 2px; flex-shrink: 0; }
.plan-features li.off { color: var(--text-faint); }
.plan-features li.off svg, .plan-features li.off i[data-lucide] { color: var(--text-faint); }

.plan-custom {
    position: relative; margin-top: 20px; padding: 24px 22px;
    border-radius: var(--radius-xl); overflow: hidden;
    background: linear-gradient(100deg, var(--teal-ink) 0%, var(--mint-ink) 100%);
    box-shadow: var(--shadow-lg);
    display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
}
.plan-custom h3 { color: #fff; font-size: 18px; margin-bottom: 6px; }
.plan-custom p { color: rgba(255,255,255,.88); font-size: 13.5px; max-width: 640px; }
.plan-custom .btn--white { width: 100%; }

/* ---------------- FAQ ---------------- */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--bg-elevated); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 2px 16px; transition: var(--transition); }
.faq-item:hover { border-color: var(--border-default); }
.faq-item summary {
    cursor: pointer; padding: 14px 0; min-height: 44px;
    font-family: var(--font-display); font-weight: 600; font-size: 14.5px; line-height: 1.35;
    list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-family: var(--font-mono); font-size: 18px; color: var(--text-accent); flex-shrink: 0; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { color: var(--text-secondary); padding: 0 0 16px; font-size: 14px; }

/* ------- INDUSTRIA: diferenciador + cruce hacia el rubro hermano ------- */
.dif-block { max-width: 780px; margin: 0 auto; }
.dif-block h2 { font-size: clamp(21px, 4.6vw, 32px); margin-bottom: 18px; }
.dif-block p { color: var(--text-secondary); font-size: 15px; line-height: 1.72; }
.dif-block p + p { margin-top: 14px; }
.rubro-cruce {
    max-width: 780px; margin: 30px auto 0; padding: 15px 18px;
    background: var(--bg-subtle); border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--text-accent); border-radius: var(--radius-lg);
}
.rubro-cruce p { font-size: 14px; color: var(--text-secondary); margin-bottom: 4px; }
@media (min-width: 640px) {
    .rubro-cruce { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
    .rubro-cruce p { margin-bottom: 0; }
    .rubro-cruce .blog-link { flex-shrink: 0; }
}

/* ---------------- CONTACTO ---------------- */
.contact-wrap { display: flex; flex-direction: column; gap: 28px; }
.contact-info h2 { font-size: 22px; margin-bottom: 10px; }
.contact-info > p { color: var(--text-secondary); margin-bottom: 20px; font-size: 14.5px; }
.contact-item { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.contact-item strong { display: block; font-size: 14px; }
.contact-item a, .contact-item span.val { color: var(--text-secondary); font-size: 13.5px; }
.contact-item a:hover { color: var(--text-accent); }
.contact-form { padding: 20px; border-radius: var(--radius-xl); }

/* Formularios: inputs de 16px (evita el zoom automático de iOS) */
.form-row { display: flex; flex-direction: column; gap: 0; }
.form-group { margin-bottom: 11px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 10px 12px; min-height: 44px;
    border: 1px solid var(--border-default); border-radius: var(--radius-md);
    font-family: var(--font-body); font-size: 16px; color: var(--text-primary);
    background: var(--bg-elevated); transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--border-accent); box-shadow: var(--glow-focus);
}
.form-group textarea { resize: vertical; min-height: 74px; }
.form-note { font-size: 12px; color: var(--text-muted); margin-top: 8px; text-align: center; }
/* Contacto: filas cortas en 2 columnas ya en móvil → el botón Enviar entra sin scroll */
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.alert { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-md); margin-bottom: 16px; font-size: 13.5px; border: 1px solid; }
/* el atributo hidden debe ganar aunque .alert defina display:flex
   (era el "recuadro rosa" vacío que aparecía en el modal) */
.alert[hidden], [hidden] { display: none !important; }
.alert svg, .alert i[data-lucide] { width: 16px; height: 16px; flex-shrink: 0; }
.alert-success { background: var(--success-bg); border-color: var(--success-border); color: var(--success-fg); }
.alert-error   { background: var(--error-bg);   border-color: var(--error-border);   color: var(--error-fg); }

/* ---------------- CONTACTO (form arriba, sin scroll) ---------------- */
.contacto-head { padding: 16px 0 10px; }
.contacto-head .container { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; position: relative; }
.contacto-head h1 { font-size: clamp(23px, 6vw, 38px); letter-spacing: var(--ls-display); }
.contacto-head p { font-size: 14px; color: var(--text-secondary); }
.contacto-cuerpo { padding-top: 4px; }

.testi-destacados { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.testi-mini {
    background: var(--bg-elevated); border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--orange-400);
    border-radius: var(--radius-lg); box-shadow: var(--edge-light);
    padding: 14px 16px;
}

/* Testimonios que se disuelven (crossfade): tarjetas apiladas, una visible por vez */
.testi-fade { position: relative; margin-top: 22px; }
.testi-fade-item {
    position: absolute; inset: 0;
    opacity: 0; visibility: hidden; transform: translateY(8px) scale(0.99);
    transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out), visibility 600ms;
    pointer-events: none;
}
/* el primero (activo al cargar) define la altura del contenedor */
.testi-fade-item.activo {
    position: relative; opacity: 1; visibility: visible; transform: none;
    pointer-events: auto;
}
.testi-mini blockquote { font-size: 13px; line-height: 1.55; color: var(--text-secondary); border: 0; }
.testi-mini figcaption { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.testi-mini .avatar {
    width: 30px; height: 30px; border-radius: var(--radius-sm);
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 700; font-size: 12.5px; flex-shrink: 0;
}
.testi-mini strong { display: block; font-size: 12.5px; }
.testi-mini figcaption span:not(.avatar) { font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); }

/* ---------------- MAPA (discreto: tarjeta contenida + pie con dirección) ---------------- */
.mapa-seccion { padding-top: 0; }
.mapa-card {
    max-width: 720px; margin: 0 auto;
    border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: var(--edge-light);
    background: var(--bg-elevated);
}
.mapa-frame { overflow: hidden; }
.mapa-frame iframe { display: block; width: 100%; height: 180px; border: 0; filter: grayscale(0.15); }
.mapa-pie {
    display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 12px;
    padding: 14px 16px; border-top: 1px solid var(--border-subtle);
}
.mapa-pie .tile { width: 38px; height: 38px; grid-row: span 2; }
.mapa-pie > div { min-width: 0; }
.mapa-pie strong { display: block; font-size: 13.5px; }
.mapa-pie span { font-size: 12.5px; color: var(--text-muted); }
.mapa-pie .btn { grid-column: 2; justify-self: start; }

/* ---------------- LEAD CTA (foto + formulario) ---------------- */
.lead-cta { position: relative; overflow: hidden; padding: 48px 0 56px; background: #0e1113; }
.lead-cta .hp-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: saturate(0.8); }
.lead-cta .hp-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,12,13,0.92) 0%, rgba(10,12,13,0.78) 100%); }
.lead-wrap { position: relative; display: flex; flex-direction: column; gap: 26px; }
.lead-text { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.lead-text h2 { color: #fff; font-size: clamp(23px, 6vw, 42px); letter-spacing: var(--ls-display); }
.lead-text h2 .accent-orange { color: var(--orange-400); }
.lead-text p { color: rgba(237, 240, 238, 0.8); font-size: 14.5px; max-width: 480px; }
.lead-points { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-top: 2px; }
.lead-points li { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; color: rgba(237, 240, 238, 0.85); }
.lead-points li svg { width: 16px; height: 16px; color: var(--green-400); margin-top: 1px; flex-shrink: 0; }
.lead-form-card {
    position: relative; background: var(--bg-elevated);
    border: 1px solid var(--border-default); border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl); padding: 20px;
}
.lead-form-card h3 { font-size: 18px; margin-bottom: 4px; }
.lead-form-card .lf-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }

/* ---------------- FOOTER (compacto en móvil) ---------------- */
.site-footer { border-top: 1px solid var(--border-subtle); background: var(--bg-subtle); padding: 36px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 18px; padding-bottom: 30px; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand img { height: 30px !important; width: auto !important; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; color: var(--text-muted); max-width: 340px; }
.footer-social { display: flex; gap: 8px; margin-top: 14px; }
.footer-social a {
    width: 44px; height: 44px; border-radius: var(--radius-md);
    background: var(--bg-elevated); border: 1px solid var(--border-subtle);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--text-muted); transition: var(--transition);
}
.footer-social a:hover { color: var(--text-accent); border-color: var(--border-accent); transform: translateY(-2px); }
.footer-social svg { width: 16px; height: 16px; }
.footer-col h4 { font-size: 11.5px; letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--text-muted); font-family: var(--font-mono); font-weight: 600; margin-bottom: 12px; }
.footer-col a { display: block; font-size: 13.5px; color: var(--text-secondary); padding: 5px 0; transition: var(--transition); }
.footer-col a:hover { color: var(--text-primary); }
.footer-contact { grid-column: 1 / -1; }
.footer-contact span.addr { display: block; font-size: 13px; color: var(--text-secondary); margin-top: 8px; }
.footer-bottom { border-top: 1px solid var(--border-subtle); padding: 16px 0; }
.footer-bottom .container { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.footer-bottom p { font-size: 11.5px; color: var(--text-faint); font-family: var(--font-mono); }
.footer-legal { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.footer-legal a { color: var(--text-muted); transition: var(--transition); padding: 4px 2px; }
.footer-legal a:hover { color: var(--text-primary); }

/* ---------------- WHATSAPP FLOTANTE ---------------- */
.whatsapp-float {
    position: fixed; bottom: 18px; right: 18px; width: 54px; height: 54px; z-index: 200;
    background: var(--bg-elevated); color: var(--green-ink);
    border: 1px solid var(--success-border); border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-lg); transition: var(--transition);
    padding: 0; cursor: pointer;
}
.whatsapp-float:hover { transform: translateY(-3px); border-color: var(--green-500); box-shadow: 0 0 0 1px rgba(52,199,89,0.25), var(--shadow-lg); }
.whatsapp-float svg { width: 25px; height: 25px; }

/* ---------------- MODAL DE CONTACTO ---------------- */
.modal-overlay {
    position: fixed; inset: 0; z-index: 300;
    background: rgba(10, 14, 12, .55); backdrop-filter: blur(3px);
    display: flex; align-items: flex-end; justify-content: center;
    padding: 0;
    opacity: 0; visibility: hidden; transition: opacity 220ms var(--ease-out), visibility 220ms;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
/* En móvil el modal sube desde abajo como bottom-sheet */
.modal-card {
    position: relative; width: 100%; max-width: 460px;
    max-height: 92dvh; overflow-y: auto;
    background: var(--bg-elevated); border: 1px solid var(--border-default);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    box-shadow: var(--shadow-xl);
    padding: 24px 20px calc(20px + env(safe-area-inset-bottom));
    transform: translateY(24px);
    transition: transform 240ms var(--ease-out);
}
.modal-overlay.open .modal-card { transform: none; }
.modal-close {
    position: absolute; top: 12px; right: 12px;
    width: 44px; height: 44px; border-radius: var(--radius-md);
    background: transparent; border: 0; cursor: pointer; color: var(--text-muted);
    display: grid; place-items: center; transition: var(--transition);
}
.modal-close:hover { background: var(--hover-fill); color: var(--text-primary); }
.modal-close svg { width: 18px; height: 18px; }
.modal-card .modal-icon { margin-bottom: 12px; }
.modal-card h2 { font-size: 21px; margin-bottom: 5px; }
.modal-card .modal-sub { font-size: 14px; color: var(--text-secondary); margin-bottom: 18px; }
.modal-card .form-note { margin-top: 12px; }
.modal-card .btn--wa {
    background: linear-gradient(180deg, #2ee06f 0%, #1eb85a 100%);
    color: #fff; border-color: rgba(30, 184, 90, .6);
    box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 6px 20px rgba(37, 211, 102, .3);
}
.modal-card .btn--wa:hover { filter: brightness(1.06); }
body.modal-abierto { overflow: hidden; }

/* ---------------- NOTA DEL BLOG ---------------- */
.nota-hero { position: relative; overflow: hidden; padding: 36px 0 24px; }
.nota-hero-inner { position: relative; max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.nota-hero h1 { font-size: clamp(23px, 6vw, 44px); line-height: 1.16; letter-spacing: var(--ls-display); }
.nota-hero .cat { font-family: var(--font-mono); font-size: 11px; letter-spacing: var(--ls-caps); text-transform: uppercase; }
.nota-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.nota-autor, .nota-fecha { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.nota-autor svg, .nota-fecha svg, .nota-autor i[data-lucide], .nota-fecha i[data-lucide] { width: 14px; height: 14px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); transition: var(--transition); padding: 4px 0; }
.breadcrumb a:hover { color: var(--text-accent); }

.nota-figura { max-width: 640px; margin: 0 auto 4px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-subtle); box-shadow: var(--shadow-md); }
.nota-figura img { width: 100%; height: auto; display: block; }

.nota-wrap { display: flex; flex-direction: column; gap: 26px; padding: 28px var(--gutter) 48px; max-width: 1100px; }
.nota-body { max-width: 720px; font-size: 16px; line-height: 1.75; color: var(--text-secondary); }
.nota-body > * + * { margin-top: 16px; }
.nota-body h2 { font-size: clamp(19px, 5vw, 27px); color: var(--text-primary); margin-top: 34px; line-height: 1.28; }
.nota-body h3 { font-size: 17px; color: var(--text-primary); margin-top: 26px; }
.nota-body strong { color: var(--text-primary); font-weight: 600; }
.nota-body a { color: var(--text-accent); text-decoration: underline; text-underline-offset: 2px; }
.nota-lead { font-size: 17px; line-height: 1.65; color: var(--text-primary); padding-left: 16px; border-left: 3px solid var(--orange-500); }
.nota-punch {
    position: relative; margin: 26px 0; padding: 20px;
    background: var(--bg-elevated); border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--teal-500);
    border-radius: var(--radius-lg); box-shadow: var(--edge-light);
    font-family: var(--font-display); font-size: 16.5px; line-height: 1.5;
    color: var(--text-primary); font-weight: 500;
}
.nota-lista { padding-left: 2px; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.nota-lista li { position: relative; padding-left: 24px; }
.nota-lista li::before { content: ''; position: absolute; left: 3px; top: 10px; width: 7px; height: 7px; border-radius: 2px; background: var(--orange-500); }
.nota-body blockquote { border-left: 3px solid var(--border-strong); padding-left: 18px; font-style: italic; color: var(--text-muted); }
.nota-cta .card { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.nota-cta h3 { font-size: 17px; }
.nota-cta p { font-size: 13.5px; color: var(--text-secondary); }

/* ---------------- ALIANZA (S-Factory + integración) ---------------- */
.alianza {
    display: flex; flex-direction: column; align-items: stretch; gap: 12px;
    max-width: 920px; margin: 0 auto;
}
.alianza-card {
    background: var(--bg-elevated); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg); box-shadow: var(--edge-light);
    padding: 22px; text-align: center; flex: 1;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.alianza-card .tile { margin-bottom: 2px; }
.alianza-card strong { font-family: var(--font-display); font-size: 17px; }
.alianza-card p { font-size: 13px; color: var(--text-secondary); }
.alianza-card--result { border-color: var(--border-accent); box-shadow: 0 0 0 1px rgba(249,115,22,0.18), var(--shadow-md); }
.alianza-mas, .alianza-igual {
    display: grid; place-items: center;
    color: var(--text-muted); align-self: center;
}
.alianza-mas svg, .alianza-igual svg { width: 22px; height: 22px; }

/* ---------------- VIDEO DE LA APP ----------------
   El video YA es un iPhone con la app en Safari (fondo blanco), así que no
   lo envolvemos en otro marco de teléfono: lo mostramos en una tarjeta
   blanca limpia y el celular grabado "flota" adentro sin duplicarse. */
.app-video {
    width: min(72vw, 280px); margin: 0 auto;
    background: #ffffff; border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl); overflow: hidden;
    box-shadow: var(--shadow-xl); padding: 10px;
}
.app-video video { width: 100%; display: block; border-radius: var(--radius-lg); background: #fff; }

/* ---------------- LEGALES ---------------- */
.legal-body { font-size: 15px; line-height: 1.75; color: var(--text-secondary); }
.legal-body > * + * { margin-top: 14px; }
.legal-body h2 { font-size: 18px; color: var(--text-primary); margin-top: 30px; }
.legal-body a { color: var(--text-accent); text-decoration: underline; text-underline-offset: 2px; }
.legal-body strong { color: var(--text-primary); }

/* ---------------- MOCKUP DE NAVEGADOR / MÉTRICAS (heredado) ---------------- */
.browser { border-radius: var(--radius-lg); border: 1px solid var(--border-default); background: var(--bg-elevated); box-shadow: var(--shadow-xl); overflow: hidden; text-align: left; }
.browser-bar { height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 12px; border-bottom: 1px solid var(--border-subtle); background: var(--bg-subtle); }
.browser-bar .bdot { width: 9px; height: 9px; border-radius: 50%; background: #d7dbd9; }
.browser-bar .url { margin-left: 10px; font-size: 11px; font-family: var(--font-mono); color: var(--text-muted); }
.kpi-row { padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.metric-card { position: relative; padding: 14px; border-radius: var(--radius-lg); background: var(--bg-elevated); border: 1px solid var(--border-subtle); box-shadow: var(--edge-light); overflow: hidden; }
.metric-card::before { content: ''; position: absolute; inset: 0 0 60% 0; background: var(--wash-panel); pointer-events: none; }
.metric-head { display: flex; align-items: center; gap: 7px; font-size: 10.5px; font-weight: 600; letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--text-muted); position: relative; }
.metric-head i[data-lucide], .metric-head svg { width: 14px; height: 14px; }
.metric-value { font-family: var(--font-mono); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin-top: 5px; position: relative; }
.metric-value .unit { font-size: 14px; color: var(--text-muted); margin-left: 2px; }
.metric-delta { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: 11.5px; margin-top: 3px; position: relative; }
.metric-delta.good { color: var(--success-fg); }
.metric-delta.bad  { color: var(--error-fg); }
.table-wrap { padding: 0 14px 14px; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.data-table th { text-align: left; font-size: 10.5px; font-weight: 600; letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--text-muted); padding: 8px 10px; border-bottom: 1px solid var(--border-default); white-space: nowrap; }
.data-table td { padding: 9px 10px; border-bottom: 1px solid var(--border-subtle); color: var(--text-secondary); white-space: nowrap; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table .mono { font-family: var(--font-mono); letter-spacing: -0.01em; }
.data-table .num { text-align: right; }

/* ---------------- ANIMACIÓN REVEAL ---------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-photo .hp-bg { animation: none; }
    .marquee-track, .logos-track { animation: none; }
    html { scroll-behavior: auto; }
}

/* ============================================================
   TABLET CHICA — min-width: 640px
   ============================================================ */
@media (min-width: 640px) {
    :root { --gutter: 32px; --sec-pad: 68px; }

    .hero-actions { flex-direction: row; width: auto; }
    .hero-actions .btn { width: auto; }
    .cta-actions { flex-direction: row; justify-content: center; width: auto; max-width: none; }
    .cta-actions .btn { width: auto; }
    .cta-inner { padding: 68px 0; }

    /* Carruseles: cards un poco más anchas, se ven ~2 por pantalla */
    .grid-3 > *, .grid-4 > * { flex-basis: min(46vw, 340px); }
    .testi-slide { flex-basis: min(46vw, 360px); }

    .stats-band { padding: 38px 0; }
    .stats-band-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
    .statb { border-left: 1px solid rgba(255, 255, 255, 0.07); }
    .statb:first-child { border-left: 0; }
    .statb-n { font-size: 36px; }

    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
    .form-group input, .form-group select, .form-group textarea { font-size: 15px; }

    .plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
    .plan-card.featured { order: 0; grid-column: 1 / -1; }
    .plan-custom { flex-direction: row; align-items: center; justify-content: space-between; padding: 28px 30px; }
    .plan-custom .btn--white { width: auto; flex-shrink: 0; }

    .process-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .process-col { flex-direction: column; align-items: center; gap: 14px; }
    .process-node { align-self: center; margin-top: 0; }
    .process-card { text-align: center; align-items: center; padding: 20px; }

    .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 30px 22px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-contact { grid-column: auto; }
    .footer-bottom .container { flex-direction: row; justify-content: space-between; text-align: left; }

    .contact-form { padding: 26px; }
    .lead-form-card { padding: 26px; }
    .mapa-frame iframe { height: 200px; }
    .eq-card { flex-basis: 190px; }
    .eq-foto { width: 168px; height: 168px; }
    .fundadores-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .fundador-card { padding: 24px; grid-template-columns: 96px 1fr; gap: 18px; }
    .fundador-foto { width: 96px; height: 96px; }

    /* El modal pasa de bottom-sheet a diálogo centrado */
    .modal-overlay { align-items: center; padding: 20px; }
    .modal-card { border-radius: var(--radius-xl); max-height: calc(100vh - 40px); padding: 28px; transform: translateY(14px) scale(.98); }

    .quote-strip-inner { flex-direction: row; align-items: flex-start; gap: 16px; }
    .quote-strip blockquote { flex: 1; }
    .quote-strip .quote-author { flex-shrink: 0; text-align: right; }

    /* Alianza horizontal */
    .alianza { flex-direction: row; align-items: stretch; }

    .nota-figura { border-radius: var(--radius-xl); }
    .split + .split { margin-top: 64px; }
}

/* ============================================================
   DESKTOP — min-width: 900px
   ============================================================ */
@media (min-width: 900px) {
    :root { --gutter: 40px; --sec-pad: 88px; --header-h: 66px; }

    .brand img { height: 38px !important; }

    /* Nav horizontal */
    .nav-toggle { display: none; }
    .main-nav {
        position: static; transform: none; flex-direction: row; align-items: center; gap: 4px;
        background: transparent; padding: 0; border: 0; box-shadow: none;
        max-height: none; overflow: visible;
    }
    .nav-link { font-size: 14px; padding: 9px 12px; }
    .nav-link.active { font-weight: 500; color: var(--text-primary); }
    .main-nav .nav-cta { position: static; margin: 0 0 0 8px; box-shadow: none; }

    /* Dropdown flotante en hover */
    .nav-item { position: relative; display: inline-flex; }
    .nav-item > .nav-link { justify-content: flex-start; }
    .nav-item > .nav-link svg { display: inline-block; }
    .nav-item:hover > .nav-link svg,
    .nav-item.abierto > .nav-link svg { transform: rotate(180deg); }
    /* Puente invisible: cubre el espacio entre el link y el panel para que el
       hover no se corte al bajar el mouse (antes se cerraba solo). */
    .nav-item::after {
        content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 14px;
    }
    .nav-dropdown {
        display: block;   /* pisa el display:none del acordeón móvil; acá manda opacity/visibility */
        position: absolute; top: calc(100% + 10px); left: 50%;
        transform: translateX(-50%) translateY(-6px);
        min-width: 280px; padding: 8px; margin: 0; border: 1px solid var(--border-subtle); border-left: 1px solid var(--border-subtle);
        background: var(--bg-elevated); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
        opacity: 0; visibility: hidden; pointer-events: none;
        transition: opacity 140ms var(--ease-out), transform 140ms var(--ease-out), visibility 140ms 180ms;
        z-index: 60;
    }
    .nav-item:hover .nav-dropdown,
    .nav-item:focus-within .nav-dropdown,
    .nav-item.abierto .nav-dropdown {
        opacity: 1; visibility: visible; pointer-events: auto;
        transform: translateX(-50%) translateY(0);
        transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out), visibility 0s;
    }
    .nav-dropdown a { padding: 9px 12px; font-size: 13.5px; white-space: nowrap; }
    .nav-dropdown a:hover i[data-lucide], .nav-dropdown a:hover svg { color: var(--text-accent); }

    /* Heros amplios */
    .hero-photo { padding: 106px 0 116px; }
    .hero-photo .hp-overlay { background: linear-gradient(92deg, rgba(10,12,13,0.82) 0%, rgba(10,12,13,0.5) 44%, rgba(10,12,13,0.12) 100%); }
    .hero-photo .hp-inner { max-width: 660px; gap: 24px; }
    .hero-photo .lead { font-size: 17.5px; }
    .hero-photo .hero-note { font-size: 12.5px; }
    .hero-photo--page { padding: 84px 0 90px; }
    .page-hero { padding: 72px 0 58px; }
    .page-hero p { font-size: 17px; }
    .page-hero--404 { padding: 96px 0 80px; }

    /* Las grillas vuelven a ser grillas */
    .grid-3, .grid-4 {
        display: grid; gap: 18px; overflow: visible;
        padding: 0; margin: 0; scroll-snap-type: none;
    }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
    .grid-3 > *, .grid-4 > * { flex: initial; }

    .section-head { margin-bottom: 44px; gap: 14px; }
    .section-head p { font-size: 16px; }
    .badge { font-size: 12px; }

    .module-card { padding: 24px; gap: 14px; }
    .module-card h3 { font-size: 18px; }
    .photo-card .pc-body { padding: 22px 24px 26px; gap: 8px; }
    .photo-card .pc-body h3 { font-size: 16.5px; }
    .card--pad { padding: 28px; }

    .stats-band { padding: 52px 0; }
    .statb-n { font-size: 46px; }
    .statb-top i[data-lucide], .statb-top svg { width: 20px; height: 20px; }
    .statb-l { font-size: 13px; max-width: 210px; }

    /* Testimonios: 3 por vista */
    .testi-track { padding: 4px 4px 10px; margin: 0; gap: 18px; }
    .testi-slide { flex-basis: calc((100% - 36px) / 3); }
    .testi-card { padding: 26px; gap: 14px; }
    .testi-card blockquote { font-size: 14.5px; -webkit-line-clamp: 7; }

    /* Equipo: cards más grandes + flechas visibles */
    .eq-viewport { gap: 22px; padding: 6px 56px 16px; }
    .eq-card { flex-basis: 208px; }
    .eq-foto { width: 184px; height: 184px; }
    .eq-card figcaption strong { font-size: 15.5px; }
    .eq-card figcaption span { font-size: 12.5px; }
    .eq-arrow { display: inline-flex; }
    .eq-arrow--prev { left: 16px; }
    .eq-arrow--next { right: 16px; }

    /* Proceso: 4 columnas con línea conectora */
    .process-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
    .process-line {
        display: block; position: absolute; top: 23px; left: 6%; right: 6%; height: 2px;
        background: linear-gradient(90deg, rgba(249,115,22,0.55) 0%, rgba(0,195,208,0.45) 100%);
        border-radius: 2px;
    }
    .process-node { width: 46px; height: 46px; font-size: 13px; box-shadow: 0 0 0 6px var(--bg-base); }
    .process-card { padding: 24px 20px; gap: 8px; }
    .process-card h3 { font-size: 18px; }
    .process-card p { font-size: 13.5px; }
    .process-note { margin-top: 34px; font-size: 14.5px; }

    .cta-inner { padding: 88px 0; gap: 22px; }
    .cta p { font-size: 17px; }

    /* Splits lado a lado */
    .split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
    .split.reverse .split-media { order: -1; }
    .split + .split { margin-top: 72px; }
    .split-text { gap: 14px; }
    .split-text > p { font-size: 15px; }
    .mini-panel { padding: 20px; gap: 12px; }
    .shot-panel { padding: 18px; border-radius: var(--radius-xl); }

    /* Demo de módulos: nav centrado + panel en 2 columnas */
    .demo-nav { justify-content: center; flex-wrap: wrap; overflow: visible; padding-bottom: 14px; }
    .demo-panel.activo { grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; margin-top: 20px; }
    .demo-info h3 { font-size: 25px; }
    .demo-info p { font-size: 15px; }

    /* Planes: 3 columnas */
    .plan-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .plan-card { padding: 28px; gap: 18px; }
    .plan-card.featured { grid-column: auto; }
    .plan-price .amount { font-size: 34px; }

    .faq-item { padding: 4px 22px; }
    .faq-item summary { padding: 16px 0; font-size: 15px; }

    /* Contacto en 2 columnas + mapa alto */
    .contact-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
    .contact-info h2 { font-size: 28px; }
    .contact-form { padding: 30px; }
    .mapa-frame iframe { height: 220px; }

    /* Lead CTA en 2 columnas */
    .lead-cta { padding: 92px 0; }
    .lead-cta .hp-overlay { background: linear-gradient(96deg, rgba(10,12,13,0.92) 0%, rgba(10,12,13,0.72) 55%, rgba(10,12,13,0.5) 100%); }
    .lead-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
    .lead-text p { font-size: 16.5px; }
    .lead-points li { font-size: 14px; }
    .lead-form-card { padding: 30px; }

    /* Footer 5 columnas */
    .site-footer { padding: 56px 0 0; }
    .footer-grid { grid-template-columns: 1.5fr 0.9fr 1.1fr 0.9fr 1.3fr; gap: 32px; padding-bottom: 44px; }
    .footer-brand, .footer-contact { grid-column: auto; }
    .footer-social a { width: 34px; height: 34px; }
    .footer-social svg { width: 15px; height: 15px; }

    /* Marquees más generosos */
    .rubro-card { width: 264px; }
    .logo-chip { width: 180px; height: 84px; }
    .marquee::before, .marquee::after { width: 90px; }
    .marquee-track { gap: 18px; }
    .logos-track { gap: 16px; }

    /* Blog / nota */
    .blog-body { padding: 22px 24px 24px; gap: 10px; }
    .blog-body h3 { font-size: 17px; }
    .nota-hero { padding: 60px 0 34px; }
    .nota-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; padding: 48px var(--gutter) 80px; }
    .nota-cta { position: sticky; top: 90px; }
    .nota-body { font-size: 16.5px; }
    .nota-lead { font-size: 18.5px; padding-left: 18px; }
    .nota-punch { padding: 26px 28px; font-size: 18px; margin: 34px 0; }

    .legal-body { font-size: 15.5px; }
    .legal-body h2 { font-size: 20px; }

    /* Mockup navegador (si se usa) */
    .kpi-row { grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 22px; }
    .table-wrap { padding: 0 22px 22px; }
    .browser { border-radius: var(--radius-2xl); }
    .browser-bar { height: 40px; }

    .quote-strip { padding: 30px 0; }
    .quote-strip blockquote { font-size: 15.5px; }

    /* En desktop el pie del mapa vuelve a una fila: ícono · dirección · botón */
    .mapa-pie { grid-template-columns: auto 1fr auto; padding: 16px 20px; }
    .mapa-pie .tile { grid-row: auto; }
    .mapa-pie .btn { grid-column: auto; }

    .whatsapp-float { bottom: 22px; right: 22px; width: 52px; height: 52px; }
}

/* ============================================================
   DESKTOP AMPLIO — min-width: 1140px
   ============================================================ */
@media (min-width: 1140px) {
    .hero-photo h1 { font-size: clamp(44px, 4.4vw, 60px); }
    .grid-3, .grid-4 { gap: 20px; }
    .eq-viewport { justify-content: center; }   /* 11 personas centradas si entran */
}
