/* ============================================================
   IOARQ · De la idea a la obra · estilos compartidos
   Paleta original (verde oliva, terracota, crema y pasteles).
   Inicio: visor de casos a pantalla grande. "Qué hacemos" y
   "Quiénes somos" llevan la parte explicativa.
   Sistema de espaciado de 8 px.
   ============================================================ */
:root {
  --paper: #fffaf2; --ink: #27332e; --olive: #356452; --olive-deep: #2b5243; --olive-night: #1f3a31;
  --line: #d9e0d5; --soft: #e5efdd; --terra: #ae4e30; --terra-text: #b35738; --terra-deep: #8e4830;
  --sand: #f4dfb9; --sand-card: #e9d5ae; --sand-light: #f3e6c9; --sand-block: #f7e8ce; --butter: #eee0b6; --gold: #f2d289;
  --c-rose: #f4d6c7; --c-sage: #d9e9d2; --c-sky: #dbe7ef; --c-butter: #eee0b6; --c-lilac: #e7dff0; --c-stone: #e5e7dc;
  --muted: #56625a; --on-olive-muted: #d7dccf;

  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --s-1: 8px; --s-2: 16px; --s-3: 24px; --s-4: 32px; --s-5: 48px; --s-6: 64px; --s-7: 96px;
  --gutter: clamp(16px, 4vw, 56px);
  --section-y: clamp(64px, 9vw, 120px);
  --maxw: 1440px;
  --hh: 72px;

  --r-xs: 8px; --r-sm: 12px; --r-md: 18px; --r-lg: 24px; --r-xl: 32px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgb(39 51 46 / .06), 0 2px 8px rgb(39 51 46 / .05);
  --shadow-md: 0 2px 4px rgb(39 51 46 / .05), 0 12px 28px rgb(39 51 46 / .09);
  --shadow-lg: 0 4px 10px rgb(94 77 40 / .07), 0 28px 56px rgb(94 77 40 / .18);
  --shadow-cta: 0 2px 4px rgb(142 72 48 / .18), 0 12px 24px rgb(174 78 48 / .26);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-wipe: cubic-bezier(.77, 0, .18, 1);
  --t: .25s var(--ease);
  --focus: 0 0 0 3px var(--paper), 0 0 0 6px var(--olive);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hh) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-xs); }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { margin: 0 0 var(--s-2); font-size: 14px; font-weight: 600; letter-spacing: .01em; color: var(--terra-deep); }
.note { font-size: 14px; line-height: 1.6; color: var(--muted); }
h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.04; letter-spacing: -.03em; }
.lead { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.6; }

/* ---------- Botones ---------- */
.primary, .pill { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 48px; border: 0; font-weight: 600; letter-spacing: .005em; transition: transform var(--t), box-shadow var(--t), background-color var(--t), color var(--t); }
.primary { padding: 14px 24px; border-radius: var(--r-sm); background: var(--terra); color: #fff; font-size: 16px; box-shadow: var(--shadow-sm); }
.primary span, .pill span, .text-link span, .ghost span { display: inline-block; transition: transform var(--t); }
.primary:hover { background: #9f4529; transform: translateY(-2px); box-shadow: var(--shadow-cta); }
.primary:hover span, .pill:hover span, .text-link:hover span, .ghost:hover span { transform: translate(3px, -3px); }
.primary:active { transform: translateY(0) scale(.99); box-shadow: var(--shadow-sm); }
.pill { padding: 10px 18px; border-radius: var(--r-sm); background: var(--olive); color: #fff; font-size: 14px; }
.pill:hover { background: var(--olive-deep); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.ghost { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 20px; border: 1px solid rgb(255 255 255 / .45); border-radius: var(--r-sm); background: rgb(255 255 255 / .1); color: #fff; font-weight: 600; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background-color var(--t), border-color var(--t), transform var(--t); }
.ghost:hover { background: rgb(255 255 255 / .2); border-color: #fff; transform: translateY(-1px); }
.text-link { display: inline-flex; gap: var(--s-1); align-items: center; font-weight: 600; color: var(--olive); border-bottom: 1px solid rgb(53 100 82 / .3); padding-bottom: 2px; transition: border-color var(--t); }
.text-link:hover { border-color: var(--olive); }

/* ---------- Encabezado ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgb(255 250 242 / .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color var(--t), box-shadow var(--t); }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgb(39 51 46 / .06); }
.header-inner { max-width: var(--maxw); margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); }
.brand { display: inline-flex; flex-direction: column; align-items: flex-start; padding: 6px 13px 8px; border-radius: var(--r-md); background: var(--olive); color: var(--paper); line-height: 1; transition: transform .35s var(--ease-out), box-shadow var(--t); }
.brand:hover { transform: translateY(-1px) rotate(-1.5deg); box-shadow: var(--shadow-md); }
.brand-mark { font-size: 34px; font-weight: 700; letter-spacing: -.04em; }
.brand small { margin-top: 3px; font-size: 8px; font-weight: 600; letter-spacing: .22em; }
nav { display: flex; align-items: center; gap: 4px; }
.nav-links { display: none; align-items: center; gap: 4px; }
.nav-links a { position: relative; padding: 12px 14px; font-size: 15px; font-weight: 500; }
.nav-links a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 1.5px; background: var(--olive); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-links a[aria-current="page"] { color: var(--olive); }
/* Menú en el celular: pestañas debajo del encabezado */
.tabs-mobile { display: flex; gap: 4px; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) 10px; overflow-x: auto; scrollbar-width: none; }
.tabs-mobile::-webkit-scrollbar { display: none; }
.tabs-mobile a { flex-shrink: 0; padding: 8px 14px; border-radius: var(--r-pill); background: var(--soft); color: var(--olive-deep); font-size: 14px; font-weight: 600; }
.tabs-mobile a[aria-current="page"] { background: var(--olive); color: #fff; }

/* ---------- Contenedor ---------- */
main { max-width: var(--maxw); margin: 0 auto; }
section { padding: var(--section-y) var(--gutter); }
.sectionhead { display: flex; flex-direction: column; gap: var(--s-2); margin-bottom: var(--s-5); }
.sectionhead .note { max-width: 400px; }

/* ============================================================
   VISOR DE CASOS (inicio)
   ============================================================ */
.viewer { padding: var(--s-2) 12px 0; }
.stage {
  position: relative; overflow: hidden; isolation: isolate;
  height: calc(100svh - var(--hh) - 120px); min-height: 560px; max-height: 900px;
  border-radius: var(--r-xl); background: var(--olive-night); color: #fff;
  box-shadow: var(--shadow-lg); touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.layer { position: absolute; inset: 0; clip-path: inset(0 100% 0 0); transform: scale(1.06); transition: clip-path 1s var(--ease-wipe), transform 1.6s var(--ease-out); }
.layer.is-on { clip-path: inset(0 0 0 0); transform: scale(1); }
.layer img, .layer video { width: 100%; height: 100%; object-fit: cover; }
.layer.contain { background: #fff; }
.layer.contain img { object-fit: contain; }
/* Comparador dentro del visor */
.layer .ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--x, 50%)) 0 0); }
.ba-handle { position: absolute; z-index: 3; top: 0; bottom: 0; left: var(--x, 50%); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 14px rgb(0 0 0 / .35); pointer-events: none; }
.ba-handle::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: var(--paper); color: var(--olive); font-size: 20px; font-weight: 700; letter-spacing: 4px; padding-left: 4px; box-shadow: 0 8px 24px rgb(0 0 0 / .3); }
.ba-range { all: unset; position: absolute; z-index: 6; inset: 0; display: block; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; }
.ba-range:focus-visible ~ .ba-handle::after { box-shadow: var(--focus), 0 8px 24px rgb(0 0 0 / .3); }
/* Velo para leer los textos sobre la imagen */
.stage::after { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; background: linear-gradient(180deg, rgb(20 32 27 / .55) 0%, transparent 32%, transparent 52%, rgb(20 32 27 / .78) 100%); }
.stage-top { position: absolute; z-index: 5; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-2); padding: clamp(20px, 3vw, 36px); pointer-events: none; }
.stage h1 { font-size: clamp(34px, 5.4vw, 76px); line-height: .96; letter-spacing: -.05em; text-shadow: 0 2px 24px rgb(0 0 0 / .25); }
.stage h1 em { color: var(--gold); letter-spacing: -.02em; padding-right: .06em; }
.stage-tag { flex-shrink: 0; padding: 7px 14px; border-radius: var(--r-pill); background: rgb(255 250 242 / .92); color: var(--olive-deep); font-size: 13px; font-weight: 600; transition: opacity .3s var(--ease); }
.stage-tag.is-changing { opacity: 0; }
.chat { position: absolute; z-index: 5; left: clamp(20px, 3vw, 36px); bottom: 132px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; max-width: min(360px, 78%); pointer-events: none; }
.bubble { padding: 9px 14px; border-radius: 16px 16px 16px 4px; background: #fff; color: var(--ink); font-size: 15px; line-height: 1.4; box-shadow: 0 6px 18px rgb(0 0 0 / .18); transform-origin: left bottom; animation: burbuja .45s var(--ease-out) both; }
.bubble small { display: block; margin-top: 2px; font-size: 11px; color: #8a948d; text-align: right; }
.chat .from { font-size: 12px; font-weight: 600; color: rgb(255 255 255 / .85); margin-bottom: 2px; animation: burbuja .45s var(--ease-out) both; }
@keyframes burbuja { from { opacity: 0; transform: translateY(10px) scale(.92); } }
.stage-bottom { position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: stretch; justify-content: space-between; gap: 10px; padding: 0 clamp(20px, 3vw, 36px) clamp(20px, 3vw, 32px); }
.steps { display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.steps::-webkit-scrollbar { display: none; }
.step-chip { flex-shrink: 0; }
.step-chip { position: relative; overflow: hidden; min-height: 40px; padding: 8px 14px; border: 1px solid rgb(255 255 255 / .35); border-radius: var(--r-pill); background: rgb(20 32 27 / .35); color: #fff; font-size: 13px; font-weight: 600; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background-color var(--t), border-color var(--t), color var(--t); }
.step-chip:hover { border-color: #fff; }
.step-chip[aria-current="true"] { background: rgb(255 250 242 / .95); border-color: transparent; color: var(--olive-deep); }
.step-chip i { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--terra); transform: scaleX(0); transform-origin: left; }
.step-chip.run i { transform: scaleX(1); transition: transform var(--dur, 3.8s) linear; }
.stage-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-1); }
.stage-actions > * { justify-content: center; padding-inline: 12px; white-space: nowrap; }
.mira { min-width: 0; gap: 0; }
.mira > span[aria-hidden] { margin-left: 10px; }
.mira .mira-dest { display: none; font-weight: 600; opacity: .8; }
.play { position: absolute; z-index: 6; top: clamp(20px, 3vw, 36px); right: clamp(20px, 3vw, 36px); margin-top: 44px; min-height: 34px; padding: 4px 12px; border: 0; border-radius: var(--r-xs); background: rgb(20 32 27 / .45); color: #fff; font-size: 12px; font-weight: 600; backdrop-filter: blur(6px); }
/* Cursor propio sobre el visor (solo con mouse) */
.cursor { position: fixed; z-index: 50; left: 0; top: 0; display: grid; place-items: center; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; background: rgb(255 250 242 / .92); color: var(--olive-deep); font-size: 13px; font-weight: 700; text-align: center; line-height: 1.15; pointer-events: none; opacity: 0; transform: scale(.4); transition: opacity .25s var(--ease), transform .35s var(--ease-out); box-shadow: 0 10px 30px rgb(0 0 0 / .25); }
.cursor.is-on { opacity: 1; transform: scale(1); }
@media (hover: hover) and (pointer: fine) { .stage.has-cursor { cursor: none; } .stage.has-cursor .ba-range { cursor: none; } }

/* Tira de casos */
.case-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 80%); gap: 12px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
.case-strip::-webkit-scrollbar { display: none; }
.case-card { scroll-snap-align: start; display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; text-align: left; transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color var(--t); }
.case-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.case-card[aria-current="true"] { border-color: var(--olive); box-shadow: inset 0 0 0 1px var(--olive); }
.case-card img { width: 76px; height: 60px; object-fit: cover; border-radius: var(--r-sm); }
.case-card b { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 18px; color: var(--terra-text); line-height: 1; }
.case-card strong { display: block; font-size: 16px; font-weight: 600; }
.case-card small { font-size: 13px; color: var(--muted); }

/* Bajada corta debajo del visor */
.intro-strip { display: grid; gap: var(--s-3); align-items: center; padding-top: var(--s-5); padding-bottom: var(--s-5); }
.intro-strip p.lead { max-width: 46ch; }
.intro-strip strong { color: var(--olive); }
.mini-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mini-steps li { display: flex; gap: 12px; align-items: baseline; padding: 14px 16px; border-radius: var(--r-md); background: #fff; box-shadow: var(--shadow-sm); font-size: 15px; font-weight: 500; }
.mini-steps b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 24px; line-height: 1; color: var(--terra-text); }

/* ============================================================
   PÁGINAS INTERNAS
   ============================================================ */
.page-head { padding-bottom: var(--s-4); }
.page-head h1 { font-size: clamp(44px, 6.4vw, 84px); line-height: .98; letter-spacing: -.045em; }
.page-head h1 em { color: var(--terra-text); letter-spacing: -.02em; padding-right: .06em; }
.page-head .lead { max-width: 52ch; margin-top: var(--s-3); color: var(--muted); }

/* Cómo funciona (4 pasos con línea) */
.flow { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.flow::before { content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; background: var(--line); }
.flow::after { content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; background: var(--olive); transform: scaleY(0); transform-origin: top; transition: transform 1.6s var(--ease-out); }
.flow.is-visible::after { transform: scaleY(1); }
.flow li { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: var(--s-2); align-items: start; }
.flow-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line); font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--terra-text); transition: border-color .5s var(--ease) var(--d, 0s), background-color .5s var(--ease) var(--d, 0s), color .5s var(--ease) var(--d, 0s); }
.flow.is-visible .flow-dot { border-color: var(--olive); background: var(--olive); color: var(--paper); }
.flow h3 { margin: 10px 0 6px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.flow p { font-size: 16px; color: #44554b; }
.flow p strong { color: var(--olive); }

/* Qué puede resolver */
.solve-grid { display: grid; gap: var(--s-4); }
.solve-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.solve-list li { border-bottom: 1px solid var(--line); }
.solve-list a { position: relative; isolation: isolate; display: grid; grid-template-columns: 40px 1fr 36px; align-items: center; gap: var(--s-1); min-height: 64px; padding: 14px 8px; font-size: clamp(17px, 1.7vw, 21px); font-weight: 500; letter-spacing: -.01em; }
.solve-list a::before { content: ""; position: absolute; inset: 4px 0; z-index: -1; border-radius: var(--r-sm); background: var(--c, var(--soft)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out); }
.solve-list a:hover::before, .solve-list a:focus-visible::before { transform: scaleX(1); }
.solve-list .n { font-family: var(--serif); font-style: italic; font-size: 20px; font-weight: 400; color: var(--terra-text); }
.solve-list .go { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--olive); opacity: 0; transform: translateX(-8px); transition: opacity .3s var(--ease), transform .4s var(--ease-out); }
.solve-list a:hover .go, .solve-list a:focus-visible .go { opacity: 1; transform: none; }
.solve-list li:nth-child(7n+1) a { --c: var(--c-rose); } .solve-list li:nth-child(7n+2) a { --c: var(--c-sage); } .solve-list li:nth-child(7n+3) a { --c: var(--c-sky); }
.solve-list li:nth-child(7n+4) a { --c: var(--c-butter); } .solve-list li:nth-child(7n+5) a { --c: var(--c-lilac); } .solve-list li:nth-child(7n+6) a { --c: var(--c-stone); } .solve-list li:nth-child(7n+7) a { --c: var(--soft); }

/* Servicios */
.services { display: grid; grid-template-columns: 1fr; gap: 12px; }
.service { position: relative; display: block; min-height: 176px; padding: var(--s-3); border-radius: var(--r-md); color: var(--ink); background: var(--c-stone); transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.service:nth-child(6n+1) { background: var(--c-rose); } .service:nth-child(6n+2) { background: var(--c-sage); } .service:nth-child(6n+3) { background: var(--c-sky); }
.service:nth-child(6n+4) { background: var(--c-butter); } .service:nth-child(6n+5) { background: var(--c-lilac); } .service:nth-child(6n+6) { background: var(--c-stone); }
.service:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 2px var(--olive), var(--shadow-md); }
.service-icon { width: 48px; height: 48px; margin-bottom: var(--s-2); color: #314c40; transition: transform .5s var(--ease-out); }
.service:hover .service-icon { transform: translateY(-2px) rotate(-4deg); }
.service span { position: absolute; top: var(--s-3); right: var(--s-3); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgb(255 255 255 / .6); color: var(--olive); font-weight: 600; transition: transform var(--t), background-color var(--t); }
.service:hover span { transform: translate(3px, -3px); background: #fff; }
.service strong { display: block; margin-bottom: 6px; font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.service small { font-size: 15px; line-height: 1.5; color: #3f5047; }

/* Antes de decidir */
.decide { margin: var(--s-2) 12px; border-radius: var(--r-xl); background: var(--sand-block); }
.difference { display: grid; gap: var(--s-3); margin-bottom: var(--s-5); }
.statement { padding-left: var(--s-3); border-left: 3px solid var(--olive); font-size: clamp(23px, 2.6vw, 34px); font-weight: 500; line-height: 1.25; letter-spacing: -.02em; }
.statement span { color: var(--olive); }
.how { display: grid; gap: 12px; }
.how > div { padding: var(--s-3); border-radius: var(--r-md); background: var(--paper); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.how > div:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.how b { display: block; margin-bottom: var(--s-1); font-family: var(--serif); font-style: italic; font-size: 40px; font-weight: 400; line-height: 1; color: var(--terra-text); }
.how h3 { margin-bottom: var(--s-1); font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.how p { font-size: 15px; line-height: 1.6; color: #44554b; }
.how p + p { margin-top: 12px; }
.how p strong { color: var(--olive); }
.decide > .note { margin-top: var(--s-3); }

/* Fundador y próximamente */
.about-card { position: relative; padding: var(--s-4) var(--s-3); border-radius: var(--r-lg); background: var(--soft); }
.about-kicker { font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--terra-deep); }
.about-card strong { display: block; margin: var(--s-1) 0 4px; font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; letter-spacing: -.02em; }
.about-card .role { font-size: 15px; color: #44554b; }
.promise { margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px solid rgb(53 100 82 / .18); font-size: clamp(20px, 2.2vw, 26px); font-weight: 500; line-height: 1.3; letter-spacing: -.015em; }
.about-card .stamp { display: block; margin-top: var(--s-3); font-size: 56px; font-weight: 700; line-height: 1; letter-spacing: -.04em; color: var(--olive); }
.next-grid { display: grid; gap: 12px; }
.next-card { padding: var(--s-4) var(--s-3); border-radius: var(--r-lg); border: 1px dashed #b9c9b5; background: #fff; transition: border-color var(--t), transform .35s var(--ease-out); }
.next-card:hover { border-color: var(--olive); transform: translateY(-2px); }
.badge { display: inline-block; margin-bottom: var(--s-2); padding: 4px 12px; border-radius: var(--r-pill); background: var(--butter); color: #5b4a1d; font-size: 12px; font-weight: 600; }
.next-card h3 { margin-bottom: 6px; font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.next-card p { font-size: 15px; color: var(--muted); }

/* Llamado final de las páginas internas */
.cta-band { display: flex; flex-direction: column; gap: var(--s-3); margin: 0 12px var(--section-y); padding: clamp(28px, 4vw, 48px); border-radius: var(--r-xl); background: var(--olive); color: #fff; }
.cta-band h2 { font-size: clamp(28px, 3.4vw, 44px); }
.cta-band p { color: var(--on-olive-muted); margin-top: var(--s-1); }

/* ============================================================
   CONSULTA
   ============================================================ */
.consult { padding: var(--section-y) var(--gutter); border-radius: var(--r-xl) var(--r-xl) 0 0; background: radial-gradient(90% 70% at 0% 0%, rgb(255 255 255 / .08), transparent 60%), var(--olive); color: #fff; }
.consult-grid { display: grid; gap: var(--s-5); }
.consult h2 { max-width: 12ch; margin-bottom: var(--s-2); font-size: clamp(36px, 4.6vw, 58px); }
.consult .note { margin-top: var(--s-2); color: var(--on-olive-muted); }
.consult form { padding: clamp(20px, 3vw, 32px); border: 1px solid rgb(255 255 255 / .16); border-radius: var(--r-lg); background: rgb(255 255 255 / .06); box-shadow: 0 1px 0 rgb(255 255 255 / .08) inset, 0 24px 48px rgb(0 0 0 / .12); }
.formgrid { display: grid; grid-template-columns: 1fr; gap: var(--s-2); }
label { display: block; font-size: 15px; font-weight: 500; }
input, textarea, select { display: block; width: 100%; min-height: 50px; margin-top: var(--s-1); padding: 13px 16px; border: 1px solid #b7bfac; border-radius: var(--r-sm); background: #fbfaf4; color: var(--ink); font-size: 16px; transition: border-color var(--t), box-shadow var(--t), background-color var(--t); }
input::placeholder, textarea::placeholder { color: #7d877f; }
input:hover, textarea:hover, select:hover { border-color: #fff; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgb(242 210 137 / .45); background: #fff; }
textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
select { appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2327332e' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
input[type="file"] { padding: 10px; background: rgb(255 255 255 / .92); cursor: pointer; }
input[type="file"]::file-selector-button { margin-right: 12px; padding: 8px 14px; border: 0; border-radius: var(--r-xs); background: var(--soft); color: var(--olive-deep); font-weight: 600; cursor: pointer; }
.full { grid-column: 1 / -1; }
.formgrid .note { display: block; margin-top: var(--s-1); font-size: 13px; }
.thumbs { display: flex; flex-wrap: wrap; gap: var(--s-1); margin-top: 12px; }
.thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--r-sm); box-shadow: var(--shadow-sm); animation: pop .4s var(--ease-out); }
@keyframes pop { from { opacity: 0; transform: scale(.85); } }
.status { font-size: 14px; line-height: 1.5; }
.status:empty { display: none; }
#filemsg { margin-top: var(--s-1); }
.submit { width: 100%; margin-top: var(--s-3); background: var(--gold); color: #263e32; }
.submit:hover { background: #f5db9e; box-shadow: 0 12px 24px rgb(0 0 0 / .18); }
.submit[disabled] { opacity: .75; cursor: progress; transform: none; }
#status { margin-top: var(--s-2); padding: 12px var(--s-2); border-radius: var(--r-sm); background: rgb(255 255 255 / .1); }
.field-flash { animation: flash 1.2s var(--ease); }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgb(242 210 137 / .9); } 100% { box-shadow: 0 0 0 10px rgb(242 210 137 / 0); } }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sent { padding: clamp(28px, 4vw, 48px); border-radius: var(--r-lg); background: var(--paper); color: var(--ink); text-align: center; box-shadow: 0 24px 48px rgb(0 0 0 / .14); animation: aparecer .6s var(--ease-out); }
.sent:focus { outline: none; }
.sent-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: var(--s-2); border-radius: 50%; background: var(--olive); color: #fff; font-size: 30px; animation: pop .5s var(--ease-out) .15s both; }
.sent h3 { margin-bottom: var(--s-1); font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; letter-spacing: -.01em; }
.sent p { margin-bottom: var(--s-3); color: var(--muted); }
.sent .text-link { border: 0; border-bottom: 1px solid rgb(53 100 82 / .3); background: none; cursor: pointer; }
@keyframes aparecer { from { opacity: 0; transform: translateY(12px) scale(.98); } }

/* ---------- Pie ---------- */
footer { background: var(--olive-deep); color: var(--on-olive-muted); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: var(--s-4) var(--gutter); display: flex; flex-direction: column; gap: var(--s-2); font-size: 14px; line-height: 1.6; }
.footer-inner span { color: #fff; font-weight: 500; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.footer-inner a { padding: 6px 0; border-bottom: 1px solid rgb(255 255 255 / .3); transition: border-color var(--t), color var(--t); }
.footer-inner a:hover { color: #fff; border-color: #fff; }

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  .services { grid-template-columns: 1fr 1fr; }
  .next-grid { grid-template-columns: 1fr 1fr; }
  .formgrid { grid-template-columns: 1fr 1fr; }
  .mini-steps { grid-template-columns: 1fr 1fr; }
  .cta-band { flex-direction: row; align-items: center; justify-content: space-between; }
  .footer-inner { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}

/* ---------- Escritorio ---------- */
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .tabs-mobile { display: none; }
  nav .pill { margin-left: var(--s-1); }
  .viewer { padding: var(--s-2) var(--gutter) 0; }
  .stage { height: min(calc(100svh - var(--hh) - 120px), 900px); min-height: 520px; }
  .chat { bottom: 112px; }
  .stage-bottom { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
  .steps { flex-wrap: wrap; overflow: visible; }
  .stage-actions { display: flex; }
  .mira .mira-dest { display: inline; }
  .case-strip { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; }
  .intro-strip { grid-template-columns: 1fr 1.2fr; gap: var(--s-6); }
  .mini-steps { grid-template-columns: repeat(4, 1fr); }
  .mini-steps li { flex-direction: column; gap: 6px; }
  .sectionhead { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: var(--s-4); }
  .sectionhead .note { text-align: right; }
  .flow { grid-template-columns: repeat(4, 1fr); gap: var(--s-3); }
  .flow::before, .flow::after { left: 24px; right: 24px; top: 23px; bottom: auto; width: auto; height: 2px; }
  .flow::after { transform: scaleX(0); transform-origin: left; }
  .flow.is-visible::after { transform: scaleX(1); }
  .flow li { grid-template-columns: 1fr; }
  .flow h3 { margin-top: var(--s-2); }
  .solve-grid { grid-template-columns: .8fr 1.2fr; gap: var(--s-6); align-items: start; }
  .solve-grid > div:first-child { position: sticky; top: calc(var(--hh) + 32px); }
  .services { grid-template-columns: repeat(3, 1fr); gap: var(--s-2); }
  .service { min-height: 200px; padding: var(--s-4); }
  .service span { top: var(--s-4); right: var(--s-4); }
  .decide { margin: var(--s-2) var(--gutter); padding: var(--s-6) clamp(32px, 4vw, 56px); }
  .difference { grid-template-columns: 1fr 1fr; gap: var(--s-6); align-items: end; }
  .how { grid-template-columns: repeat(3, 1fr); gap: var(--s-2); }
  .how > div { padding: var(--s-4); }
  .about-card { padding: var(--s-5) var(--s-6); }
  .about-card .promise { max-width: 34ch; }
  .about-card .stamp { position: absolute; right: var(--s-6); top: 50%; margin: 0; transform: translateY(-50%); font-size: clamp(96px, 11vw, 150px); }
  .cta-band { margin: 0 var(--gutter) var(--section-y); }
  .consult { margin: 0 var(--gutter); }
  .consult-grid { grid-template-columns: .8fr 1.2fr; gap: var(--s-6); align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
