/* ═══════════════════════════════════════════════════════════
   Carp Industries — Stylesheet v3.1
   Estética: editorial, premium y orgánica (sistema de diseño
   compartido con VOTACION / Premios ESG): papel cálido, tinta
   verde casi negra, bosque profundo y un único acento lima.
   Tipografía única: Geist (jerarquía por tamaño, peso y tracking,
   sin itálicas; <em> solo cambia de color). Única excepción:
   el numeral decorativo del hero en Instrument Serif itálica.
   Una sola curva protagonista: cubic-bezier(0.16, 1, 0.3, 1).
   ═══════════════════════════════════════════════════════════ */

/* ── Tokens ───────────────────────────────────────────────── */
:root {
    /* Superficies y texto */
    --paper: #F6F4EE;
    --paper-2: #EFECE4;
    --paper-3: #E8E4D9;
    --surface: #FFFFFF;
    --ink: #0E1A14;
    --ink-muted: #5B6B62;
    --line: #E4E1D8;
    --line-strong: #D6D2C6;

    /* Bosque */
    --forest-950: #06231A;
    --forest-900: #0B3D2E;
    --forest-800: #0E4A38;
    --forest-700: #145A43;

    /* Acentos */
    --emerald: #10B981;
    --lime: #D4F25A;
    --lime-hover: #C8EA45;
    --lime-soft: #EEF9C8;
    --orange: #F2994A;
    --orange-tint: #FDF0E6;
    --orange-ink: #9A4A0B;
    --destructive: #C8372D;

    /* Texto sobre oscuro */
    --on-dark: #F6F4EE;
    --on-dark-muted: #A3B8AC;

    /* Sombras difusas teñidas de bosque */
    --shadow-soft: 0 1px 2px rgb(6 35 26 / 0.04), 0 6px 20px -8px rgb(6 35 26 / 0.1);
    --shadow-lift: 0 2px 6px rgb(6 35 26 / 0.05), 0 28px 56px -22px rgb(6 35 26 / 0.28);
    --shadow-float: 0 40px 90px -30px rgb(6 35 26 / 0.45);
    --shadow-glow: 0 0 0 1px rgb(212 242 90 / 0.35), 0 12px 44px -10px rgb(212 242 90 / 0.55);
    --shadow-accent: 0 10px 30px -12px rgb(212 242 90 / 0.65);

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

    /* Radios */
    --radius-lg: 0.75rem;
    --radius-xl: 1.05rem;
    --radius-2xl: 1.35rem;
    --radius-3xl: 1.65rem;
    --radius-card: 1.75rem;

    /* Tipografía */
    --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-numeral: 'Instrument Serif', ui-serif, Georgia, 'Times New Roman', serif;

    /* Layout */
    --container: 88rem;
    --container-wide: 88rem;
    --gutter: 1.25rem;

    /* Grano (fractal noise SVG en gris) */
    --grain-url: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

    /* Malla de gradientes (secciones oscuras) */
    --mesh:
        radial-gradient(38% 42% at 18% 28%, rgb(16 185 129 / 0.55) 0%, rgb(16 185 129 / 0) 70%),
        radial-gradient(30% 36% at 78% 22%, rgb(212 242 90 / 0.32) 0%, rgb(212 242 90 / 0) 72%),
        radial-gradient(46% 52% at 72% 78%, rgb(20 90 67 / 0.95) 0%, rgb(20 90 67 / 0) 70%),
        radial-gradient(40% 46% at 20% 82%, rgb(13 148 136 / 0.4) 0%, rgb(13 148 136 / 0) 72%),
        radial-gradient(60% 60% at 50% 50%, rgb(11 61 46 / 0.9) 0%, rgb(11 61 46 / 0) 80%),
        linear-gradient(165deg, #0B3D2E 0%, #06231A 58%, #041A13 100%);
    --mesh-subtle:
        radial-gradient(40% 50% at 85% 10%, rgb(16 185 129 / 0.28) 0%, rgb(16 185 129 / 0) 70%),
        radial-gradient(35% 45% at 10% 90%, rgb(212 242 90 / 0.12) 0%, rgb(212 242 90 / 0) 70%),
        linear-gradient(180deg, #072A1F 0%, #06231A 100%);

    /* Flecha ↗ (máscara, toma currentColor) */
    --icon-arrow-up-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M7 7h10v10'/%3E%3C/svg%3E");
}

@media (min-width: 640px) { :root { --gutter: 2rem; } }
@media (min-width: 1024px) { :root { --gutter: 2.5rem; } }

/* ── Keyframes ────────────────────────────────────────────── */
@keyframes mesh-drift {
    0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
    50% { transform: translate3d(3%, -4%, 0) rotate(7deg) scale(1.08); }
    100% { transform: translate3d(-4%, 3%, 0) rotate(-5deg) scale(1.04); }
}
@keyframes mesh-drift-alt {
    0% { transform: translate3d(0, 0, 0) scale(1.05); }
    100% { transform: translate3d(-6%, -3%, 0) scale(1.15); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ping { 75%, 100% { transform: scale(2.2); opacity: 0; } }
@keyframes float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -10px, 0); } }
@keyframes load-bar { from { width: 0%; } to { width: 100%; } }
@keyframes pulse-glow { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
@keyframes marquee-scroll { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@keyframes scroll-anim {
    0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
    100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5.5rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    background: var(--paper);
    color: var(--ink);
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
em, i, cite { font-style: normal; }
strong { font-weight: 600; }

::selection { background: var(--lime); color: var(--forest-950); }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.3s var(--ease-std); }
button { font: inherit; }
button:not(:disabled) { cursor: pointer; }

a:focus-visible, button:focus-visible, [tabindex]:not([tabindex="-1"]):focus-visible {
    outline: 2px solid var(--forest-700);
    outline-offset: 3px;
}
[data-header-tone="dark"] a:focus-visible,
[data-header-tone="dark"] button:focus-visible,
.service-card--featured a:focus-visible,
.service-card--banner a:focus-visible { outline-color: var(--lime); }
#navbar.nav--dark .nav-container > .nav-logo:focus-visible,
#navbar.nav--dark .nav-toggle:not(.active):focus-visible { outline-color: var(--lime); }
@media (min-width: 1024px) {
    #navbar.nav--dark .nav-links a:focus-visible { outline-color: var(--lime); }
}
.scroll-top:focus-visible { outline: 2px solid var(--forest-950); outline-offset: -6px; }

.container,
.container-wide,
.container-narrow {
    width: 100%;
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.container { max-width: var(--container); }
.container-wide { max-width: var(--container-wide); }
.container-narrow { max-width: 48rem; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── Loader ───────────────────────────────────────────────── */
#loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--forest-950);
    overflow: hidden;
    isolation: isolate;
    transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}
#loader::before {
    content: "";
    position: absolute;
    inset: -25%;
    z-index: -1;
    background: var(--mesh);
    animation: mesh-drift 26s ease-in-out infinite alternate;
}
#loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
#loader.done::before,
#loader.done .loader-logo-img { animation-play-state: paused; }
.loader-inner { text-align: center; }
.loader-logo-img {
    filter: invert(1);
    width: 280px;
    max-width: 70vw;
    margin: 0 auto 2.5rem;
    animation: pulse-glow 1.5s ease-in-out infinite;
}
.loader-bar {
    width: 240px;
    max-width: 60vw;
    height: 2px;
    margin: 0 auto;
    border-radius: 2px;
    overflow: hidden;
    background: rgb(246 244 238 / 0.14);
}
.loader-progress {
    height: 100%;
    border-radius: 2px;
    background: var(--lime);
    box-shadow: 0 0 12px rgb(212 242 90 / 0.6);
    animation: load-bar 1.6s var(--ease-out) forwards;
}

/* ── Navigation (cápsula flotante tipo "Dynamic Island") ───── */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0;
    color: var(--ink);
    transition: padding 0.5s var(--ease-out);
}
#navbar.scrolled { padding: 0.75rem 0.75rem 0; }

.nav-container {
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: var(--container-wide);
    height: 4.5rem;
    margin: 0 auto;
    padding-inline: var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-radius: 0;
    transition: max-width 0.5s var(--ease-out), padding 0.5s var(--ease-out), border-radius 0.5s var(--ease-out), height 0.5s var(--ease-out);
}
/* El vidrio va en un pseudo-elemento: un backdrop-filter en el propio
   contenedor convertiría al menú móvil (position: fixed) en hijo del pill. */
.nav-container::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    border: 1px solid transparent;
    background-color: transparent;
    transition: background-color 0.5s var(--ease-out), border-color 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
#navbar.scrolled .nav-container {
    max-width: 72rem;
    height: 4rem;
    border-radius: 9999px;
    padding-inline: 0.75rem 0.5rem;
}
#navbar.scrolled .nav-container::before {
    background-color: rgb(246 244 238 / 0.76);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    backdrop-filter: blur(22px) saturate(160%);
    border-color: rgb(228 225 216 / 0.8);
    box-shadow: var(--shadow-lift);
}
#navbar.scrolled.nav--dark .nav-container::before {
    background-color: rgb(6 35 26 / 0.62);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    backdrop-filter: blur(24px) saturate(140%);
    border-color: rgb(255 255 255 / 0.1);
    box-shadow: 0 18px 50px -24px rgb(0 0 0 / 0.6);
}

.nav-logo { display: flex; align-items: center; position: relative; z-index: 2; border-radius: 9999px; }
.nav-logo-img {
    height: 36px;
    width: auto;
    filter: none;
    transition: filter 0.5s var(--ease-out), opacity 0.3s;
}
#navbar.scrolled .nav-logo-img { height: 32px; margin-left: 0.5rem; }
#navbar.nav--dark .nav-logo-img { filter: invert(1); }
.nav-logo-img:hover { opacity: 0.8; }

.nav-links { display: flex; align-items: center; gap: 0.25rem; }

.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    color: rgb(14 26 20 / 0.7);
    transition: color 0.15s var(--ease-std), background-color 0.15s var(--ease-std);
}
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link::before {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.2rem;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s var(--ease-out);
}
.nav-link.active::before { transform: scaleX(1); }
#navbar.nav--dark .nav-link { color: rgb(246 244 238 / 0.75); }
#navbar.nav--dark .nav-link:hover, #navbar.nav--dark .nav-link.active { color: var(--paper); }

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    height: 2.75rem;
    margin-left: 0.75rem;
    padding: 0 1.1rem 0 1.35rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--forest-900);
    color: var(--paper);
    transition: background-color 0.3s var(--ease-std), box-shadow 0.3s var(--ease-std), translate 0.3s var(--ease-out);
}
.nav-cta::after {
    content: "";
    width: 1.05rem;
    height: 1.05rem;
    background: currentColor;
    -webkit-mask: var(--icon-arrow-up-right) center / contain no-repeat;
    mask: var(--icon-arrow-up-right) center / contain no-repeat;
    transition: transform 0.4s var(--ease-out);
}
.nav-cta:hover { background: var(--forest-800); }
.nav-cta:hover::after { transform: translate(2px, -2px); }
.nav-cta:active { translate: 0 1px; }
#navbar.nav--dark .nav-cta { background: var(--lime); color: var(--forest-950); box-shadow: var(--shadow-accent); }
#navbar.nav--dark .nav-cta:hover { background: var(--lime-hover); }

.nav-toggle {
    display: none;
    position: relative;
    z-index: 3;
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 9999px;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    transition: background-color 0.3s var(--ease-std), border-color 0.3s var(--ease-std), color 0.3s var(--ease-std);
}
.nav-toggle span {
    display: block;
    width: 16px;
    height: 1.5px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.4s var(--ease-out), opacity 0.3s;
}
.nav-toggle:hover { background: var(--paper-2); }
#navbar.nav--dark .nav-toggle {
    border-color: rgb(255 255 255 / 0.2);
    background: rgb(6 35 26 / 0.62);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    backdrop-filter: blur(24px) saturate(140%);
    color: var(--paper);
}
#navbar.nav--dark .nav-toggle:hover { background: rgb(255 255 255 / 0.15); }
#navbar .nav-toggle.active { border-color: var(--line); background: var(--paper-2); color: var(--ink); }
.nav-toggle.active span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 3rem;
    padding: 0 1.5rem;
    border: 1px solid transparent;
    border-radius: 9999px;
    overflow: hidden;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    user-select: none;
    background-clip: padding-box;
    cursor: pointer;
    will-change: transform;
    transition: background-color 0.3s var(--ease-std), border-color 0.3s var(--ease-std), color 0.3s var(--ease-std), box-shadow 0.4s var(--ease-out), translate 0.3s var(--ease-out), transform 0.4s var(--ease-out);
}
.btn > span, .btn > svg { position: relative; z-index: 1; }
.btn:has(> svg:last-child) { padding-right: 1.25rem; }
.btn svg { width: 1.125rem; height: 1.125rem; flex-shrink: 0; }
.btn:active { translate: 0 1px; }
.btn:disabled { pointer-events: none; opacity: 0.6; }

/* Primario = lima con halo propio (sobre oscuro) */
.btn-primary {
    background: var(--lime);
    color: var(--forest-950);
    box-shadow: var(--shadow-accent);
}
.btn-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgb(255 255 255 / 0.45) 50%, transparent 100%);
    transform: translateX(-110%);
    transition: transform 0.7s var(--ease-out);
}
.btn-primary:hover { background: var(--lime-hover); box-shadow: var(--shadow-glow); }
.btn-primary:hover::before { transform: translateX(110%); }
.btn-primary:focus-visible { outline: none; box-shadow: 0 0 0 3px rgb(212 242 90 / 0.5), var(--shadow-accent); }

/* Secundario = vidrio oscuro con filete blanco */
.btn-ghost {
    background-color: rgb(6 35 26 / 0.62);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    backdrop-filter: blur(24px) saturate(140%);
    border-color: rgb(255 255 255 / 0.2);
    color: var(--paper);
}
.btn-ghost:hover { background-color: rgb(255 255 255 / 0.15); border-color: rgb(255 255 255 / 0.32); }
.btn-ghost:focus-visible { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgb(212 242 90 / 0.4); }

.btn-lg { height: 3.5rem; padding: 0 1.75rem; font-size: 1.05rem; }
.btn-lg:has(> svg:last-child) { padding-right: 1.5rem; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    background: var(--forest-950);
    color: var(--on-dark);
}
.hero-mesh {
    position: absolute;
    inset: -25%;
    z-index: 0;
    pointer-events: none;
    background: var(--mesh);
    animation: mesh-drift 26s ease-in-out infinite alternate;
    will-change: transform;
}
.hero-noise {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image: var(--grain-url);
    background-size: 240px 240px;
    opacity: 0.22;
    mix-blend-mode: overlay;
}
.hero-gradient { display: none; }

.hero-content {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: var(--container-wide);
    margin-inline: auto;
    padding: 7rem var(--gutter) 2rem;
}
@media (min-width: 640px) { .hero-content { padding-top: 8.5rem; } }
.hero-content:has(:focus-visible) { opacity: 1 !important; }
@media (min-width: 1024px) { .hero-content { padding-bottom: 2.5rem; } }

/* Eyebrow: filete lima + punto que late + texto */
.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 52rem;
    font-size: 0.72rem;
    line-height: 1.35;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--lime);
}
.hero-eyebrow::before {
    content: "";
    flex-shrink: 0;
    width: 2rem;
    height: 1px;
    background: rgb(212 242 90 / 0.6);
}
@media (min-width: 640px) { .hero-eyebrow::before { width: 2.5rem; } }
.status-dot {
    position: relative;
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: var(--lime);
}
.status-dot::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--lime);
    opacity: 0.7;
    animation: ping 1.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Título + animación: una columna en móvil/tablet, dos en escritorio */
.hero-main {
    display: grid;
    gap: 1.75rem;
    align-items: center;
    margin-top: 2rem;
}
@media (min-width: 640px) { .hero-main { margin-top: 2.5rem; } }
@media (min-width: 1024px) {
    .hero-main { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2.5rem; margin-top: 2rem; }
}

/* Título gigante en dos líneas (text-split por palabras) */
.hero-title {
    font-size: clamp(2.6rem, 11.2vw, 4.25rem);
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: -0.055em;
    color: var(--on-dark);
}
@media (min-width: 640px) {
    .hero-title { font-size: clamp(4rem, 7.4vw, 7.25rem); line-height: 0.92; }
}
@media (min-width: 1024px) {
    .hero-title { font-size: clamp(3.5rem, 6.15vw, 6.4rem); }
}
.title-line {
    display: block;
    padding-bottom: 0.12em;
    margin-bottom: -0.04em;
}
/* La máscara va en cada palabra: así, si una línea se parte en dos
   renglones (móvil), ninguna palabra asoma antes de animar. */
.title-line .word-mask {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding: 0.08em 0.12em 0.14em;
    margin: -0.08em -0.12em -0.14em;
}
.title-line .word {
    display: inline-block;
    transform: translateY(110%);
    transition: transform 1.2s var(--ease-out);
}
.title-line.revealed .word { transform: translateY(0); }
.hero-title em { color: var(--lime); }

.hero-visual {
    position: relative;
    width: 100%;
    max-width: 30rem;
    margin-inline: auto;
}
@media (min-width: 1024px) {
    .hero-visual { max-width: 38rem; margin-inline: auto 0; padding-right: 0.5rem; }
}

/* ── Hero: orquestación animada (entradas → orquestador IA → acciones) ──
   El trazo se dibuja al llegar (.hero.art-on) y luego main.js reproduce en bucle
   cuatro casos: correo → CRM · licitación → propuesta · WhatsApp → agenda ·
   llamada → reporte, con el registro en vivo debajo (.hx-hud). */
.hero-art { display: block; width: 100%; height: auto; overflow: visible; }

@keyframes hx-draw { from { stroke-dashoffset: 1.02; } to { stroke-dashoffset: 0; } }
@keyframes hx-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hx-pop { from { transform: scale(0); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes hx-pulse {
    0% { stroke-dashoffset: 1; opacity: 0; }
    10% { opacity: 0.7; }
    85% { opacity: 0.7; }
    100% { stroke-dashoffset: 0.05; opacity: 0; }
}
@keyframes hx-breathe { 0%, 100% { transform: scale(0.92); opacity: 0.75; } 50% { transform: scale(1.04); opacity: 1; } }
@keyframes hx-think { from { transform: scale(1); } to { transform: scale(1.07); } }
@keyframes hx-ring { from { transform: scale(0.85); opacity: 0.9; } to { transform: scale(1.35); opacity: 0; } }
@keyframes hx-wave { from { transform: scaleY(0.35); } to { transform: scaleY(1); } }
@keyframes hx-live { 0% { box-shadow: 0 0 0 0 rgb(212 242 90 / 0.6); } 100% { box-shadow: 0 0 0 7px rgb(212 242 90 / 0); } }
@keyframes hx-log-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Trazo que se dibuja (pathLength="1") */
.hx-draw { stroke-dasharray: 1 1.05; stroke-dashoffset: 1.02; }
.hero.art-on .hx-draw { animation: hx-draw var(--t, 1.3s) cubic-bezier(0.45, 0, 0.2, 1) var(--d, 0ms) both; }

/* Tarjetas de entrada y de acción */
.hx-tile-bg {
    fill: rgb(255 255 255 / 0.035);
    stroke: rgb(246 244 238 / 0.26);
    stroke-width: 1.3;
    transition: fill 0.5s var(--ease-out), stroke 0.5s var(--ease-out);
}
.hx-ico path, .hx-ico rect, .hx-ico circle {
    fill: none;
    stroke: rgb(246 244 238 / 0.88);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.5s var(--ease-out), fill 0.5s var(--ease-out);
}
.hx-ico .hx-dot { fill: rgb(246 244 238 / 0.88); stroke: none; }
.hx-lbl {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    fill: rgb(246 244 238 / 0.55);
    transition: fill 0.4s var(--ease-out);
}
.hx-port { fill: var(--forest-950); stroke: rgb(212 242 90 / 0.6); stroke-width: 1.6; opacity: 0; }
.hero.art-on .hx-port { animation: hx-fade 0.6s ease 2600ms both; }

.hx-tile.is-active .hx-tile-bg,
.hx-tile.is-done .hx-tile-bg { fill: rgb(212 242 90 / 0.08); stroke: rgb(212 242 90 / 0.8); }
.hx-tile.is-active .hx-ico path,
.hx-tile.is-active .hx-ico rect,
.hx-tile.is-active .hx-ico circle { stroke: var(--lime); }
.hx-tile.is-active .hx-ico .hx-dot { fill: var(--lime); }
.hx-tile.is-active .hx-lbl,
.hx-tile.is-done .hx-lbl { fill: var(--lime); }
.hx-tile.is-active .hx-port,
.hx-tile.is-done .hx-port { fill: var(--lime); stroke: var(--lime); }
.hx-tile.is-active { filter: drop-shadow(0 0 12px rgb(212 242 90 / 0.35)); }

/* Llamada: la onda «habla» mientras está activa */
.hx-wave path { transform-box: fill-box; transform-origin: center; }
.hx-tile.is-active .hx-wave path { stroke-dashoffset: 0; animation: hx-wave 0.45s ease-in-out infinite alternate; }
.hx-tile.is-active .hx-wave path:nth-child(2n) { animation-delay: 0.15s; }
.hx-tile.is-active .hx-wave path:nth-child(3n) { animation-delay: 0.3s; }

/* Resultado de cada acción */
.hx-new { stroke: var(--lime) !important; opacity: 0; transition: opacity 0.5s var(--ease-out); }
.hx-new-dot { fill: var(--lime) !important; stroke: none !important; opacity: 0; transition: opacity 0.5s var(--ease-out); }
.hx-tile.is-done .hx-new, .hx-tile.is-done .hx-new-dot { opacity: 1; }
.hx-badge { transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1); }
.hx-badge circle { fill: var(--lime) !important; stroke: none !important; }
.hx-badge path { stroke: var(--forest-950) !important; stroke-width: 2 !important; }
.hx-tile.is-done .hx-badge { transform: none; }
.hx-grid { stroke: rgb(246 244 238 / 0.45) !important; stroke-width: 2.4 !important; }
.hx-cell { fill: rgb(246 244 238 / 0.12) !important; stroke: none !important; transition: fill 0.45s var(--ease-out) !important; }
.hx-tile.is-done .hx-cell { fill: var(--lime) !important; }
.hx-bar { stroke-width: 4.2 !important; }
.hx-grow { transform-box: fill-box; transform-origin: bottom; transform: scaleY(0.2); transition: transform 0.8s var(--ease-out); opacity: 0; }
.hero.art-on .hx-grow { animation: hx-fade 0.4s ease 1650ms both; }
.hx-tile.is-done .hx-grow { transform: none; stroke: var(--lime) !important; }

/* Flujos */
.hx-flow {
    fill: none;
    stroke: rgb(212 242 90 / 0.22);
    stroke-width: 1.3;
    stroke-linecap: round;
    transition: stroke 0.4s var(--ease-out), stroke-width 0.4s var(--ease-out);
}
.hx-flow.is-active { stroke: rgb(212 242 90 / 0.9); stroke-width: 2.2; }
.hx-flows { filter: drop-shadow(0 0 4px rgb(212 242 90 / 0.35)); }
.hx-pulse {
    fill: none;
    stroke: #F4FFD6;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-dasharray: 0.06 0.94;
    stroke-dashoffset: 1;
    opacity: 0;
}
.hero.art-on .hx-pulse { animation: hx-pulse 4.8s linear var(--d, 0ms) infinite; }

/* Orquestador */
.hx-glow { transform-box: fill-box; transform-origin: center; opacity: 0; }
.hero.art-on .hx-glow { animation: hx-fade 1.2s ease 1200ms both, hx-breathe 5s ease-in-out 2400ms infinite; }
.hx-ring-out {
    fill: none;
    stroke: rgb(212 242 90 / 0.4);
    stroke-width: 1.3;
    stroke-dasharray: 2 9;
    stroke-linecap: round;
    transform-box: fill-box;
    transform-origin: center;
    opacity: 0;
}
.hero.art-on .hx-ring-out { animation: hx-fade 1s ease 1500ms both, spin 40s linear infinite; }
.hx-ring-stage { fill: none; stroke: rgb(246 244 238 / 0.18); stroke-width: 1.2; }
.hx-stage { transform-box: fill-box; transform-origin: center; opacity: 0; }
.hero.art-on .hx-stage { animation: hx-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) var(--d, 0ms) both; }
.hx-stage circle {
    fill: var(--forest-950);
    stroke: rgb(246 244 238 / 0.55);
    stroke-width: 1.6;
    transition: fill 0.25s ease, stroke 0.25s ease;
}
.hx-stage.is-on circle { fill: var(--lime); stroke: var(--lime); }
.hx-stage.is-on { filter: drop-shadow(0 0 8px rgb(212 242 90 / 0.9)); }
.hx-heart { transform-box: fill-box; transform-origin: center; opacity: 0; }
.hero.art-on .hx-heart { animation: hx-pop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) var(--d, 0ms) both; }
.hx-heart-c { fill: var(--lime); filter: drop-shadow(0 0 18px rgb(212 242 90 / 0.55)); }
.hx-heart-ring { fill: none; stroke: rgb(212 242 90 / 0.55); stroke-width: 1.4; transform-box: fill-box; transform-origin: center; opacity: 0; }
.hx-spark { fill: var(--forest-950); }
.hero-art.is-thinking .hx-heart-c { transform-box: fill-box; transform-origin: center; animation: hx-think 0.26s ease-in-out infinite alternate; }
.hero-art.is-thinking .hx-heart-ring { animation: hx-ring 0.9s ease-out infinite; }

/* Paquete de datos */
.hx-packet { opacity: 0; transition: opacity 0.2s ease; filter: drop-shadow(0 0 8px rgb(212 242 90 / 0.9)); }
.hx-packet.on { opacity: 1; }
.hx-packet rect { fill: var(--lime); }
.hx-packet path { stroke: var(--forest-950); stroke-width: 1.8; stroke-linecap: round; }

/* Registro en vivo */
.hx-hud {
    position: relative;
    width: 100%;
    max-width: 24rem;
    margin: 0.35rem auto 0;
    padding: 0.7rem 0.9rem 0.35rem;
    border-radius: var(--radius-xl);
    border: 1px solid rgb(255 255 255 / 0.12);
    background-color: rgb(6 35 26 / 0.62);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    box-shadow: 0 20px 50px -24px rgb(0 0 0 / 0.6);
    opacity: 0;
}
.hero.art-on .hx-hud { animation: hx-fade 0.9s ease 2900ms both; }
.hx-hud-head {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding-bottom: 0.45rem;
    font-size: 0.62rem;
    line-height: 1;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgb(246 244 238 / 0.65);
}
.hx-hud-dot { width: 6px; height: 6px; flex-shrink: 0; border-radius: 9999px; background: var(--lime); animation: hx-live 1.6s ease-out infinite; }
.hx-hud-stage {
    margin-left: auto;
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
    background: rgb(212 242 90 / 0.12);
    color: var(--lime);
    letter-spacing: 0.14em;
    transition: background-color 0.3s ease;
}
.hx-hud-log { list-style: none; display: flex; flex-direction: column; min-height: calc(4 * 1.75rem); }
.hx-hud-log li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    height: 1.75rem;
    border-top: 1px solid rgb(255 255 255 / 0.07);
    font-size: 0.76rem;
    color: rgb(246 244 238 / 0.62);
}
.hx-hud-log li:first-child { color: var(--paper); animation: hx-log-in 0.5s var(--ease-out) both; }
.hx-hud-log li svg { width: 0.95rem; height: 0.95rem; flex-shrink: 0; color: var(--lime); }
.hx-hud-log li .t { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hx-hud-log li time { flex-shrink: 0; font-size: 0.66rem; font-variant-numeric: tabular-nums; color: rgb(246 244 238 / 0.45); }

/* Fuentes de datos que consulta el agente (capa inferior) */
.hx-spoke {
    fill: none;
    stroke: rgb(246 244 238 / 0.16);
    stroke-width: 1.2;
    stroke-linecap: round;
    transition: stroke 0.3s ease, stroke-width 0.3s ease;
}
.hx-spoke.is-active { stroke: rgb(212 242 90 / 0.9); stroke-width: 1.9; }
.hx-src { opacity: 0; }
.hero.art-on .hx-src { animation: hx-fade 0.6s ease var(--d, 0ms) both; }
.hx-src-bg {
    fill: rgb(6 35 26 / 0.88);
    stroke: rgb(246 244 238 / 0.24);
    stroke-width: 1.2;
    transition: fill 0.3s ease, stroke 0.3s ease;
}
.hx-src-ico path, .hx-src-ico circle {
    fill: none;
    stroke: rgb(246 244 238 / 0.78);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.3s ease;
}
.hx-src-lbl {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
    fill: rgb(246 244 238 / 0.5);
    transition: fill 0.3s ease;
}
.hx-src-cap {
    font-family: var(--font-sans);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.24em;
    fill: rgb(212 242 90 / 0.6);
    opacity: 0;
}
.hero.art-on .hx-src-cap { animation: hx-fade 0.8s ease 2900ms both; }
.hx-src.is-hit .hx-src-bg { stroke: rgb(212 242 90 / 0.5); }
.hx-src.is-hit .hx-src-lbl { fill: rgb(212 242 90 / 0.75); }
.hx-src.is-query .hx-src-bg { fill: rgb(212 242 90 / 0.12); stroke: var(--lime); }
.hx-src.is-query .hx-src-ico path,
.hx-src.is-query .hx-src-ico circle { stroke: var(--lime); }
.hx-src.is-query .hx-src-lbl { fill: var(--lime); }
.hx-src.is-query { filter: drop-shadow(0 0 10px rgb(212 242 90 / 0.55)); }

/* Escáner del núcleo mientras piensa */
.hx-scan {
    fill: none;
    stroke: var(--lime);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-dasharray: 0.12 0.88;
    transform-box: fill-box;
    transform-origin: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    filter: drop-shadow(0 0 6px rgb(212 242 90 / 0.8));
}
.hero-art.is-thinking .hx-scan { opacity: 0.95; animation: spin 0.9s linear infinite; }

/* Consulta que baja y fragmento recuperado que sube */
.hx-q { fill: var(--lime); opacity: 0; filter: drop-shadow(0 0 6px rgb(212 242 90 / 0.95)); }
.hx-chunk { fill: #A7F3D0; opacity: 0; filter: drop-shadow(0 0 6px rgb(16 185 129 / 0.95)); }
.hx-q.on, .hx-chunk.on { opacity: 1; }

/* Opciones candidatas al decidir */
.hx-flow.is-candidate { stroke: rgb(212 242 90 / 0.6); stroke-width: 1.9; }

/* Líneas de razonamiento en la consola */
.hx-hud-log li .ico { display: inline-flex; align-items: center; justify-content: center; width: 0.95rem; height: 0.95rem; flex-shrink: 0; color: var(--lime); }
.hx-hud-log li .ico svg { width: 100%; height: 100%; }
.hx-hud-log li .meta { flex-shrink: 0; display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.66rem; font-variant-numeric: tabular-nums; color: rgb(246 244 238 / 0.45); }
.hx-spin { width: 0.8rem; height: 0.8rem; border-radius: 9999px; border: 1.6px solid rgb(212 242 90 / 0.25); border-top-color: var(--lime); animation: spin 0.7s linear infinite; }
.hx-diamond { width: 0.55rem; height: 0.55rem; border-radius: 2px; background: var(--lime); transform: rotate(45deg); box-shadow: 0 0 8px rgb(212 242 90 / 0.7); }
.hx-hud-log li.is-run { color: var(--lime); }
.hx-hud-log li.is-ok { color: rgb(246 244 238 / 0.72); }
.hx-hud-log li.is-decision { color: var(--paper); font-weight: 600; }
.hx-hud-log li.is-decision .meta { color: var(--lime); }
.hx-conf { position: relative; display: inline-block; width: 2.4rem; height: 4px; overflow: hidden; border-radius: 4px; background: rgb(255 255 255 / 0.1); }
.hx-conf::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--c, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--emerald), var(--lime)); animation: hx-conf 0.9s var(--ease-out) both; }
@keyframes hx-conf { from { width: 0; } }

@media (max-width: 639px) {
    .hx-lbl, .hx-src-lbl, .hx-src-cap { display: none; }
    .hx-hud { max-width: none; }
}
/* Entre 1024 y 1199 px el SVG va en la columna estrecha (escala < 0,7): las etiquetas quedarían ilegibles */
@media (min-width: 1024px) and (max-width: 1199px) {
    .hx-lbl, .hx-src-lbl, .hx-src-cap { display: none; }
}

/* Línea base: subtítulo a la izquierda, CTAs a la derecha */
.hero-body {
    display: grid;
    gap: 1.75rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgb(255 255 255 / 0.1);
}
@media (min-width: 640px) { .hero-body { margin-top: auto; } }
@media (min-width: 1024px) {
    .hero-body { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; gap: 2rem; }
    .hero-subtitle { grid-column: span 7; }
    .hero-actions { grid-column: span 5; justify-content: flex-end; }
}
.hero-subtitle {
    max-width: 38rem;
    font-size: 1.2rem;
    line-height: 1.4;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: rgb(246 244 238 / 0.82);
}
@media (min-width: 640px) { .hero-subtitle { font-size: 1.4rem; } }
.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
@media (min-width: 640px) { .hero-actions { flex-direction: row; flex-wrap: wrap; } }

.hero-scroll { display: none; }
.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--lime), transparent);
    animation: scroll-anim 2s ease-in-out infinite;
}

/* ── Franja de cifras (papel bajo el hero) ────────────────── */
.stats-strip {
    position: relative;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    color: var(--ink);
}
.stats-strip .container { max-width: var(--container-wide); padding-inline: 0; }
.metrics-inner {
    display: grid;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) { .metrics-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.metric-divider { display: none; }
.metric {
    --stat-size: 2.6rem;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 0.35rem;
    row-gap: 0.85rem;
    padding: 2rem var(--gutter);
}
.metric + .metric-divider + .metric { border-top: 1px solid var(--line); }
@media (min-width: 640px) {
    .metric { --stat-size: 3.2rem; padding: 2.5rem 2rem; }
    .metric + .metric-divider + .metric { border-top: 0; border-left: 1px solid var(--line); }
}
@media (min-width: 1024px) { .metric { --stat-size: 4rem; padding: 3rem 2.5rem; } }
.metric::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--forest-700);
    transition: width 0.7s var(--ease-out);
}
.metric:hover::before { width: 100%; }
.metric-number {
    font-size: var(--stat-size);
    line-height: 0.9;
    font-weight: 600;
    letter-spacing: -0.05em;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
}
.metric-suffix {
    font-size: calc(var(--stat-size) * 0.55);
    line-height: 0.9;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--forest-700);
}
.metric-label {
    flex-basis: 100%;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.72rem;
    line-height: 1rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--forest-700);
}
.metric-label::before {
    content: "";
    width: 1.25rem;
    height: 1px;
    background: rgb(20 90 67 / 0.4);
}

/* ── Marquee de tecnologías ───────────────────────────────── */
.marquee-section {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 1.75rem 0;
    overflow: hidden;
}
@media (min-width: 640px) { .marquee-section { padding: 2.25rem 0; } }
.marquee {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
    display: flex;
    align-items: center;
    gap: 2.75rem;
    width: max-content;
    padding-right: 2.75rem;
    animation: marquee-scroll 70s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
    font-size: 1.3rem;
    line-height: 1;
    font-weight: 600;
    letter-spacing: -0.035em;
    white-space: nowrap;
    color: rgb(14 26 20 / 0.7);
}
@media (min-width: 640px) { .marquee-track span { font-size: 1.55rem; } }
.marquee-track .marquee-dot {
    display: inline-block;
    flex-shrink: 0;
    width: 0.375rem;
    height: 0.375rem;
    font-size: 0;
    background: rgb(20 90 67 / 0.35);
    transform: rotate(45deg);
}

/* ── Secciones ────────────────────────────────────────────── */
.section { position: relative; padding: 6rem 0; }
@media (min-width: 640px) { .section { padding: 8rem 0; } }

/* Encabezado editorial: eyebrow + título a la izquierda, entradilla a la derecha */
.section-header-split {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}
@media (min-width: 640px) { .section-header-split { margin-bottom: 5rem; } }
@media (min-width: 900px) {
    .section-header-split { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 4rem; }
}
.section-header-left { display: flex; flex-direction: column; gap: 1rem; max-width: 48rem; }
.section-header-right {
    max-width: 30rem;
    font-size: 1rem;
    line-height: 1.625;
    color: var(--ink-muted);
}
@media (min-width: 640px) { .section-header-right { font-size: 1.125rem; } }
@media (min-width: 900px) { .section-header-right { flex-shrink: 0; width: 38%; padding-bottom: 0.35rem; } }
@media (min-width: 900px) {
    .services-section .section-header-split { gap: 3rem; }
    .services-section .section-header-left { flex: 1 1 auto; min-width: 0; max-width: 52rem; }
    .services-section .section-header-right { width: 30%; }
}

.section-tag {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.72rem;
    line-height: 1rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--forest-700);
}
.section-tag::before {
    content: "";
    flex-shrink: 0;
    width: 2rem;
    height: 1px;
    background: rgb(20 90 67 / 0.4);
}

.section-title {
    font-size: 2.1rem;
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -0.045em;
    color: var(--ink);
}
@media (min-width: 640px) { .section-title { font-size: 2.75rem; } }
@media (min-width: 1024px) { .section-title { font-size: 3.35rem; } }
.section-title em { color: var(--forest-700); }

/* Contexto oscuro */
[data-header-tone="dark"] .section-tag { color: var(--lime); }
[data-header-tone="dark"] .section-tag::before { background: rgb(212 242 90 / 0.6); }
[data-header-tone="dark"] .section-title { color: var(--paper); }
[data-header-tone="dark"] .section-title em { color: var(--lime); }

/* ── Servicios — bento ────────────────────────────────────── */
.services-section { background: var(--paper); }
.services-bento {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 768px) { .services-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; } }
@media (min-width: 1100px) { .services-bento { grid-template-columns: 1.2fr 1fr 1fr; } }

/* Tarjeta clara sobre papel */
.service-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto 1fr;
    align-content: start;
    column-gap: 1rem;
    padding: 1.75rem;
    border-radius: var(--radius-card);
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}
@media (min-width: 640px) { .service-card { padding: 2.25rem; } }
.service-card > * { grid-column: 1 / -1; }
.service-card:hover {
    translate: 0 -0.25rem;
    box-shadow: var(--shadow-lift);
    border-color: var(--line-strong);
}

.card-number {
    grid-column: 1;
    grid-row: 1;
    font-size: 4rem;
    line-height: 0.76;
    font-weight: 600;
    letter-spacing: -0.07em;
    font-variant-numeric: tabular-nums;
    color: var(--forest-900);
    transition: color 0.5s var(--ease-std);
}
.service-card:hover .card-number { color: var(--forest-700); }
.card-icon {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    padding: 0.7rem;
    border-radius: 9999px;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--forest-700);
    transition: rotate 0.5s var(--ease-out), background-color 0.5s var(--ease-out), border-color 0.5s var(--ease-out), color 0.5s var(--ease-out);
}
.card-icon svg { width: 100%; height: 100%; stroke-width: 2.2; }
.service-card:hover .card-icon {
    rotate: -6deg;
    border-color: var(--forest-700);
    background: var(--lime);
    color: var(--forest-950);
}
.card-title {
    margin-top: 2.25rem;
    font-size: 1.45rem;
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -0.035em;
    color: var(--ink);
}
@media (min-width: 640px) { .card-title { font-size: 1.6rem; } }
.card-desc {
    margin-top: 0.85rem;
    font-size: 0.95rem;
    line-height: 1.625;
    color: var(--ink-muted);
}
/* Lista: viñeta sobre filete */
.card-features {
    align-self: end;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1.75rem;
    padding-left: 1.25rem;
    border-left: 1px solid var(--line);
}
.card-features li {
    position: relative;
    font-size: 0.875rem;
    line-height: 1.45;
    color: rgb(14 26 20 / 0.8);
}
.card-features li::before {
    content: "";
    position: absolute;
    top: 0.55em;
    left: -1.42rem;
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 9999px;
    background: var(--forest-700);
}

/* Tarjetas oscuras con canvas (destacada + banner) */
.service-card--featured,
.service-card--banner {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0;
    border-color: rgb(255 255 255 / 0.08);
    background: linear-gradient(165deg, #0B3D2E 0%, #06231A 62%, #041A13 100%);
    box-shadow: var(--shadow-lift);
    color: var(--on-dark);
    isolation: isolate;
}
.service-card--featured::before,
.service-card--banner::before {
    content: "";
    position: absolute;
    top: -7rem;
    right: -6rem;
    z-index: 0;
    width: 22rem;
    height: 22rem;
    border-radius: 9999px;
    background: var(--emerald);
    opacity: 0.22;
    filter: blur(70px);
    pointer-events: none;
    transition: opacity 0.7s var(--ease-std);
}
.service-card--featured::after,
.service-card--banner::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    border-radius: inherit;
    background-image: var(--grain-url);
    background-size: 240px 240px;
    opacity: 0.16;
    mix-blend-mode: overlay;
}
.service-card--featured:hover,
.service-card--banner:hover { border-color: rgb(255 255 255 / 0.2); box-shadow: var(--shadow-float); }
.service-card--featured:hover::before,
.service-card--banner:hover::before { opacity: 0.4; }

.service-card--featured { min-height: 600px; }
@media (min-width: 768px) and (max-width: 1099px) { .service-card--featured { grid-column: span 2; } }
.neural-canvas,
.productivity-canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: inherit;
}
.service-card--featured .card-inner {
    position: relative;
    z-index: 2;
    padding: clamp(1.75rem, 3vw, 2.25rem);
    padding-top: clamp(5rem, 8vw, 6.5rem);
    background: linear-gradient(0deg, #05201A 28%, rgb(6 35 26 / 0.8) 58%, rgb(6 35 26 / 0) 100%);
}
.service-card--featured .card-number { color: var(--lime); font-size: 2.25rem; }
.service-card--featured .card-title {
    margin-top: 1rem;
    font-size: clamp(1.75rem, 2.4vw, 2.1rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
    color: var(--paper);
}
.service-card--featured .card-desc { max-width: 30rem; font-size: 1rem; color: rgb(246 244 238 / 0.7); }
.service-card--featured .card-features { border-left-color: rgb(255 255 255 / 0.14); }
.service-card--featured .card-features li { color: rgb(246 244 238 / 0.82); }
.service-card--featured .card-features li::before { background: var(--lime); }
.service-card--featured:hover .card-number { color: var(--lime); }

.service-card--banner { min-height: 420px; }
@media (min-width: 768px) { .service-card--banner { grid-column: span 2; } }
.banner-inner {
    position: relative;
    z-index: 2;
    padding: clamp(1.75rem, 3vw, 2.5rem);
    padding-top: 6rem;
    background: linear-gradient(0deg, #05201A 20%, rgb(6 35 26 / 0.86) 52%, rgb(6 35 26 / 0) 100%);
}
.banner-text { max-width: 34rem; }
.banner-title {
    margin-bottom: 0.85rem;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.05;
    font-weight: 600;
    letter-spacing: -0.045em;
    color: var(--paper);
}
.banner-title em { color: var(--lime); }
.banner-desc {
    margin-bottom: 1.75rem;
    font-size: 0.98rem;
    line-height: 1.625;
    color: rgb(246 244 238 / 0.7);
}
.btn-banner {
    background: var(--lime);
    color: var(--forest-950);
    box-shadow: var(--shadow-accent);
}
.btn-banner:hover { background: var(--lime-hover); box-shadow: var(--shadow-glow); }

/* ── Yiki AI (sección oscura) ─────────────────────────────── */
.yikiai-section {
    isolation: isolate;
    overflow: hidden;
    background: var(--forest-950);
    color: var(--on-dark);
}
.yikiai-section::before {
    content: "";
    position: absolute;
    inset: -20%;
    z-index: -1;
    pointer-events: none;
    background: var(--mesh-subtle);
    animation: mesh-drift-alt 30s ease-in-out infinite alternate;
    will-change: transform;
}
.yikiai-section::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image: var(--grain-url);
    background-size: 240px 240px;
    opacity: 0.22;
    mix-blend-mode: overlay;
}
.yikiai-section > .container { position: relative; z-index: 2; }

.yiki-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.5rem;
    align-items: center;
}
.yiki-layout > * { min-width: 0; }
@media (min-width: 1024px) { .yiki-layout { grid-template-columns: 1fr 1fr; gap: 5rem; } }

.yiki-content .section-tag { margin-bottom: 1.5rem; }
.yiki-logo { max-width: 240px; height: auto; margin-bottom: 1.75rem; }
.yiki-headline {
    max-width: 34rem;
    margin-bottom: 1.25rem;
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    line-height: 1.08;
    font-weight: 600;
    letter-spacing: -0.04em;
    color: var(--paper);
}
.yiki-headline em { color: var(--lime); }
.yiki-desc {
    max-width: 34rem;
    margin-bottom: 2.25rem;
    font-size: 1rem;
    line-height: 1.65;
    color: rgb(246 244 238 / 0.7);
}
.yiki-features {
    display: flex;
    flex-direction: column;
    margin-bottom: 2.5rem;
    border-top: 1px solid rgb(255 255 255 / 0.1);
}
.yiki-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid rgb(255 255 255 / 0.1);
}
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    border: 1px solid rgb(255 255 255 / 0.15);
    background: rgb(255 255 255 / 0.05);
    color: var(--lime);
    transition: background-color 0.5s var(--ease-out), color 0.5s var(--ease-out), rotate 0.5s var(--ease-out);
}
.feature-icon svg { width: 1.2rem; height: 1.2rem; stroke-width: 1.75; }
.yiki-feature:hover .feature-icon { background: var(--lime); color: var(--forest-950); rotate: -6deg; }
.yiki-feature strong {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--paper);
}
.yiki-feature span { font-size: 0.9rem; line-height: 1.55; color: rgb(246 244 238 / 0.65); }

.btn-yiki svg { transition: transform 0.4s var(--ease-out); }
.btn-yiki:hover svg { transform: translate(3px, -3px); }

/* Mockup de vidrio */
.yiki-visual { position: relative; }
.yiki-visual::before {
    content: "";
    position: absolute;
    top: -3rem;
    right: -2rem;
    z-index: 0;
    width: 20rem;
    height: 20rem;
    border-radius: 9999px;
    background: var(--lime);
    opacity: 0.16;
    filter: blur(80px);
    pointer-events: none;
}
.yiki-mockup {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: var(--radius-3xl);
    border: 1px solid rgb(255 255 255 / 0.12);
    background-color: rgb(6 35 26 / 0.62);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    backdrop-filter: blur(24px) saturate(140%);
    box-shadow: var(--shadow-float);
    animation: float 7s ease-in-out infinite;
}
.mockup-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid rgb(255 255 255 / 0.08);
    background: rgb(255 255 255 / 0.03);
}
.mockup-dots { display: flex; gap: 6px; }
.mockup-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgb(246 244 238 / 0.18); }
.mockup-dots span:first-child { background: var(--lime); opacity: 0.8; }
.mockup-url {
    flex: 1;
    max-width: 14rem;
    margin-inline: auto;
    padding: 0.2rem 0.75rem;
    border-radius: 9999px;
    background: rgb(255 255 255 / 0.06);
    text-align: center;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgb(246 244 238 / 0.6);
}
.mockup-body { padding: 1.25rem; }
.mockup-search {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    height: 2.75rem;
    margin-bottom: 1rem;
    padding: 0 1rem;
    border-radius: 9999px;
    border: 1px solid rgb(255 255 255 / 0.12);
    background: rgb(255 255 255 / 0.05);
    font-size: 0.82rem;
    color: rgb(246 244 238 / 0.66);
}
.mockup-search svg { color: var(--lime); flex-shrink: 0; }
.mockup-results { display: flex; flex-direction: column; gap: 0.75rem; }
.mockup-result {
    padding: 1rem 1.1rem;
    border-radius: var(--radius-2xl);
    border: 1px solid rgb(255 255 255 / 0.08);
    background: rgb(255 255 255 / 0.04);
    transition: border-color 0.4s var(--ease-out), background-color 0.4s var(--ease-out);
}
.mockup-result:hover { border-color: rgb(212 242 90 / 0.35); background: rgb(255 255 255 / 0.07); }
.result-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.5rem;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.result-tag::before { content: ""; width: 0.375rem; height: 0.375rem; border-radius: 9999px; background: currentColor; }
.tag-active { background: rgb(212 242 90 / 0.14); color: var(--lime); }
.tag-review { background: rgb(242 153 74 / 0.16); color: #F7B57A; }
.result-title {
    margin-bottom: 0.25rem;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--paper);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.result-meta { margin-bottom: 0.65rem; font-size: 0.75rem; color: rgb(246 244 238 / 0.65); }
.result-match { display: flex; align-items: center; gap: 0.75rem; }
.match-bar { flex: 1; height: 4px; border-radius: 4px; overflow: hidden; background: rgb(255 255 255 / 0.08); }
.match-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--emerald), var(--lime));
    transition: width 1.2s var(--ease-out);
}
.result-match span {
    min-width: 64px;
    text-align: right;
    font-size: 0.75rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--lime);
}

/* ── Proceso — carrusel ───────────────────────────────────── */
.process-section { overflow: hidden; background: var(--paper); }
.process-carousel { position: relative; }
.process-scroll-track {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
    padding-block: 0.5rem 1rem;
}
.process-scroll-track::-webkit-scrollbar { display: none; }
.process-cards {
    display: flex;
    gap: 1.25rem;
    padding: 0 max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
}
.process-card {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 0 0 calc(25% - 1rem);
    min-width: 280px;
    min-height: 23rem;
    padding: 2.25rem 2rem;
    overflow: hidden;
    scroll-snap-align: start;
    border-radius: var(--radius-3xl);
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}
.process-card:hover {
    translate: 0 -0.25rem;
    box-shadow: var(--shadow-lift);
    border-color: var(--line-strong);
}
.process-number {
    display: block;
    font-size: 5.5rem;
    line-height: 0.76;
    font-weight: 600;
    letter-spacing: -0.07em;
    font-variant-numeric: tabular-nums;
    color: var(--forest-900);
    pointer-events: none;
    transition: color 0.5s var(--ease-std);
}
.process-card:hover .process-number { color: var(--forest-700); }
.process-card h3 {
    margin-top: 2.5rem;
    padding-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.6rem;
    line-height: 1.08;
    font-weight: 600;
    letter-spacing: -0.035em;
    color: var(--ink);
}
.process-card p { margin-bottom: 1.5rem; font-size: 0.95rem; line-height: 1.625; color: var(--ink-muted); }
.process-accent-line {
    width: 2.5rem;
    height: 3px;
    margin-top: auto;
    border-radius: 3px;
    background: var(--lime);
    box-shadow: 0 0 0 1px rgb(11 61 46 / 0.08);
    transition: width 0.6s var(--ease-out);
}
.process-card:hover .process-accent-line { width: 5rem; }

.process-nav[hidden] { display: none; }
.process-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.25rem;
}
.process-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--ink);
    transition: background-color 0.5s var(--ease-out), border-color 0.5s var(--ease-out), color 0.5s var(--ease-out);
}
.process-nav-btn svg { width: 1.1rem; height: 1.1rem; }
.process-nav-btn:hover { border-color: var(--forest-900); background: var(--forest-900); color: var(--paper); }
.process-nav-btn:disabled { opacity: 0.35; cursor: default; }
.process-nav-btn:disabled:hover { border-color: var(--line-strong); background: var(--surface); color: var(--ink); }
.process-dots { display: flex; align-items: center; gap: 0.5rem; }
.process-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: var(--line-strong);
    cursor: pointer;
    transition: width 0.4s var(--ease-out), background-color 0.4s var(--ease-out);
}
.process-dot:hover { background: var(--ink-muted); }
.process-dot.active { width: 26px; background: var(--forest-900); }

/* ── Nosotros ─────────────────────────────────────────────── */
.about-section {
    overflow: hidden;
    background: var(--paper-2);
    border-top: 1px solid var(--line);
}
.about-statement { margin-bottom: 3.5rem; }
@media (min-width: 640px) { .about-statement { margin-bottom: 5rem; } }
.about-headline {
    max-width: 62rem;
    font-size: clamp(2.6rem, 6.4vw, 5.75rem);
    line-height: 0.96;
    font-weight: 600;
    letter-spacing: -0.055em;
    color: var(--ink);
}
.about-headline em { color: var(--forest-700); }

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1.1fr 1fr; gap: 5rem; } }
.about-text p {
    margin-bottom: 1.25rem;
    max-width: 38rem;
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgb(14 26 20 / 0.78);
}
.about-text p:first-child {
    font-size: 1.3rem;
    line-height: 1.45;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.about-text strong { color: var(--forest-900); font-weight: 600; }

/* Callout lima de afiliación */
.about-affiliation {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 1.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-2xl);
    border: 1px solid rgb(11 61 46 / 0.1);
    background: var(--lime-soft);
}
.about-text .about-affiliation p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--forest-950);
}
.about-affiliation strong { color: var(--forest-950); }
.camacoes-logo {
    width: 76px;
    height: 76px;
    min-width: 76px;
    padding: 0.4rem;
    object-fit: contain;
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.about-values {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius-3xl);
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}
.value-card {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1.25rem;
    row-gap: 0.35rem;
    padding: 1.75rem;
    background: var(--surface);
}
@media (min-width: 640px) { .value-card { padding: 2rem 2.25rem; } }
.value-card + .value-card { border-top: 1px solid var(--line); }
.value-card:hover { background: #FCFBF8; }
.value-icon {
    grid-row: span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-xl);
    background: var(--paper-2);
    color: var(--forest-800);
    transition: background-color 0.5s var(--ease-out), color 0.5s var(--ease-out), rotate 0.5s var(--ease-out);
}
.value-icon svg { width: 1.3rem; height: 1.3rem; }
.value-card:hover .value-icon { background: var(--lime); color: var(--forest-950); rotate: -6deg; }
.value-card h4 {
    align-self: center;
    font-size: 1.25rem;
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--ink);
}
.value-card p { font-size: 0.92rem; line-height: 1.6; color: var(--ink-muted); }

/* ── Banda CTA (oscura) ───────────────────────────────────── */
.cta-band {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 7rem 0;
    background: var(--forest-950);
    color: var(--on-dark);
}
@media (min-width: 640px) { .cta-band { padding: 9rem 0; } }
.cta-band::before {
    content: "";
    position: absolute;
    inset: -20%;
    z-index: -1;
    pointer-events: none;
    background: var(--mesh-subtle);
    animation: mesh-drift-alt 30s ease-in-out infinite alternate;
    will-change: transform;
}
.cta-noise {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image: var(--grain-url);
    background-size: 240px 240px;
    opacity: 0.22;
    mix-blend-mode: overlay;
}
.cta-band > .container { position: relative; z-index: 2; }
.cta-content { position: relative; text-align: center; }
.cta-content h2 {
    max-width: 52rem;
    margin: 0 auto 1.25rem;
    font-size: clamp(2.35rem, 5.4vw, 4.4rem);
    line-height: 1.02;
    font-weight: 600;
    letter-spacing: -0.05em;
    color: var(--paper);
}
.cta-content em { color: var(--lime); }
.cta-content p {
    max-width: 34rem;
    margin: 0 auto 2.5rem;
    font-size: 1.125rem;
    line-height: 1.6;
    color: rgb(246 244 238 / 0.7);
}

/* ── Contacto ─────────────────────────────────────────────── */
.contact-section { background: var(--paper); }
.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.5rem;
    align-items: start;
}
@media (min-width: 1024px) { .contact-layout { grid-template-columns: 1fr 1.15fr; gap: 5rem; } }
.contact-info .section-tag { margin-bottom: 1rem; }
.contact-pitch {
    max-width: 30rem;
    margin-top: 1.25rem;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--ink-muted);
}
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2.25rem;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--line);
    background: rgb(255 255 255 / 0.6);
    color: var(--ink-muted);
    transition: translate 0.5s var(--ease-out), border-color 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), background-color 0.5s var(--ease-out);
}
a.contact-item:hover {
    translate: 0 -0.125rem;
    border-color: rgb(20 90 67 / 0.3);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}
.contact-item svg {
    flex-shrink: 0;
    box-sizing: content-box;
    width: 1.2rem;
    height: 1.2rem;
    padding: 0.7rem;
    border-radius: var(--radius-xl);
    background: var(--paper-2);
    color: var(--forest-800);
    transition: background-color 0.5s var(--ease-out);
}
a.contact-item:hover svg { background: var(--lime-soft); }
.contact-item strong {
    display: block;
    font-size: 0.68rem;
    line-height: 1rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-muted);
}
.contact-item span { display: block; margin-top: 0.1rem; font-size: 0.98rem; font-weight: 500; color: var(--ink); }

.contact-item--location {
    border-color: rgb(11 61 46 / 0.12);
    background: var(--lime-soft);
}
.contact-item--location svg { background: var(--lime); color: var(--forest-950); }
.contact-item--location strong { color: var(--forest-800); }
.location-city {
    font-size: 0.82rem !important;
    font-weight: 400 !important;
    color: var(--ink-muted) !important;
}
.contact-item--whatsapp svg { background: rgb(37 211 102 / 0.12); color: #128C4B; }
a.contact-item--whatsapp:hover { border-color: rgb(37 211 102 / 0.4); }
a.contact-item--whatsapp:hover svg { background: rgb(37 211 102 / 0.2); }

.contact-form-wrap {
    padding: 1.75rem;
    border-radius: var(--radius-card);
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-lift);
}
@media (min-width: 640px) { .contact-form-wrap { padding: 2.5rem; } }

.form-group { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 0 1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

label {
    display: block;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    color: var(--ink);
}
input:where(:not([type="checkbox"], [type="radio"])), select, textarea {
    width: 100%;
    height: 3.25rem;
    padding: 0 1rem;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--line-strong);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.5rem;
    outline: none;
    transition: border-color 0.15s var(--ease-std), box-shadow 0.15s var(--ease-std);
}
input::placeholder, textarea::placeholder { color: var(--ink-muted); }
input:where(:not([type="checkbox"], [type="radio"])):hover, select:hover, textarea:hover { border-color: #C9C4B6; }
input:where(:not([type="checkbox"], [type="radio"])):focus, select:focus, textarea:focus {
    border-color: var(--forest-700);
    box-shadow: 0 0 0 3px rgb(20 90 67 / 0.25), var(--shadow-soft);
}
select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2.75rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235B6B62' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    cursor: pointer;
}
select:invalid { color: var(--ink-muted); }
select option { background: var(--surface); color: var(--ink); }
textarea {
    height: auto;
    min-height: 8.5rem;
    padding: 0.85rem 1rem;
    resize: vertical;
}

/* Autorización de tratamiento de datos (Ley 1581 de 2012) */
.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0.25rem 0 1.5rem;
    padding: 0.95rem 1.05rem;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--line);
    background: rgb(255 255 255 / 0.6);
    transition: border-color 0.2s var(--ease-std), background-color 0.2s var(--ease-std);
}
.form-consent:has(input:checked) { border-color: rgb(20 90 67 / 0.3); background: var(--surface); }
.form-consent:has(input[aria-invalid="true"]) { border-color: rgb(200 55 45 / 0.4); background: rgb(200 55 45 / 0.04); }
.form-consent input {
    position: relative;
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin: 0.1rem 0 0;
    border-radius: 0.45rem;
    border: 1px solid var(--line-strong);
    background: #fff;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: background-color 0.2s var(--ease-std), border-color 0.2s var(--ease-std), box-shadow 0.2s var(--ease-std);
}
.form-consent input::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--paper);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4 4 9-9'/%3E%3C/svg%3E") center / 0.85rem no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4 4 9-9'/%3E%3C/svg%3E") center / 0.85rem no-repeat;
    transform: scale(0.4);
    opacity: 0;
    transition: transform 0.35s var(--ease-out), opacity 0.2s var(--ease-std);
}
.form-consent input:checked { background: var(--forest-900); border-color: var(--forest-900); }
.form-consent input:checked::before { transform: none; opacity: 1; }
.form-consent input:focus-visible { outline: none; border-color: var(--forest-700); box-shadow: 0 0 0 3px rgb(20 90 67 / 0.3); }
.form-consent input[aria-invalid="true"] { border-color: var(--destructive, #C8372D); box-shadow: 0 0 0 3px rgb(200 55 45 / 0.2); }
.form-consent label { font-size: 0.85rem; line-height: 1.45; font-weight: 400; color: var(--ink-muted); cursor: pointer; }
.form-consent a {
    font-weight: 500;
    color: var(--forest-700);
    text-decoration: underline;
    text-decoration-color: rgb(20 90 67 / 0.3);
    text-underline-offset: 2px;
}
.form-consent a:hover { text-decoration-color: currentColor; }
.footer-bottom p a { color: inherit; text-decoration: underline; text-decoration-color: rgb(246 244 238 / 0.25); text-underline-offset: 3px; transition: color 0.2s var(--ease-std); }
.footer-bottom p a:hover { color: var(--lime); }

.btn-submit {
    width: 100%;
    height: 3.25rem;
    margin-top: 0.5rem;
    font-size: 1rem;
    background: var(--forest-900);
    color: var(--paper);
    box-shadow: 0 16px 32px -16px rgb(6 35 26 / 0.75);
}
.btn-submit::before { background: linear-gradient(120deg, transparent 0%, rgb(212 242 90 / 0.18) 50%, transparent 100%); }
.btn-submit:hover { background: var(--forest-800); box-shadow: 0 16px 32px -14px rgb(6 35 26 / 0.8); }
.btn-submit:focus-visible { outline: 3px solid var(--forest-700); outline-offset: 3px; box-shadow: none; }
.btn-submit svg { color: var(--lime); }
.btn-submit .btn-loading { display: none; }
.btn-submit.loading .btn-text, .btn-submit.loading .btn-arrow { opacity: 0; }
.btn-submit.loading .btn-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-message {
    display: none;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.7rem 0.95rem;
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    line-height: 1.4;
}
.form-message::before {
    content: "";
    flex-shrink: 0;
    width: 0.375rem;
    height: 0.375rem;
    margin-top: 0.45em;
    border-radius: 9999px;
    background: currentColor;
}
.form-message.success {
    display: flex;
    border: 1px solid rgb(11 61 46 / 0.12);
    background: var(--lime-soft);
    color: var(--forest-950);
}
.form-message.success::before { background: var(--forest-700); }
.form-message.error {
    display: flex;
    border: 1px solid rgb(200 55 45 / 0.2);
    background: rgb(200 55 45 / 0.06);
    color: var(--destructive);
}

.btn-lead {
    margin-top: 2rem;
    max-width: 100%;
    height: auto;
    min-height: 3.25rem;
    padding: 0.45rem 0.6rem 0.45rem 1.5rem;
    white-space: normal;
    line-height: 1.25;
    text-align: left;
    background: var(--forest-900);
    color: var(--paper);
    box-shadow: 0 16px 32px -16px rgb(6 35 26 / 0.75);
}
.btn-lead:hover { background: var(--forest-800); }
.btn-lead .btn-lead-ico {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background: var(--lime);
    color: var(--forest-950);
    transition: rotate 0.5s var(--ease-out);
}
.btn-lead:hover .btn-lead-ico { rotate: -45deg; }
.btn-lead .btn-lead-ico svg { width: 1rem; height: 1rem; }

/* ── Volver arriba ────────────────────────────────────────── */
.scroll-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border: none;
    border-radius: 9999px;
    background: var(--lime);
    color: var(--forest-950);
    box-shadow: var(--shadow-accent);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s var(--ease-out), visibility 0.3s, transform 0.4s var(--ease-out), background-color 0.3s, box-shadow 0.4s var(--ease-out);
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--lime-hover); box-shadow: var(--shadow-glow); }

/* ── Footer (oscuro) ──────────────────────────────────────── */
.footer {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 5rem 0 2rem;
    background: var(--forest-950);
    color: var(--on-dark);
}
@media (min-width: 640px) { .footer { padding-top: 6rem; } }
.footer::before {
    content: "";
    position: absolute;
    inset: -20%;
    z-index: -1;
    pointer-events: none;
    background: var(--mesh-subtle);
    animation: mesh-drift-alt 30s ease-in-out infinite alternate;
    will-change: transform;
}
.footer::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image: var(--grain-url);
    background-size: 240px 240px;
    opacity: 0.22;
    mix-blend-mode: overlay;
}
.footer > .container-wide {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.footer-top {
    order: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.5rem;
}
@media (min-width: 1024px) { .footer-top { grid-template-columns: 1.1fr 1.4fr; gap: 5rem; } }
.footer .nav-logo-img { height: 40px; filter: invert(1); }
.footer-brand p {
    max-width: 24rem;
    margin-top: 1.5rem;
    font-size: 1.5rem;
    line-height: 1.12;
    font-weight: 600;
    letter-spacing: -0.04em;
    color: var(--paper);
}
.footer-brand .footer-address {
    margin-top: 1rem;
    font-size: 0.875rem;
    line-height: 1.625;
    font-weight: 400;
    letter-spacing: 0;
    color: rgb(246 244 238 / 0.65);
}
.footer-links-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
}
@media (min-width: 640px) { .footer-links-group { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; } }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 0.625rem; }
.footer-col h4 {
    margin-bottom: 0.4rem;
    font-size: 0.72rem;
    line-height: 1rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgb(246 244 238 / 0.6);
}
.footer-col a {
    font-size: 0.95rem;
    line-height: 1.4;
    color: rgb(246 244 238 / 0.85);
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0% 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.45s var(--ease-out), color 0.3s var(--ease-std);
}
.footer-col a:hover, .footer-col a:focus-visible { color: var(--paper); background-size: 100% 1px; }

/* Wordmark fantasma gigante */
.footer-brand-big {
    order: 2;
    margin-top: 4rem;
    margin-bottom: -0.5rem;
    font-size: 16.5vw;
    line-height: 0.8;
    font-weight: 600;
    letter-spacing: -0.06em;
    white-space: nowrap;
    color: rgb(246 244 238 / 0.06);
    pointer-events: none;
    user-select: none;
}
@media (min-width: 640px) { .footer-brand-big { margin-top: 5rem; } }
@media (min-width: 1536px) { .footer-brand-big { font-size: 15.5rem; } }

.footer-bottom {
    order: 3;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgb(255 255 255 / 0.1);
    font-size: 0.75rem;
    line-height: 1.1rem;
    color: rgb(246 244 238 / 0.55);
}
@media (min-width: 640px) {
    .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (min-width: 640px) { .footer-bottom { padding-right: 3.5rem; } }
.footer-location { font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }

/* ── Scroll reveal ────────────────────────────────────────── */
/* Una sola lista de transiciones: la entrada (opacity/transform) más los
   efectos hover de las tarjetas (translate/box-shadow/border/background). */
.reveal {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition:
        opacity 0.9s var(--ease-out),
        transform 0.9s var(--ease-out),
        translate 0.5s var(--ease-out),
        box-shadow 0.5s var(--ease-out),
        border-color 0.5s var(--ease-out),
        background-color 0.5s var(--ease-out);
}
[data-reveal-group] > .reveal,
[data-reveal-group] .process-card.reveal {
    transform: translate3d(0, 28px, 0);
    transition-duration: 0.85s, 0.85s, 0.5s, 0.5s, 0.5s, 0.5s;
}
.reveal.visible,
[data-reveal-group] > .reveal.visible,
[data-reveal-group] .process-card.reveal.visible { opacity: 1; transform: none; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1099px) {
    .service-card--featured { min-height: 500px; }
}

@media (max-width: 1023px) {
    .yiki-visual { order: -1; }
    .about-text p:first-child { font-size: 1.2rem; }

    /* Menú móvil: panel lateral sobre papel con índice editorial */
    .nav-toggle { display: inline-flex; }
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 2;
        width: min(88vw, 24rem);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0.25rem;
        padding: 6rem 0.75rem 1.5rem;
        border-left: 1px solid var(--line);
        background: var(--paper);
        counter-reset: navi;
        transform: translateX(105%);
        visibility: hidden;
        transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), visibility 0s linear 0.5s;
    }
    .nav-links.open {
        transform: none;
        visibility: visible;
        box-shadow: 0 0 0 100vmax rgb(6 35 26 / 0.45);
        transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), visibility 0s;
    }
    #navbar .nav-links .nav-link {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        padding: 0.75rem;
        border-radius: var(--radius-2xl);
        font-size: 2rem;
        line-height: 1;
        font-weight: 600;
        letter-spacing: -0.04em;
        color: var(--ink);
    }
    #navbar .nav-links .nav-link:hover { background: var(--paper-2); }
    #navbar .nav-links .nav-link.active { color: var(--forest-700); }
    .nav-links .nav-link::before { display: none; }
    .nav-links .nav-link::after {
        counter-increment: navi;
        content: "0" counter(navi);
        font-size: 0.75rem;
        line-height: 1rem;
        font-weight: 500;
        letter-spacing: 0;
        font-variant-numeric: tabular-nums;
        color: var(--ink-muted);
    }
    #navbar .nav-links .nav-cta {
        justify-content: center;
        height: 3.25rem;
        margin: auto 0.75rem 0;
        font-size: 1rem;
        background: var(--forest-900);
        color: var(--paper);
        box-shadow: 0 16px 32px -16px rgb(6 35 26 / 0.75);
    }
    #navbar .nav-links .nav-cta:hover { background: var(--forest-800); }
}

@media (max-width: 767px) {
    .service-card--banner { min-height: 360px; }
    .service-card--featured { min-height: 520px; }
    .about-affiliation { align-items: flex-start; }
}

@media (max-width: 768px) {
    .process-card { flex: 0 0 calc(82vw - 2rem); min-width: 260px; }
}

/* INFO-02 · el texto de la tarjeta destacada no tapa la rejilla INPUT del canvas */
@media (max-width: 767px) {
    .service-card--featured .card-inner { padding-top: calc(5rem + 22vw); }
}
@media (min-width: 768px) and (max-width: 1099px) {
    .service-card--featured { min-height: 700px; }
}
@media (min-width: 1100px) and (max-width: 1279px) {
    .service-card--featured { min-height: 640px; }
}

@media (max-width: 479px) {
    .hero-actions .btn { width: 100%; }
    .camacoes-logo { width: 60px; height: 60px; min-width: 60px; }
}

/* ── Movimiento reducido ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0ms !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
    }
    .reveal, [data-reveal-group] > .reveal { transform: none; }
    .process-scroll-track { scroll-behavior: auto; }
    .title-line .word { transform: none; }
}
