/* systemctl · Automatización con IA — landing cinemática
   Manual de marca v2.0: verde #7CB342 · grafito #45494E · #666666 · #F5F5F5 · #FFFFFF
   Concepto "el plano del criterio": estudio claro, líneas grafito, verde solo para puntos de control. */

@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/open-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/open-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  --green: #7CB342;
  --green-ink: #4F7A22;                 /* verde para texto sobre blanco (contraste AA) */
  --green-soft: rgba(124, 179, 66, .16);
  --green-line: rgba(124, 179, 66, .6);
  --amber: #C98A12;
  --graphite: #45494E;
  --ink: #2A2D31;                       /* grafito profundo para texto y bloques oscuros */
  --ink-2: #33373B;
  --gray: #666666;
  --cloud: #F5F5F5;
  --white: #FFFFFF;
  --line: rgba(69, 73, 78, .16);
  --line-strong: rgba(69, 73, 78, .32);
  --on-dark: rgba(255, 255, 255, .92);
  --muted-dark: rgba(255, 255, 255, .66);
  --line-dark: rgba(255, 255, 255, .14);

  --font-head: "Montserrat", Arial, sans-serif;
  --font-body: "Open Sans", Arial, sans-serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(20px, 5vw, 72px);
  --maxw: 1260px;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; margin: 0; letter-spacing: -.02em; color: var(--ink); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--green-ink); outline-offset: 3px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* Punto de control: el motivo gráfico (cuadrado verde) */
.cp { display: inline-block; width: 12px; height: 12px; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); flex: none; }

/* ---------- Tipografía ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; line-height: 1.4; font-family: var(--font-head); font-weight: 600; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--green-ink); }
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--green); }
.display { font-size: clamp(38px, 5.4vw, 80px); font-weight: 700; letter-spacing: -.03em; }
.h2 { font-size: clamp(30px, 3.8vw, 54px); font-weight: 700; letter-spacing: -.025em; }
.h3x { font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; }
.lead { font-size: clamp(17px, 1.3vw, 19.5px); color: var(--gray); max-width: 58ch; }
.claim { display: flex; align-items: center; gap: 14px; font-family: var(--font-head); font-weight: 600; font-size: clamp(18px, 1.7vw, 24px); color: var(--green-ink); }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 0; font-family: var(--font-head); font-weight: 600; font-size: 15px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background-color .25s var(--ease-out), color .25s, border-color .25s, transform .2s var(--ease-out); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--green); color: #1E2124; }
.btn-primary:hover { background: #8CC152; }
.btn-line { border-color: var(--line-strong); color: var(--ink); background: var(--white); }
.btn-line:hover { border-color: var(--ink); }
.btn-wa { background: var(--ink); color: var(--white); }
.btn-wa:hover { background: #1C1F22; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-wa svg { fill: #8CC152; }
.btn .arrow { transition: transform .25s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: 15px; text-decoration: none; color: var(--ink); border-bottom: 1.5px solid var(--line-strong); padding-bottom: 2px; }
.link-arrow:hover { border-color: var(--green); }

/* ---------- Navegación ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h); display: flex; align-items: center; background: rgba(255,255,255,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); transition: box-shadow .4s; }
.nav.is-solid { box-shadow: 0 10px 30px -24px rgba(42,45,49,.6); }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.logo { display: inline-flex; flex: none; }
.logo img { height: 32px; width: auto; }
.nav-links { display: flex; gap: clamp(16px, 1.8vw, 28px); list-style: none; margin: 0; padding: 0; }
.nav-links a { position: relative; text-decoration: none; font-family: var(--font-head); font-weight: 500; font-size: 14px; color: var(--graphite); padding: 6px 0; transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
.nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--ink); }
.nav-links a[aria-current="true"]::after { transform: scaleX(1); }
.nav .btn { min-height: 42px; font-size: 14px; padding: 0 18px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); width: 44px; height: 44px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: currentColor; margin: 5px auto; transition: transform .3s var(--ease-out), opacity .2s; }
.lang-switch { display: flex; align-items: center; gap: 2px; margin-left: auto; margin-right: 4px; font-family: var(--font-head); font-size: 12.5px; font-weight: 600; letter-spacing: .08em; }
.lang-switch a { padding: 8px; text-decoration: none; color: #8A8E93; transition: color .2s; }
.lang-switch a:hover, .lang-switch a[aria-current="true"] { color: var(--ink); }
.lang-switch a + a { position: relative; }
.lang-switch a + a::before { content: ""; position: absolute; left: -1px; top: 50%; height: 12px; width: 1px; background: var(--line-strong); transform: translateY(-50%); }
@media (min-width: 1181px) { .lang-switch { margin-left: 0; } }

/* ---------- Escenas ---------- */
.scene { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: #EEF0EE; }
.scene-media { position: absolute; inset: 0; }
.scene-media canvas, .scene-media img.poster { width: 100%; height: 100%; object-fit: cover; }
.scene-media img.poster { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; }
.scene.is-static .scene-media img.poster { opacity: 1; }
.scene.is-static .scene-media canvas { display: none; }
.scene-shade { position: absolute; inset: 0; pointer-events: none; }
.shade-left { background: linear-gradient(90deg, rgba(250,250,249,.97) 0%, rgba(250,250,249,.9) 34%, rgba(250,250,249,.35) 60%, rgba(250,250,249,0) 78%); }
.shade-bottom { background: linear-gradient(0deg, rgba(250,250,249,.98) 0%, rgba(250,250,249,.9) 30%, rgba(250,250,249,.2) 58%, rgba(250,250,249,0) 75%); }
.shade-flow { background: linear-gradient(90deg, rgba(250,250,249,.96) 0%, rgba(250,250,249,.86) 30%, rgba(250,250,249,.1) 58%, rgba(250,250,249,0) 100%), linear-gradient(0deg, rgba(250,250,249,.92) 0%, rgba(250,250,249,0) 30%); }
.scene-overlay { position: absolute; inset: 0; display: flex; align-items: center; padding-top: var(--nav-h); }
.scene-overlay > .container { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.overlay-bottom { align-items: flex-end; }
.overlay-bottom > .container { justify-content: flex-end; padding-bottom: clamp(44px, 7vh, 88px); }
.scene-copy { max-width: 600px; display: grid; gap: 22px; }
.reveal { will-change: opacity, transform; }
.progress-rail { position: absolute; right: calc(var(--gutter) / 2); top: 50%; transform: translateY(-50%); width: 2px; height: 120px; background: var(--line); overflow: hidden; }
.progress-rail i { position: absolute; inset: 0; background: var(--green); transform-origin: top; transform: scaleY(0); }
.scene-loader { position: absolute; left: var(--gutter); bottom: 24px; height: 2px; width: 120px; background: var(--line); overflow: hidden; transition: opacity .5s; }
.scene-loader i { display: block; height: 100%; width: 0; background: var(--green); transition: width .3s; }
.scene.is-ready .scene-loader { opacity: 0; }

/* Hero */
.hero .scene-copy { max-width: 700px; gap: 20px; }
.hero .display { max-width: 17ch; font-size: clamp(36px, 4.5vw, 66px); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 4px; }
.spec-strip { position: absolute; left: 0; right: 0; bottom: 0; border-top: 1px solid var(--line); background: rgba(255,255,255,.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.spec-strip ul { list-style: none; margin: 0; padding: 16px 0; display: flex; flex-wrap: wrap; gap: 8px 30px; font-family: var(--font-head); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--graphite); }
.spec-strip li { display: flex; align-items: center; gap: 10px; }
.spec-strip li::before { content: ""; width: 7px; height: 7px; background: var(--green); }
.scroll-hint { position: absolute; right: var(--gutter); bottom: 80px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gray); display: flex; align-items: center; gap: 10px; }
.scroll-hint i { width: 1px; height: 36px; background: linear-gradient(var(--green), transparent); }

/* ---------- Secciones ---------- */
.section { position: relative; padding: clamp(88px, 11vw, 150px) 0; }
.section-white { background: var(--white); }
.section-cloud { background: var(--cloud); }
.section-ink { background: var(--ink); color: var(--on-dark); }
.section-ink h2, .section-ink h3, .section-ink h4 { color: var(--white); }
.section-ink .lead { color: var(--muted-dark); }
.section-ink .eyebrow { color: #A5D06F; }
.section-head { display: grid; gap: 20px; max-width: 780px; margin-bottom: clamp(44px, 6vw, 76px); }
.grid-bg { background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; background-position: -1px -1px; }
.grid-bg::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.4) 0%, rgba(255,255,255,.94) 70%); pointer-events: none; }
.grid-bg > .container { position: relative; }

/* Qué automatizamos: cuatro verbos en profundidad */
.verbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; perspective: 1400px; border: 1px solid var(--line-strong); background: var(--white); }
.verb { position: relative; padding: clamp(24px, 2.4vw, 34px); display: grid; gap: 12px; align-content: start; background: var(--white); transform-origin: 50% 0; }
.verb + .verb { border-left: 1px solid var(--line-strong); }
.verb .vn { font-family: var(--font-head); font-weight: 600; font-size: 13px; letter-spacing: .1em; color: var(--gray); }
.verb h3 { font-size: clamp(24px, 2.2vw, 32px); font-weight: 700; }
.verb p { color: var(--gray); font-size: 16px; }
.verb::after { content: ""; position: absolute; right: -7px; top: 38px; width: 12px; height: 12px; background: var(--white); border: 1.5px solid var(--line-strong); z-index: 2; }
.verb:last-child::after { display: none; }
.verb.is-check { background: linear-gradient(180deg, rgba(124,179,66,.1), rgba(124,179,66,0) 70%), var(--white); }
.verb.is-check h3 { display: flex; align-items: center; gap: 12px; }
.verb.is-check h3::after { content: ""; width: 12px; height: 12px; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.recognize { margin-top: clamp(40px, 5vw, 64px); display: grid; gap: 18px; }
.recognize-q { font-family: var(--font-head); font-weight: 600; font-size: clamp(18px, 1.5vw, 21px); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid var(--line-strong); background: var(--white); font-size: 15px; color: var(--ink); transition: border-color .25s, background-color .25s; }
.chips li::before { content: ""; width: 7px; height: 7px; border: 1.5px solid var(--graphite); }
.chips li:hover { border-color: var(--green); }
.chips li:hover::before { background: var(--green); border-color: var(--green); }

/* Servicios */
.services { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.svc { grid-column: span 2; position: relative; padding: clamp(24px, 2.4vw, 32px); background: var(--white); border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; transition: border-color .3s, transform .4s var(--ease-out), box-shadow .4s var(--ease-out); }
.svc:hover { border-color: var(--line-strong); transform: translateY(-4px); box-shadow: 0 24px 40px -30px rgba(42,45,49,.45); }
.svc-main { grid-column: span 4; grid-row: span 2; background: var(--ink); border-color: var(--ink); color: var(--on-dark); align-content: end; min-height: 340px; }
.svc-main h3 { color: var(--white); font-size: clamp(26px, 2.6vw, 36px); max-width: 16ch; }
.svc-main p { color: var(--muted-dark); max-width: 52ch; }
.svc-main::before { content: ""; position: absolute; top: clamp(24px, 2.4vw, 32px); right: clamp(24px, 2.4vw, 32px); width: 14px; height: 14px; background: var(--green); box-shadow: 0 0 0 5px rgba(124,179,66,.22); }
.svc-n { font-family: var(--font-head); font-weight: 600; font-size: 13px; letter-spacing: .1em; color: var(--green-ink); }
.svc-main .svc-n { color: #A5D06F; }
.svc h3 { font-size: 20px; font-weight: 700; }
.svc p { color: var(--gray); font-size: 15.5px; }
.svc-tags { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.svc-tags li { padding: 6px 12px; border: 1px solid var(--line-dark); font-size: 13px; color: var(--on-dark); font-family: var(--font-head); font-weight: 500; }
.services .svc:nth-child(4), .services .svc:nth-child(5) { grid-column: span 3; }

/* Diferencial */
.criterio .scene-copy { max-width: 560px; }
.criterio .h2 { max-width: 15ch; }
.years { display: flex; align-items: center; gap: 18px; padding-top: 18px; border-top: 1px solid var(--line-strong); max-width: 520px; }
.years b { font-family: var(--font-head); font-weight: 700; font-size: clamp(52px, 5vw, 72px); line-height: .9; color: var(--ink); letter-spacing: -.04em; }
.years span { font-size: 15.5px; color: var(--graphite); }
.rules { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-42%); width: min(380px, 32vw); list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rule { padding: 18px 20px 18px 50px; position: relative; background: rgba(255,255,255,.94); border: 1px solid var(--line-strong); box-shadow: 0 24px 40px -30px rgba(42,45,49,.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.rule::before { content: ""; position: absolute; left: 20px; top: 23px; width: 12px; height: 12px; border: 1.5px solid var(--graphite); }
.rule.is-go::before { background: var(--green); border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.rule.is-ask::before { border-color: var(--amber); background: rgba(201,138,18,.2); }
.rq { display: block; font-family: var(--font-head); font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.rule p { font-size: 14.5px; color: var(--gray); }

/* Cómo funciona */
.flow .scene-overlay > .container { justify-content: center; gap: clamp(20px, 4vh, 40px); }
.flow-head { display: grid; gap: 14px; }
.flow-head .h2 { max-width: 14ch; font-size: clamp(28px, 3.2vw, 46px); }
.flow-stage { display: grid; grid-template-columns: minmax(260px, 400px) 1fr; gap: 40px; align-items: end; }
.steps5 { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.steps5 li { display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; padding: 9px 0 9px 16px; border-left: 2px solid var(--line); color: var(--gray); transition: color .35s, border-color .35s; }
.steps5 .sn { grid-row: span 2; width: 28px; height: 28px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 13px; border: 1.5px solid var(--line-strong); color: var(--gray); background: var(--white); transition: all .35s var(--ease-out); }
.steps5 b { font-family: var(--font-head); font-weight: 600; font-size: 17px; color: var(--graphite); padding-top: 2px; }
.steps5 p { font-size: 14.5px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .45s var(--ease-out), opacity .35s, margin .35s; }
.steps5 li.is-done .sn { background: var(--graphite); border-color: var(--graphite); color: var(--white); }
.steps5 li.is-active { border-color: var(--green); }
.steps5 li.is-active .sn { background: var(--green); border-color: var(--green); color: #1E2124; box-shadow: 0 0 0 4px var(--green-soft); }
.steps5 li.is-active b { color: var(--ink); }
.steps5 li.is-active p { max-height: 80px; opacity: 1; margin-top: 4px; color: var(--graphite); }
.steps5.is-static p { max-height: none; opacity: 1; margin-top: 4px; }
.steps5.is-static li { border-color: var(--green); }
.pipe-wrap { perspective: 1100px; padding: 0 30px 34px; }
.pipe { position: relative; height: 150px; transform: rotateX(52deg) rotateZ(-6deg); transform-style: preserve-3d; }
.pipe-track { position: absolute; left: 0; right: 0; top: 50%; height: 4px; background: rgba(69,73,78,.25); }
.pipe-track i { position: absolute; inset: 0; background: var(--green); transform-origin: left; transform: scaleX(0); }
.pnode { position: absolute; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; background: var(--white); border: 2px solid var(--graphite); transition: background-color .3s, border-color .3s, box-shadow .3s; }
.pnode.is-on { background: var(--graphite); }
.pnode.is-cp.is-on { background: var(--green); border-color: var(--green); box-shadow: 0 0 0 6px var(--green-soft); }
.packet { position: absolute; top: 50%; left: 0; transform: translate(-50%, -130%) rotateX(-52deg); transform-origin: 50% 100%; display: grid; gap: 4px; padding: 10px 14px; min-width: 176px; background: var(--white); border: 1px solid var(--line-strong); box-shadow: 0 26px 30px -20px rgba(42,45,49,.55); white-space: nowrap; }
.pk-id { font-family: var(--font-head); font-weight: 700; font-size: 13px; color: var(--ink); }
.pk-state { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--graphite); }
.pk-state::before { content: ""; width: 8px; height: 8px; background: var(--graphite); }
.packet.is-check .pk-state::before { background: var(--amber); }
.packet.is-done .pk-state::before { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.flow-mobile { display: none; }

/* Taller: tablero inclinado */
.taller { padding: 0; }
.taller-pin { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 24px) 0 40px; }
.taller-grid { display: grid; grid-template-columns: minmax(300px, .75fr) 1.25fr; gap: clamp(32px, 5vw, 80px); align-items: center; width: 100%; }
.taller-copy { display: grid; gap: 20px; }
.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--on-dark); }
.ticks li::before { content: ""; width: 10px; height: 10px; background: var(--green); flex: none; }
.tag-illustrative { font-family: var(--font-head); font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-dark); }
.board-wrap { perspective: 1600px; }
.board { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; height: 440px; transform: rotateX(20deg) rotateY(-9deg) rotateZ(1deg); transform-style: preserve-3d; }
.bcol { border: 1px solid var(--line-dark); background: rgba(255,255,255,.035); padding: 12px 10px; }
.bcol h4 { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-dark); }
.bcol:nth-of-type(5) { border-color: rgba(124,179,66,.5); background: rgba(124,179,66,.07); }
.bcol-hu { border-color: rgba(224,165,55,.45); background: rgba(224,165,55,.06); }
.bcard.is-warn .bst::before { background: #E0A537; }
.bcard { position: absolute; left: 0; width: calc((100% - 32px) / 5); padding: 10px 10px 12px; background: var(--white); color: var(--ink); display: grid; gap: 6px; box-shadow: 0 18px 24px -14px rgba(0,0,0,.6); transform: translateZ(24px); will-change: left, top; }
.bcard b { font-family: var(--font-head); font-size: 12.5px; font-weight: 700; line-height: 1.25; }
.bst { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--gray); line-height: 1.3; }
.bst::before { content: ""; width: 7px; height: 7px; flex: none; background: var(--graphite); }
.bcard.is-review .bst::before { background: var(--amber); }
.bcard.is-done .bst::before { background: var(--green); }
.bcard.is-done { outline: 2px solid var(--green); }
.bbar { display: block; height: 3px; background: var(--cloud); position: relative; overflow: hidden; }
.bbar i { position: absolute; inset: 0; background: var(--green); transform-origin: left; transform: scaleX(0); }

/* Control */
.control-copy { max-width: 1000px; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.pillars p { display: grid; gap: 6px; font-size: 15px; color: var(--graphite); border-top: 2px solid var(--ink); padding-top: 14px; align-content: start; }
.pillars span { font-family: var(--font-head); font-size: 15px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.pillars span::before { content: ""; width: 8px; height: 8px; background: var(--green); }

/* Método */
.metodo .scene-copy { max-width: 540px; }
.method { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 0; counter-reset: m; }
.method li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line-strong); }
.method li:last-child { border-bottom: 1px solid var(--line-strong); }
.mn { width: 34px; height: 34px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 14px; background: var(--ink); color: var(--white); }
.method li:nth-child(2) .mn { background: var(--green); color: #1E2124; }
.method b { font-family: var(--font-head); font-weight: 700; font-size: 17px; }
.method p { font-size: 15px; color: var(--gray); }

/* Sector (secundario) */
.sector { padding: clamp(64px, 8vw, 104px) 0; }
.sector-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.sector-grid > div { display: grid; gap: 16px; }
.sector-grid > div p { color: var(--gray); max-width: 60ch; }
.glos-card { display: grid; gap: 14px; padding: 26px; background: var(--white); border: 1px solid var(--line); text-decoration: none; transition: border-color .3s, transform .4s var(--ease-out), box-shadow .4s; }
.glos-card:hover { border-color: #8A2E9E; transform: translateY(-3px); box-shadow: 0 24px 40px -30px rgba(91,42,140,.5); }
.glos-card img { height: 46px; width: auto; }
.glos-card p { font-size: 15px; color: var(--gray); }
.link-more { font-family: var(--font-head); font-weight: 600; font-size: 14px; color: #6A2B92; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-list details { border-bottom: 1px solid var(--line-strong); }
.faq-list summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font-family: var(--font-head); font-weight: 600; font-size: clamp(17px, 1.35vw, 19.5px); color: var(--ink); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease-out); }
.faq-list details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-list details[open] summary { color: var(--green-ink); }
.faq-list .answer { padding: 0 44px 24px 0; color: var(--gray); font-size: 16.5px; }

/* Contacto */
.contact { overflow: hidden; background: var(--cloud); }
.contact-bg { position: absolute; inset: 0; }
.contact-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; opacity: .55; }
.contact-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(245,245,245,.97) 0%, rgba(245,245,245,.9) 45%, rgba(245,245,245,.7) 100%); }
.contact-grid { position: relative; display: grid; grid-template-columns: 1fr minmax(340px, 500px); gap: clamp(32px, 5vw, 80px); align-items: center; }
.contact-copy { display: grid; gap: 20px; }
.contact-copy .h2 { max-width: 16ch; }
.direct { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.form-panel { padding: clamp(22px, 2.4vw, 32px); background: var(--white); border: 1px solid var(--line); box-shadow: 0 40px 60px -40px rgba(42,45,49,.45); }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field textarea { width: 100%; padding: 13px 14px; border-radius: 0; border: 1px solid var(--line-strong); background: var(--white); color: var(--ink); font: inherit; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green-ink); box-shadow: 0 0 0 3px var(--green-soft); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.privacy { font-size: 13px; color: var(--gray); }
.form-status { font-size: 14px; color: var(--green-ink); min-height: 1.4em; }

.footer { padding: 30px 0; background: var(--ink); color: var(--muted-dark); font-size: 14px; }
.footer .container { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.foot-brand { display: inline-flex; align-items: center; gap: 12px; }
.foot-brand img { width: 24px; height: auto; }
.footer nav { display: flex; gap: 24px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--white); }

.veil { position: fixed; inset: 0; z-index: 45; background: var(--white); opacity: 0; pointer-events: none; transition: opacity .28s var(--ease-out); }
.veil.is-on { opacity: 1; }


/* Hero: verbos destacados */
.verbs-inline { box-shadow: inset 0 -.14em 0 rgba(124,179,66,.45); }

/* ---------- Casos por sector ---------- */
.case-ui { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.case-tabs { display: grid; gap: 8px; }
.ctab { text-align: left; display: grid; gap: 4px; padding: 16px 18px 16px 22px; background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--line-strong); cursor: pointer; color: var(--ink); transition: border-color .3s, box-shadow .3s, transform .3s var(--ease-out); }
.ctab b { font-family: var(--font-head); font-size: 16.5px; font-weight: 700; }
.ctab span { font-size: 14px; color: var(--gray); line-height: 1.45; }
.ctab:hover { border-color: var(--line-strong); }
.ctab.is-active { border-left-color: var(--green); box-shadow: 0 20px 34px -28px rgba(42,45,49,.55); transform: translateX(6px); }
.ctab-minor { background: transparent; border-style: dashed; border-left-style: solid; }
.ctab-minor b { font-size: 14.5px; }
.case-stage { position: relative; perspective: 1500px; }
.case-panel { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 22px; align-items: start; transform-style: preserve-3d; }
.case-panel[hidden] { display: none; }
.case-panel.is-active .phone { animation: tiltIn .7s var(--ease-out) both; }
.case-panel.is-active .alog { animation: tiltIn2 .7s .08s var(--ease-out) both; }
@keyframes tiltIn { from { opacity: 0; transform: rotateY(18deg) translateX(-20px); } to { opacity: 1; transform: rotateY(6deg); } }
@keyframes tiltIn2 { from { opacity: 0; transform: rotateY(-14deg) translateX(20px); } to { opacity: 1; transform: rotateY(-4deg); } }
.phone { transform: rotateY(6deg); background: #EEF1EC; border: 1px solid var(--line-strong); box-shadow: 0 40px 60px -40px rgba(42,45,49,.6); min-height: 430px; display: flex; flex-direction: column; }
.ph-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--ink); color: var(--white); }
.ph-head .cp { width: 10px; height: 10px; box-shadow: 0 0 0 3px rgba(124,179,66,.3); }
.ph-head b { font-family: var(--font-head); font-size: 13.5px; font-weight: 600; }
.ph-head span { margin-left: auto; font-size: 11.5px; color: var(--muted-dark); letter-spacing: .06em; text-transform: uppercase; }
.chat { list-style: none; margin: 0; padding: 14px; display: grid; gap: 10px; align-content: start; flex: 1; }
.m { max-width: 86%; padding: 9px 12px; font-size: 14px; line-height: 1.45; box-shadow: 0 2px 4px rgba(42,45,49,.08); }
.m.a { background: var(--white); border-left: 3px solid var(--green); justify-self: start; }
.m.a.warn { border-left-color: #E0A537; }
.m.c { background: #DCEBC9; justify-self: end; }
.file { display: inline-block; margin-right: 8px; padding: 1px 6px; font-family: var(--font-head); font-size: 10.5px; font-weight: 700; background: var(--ink); color: var(--white); vertical-align: 1px; }
.js:not(.reduced) .chat .m { opacity: 0; transform: translateY(8px); transition: opacity .35s var(--ease-out), transform .35s var(--ease-out); }
.js:not(.reduced) .chat .m.is-in { opacity: 1; transform: none; }
.alog { transform: rotateY(-4deg); background: var(--white); border: 1px solid var(--line-strong); padding: 20px 22px; display: grid; gap: 14px; box-shadow: 0 40px 60px -42px rgba(42,45,49,.55); }
.alog h4 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gray); font-weight: 600; }
.alog ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.alog li { position: relative; padding: 9px 0 9px 30px; font-size: 15px; border-top: 1px solid var(--line); }
.alog li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 11px; height: 11px; border: 1.5px solid var(--line-strong); background: var(--white); transition: all .3s var(--ease-out); }
.alog li.is-in.ok::before { background: var(--green); border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.alog li.is-in.wa::before { background: #E0A537; border-color: #E0A537; }
.alog li.is-in.hu::before { background: var(--ink); border-color: var(--ink); }
.alog li.hu { font-weight: 600; padding-right: 84px; }
.alog li.hu::after { content: "Persona"; position: absolute; right: 0; top: 10px; font-size: 10.5px; font-family: var(--font-head); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--graphite); border: 1px solid var(--line-strong); padding: 1px 6px; }
.js:not(.reduced) .alog li { color: #A4A7AB; transition: color .3s; }
.js:not(.reduced) .alog li.is-in { color: var(--ink); }
.reduced .alog li::before, .alog li.ok.is-in::before { }
.alog-note { font-size: 13px; color: var(--gray); }
.badge-ok { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; background: rgba(124,179,66,.16); color: var(--green-ink); font-family: var(--font-head); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.badge-ok::before { content: ""; width: 8px; height: 8px; background: var(--green); }
.js:not(.reduced) .alog-res { opacity: 0; transition: opacity .4s; }
.js:not(.reduced) .alog-res.is-in { opacity: 1; }
.case-foot { margin-top: 18px; font-size: 13px; color: var(--gray); }
.case-panel { margin-bottom: 0; }

/* ---------- Calculadora ---------- */
.hours-grid { display: grid; grid-template-columns: 1fr minmax(320px, 480px); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hours-copy { display: grid; gap: 20px; }
.calc { display: grid; gap: 20px; padding: clamp(22px, 2.6vw, 34px); background: var(--white); border: 1px solid var(--line-strong); box-shadow: 0 40px 60px -42px rgba(42,45,49,.5); }
.calc-row { display: grid; gap: 10px; grid-template-columns: 1fr auto; align-items: center; }
.calc-row label { grid-column: 1 / -1; font-size: 14.5px; font-weight: 600; }
.stepper { justify-self: start; display: inline-grid; grid-template-columns: 44px 80px 44px; border: 1px solid var(--line-strong); }
.stepper button { border: 0; background: var(--cloud); font-size: 20px; cursor: pointer; color: var(--ink); }
.stepper button:hover { background: #E9ECE6; }
.stepper input { border: 0; text-align: center; font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--ink); width: 100%; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc input[type=range] { width: 100%; accent-color: var(--green); }
.calc output { font-family: var(--font-head); font-weight: 700; font-size: 18px; min-width: 52px; text-align: right; }
.calc-result { padding: 18px 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.calc-result p { display: flex; align-items: baseline; gap: 12px; }
.calc-result p:first-child b { font-family: var(--font-head); font-size: clamp(48px, 5vw, 68px); line-height: 1; letter-spacing: -.03em; color: var(--ink); }
.calc-result span { font-family: var(--font-head); font-weight: 600; font-size: 18px; color: var(--graphite); }
.calc-sub { margin-top: 6px; font-size: 15px; color: var(--gray); }
.calc-sub b { color: var(--ink); }
.calc-note { font-size: 13px; color: var(--gray); }
.calc .btn { justify-self: start; }

/* Formulario: selector */
.field select { width: 100%; padding: 13px 40px 13px 14px; border-radius: 0; border: 1px solid var(--line-strong); background: var(--white); color: var(--ink); font: inherit; font-size: 16px; appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--graphite) 50%), linear-gradient(135deg, var(--graphite) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select:focus { outline: none; border-color: var(--green-ink); box-shadow: 0 0 0 3px var(--green-soft); }

@media (max-width: 1100px) {
  .case-ui { grid-template-columns: 1fr; }
  .case-tabs { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .ctab.is-active { transform: none; }
}
@media (max-width: 860px) {
  .case-tabs { display: flex; overflow-x: auto; gap: 8px; scroll-snap-type: x mandatory; padding-bottom: 6px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); }
  .ctab { flex: 0 0 72%; scroll-snap-align: start; }
  .case-panel { grid-template-columns: 1fr; }
  .phone, .alog { transform: none !important; animation: none !important; }
  .phone { min-height: 0; }
  .hours-grid { grid-template-columns: 1fr; }
  .calc-result p:first-child b { font-size: 48px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav-links, .nav .btn-nav { display: none; }
  .nav-toggle { display: block; }
  .nav.is-open { height: auto; padding-bottom: 20px; align-items: flex-start; background: var(--white); }
  .nav.is-open .container { flex-wrap: wrap; padding-top: 14px; }
  .nav.is-open .nav-links { display: grid; gap: 4px; width: 100%; order: 3; padding-top: 12px; }
  .nav.is-open .nav-links a { display: block; padding: 12px 0; font-size: 19px; }
  .nav.is-open .btn-nav { display: inline-flex; order: 4; margin-top: 10px; }
  .nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .verbs { grid-template-columns: repeat(2, 1fr); }
  .verb:nth-child(3) { border-left: 0; }
  .verb:nth-child(n+3) { border-top: 1px solid var(--line-strong); }
  .verb:nth-child(2)::after { display: none; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .svc, .svc-main, .services .svc:nth-child(4), .services .svc:nth-child(5) { grid-column: span 1; grid-row: auto; }
  .svc-main { grid-column: span 2; min-height: 0; }
  .rules { width: min(340px, 38vw); }
  .flow-stage { grid-template-columns: minmax(240px, 340px) 1fr; }
  .board { height: 380px; }
}
@media (max-width: 860px) {
  :root { --nav-h: 64px; }
  body { font-size: 16.5px; }
  .logo img { height: 28px; }
  .display { font-size: clamp(34px, 9.6vw, 50px); }
  .h2 { font-size: clamp(28px, 7.8vw, 40px); }
  .lead { font-size: 16.5px; }
  .shade-left, .shade-flow { background: linear-gradient(0deg, rgba(250,250,249,.98) 0%, rgba(250,250,249,.92) 50%, rgba(250,250,249,.3) 78%, rgba(250,250,249,0) 100%); }
  .scene-overlay { align-items: flex-end; }
  .scene-overlay > .container { justify-content: flex-end; padding-bottom: 80px; }
  .hero .scene-overlay > .container { padding-bottom: 120px; }
  .scroll-hint, .progress-rail { display: none; }
  .spec-strip ul { gap: 6px 16px; font-size: 10.5px; padding: 12px 0; }
  .verbs { grid-template-columns: 1fr; }
  .verb + .verb { border-left: 0; border-top: 1px solid var(--line-strong); }
  .verb::after { display: none; }
  .services { grid-template-columns: 1fr; }
  .svc-main { grid-column: auto; }
  .rules { position: relative; right: auto; top: auto; transform: none; width: 100%; margin-top: 18px; gap: 8px; }
  .rule { padding: 12px 14px 12px 40px; }
  .rule::before { left: 14px; top: 17px; }
  .rule p { font-size: 13.5px; }
  .criterio .lead { display: none; }
  .years { display: none; }
  .criterio .scene-overlay > .container { padding-bottom: 40px; }
  /* Cómo funciona: en móvil, vídeo fijado con pasos compactos y lista completa debajo */
  .flow-stage { grid-template-columns: 1fr; gap: 12px; }
  .flow .steps5 li:not(.is-active) { display: none; }
  .pipe-wrap { padding: 0 24px 10px; }
  .pipe { height: 90px; }
  .packet { min-width: 140px; padding: 7px 10px; }
  .flow-mobile { display: block; padding: 56px 0; }
  .taller-pin { min-height: 0; padding: 72px 0; }
  .taller-grid { grid-template-columns: 1fr; }
  .board { height: 320px; transform: rotateX(18deg) rotateY(0deg); gap: 4px; }
  .bcol { padding: 8px 4px; }
  .bcol h4 { font-size: 8.5px; letter-spacing: .04em; }
  .bcard { padding: 6px; width: calc((100% - 16px) / 5); }
  .bcard b { font-size: 9.5px; }
  .bst { display: none; }
  .pillars { grid-template-columns: 1fr 1fr; gap: 12px 18px; }
  .pillars p { font-size: 13.5px; }
  .method li { padding: 10px 0; }
  .method p { font-size: 14px; }
  .sector-grid, .faq-grid, .contact-grid, .field-row { grid-template-columns: 1fr; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; } }
.reduced .scene { height: auto; min-height: 100vh; min-height: 100svh; }
.reduced .scene-overlay { position: relative; min-height: 100vh; min-height: 100svh; padding-top: calc(var(--nav-h) + 40px); padding-bottom: 60px; }
.reduced .reveal { opacity: 1 !important; transform: none !important; }
.reduced .rules { position: relative; right: auto; top: auto; transform: none; width: 100%; max-width: 460px; margin-top: 28px; }
.reduced .flow .steps5 p { max-height: none; opacity: 1; margin-top: 4px; }
.reduced .pipe-wrap { display: none; }
.reduced .taller-pin { min-height: 0; }
