/* Mindev · sitio corporativo
   Público: gerencias de minería e industria. Tono sobrio y técnico.
   Paleta equilibrada: azul marino industrial, blancos y grises fríos, naranjo solo en las acciones. */

/* ---------- tokens ---------- */
:root {
  --bg: #ffffff;
  --surface: #f4f6f8;
  --surface-2: #e9edf1;
  --field-line: #cdd6dd;
  --ink: #14212b;
  --text-2: #4b5a66;
  --navy: #0f2d40;
  --navy-2: #173c54;
  --navy-deep: #0b2232;
  --navy-text: #b9c8d3;
  --accent: #c2410c;
  --accent-hover: #a8370a;
  --ok: #157347;
  --ok-bg: #e4f5ec;

  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step-small: 0.875rem;
  --step-body: clamp(1rem, 0.96rem + 0.18vw, 1.125rem);
  --step-ui: 1rem;
  --step-lead: clamp(1.125rem, 1rem + 0.35vw, 1.25rem);
  --step-h2: clamp(1.75rem, 1.2rem + 1.7vw, 2.625rem);
  --step-h1: clamp(2.25rem, 1.3rem + 2.6vw, 3.375rem);

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(80px, 9vw, 128px);
  --bar-h: 72px;
  --radius: 6px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;

  --photo: saturate(0.9) contrast(1.03);
}
@media (max-width: 899px) { :root { --bar-h: 64px; } }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--step-body); line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
:where(ul[role="list"], ol[role="list"]) { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:target { scroll-margin-top: calc(var(--bar-h) + 16px); }
::selection { background: var(--navy); color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-weight: 600; text-wrap: balance; }
p { text-wrap: pretty; }
.nums { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 60; background: var(--navy); color: #fff; padding: 10px 14px; text-decoration: none; }
.skip:focus { top: 8px; }
:root { --logo-ink: #111318; --logo-off: #e4e5e8; --logo-acc: #ff5a1f; }
/* símbolo reutilizable de la marca (interfaces de muestra) */
.mk-on { fill: currentColor; }
.mk-off { fill: var(--mark-off, transparent); }
.mk-acc { fill: var(--logo-acc); }

/* ---------- logo oficial (paquete de marca): matriz de puntos + "mindev" en Sora, en curvas ---------- */
.logo { --h: 30px; display: inline-flex; align-items: center; text-decoration: none; }
.logo__svg { display: block; height: var(--h); width: calc(var(--h) * 3.7087); overflow: visible; }
.logo__svg circle { transform-box: fill-box; transform-origin: center; transition: fill 300ms ease; }
.logo__svg .on { fill: var(--logo-ink); }
.logo__svg .off { fill: var(--logo-off); }
.logo__svg .acc { fill: var(--logo-acc); }
.logo__word { fill: var(--logo-ink); transition: fill 300ms ease; }
@media (prefers-reduced-motion: no-preference) {
  /* encendido: la M se enciende columna por columna, el punto naranja rebota y entra la palabra */
  .logo--boot .on { animation: logo-on 620ms cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--c) * 120ms + var(--r) * 35ms + 250ms); }
  .logo--boot .acc { animation: logo-acc 700ms cubic-bezier(.3, 1.6, .4, 1) both; animation-delay: 1s; }
  .logo--boot .logo__word { animation: logo-word 600ms cubic-bezier(.2, .8, .2, 1) both; animation-delay: 1.3s; }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  /* ola: al pasar el mouse una onda diagonal recorre la grilla */
  .logo:hover .logo__svg circle { animation: logo-wave 900ms ease-in-out both; animation-delay: calc((var(--r) + var(--c)) * 55ms); }
}
@keyframes logo-on { 0% { fill: var(--logo-off); transform: scale(1); } 45% { fill: var(--logo-ink); transform: scale(1.3); } 100% { fill: var(--logo-ink); transform: scale(1); } }
@keyframes logo-acc { 0% { fill: var(--logo-off); transform: scale(1); } 50% { fill: var(--logo-acc); transform: scale(1.7); } 100% { fill: var(--logo-acc); transform: scale(1); } }
@keyframes logo-word { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
@keyframes logo-wave { 0% { transform: scale(1); } 35% { transform: scale(0.45); opacity: 0.5; } 70% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); } }

.wrap { max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tint { background: var(--surface); }
.h2 { font-size: var(--step-h2); line-height: 1.12; letter-spacing: -0.015em; }
.lead { font-size: var(--step-lead); line-height: 1.5; color: var(--text-2); max-width: 38em; margin-top: 16px; }

/* ---------- controles ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; background: var(--accent); color: #fff; border-radius: var(--radius); font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.button:active { transform: scale(0.98); }
.button--ghost { background: var(--navy); }
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.2em; transition: text-decoration-color var(--t-hover) ease; }
.link-plain { text-decoration: underline; text-underline-offset: 0.18em; }
.link-arrow { font-weight: 600; text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 1.5px; text-decoration-color: rgba(20, 33, 43, 0.35); transition: text-decoration-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--accent-hover); }
  .button--ghost:hover { background: var(--navy-2); }
  .link:hover { text-decoration-color: currentColor; }
  .link-arrow:hover { text-decoration-color: currentColor; }
}

/* =====================================================================
   CABECERA
   ===================================================================== */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--bar-h); background: var(--bg); color: var(--ink); transition: background-color 300ms ease, color 300ms ease; }
.cine .bar:not(.is-solid) { background: transparent; color: #fff; }
.bar__in { height: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; gap: 32px; }
.cine .bar:not(.is-solid) .logo { --logo-ink: #ffffff; --logo-off: rgba(255, 255, 255, 0.22); }
.bar__nav { display: flex; gap: 28px; margin-left: auto; font-size: var(--step-ui); font-weight: 500; }
.bar__nav a { text-decoration: none; padding-block: 6px; opacity: 0.88; transition: opacity var(--t-hover) ease; }
.bar__cta { min-height: 42px; padding: 0 18px; }
.bar__menu { display: none; min-height: 42px; padding: 0 14px; font-weight: 600; border-radius: var(--radius); background: var(--surface); color: var(--ink); }
.cine .bar:not(.is-solid) .bar__menu { background: rgba(255, 255, 255, 0.16); color: #fff; }
.menu { position: absolute; left: 0; right: 0; top: var(--bar-h); background: var(--bg); color: var(--ink); padding: 8px var(--gutter) 24px; display: grid; gap: 4px; }
.menu[hidden] { display: none; }
.menu a:not(.button) { padding: 12px 0; font-size: 1.125rem; font-weight: 500; text-decoration: none; }
.menu .button { margin-top: 12px; }
@media (hover: hover) and (pointer: fine) { .bar__nav a:hover { opacity: 1; } }
@media (max-width: 899px) {
  .bar__nav, .bar__cta { display: none; }
  .bar__menu { display: inline-flex; align-items: center; margin-left: auto; }
}

/* =====================================================================
   PORTADA · el operador y su teléfono
   ===================================================================== */
.hero { position: relative; }
.cine .hero { height: calc(100svh + var(--pin, 90svh)); }
.cine:not(.cine-ready) .hero__stick { opacity: 0; animation: cine-fallback 0s 2.5s forwards; }
@keyframes cine-fallback { to { opacity: 1; } }
.hero__stick { position: relative; min-height: 620px; height: 100svh; overflow: hidden; background: var(--bg); }
.cine .hero__stick { position: sticky; top: 0; }

.hero__layout { position: absolute; inset: var(--bar-h) 0 0 0; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding: 24px var(--gutter) 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero__copy { position: relative; z-index: 3; max-width: 36rem; }
.hero__title { font-size: var(--step-h1); line-height: 1.06; letter-spacing: -0.022em; }
.hero__sub { font-size: var(--step-lead); line-height: 1.5; color: var(--text-2); margin-top: 20px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 32px; font-size: var(--step-ui); font-weight: 500; color: var(--text-2); }
.hero__proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero__proof svg { width: 18px; height: 18px; color: var(--accent); }

.hero__visual { position: relative; height: 100%; display: flex; align-items: center; justify-content: flex-end; }
.hero__frame { position: relative; width: min(100%, 520px); height: min(88%, 620px); border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.hero__slot { position: absolute; left: 0; bottom: 5%; height: 60%; aspect-ratio: 0.49; }

/* el video de la faena: vive en su marco; en modo cine JS lo saca a pantalla completa */
.stage { position: absolute; inset: 0; overflow: hidden; }
.stage__media { position: absolute; inset: 0; }
.stage__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 52% 58%; background: #6b4a35; filter: var(--photo); }
.stage__shade { position: absolute; inset: 0; background: #06121b; opacity: 0; pointer-events: none; }
.cine .stage { z-index: 1; will-change: clip-path; }
.cine .stage__video { object-position: 50% 50%; transform-origin: var(--ox, 50%) var(--oy, 50%); will-change: transform; }
.cine .hero__frame { background: transparent; }

.hero__hint { display: none; }
.cine .hero__hint { display: block; position: absolute; right: var(--gutter); bottom: 24px; z-index: 6; text-align: right; color: #fff; font-size: var(--step-small); font-weight: 500; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .cine .hero__hint { animation: hint 2.4s var(--ease-in-out) 2s infinite; }
}
@keyframes hint { 0%, 100% { transform: none; } 50% { transform: translateY(5px); } }

/* =====================================================================
   El teléfono (interfaz real en HTML; data-ui: sus bordes son de producto)
   ===================================================================== */
.hero__slot { container-type: inline-size; }
.device { position: absolute; inset: 0; font-size: calc(100cqw / 24); }
.device__frame { position: absolute; inset: 0; background: #101213; border-radius: 3.55em; border: 0.14em solid #3a3c3d; }
.device__screen { position: absolute; inset: 0.9em; overflow: hidden; background: #fff; border-radius: 2.7em; container-type: inline-size; }
.device__btn { position: absolute; width: 0.28em; background: #2a2b2c; border-radius: 0.2em; }
.device__btn--a { left: -0.22em; top: 18%; height: 6%; }
.device__btn--b { left: -0.22em; top: 27%; height: 10%; }
.device__btn--c { right: -0.22em; top: 24%; height: 14%; }
.cine .device { inset: auto; left: 0; top: 0; z-index: 5; width: var(--dw, 300px); height: var(--dh, 620px); font-size: calc(var(--dw, 300px) / 24); transform-origin: 50% 50%; will-change: transform; }

.app { --brand: #c2410c; height: 100%; display: flex; flex-direction: column; font-size: calc(100cqw / 390 * 16); line-height: 1.3; color: #14212b; background: #fff; }
.app__status { display: flex; align-items: center; justify-content: space-between; padding: 0.95em 1.6em 0.4em; font-size: 0.95em; font-weight: 600; position: relative; }
.app__clock { min-width: 4em; }
.app__island { position: absolute; left: 50%; top: 0.7em; width: 7.4em; height: 2.1em; margin-left: -3.7em; background: #000; border-radius: 2em; }
.app__signal { display: flex; align-items: center; gap: 0.4em; }
.app__net { font-size: 0.78em; font-weight: 600; padding: 0.15em 0.5em; border-radius: 1em; background: #fde8e4; color: #a3221a; transition: background-color 400ms ease, color 400ms ease; }
.app__bars { display: flex; align-items: flex-end; gap: 0.12em; height: 0.8em; }
.app__bars i { width: 0.22em; background: #d4d9de; border-radius: 0.1em; transition: background-color 300ms ease; }
.app__bars i:nth-child(1) { height: 30%; } .app__bars i:nth-child(2) { height: 55%; } .app__bars i:nth-child(3) { height: 78%; } .app__bars i:nth-child(4) { height: 100%; }
.app__batt { width: 1.6em; height: 0.8em; border-radius: 0.22em; border: 0.1em solid #9aa3aa; padding: 0.08em; display: flex; }
.app__batt i { width: 72%; background: #14212b; border-radius: 0.1em; }
.app__head { padding: 0.9em 1.5em 0.7em; }
.app__crumb { font-size: 0.82em; color: #5b6872; font-weight: 500; }
.app__title { font-size: 1.7em; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin-top: 0.25em; }
.app__sub { font-size: 0.95em; color: #3a4750; margin-top: 0.15em; }
.app__progress { height: 0.45em; background: #e9edf1; border-radius: 1em; margin-top: 0.9em; overflow: hidden; }
.app__bar { display: block; height: 100%; width: 100%; background: #0f2d40; border-radius: 1em; transform-origin: 0 50%; transform: scaleX(0.5); transition: transform 700ms var(--ease-out); }
.app__count { font-size: 0.82em; color: #5b6872; margin-top: 0.45em; }
.app__count b { color: #14212b; font-weight: 600; }
.app__list { list-style: none; margin: 0; padding: 0 1.5em; display: grid; gap: 0.35em; }
.app__list li { display: flex; align-items: center; gap: 0.7em; padding: 0.62em 0.75em; background: #f4f6f8; border-radius: 0.7em; font-size: 0.95em; font-weight: 500; }
.tick { flex: none; width: 1.35em; height: 1.35em; border-radius: 50%; border: 0.12em solid #c3ccd3; position: relative; transition: background-color 300ms ease, border-color 300ms ease; }
.tick::after { content: ""; position: absolute; left: 0.38em; top: 0.16em; width: 0.32em; height: 0.62em; border: solid #fff; border-width: 0 0.14em 0.14em 0; opacity: 0; transform: rotate(45deg) scale(0.6); transition: transform 320ms var(--ease-out), opacity 200ms ease; }
.app__list li.is-done .tick { background: #0f2d40; border-color: #0f2d40; }
.app__list li.is-done .tick::after { opacity: 1; transform: rotate(45deg) scale(1); }
.app__ai { margin: 0.75em 1.5em 0; padding: 0.9em 1em 1em; background: #0f2d40; color: #fff; border-radius: 1em; transform-origin: 50% 100%; transition: opacity 420ms var(--ease-out), transform 520ms var(--ease-out); }
.app__ai-who { display: flex; align-items: center; gap: 0.45em; font-size: 0.8em; font-weight: 600; color: #fdba8c; }
.app__ai-mark { width: 1.15em; height: 1.15em; color: #fff; --mark-off: rgba(255, 255, 255, 0.18); }
.app__ai-text { font-size: 0.92em; line-height: 1.35; margin-top: 0.45em; min-height: 3.7em; }
.app__ai-actions { display: flex; gap: 0.5em; margin-top: 0.75em; }
.app__btn { display: inline-flex; align-items: center; padding: 0.5em 0.85em; border-radius: 0.6em; background: #24475e; font-size: 0.85em; font-weight: 600; transition: transform 140ms var(--ease-out), background-color 200ms ease; }
.app__btn--go { background: var(--brand); color: #fff; }
.app__btn.is-press { transform: scale(0.94); }
.app__ai-done { display: none; font-size: 0.85em; font-weight: 600; color: #fdba8c; margin-top: 0.75em; }
.app__ai.is-sent .app__ai-actions { display: none; }
.app__ai.is-sent .app__ai-done { display: block; }
.app__sync { margin: auto 1.5em 1.6em; display: flex; align-items: center; gap: 0.6em; padding: 0.8em 1em; border-radius: 0.9em; background: #f4f6f8; font-size: 0.85em; font-weight: 500; transition: background-color 400ms ease; }
.app__sync-dot { width: 0.65em; height: 0.65em; border-radius: 50%; background: #c3ccd3; flex: none; transition: background-color 400ms ease; }
.app[data-online="1"] .app__net { background: var(--ok-bg); color: var(--ok); }
.app[data-online="1"] .app__bars i { background: #14212b; }
.app[data-online="1"] .app__sync { background: var(--ok-bg); color: var(--ok); }
.app[data-online="1"] .app__sync-dot { background: var(--ok); }
@media (prefers-reduced-motion: no-preference) {
  .js .app__ai { opacity: 0; transform: translateY(1.2em) scale(0.98); }
  .js .app.show-ai .app__ai { opacity: 1; transform: none; }
}

/* =====================================================================
   SECCIONES
   ===================================================================== */
main, .foot { overflow-x: clip; }

/* --- integraciones --- */
.stack { background: var(--surface); }
.stack__in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 48px; padding-block: 36px; }
.stack__title { font-size: var(--step-body); font-weight: 600; max-width: 18em; line-height: 1.35; }
.stack__list { display: flex; flex-wrap: wrap; gap: 12px 36px; font-size: var(--step-body); font-weight: 500; color: var(--text-2); }

/* --- por qué existimos: los dolores se tachan al entrar en pantalla --- */
.pains__top, .pains__rows li, .pains__end { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 64px; }
.pains__top { align-items: end; }
.pains__title { font-size: clamp(2.5rem, 1.4rem + 3.6vw, 4.5rem); line-height: 1; letter-spacing: -0.035em; }
.pains__intro { font-size: var(--step-lead); line-height: 1.55; color: var(--text-2); }
.pains__rows { margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--field-line); }
.pains__rows li { align-items: baseline; padding-block: clamp(26px, 3vw, 38px); border-bottom: 1px solid var(--field-line); }
.pains__rows h3 { font-size: clamp(1.625rem, 1rem + 2.1vw, 2.75rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.025em; color: var(--text-2); }
.pains__rows p { color: var(--text-2); max-width: 28em; }
.pains__strike { background: linear-gradient(var(--accent), var(--accent)) 0 57% / 100% 0.08em no-repeat; }
.pains__end { margin-top: clamp(56px, 7vw, 96px); align-items: center; }
.pains__photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.pains__photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; filter: var(--photo); }
.pains__claim { font-size: clamp(1.75rem, 1.15rem + 1.9vw, 2.625rem); font-weight: 600; line-height: 1.12; letter-spacing: -0.025em; color: var(--ink); }
.pains__close p:not(.pains__claim) { margin-top: 20px; font-size: var(--step-lead); line-height: 1.5; color: var(--text-2); }
.pains__close .link-arrow { display: inline-block; margin-top: 24px; }

/* --- servicios --- */
.tour__head { max-width: 46rem; }
.tour__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; margin-top: 56px; align-items: start; }
.tour__steps { display: grid; gap: 8px; }
.tour__btn { display: block; width: 100%; text-align: left; padding: 20px 24px; border-radius: var(--radius); color: var(--text-2); transition: background-color var(--t-ui) ease, color var(--t-ui) ease; }
.tour__name { display: block; font-size: var(--step-lead); font-weight: 600; color: var(--ink); }
.tour__text { display: block; margin-top: 6px; font-size: var(--step-body); line-height: 1.5; }
.tour__tags { display: block; margin-top: 10px; font-size: var(--step-small); font-weight: 500; color: var(--text-2); }
.tour__more { margin-top: 24px; padding: 20px 24px; border-radius: var(--radius); background: var(--surface-2); }
.tour__more p + p { margin-top: 8px; }
.tour__more-title { font-weight: 600; }
.tour__also { color: var(--text-2); }
.tour__col { position: sticky; top: calc(var(--bar-h) + 32px); }
.tour__note { margin-top: 10px; font-size: var(--step-small); color: var(--text-2); }
.tour__step.is-on .tour__btn { background: var(--bg); color: var(--ink); }
.tour__step.is-on .tour__name { color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .tour__step:not(.is-on) .tour__btn:hover { background: var(--surface-2); } }
.tour__stage { position: relative; aspect-ratio: 4 / 3.2; border-radius: var(--radius); background: var(--navy); overflow: hidden; display: grid; place-items: center; }
.frag { grid-area: 1 / 1; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: clamp(20px, 3vw, 40px); transition: opacity 420ms ease, transform 520ms var(--ease-out); }
.js .frag:not(.is-on) { opacity: 0; transform: translateY(12px); pointer-events: none; visibility: hidden; }
.js .frag.is-before { transform: translateY(-32px); }
.js .frag.is-after { transform: translateY(32px); }

.chip { display: inline-block; padding: 3px 9px; border-radius: 99px; font-size: 0.75rem; font-weight: 600; }
.chip--warn { background: #fde8e4; color: #a3221a; }
.chip--ok { background: var(--ok-bg); color: var(--ok); }

.mphone { width: min(300px, 70%); background: #fff; border-radius: 28px; padding: 18px 18px 22px; font-size: 0.875rem; line-height: 1.3; border: 8px solid #101213; }
.mphone__top { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 0.8125rem; }
.mphone__crumb { margin-top: 14px; color: #5b6872; font-size: 0.8125rem; }
.mphone__title { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; margin-top: 2px; }
.mphone__list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.mphone__list li { display: flex; justify-content: space-between; gap: 8px; background: #f4f6f8; border-radius: 8px; padding: 9px 10px; }
.mphone__list b { font-weight: 600; color: #5b6872; }
.mphone__list b.ok { color: var(--ok); }
.mphone__foot { margin-top: 12px; background: #f4f6f8; border-radius: 8px; padding: 9px 10px; font-size: 0.8125rem; color: #3a4750; }

.panel { width: 100%; background: #fff; border-radius: 8px; overflow: hidden; font-size: 0.875rem; }
.panel__bar { display: flex; align-items: center; gap: 18px; padding: 12px 18px; border-bottom: 1px solid #e6eaee; } /* taste-skill-ignore: barra de una interfaz data-ui */
.panel__brand { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.panel__mark { width: 18px; height: 18px; color: #111318; --mark-off: #e4e5e8; }
.panel__tabs { display: flex; gap: 4px; color: var(--text-2); }
.panel__tabs span { padding: 5px 10px; border-radius: 6px; }
.panel__tabs .is-on { background: #eef2f5; color: var(--ink); font-weight: 500; }
.panel__live { margin-left: auto; display: flex; align-items: center; gap: 6px; font-weight: 500; }
.panel__live i { width: 8px; height: 8px; border-radius: 50%; background: #2fa66a; }
.panel__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px 18px 6px; }
.panel__kpis div { background: #f4f6f8; border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.panel__kpis b { font-size: 1.625rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.panel__kpis b span { font-size: 0.875rem; color: var(--text-2); font-weight: 500; }
.panel__kpis div > span { color: var(--text-2); font-size: 0.8125rem; line-height: 1.25; }
.panel__table { width: calc(100% - 36px); margin: 10px 18px 18px; border-collapse: collapse; }
.panel__table th { text-align: left; font-weight: 500; color: var(--text-2); padding: 8px 10px; border-bottom: 1px solid #e6eaee; font-size: 0.8125rem; }
.panel__table td { padding: 10px; border-bottom: 1px solid #eef1f4; white-space: nowrap; }
.panel__table td:first-child { font-weight: 600; }
.panel__table tr.is-new td { background: #fdf1eb; }
.pill { display: inline-block; padding: 3px 9px; border-radius: 99px; background: #eef2f5; font-size: 0.8125rem; font-weight: 500; }
.pill--ok { background: var(--ok-bg); color: var(--ok); }
.pill--wait { background: var(--navy); color: #fff; }

.log { width: min(560px, 100%); background: #fff; border-radius: 8px; padding: 20px; font-size: 0.875rem; }
.log__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.log__title { font-weight: 600; font-size: 1rem; }
.log__list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; }
.log__list li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: baseline; background: #f4f6f8; border-radius: 8px; padding: 10px 12px; }
.log__time { color: #5b6872; font-variant-numeric: tabular-nums; }
.log__ok { color: var(--ok); font-weight: 600; }
.log__foot { margin-top: 12px; color: #5b6872; font-size: 0.8125rem; }

.chat { width: min(520px, 100%); display: grid; gap: 12px; font-size: 0.9375rem; line-height: 1.45; }
.chat__q { justify-self: end; background: var(--navy-2); color: #fff; border-radius: 14px 14px 4px 14px; padding: 10px 14px; }
.chat__a { background: #fff; border-radius: 14px 14px 14px 4px; padding: 16px 18px; }
.chat__who { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.8125rem; color: var(--accent); margin-bottom: 6px; }
.chat__mark { width: 16px; height: 16px; color: #111318; --mark-off: #e4e5e8; }
.chat__a ul { margin: 6px 0 0; padding-left: 1.1em; }
.chat__a li { margin-top: 4px; }
.chat__actions { display: flex; gap: 8px; margin-top: 12px; }
.chat__btn { display: inline-flex; padding: 7px 12px; border-radius: 6px; background: var(--accent); color: #fff; font-weight: 600; font-size: 0.8125rem; }
.chat__btn--ghost { background: #eef2f5; color: var(--ink); }

/* --- industrias --- */
.ind__panel { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; margin-top: 48px; align-items: start; }
.ind__frame { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.ind__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: var(--photo); opacity: 0; transition: opacity 600ms ease; }
.ind__img.is-on { opacity: 1; }
.ind__credit { margin-top: 12px; font-size: 0.8125rem; color: var(--text-2); }
.ind__rows { display: grid; gap: 16px; margin-top: 2px; }
.ind__rows dt { font-size: var(--step-small); font-weight: 600; color: var(--accent); }
.ind__rows dd { margin-top: 4px; }

/* --- compromisos --- */
.figures { background: var(--navy); color: #fff; padding-block: clamp(64px, 7vw, 96px); }
.figures__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 40px; }
.figures__list dt { font-size: var(--step-h2); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
.figures__list dd { margin-top: 10px; color: var(--navy-text); max-width: 16em; }

/* --- metodología --- */

/* --- por qué elegirnos --- */

/* --- nosotros --- */

/* --- preguntas --- */
.faq__in { display: grid; grid-template-columns: 4fr 8fr; gap: 64px; align-items: start; }
.faq__side { position: sticky; top: calc(var(--bar-h) + 32px); }
.faq__side p { margin-top: 16px; color: var(--text-2); }
.faq__list { display: grid; gap: 8px; }
.q { background: var(--bg); border-radius: var(--radius); }
.q summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; padding: 16px 24px; font-weight: 600; border-radius: var(--radius); transition: background-color var(--t-hover) ease; }
.q summary::-webkit-details-marker { display: none; }
.q__icon { position: relative; flex: none; width: 14px; height: 14px; }
.q__icon::before, .q__icon::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: var(--accent); transition: transform var(--t-ui) var(--ease-out); }
.q__icon::after { transform: rotate(90deg); }
.q[open] .q__icon::after { transform: rotate(0deg); }
.q__a { padding: 0 24px 22px; }
.q__a p { color: var(--text-2); max-width: 60ch; }
@media (hover: hover) and (pointer: fine) { .q:not([open]) summary:hover { background: var(--surface-2); } }

/* --- contacto --- */
.contact { background: var(--navy); color: #fff; padding-block: var(--section); }
.contact__in { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.contact .lead { color: var(--navy-text); }
.contact__ways { display: grid; gap: 14px; margin-top: 36px; }
.contact__ways li { display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; }
.contact__ways span { color: var(--navy-text); font-size: var(--step-small); padding-top: 2px; }
.contact__ways a { font-weight: 600; text-decoration: none; }
.form { background: var(--bg); color: var(--ink); border-radius: 8px; padding: clamp(24px, 3vw, 36px); display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 6px; font-size: var(--step-small); font-weight: 600; }
.field { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--field-line); /* taste-skill-ignore: campo de formulario */ border-radius: var(--radius); background: #fff; font-size: 1rem; font-weight: 400; transition: border-color var(--t-hover) ease; }
textarea.field { resize: vertical; min-height: 116px; }
.field:focus { outline: 3px solid rgba(15, 45, 64, 0.2); outline-offset: 0; border-color: var(--navy); }
.form__end { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form__note { font-size: var(--step-small); color: var(--text-2); }

/* --- pie --- */
.foot { background: var(--navy-deep); color: var(--navy-text); padding-block: 64px 32px; font-size: var(--step-ui); }
.foot__top { display: grid; grid-template-columns: 4fr 8fr; gap: 48px; }
.foot__brand .logo { --h: 32px; --logo-ink: #ffffff; --logo-off: rgba(255, 255, 255, 0.13); }
.foot__brand p { margin-top: 16px; max-width: 26em; }
.foot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot__h { color: #fff; font-weight: 600; margin-bottom: 12px; }
.foot__cols li { padding-block: 4px; }
.foot__cols a, .foot__end a { text-decoration: none; }
.foot__credits { margin-top: 56px; columns: 3 16rem; column-gap: 32px; font-size: var(--step-small); color: #8ea3b2; }
.foot__credits li { break-inside: avoid; padding-bottom: 4px; }
.foot__end { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; font-size: var(--step-small); }
@media (hover: hover) and (pointer: fine) { .foot a.link:hover { color: #fff; } }

/* =====================================================================
   PROFUNDIDAD: elevación, texturas y detalles
   ===================================================================== */
:root {
  --shadow-sm: 0 1px 2px rgba(15, 45, 64, 0.06), 0 3px 10px rgba(15, 45, 64, 0.06);
  --shadow-md: 0 2px 4px rgba(15, 45, 64, 0.05), 0 16px 32px -12px rgba(15, 45, 64, 0.24);
  --shadow-lg: 0 6px 14px rgba(15, 45, 64, 0.07), 0 40px 80px -24px rgba(15, 45, 64, 0.42);
  --navy-soft: #e3ebf1;
  --radius-lg: 12px;
}

/* etiqueta de sección con el punto naranja del logo */
.kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--logo-acc); box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.16); }
.kicker--dark { color: #ffb38f; }

/* íconos de línea */
.tour__ico svg, .hero__chip-ico svg, .way-ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* --- metodología: un riel que se llena con el scroll y enciende cada paso; cada uno muestra su entregable --- */
.method__track { position: relative; margin-top: 64px; --p: 1; }
.method__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.method__step { display: flex; flex-direction: column; }
.method__node { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 600; font-size: 1.0625rem; box-shadow: 0 0 0 6px var(--bg); transition: background-color 400ms ease, color 400ms ease, box-shadow 400ms ease; }
.method__copy { flex: 1; transition: opacity 500ms ease; }
.method__copy h3 { margin-top: 24px; font-size: 1.375rem; line-height: 1.25; }
.method__copy p { margin-top: 10px; color: var(--text-2); }
.method__rail { position: absolute; top: 21px; left: 22px; right: calc(25% - 46px); height: 2px; border-radius: 2px; background: var(--field-line); overflow: hidden; }
.method__fill { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(var(--p)); }
.method__track.is-vertical .method__fill { transform-origin: top; transform: scaleY(var(--p)); }
/* en escritorio los títulos y los entregables quedan a la misma altura entre columnas */
@supports (grid-template-rows: subgrid) {
  .method__list { row-gap: 0; }
  .method__step { display: grid; grid-row: span 3; grid-template-rows: subgrid; }
}

/* entregables: pequeñas piezas de interfaz con profundidad */
.method__art { margin-top: 28px; padding: 14px 16px 16px; border-radius: 10px; background: var(--bg); border: 1px solid rgba(20, 33, 43, 0.06); box-shadow: var(--shadow-md); font-size: 0.8125rem; line-height: 1.35; color: var(--text-2); transition: opacity 500ms ease, transform 700ms var(--ease-out), box-shadow 500ms ease; }
.art__title { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.art__checks { display: grid; gap: 7px; margin-top: 10px; padding: 0; list-style: none; }
.art__checks li { display: flex; align-items: center; gap: 8px; }
.art__checks li::before { content: ""; width: 15px; height: 15px; flex: none; border-radius: 50%; background: var(--ok-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6.3 5 8.6 9.4 3.6' fill='none' stroke='%23157347' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat; }
.art__screens { display: flex; align-items: center; gap: 6px; margin-top: 12px; }
.art__screen { display: flex; flex-direction: column; gap: 4px; width: 40px; height: 66px; padding: 7px 5px; flex: none; border-radius: 7px; border: 1.5px solid #c6d0d8; background: var(--surface); }
.art__screen i { display: block; height: 4px; border-radius: 2px; background: #cfd8de; }
.art__screen i:first-child { width: 60%; background: #8da0ad; }
.art__screen b { display: block; height: 9px; margin-top: auto; border-radius: 3px; background: var(--accent); }
.art__screen .art__done { width: 16px; height: 16px; margin: auto; border-radius: 50%; background: var(--ok-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6.3 5 8.6 9.4 3.6' fill='none' stroke='%23157347' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat; }
.art__arrow { position: relative; flex: 1; min-width: 8px; border-top: 1.5px dashed #b3c0c9; }
.art__arrow::after { content: ""; position: absolute; right: -2px; top: -4.5px; border-block: 3.5px solid transparent; border-left: 5px solid #b3c0c9; }
.art__chip { margin-left: auto; padding: 2px 8px; border-radius: 99px; background: #fdeee6; color: var(--accent); font-size: 0.6875rem; font-weight: 600; white-space: nowrap; }
.art__bars { display: grid; gap: 8px; margin-top: 12px; }
.art__bars span { position: relative; height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.art__bars span::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 4px; background: var(--navy-2); transform-origin: left; transition: transform 900ms var(--ease-out) 250ms; }
.art-sprint .art__bars { gap: 13px; margin-top: 18px; }
.art__live { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); }

/* con JS: los pasos que el riel aún no alcanza esperan apagados */
.method__track.is-live .method__step:not(.is-on) .method__node { background: var(--bg); color: var(--text-2); box-shadow: 0 0 0 6px var(--bg), inset 0 0 0 2px var(--field-line); }
.method__track.is-live .method__step:not(.is-on) .method__copy { opacity: 0.4; }
.method__track.is-live .method__step:not(.is-on) .method__art { opacity: 0.45; transform: perspective(900px) rotateX(16deg) translateY(18px); box-shadow: var(--shadow-sm); }
.method__track.is-live .method__step:not(.is-on) .art__bars span::after { transform: scaleX(0); transition-delay: 0ms; }
.method__track.is-live .method__step.is-on .method__node { animation: node-pop 700ms var(--ease-out); }
.method__track.is-live .method__step.is-on .art__live { animation: live-pulse 2.4s ease-in-out infinite; }
@keyframes node-pop { 0% { box-shadow: 0 0 0 6px var(--bg), 0 0 0 6px rgba(194, 65, 12, 0.45); } 100% { box-shadow: 0 0 0 6px var(--bg), 0 0 0 18px rgba(194, 65, 12, 0); } }
@keyframes live-pulse { 50% { box-shadow: 0 0 0 6px rgba(21, 115, 71, 0.08); } }
@media (hover: hover) and (pointer: fine) {
  .method__step.is-on:hover .method__art, .method__track:not(.is-live) .method__step:hover .method__art { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
}

/* tablet: riel vertical, texto y entregable lado a lado */
@media (max-width: 1080px) {
  .method__list { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .method__step { display: grid; grid-row: auto; grid-template-rows: none; grid-template-columns: 44px minmax(0, 1fr) minmax(0, 0.85fr); column-gap: 28px; align-items: start; }
  .method__copy h3 { margin-top: 8px; }
  .method__art { margin-top: 4px; }
  .method__rail { top: 22px; left: 21px; right: auto; bottom: 0; width: 2px; height: auto; }
}
@media (max-width: 640px) {
  .method__track { margin-top: 48px; }
  .method__list { gap: 40px; }
  .method__step { grid-template-columns: 44px minmax(0, 1fr); column-gap: 18px; }
  .method__art { grid-column: 2; margin-top: 18px; }
}

/* --- por qué elegirnos: comparación con la columna de Mindev elevada sobre la página --- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.vs { --a: 210px; --g: 40px; position: relative; margin-top: 56px; }
.vs::before { content: ""; position: absolute; top: -14px; bottom: -14px; right: -24px; left: calc(var(--a) + 2 * var(--g) + (100% - var(--a) - 2 * var(--g)) / 2.2 - 24px); border-radius: 16px; background: var(--bg); box-shadow: inset 0 3px 0 var(--accent), var(--shadow-lg); }
.vs__row { position: relative; display: grid; grid-template-columns: var(--a) minmax(0, 1fr) minmax(0, 1.2fr); column-gap: var(--g); align-items: baseline; padding: 18px 0; border-top: 1px solid rgba(20, 33, 43, 0.09); }
.vs__row--head { padding: 12px 0 16px; border-top: 0; align-items: center; }
.vs__aspect { font-weight: 600; line-height: 1.4; color: var(--ink); }
.vs__them { color: var(--text-2); }
.vs__us { position: relative; padding-left: 30px; color: var(--ink); }
.vs__us::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 19px; height: 19px; border-radius: 50%; background: var(--ok-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6.3 5 8.6 9.4 3.6' fill='none' stroke='%23157347' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.vs__us strong { font-weight: 600; }
.vs__row--head .vs__them { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.vs__row--head .vs__us { display: inline-flex; align-items: center; gap: 10px; padding-left: 0; font-size: 1.125rem; font-weight: 600; color: var(--navy); }
.vs__row--head .vs__us::before { content: none; }
.vs__mark { width: 22px; height: 22px; flex: none; color: var(--logo-ink); --mark-off: var(--logo-off); }
.why__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 64px; padding: 26px 32px; border-radius: 14px; background: var(--navy); box-shadow: var(--shadow-md); }
.why__cta p { font-size: var(--step-lead); line-height: 1.45; color: var(--navy-text); }
.why__cta strong { font-weight: 600; color: #fff; }
@media (max-width: 1080px) {
  .vs { --a: 150px; --g: 40px; }
}
@media (max-width: 760px) {
  .vs { margin-top: 36px; }
  .vs::before, .vs__row--head { display: none; }
  .vs__row { grid-template-columns: minmax(0, 1fr); row-gap: 10px; padding: 24px 0; }
  .vs__row:first-of-type { border-top: 0; }
  .vs__aspect { font-size: 1.125rem; }
  .vs__them::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
  .vs__us { margin-top: 4px; padding: 14px 16px 15px 46px; border-radius: 12px; background: var(--bg); box-shadow: inset 0 3px 0 var(--accent), var(--shadow-md); }
  .vs__us::before { left: 16px; top: 16px; }
  .why__cta { margin-top: 40px; padding: 22px 20px; }
  .why__cta .button { width: 100%; }
}


/* portada */
.hero__stick { background: radial-gradient(900px 520px at 8% 12%, #eaf0f5 0%, rgba(234, 240, 245, 0) 70%), url(../assets/img/topo-claro.svg) center / cover no-repeat, var(--bg); }
.hero__frame { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.cine .hero__frame { box-shadow: none; transition: box-shadow 600ms ease; }
.cine .hero.is-landed .hero__frame { box-shadow: var(--shadow-lg); }
.device__frame { box-shadow: 0 30px 60px -18px rgba(6, 18, 27, 0.55); }
.hero__chip { position: absolute; z-index: 4; right: -22px; top: calc(50% - min(44%, 310px) + 32px); display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: var(--radius-lg); background: var(--bg); box-shadow: var(--shadow-md); font-size: var(--step-small); line-height: 1.3; }
.hero__chip b { display: block; font-weight: 600; color: var(--ink); }
.hero__chip small { display: block; font-size: var(--step-small); color: var(--text-2); }
.hero__chip-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--ok-bg); color: var(--ok); }
.cine .hero__chip { opacity: 0; transform: translateY(10px); transition: opacity 500ms ease, transform 600ms var(--ease-out); }
.cine .hero.is-landed .hero__chip { opacity: 1; transform: none; transition-delay: 200ms; }

/* tecnologías como fichas */
.stack { background: var(--surface); }
.stack__list { gap: 10px; }
.stack__list li { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 18px 8px 14px; border-radius: 999px; background: var(--bg); box-shadow: var(--shadow-sm); color: var(--ink); font-size: var(--step-ui); font-weight: 500; transition: transform 220ms var(--ease-out), box-shadow 220ms ease; }
.tech__logo { width: 24px; height: 24px; flex: none; }
.tech__logo--wide { width: 46px; height: 28px; }
.stack__list .tech--aws { padding-inline: 18px; }
@media (hover: hover) and (pointer: fine) { .stack__list li:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); } }


/* servicios */
.tour { background: url(../assets/img/topo-claro.svg) center / cover no-repeat, var(--surface); }
.tour__btn { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; align-items: start; }
.tour__btn > span:not(.tour__ico) { grid-column: 2; }
.tour__ico { grid-row: 1 / span 3; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--navy-soft); color: var(--navy); transition: background-color var(--t-ui) ease, color var(--t-ui) ease; }
.tour__step.is-on .tour__btn { box-shadow: var(--shadow-md); }
.tour__step.is-on .tour__ico { background: var(--accent); color: #fff; }
.tour__stage, .tour__inline { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background: url(../assets/img/topo-oscuro.svg) center / cover no-repeat, radial-gradient(circle at 25% 15%, #1f4b68 0%, var(--navy) 62%); }
.frag .mphone, .frag .panel, .frag .log, .frag .chat__a { box-shadow: 0 28px 56px -18px rgba(0, 0, 0, 0.55); }
.tour__more { background: var(--bg); box-shadow: var(--shadow-sm); border-radius: var(--radius-lg); }

/* servicios por scroll: en escritorio el escenario queda fijo y muestra el servicio que pasa por el centro */
.tour__progress { position: absolute; z-index: 2; top: 16px; left: 20px; right: 20px; display: flex; gap: 6px; }
.tour__progress span { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.16); transition: background-color 400ms ease; }
.tour__progress span.is-done { background: rgba(255, 255, 255, 0.5); }
.tour__progress span.is-on { background: var(--logo-acc); }
.tour__inline { display: none; }
.tour.is-scrolly .tour__steps { gap: 0; }
.tour.is-scrolly .tour__step { min-height: 52vh; scroll-margin-top: 28vh; }
.tour.is-scrolly .tour__step:last-child { min-height: 40vh; }
.tour.is-scrolly .tour__btn { transition: background-color 400ms ease, box-shadow 400ms ease, opacity 400ms ease; }
.tour.is-scrolly .tour__step:not(.is-on) .tour__btn { opacity: 0.4; }
.tour.is-scrolly .tour__more { margin-top: 0; }

/* industrias: control segmentado y foto con elevación */
.ind__frame { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }


/* índice de industrias: miniatura recortada sobre el objeto, acordeón y barra de avance */
.ind__list { border-top: 1px solid var(--field-line); }
.ind__item { position: relative; border-bottom: 1px solid var(--field-line); }
.ind__h { font-size: inherit; }
.ind__btn { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 16px; width: 100%; padding: 14px 0; text-align: left; }
.ind__thumb { width: 48px; height: 48px; border-radius: 10px; background: var(--surface-2) center / cover no-repeat; box-shadow: inset 0 0 0 1px rgba(20, 33, 43, 0.08); filter: grayscale(1); opacity: 0.7; transition: filter 450ms ease, opacity 450ms ease, transform 450ms var(--ease-out); }
.ind__label { font-size: 1.1875rem; font-weight: 500; line-height: 1.3; color: var(--text-2); transition: color 240ms ease; }
.ind__item.is-on .ind__thumb { filter: none; opacity: 1; }
.ind__item.is-on .ind__label { color: var(--ink); font-weight: 600; }
@media (hover: hover) and (pointer: fine) {
  .ind__item:not(.is-on) .ind__btn:hover .ind__thumb { filter: grayscale(0.15); opacity: 1; transform: scale(1.06); }
  .ind__item:not(.is-on) .ind__btn:hover .ind__label { color: var(--ink); }
}
.ind__bar { position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.ind__item.is-on .ind__bar { transform: scaleX(1); transition: transform 600ms var(--ease-out); }
.ind__inner { padding-left: 64px; }

/* industrias por scroll: la foto queda fija y cambia según la industria que pasa por la línea de lectura */
.ind__photo { position: sticky; top: calc(var(--bar-h) + 32px); z-index: 3; }
.ind__item { min-height: 46vh; }
.ind__item:last-child { min-height: 0; }
.ind__inner, .ind__label { transition: opacity 400ms ease, color 240ms ease; }
.js .ind__item:not(.is-on) .ind__inner { opacity: 0.4; }
.ind__inner .link-arrow { display: inline-block; margin: 20px 0 26px; }

/* cambio de industria: la foto nueva aparece en trama de puntos desde el objeto y el visor lo enfoca */
.ind__fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ind__frame.has-fx .ind__img { transition: none; }
.ind__focus {
  --arm: 18px;
  position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; opacity: 0; border-radius: 3px;
  background:
    linear-gradient(#fff 0 0) 0 0 / var(--arm) 2px, linear-gradient(#fff 0 0) 0 0 / 2px var(--arm),
    linear-gradient(#fff 0 0) 100% 0 / var(--arm) 2px, linear-gradient(#fff 0 0) 100% 0 / 2px var(--arm),
    linear-gradient(#fff 0 0) 0 100% / var(--arm) 2px, linear-gradient(#fff 0 0) 0 100% / 2px var(--arm),
    linear-gradient(#fff 0 0) 100% 100% / var(--arm) 2px, linear-gradient(#fff 0 0) 100% 100% / 2px var(--arm);
  background-repeat: no-repeat;
  box-shadow: 0 0 0 200vmax rgba(11, 34, 50, 0.24);
  transition: opacity 240ms ease, left 760ms var(--ease-out), top 760ms var(--ease-out), width 760ms var(--ease-out), height 760ms var(--ease-out);
}
.ind__focus.is-on { opacity: 1; }
.ind__focus.no-anim { transition: none; }
.ind__tag { position: absolute; left: 0; bottom: calc(100% + 10px); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 6px 11px 6px 9px; border-radius: 6px; background: rgba(255, 255, 255, 0.96); box-shadow: var(--shadow-sm); font-size: 0.8125rem; line-height: 1.3; color: var(--text-2); opacity: 0; transform: translateY(6px); transition: opacity 260ms ease, transform 420ms var(--ease-out); }
.ind__tag::before { content: ""; width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--logo-acc); box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.16); }
.ind__tag b { font-weight: 600; color: var(--ink); }
.ind__tag b::after { content: "·"; margin-left: 8px; font-weight: 400; color: var(--text-2); }
.ind__focus.is-below .ind__tag { bottom: auto; top: calc(100% + 10px); transform: translateY(-6px); }
.ind__focus.is-locked .ind__tag { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .ind__focus, .ind__tag { transition: opacity 200ms ease; }
  .ind__tag, .ind__focus.is-below .ind__tag { transform: none; }
}

/* compromisos: foto aérea de faena bajo el azul */
.figures { position: relative; overflow: hidden; isolation: isolate; }
.figures__bg { position: absolute; inset: -10% 0; z-index: -1; background: linear-gradient(100deg, rgba(15, 45, 64, 0.97) 0%, rgba(15, 45, 64, 0.88) 50%, rgba(15, 45, 64, 0.74) 100%), url(../assets/img/faena-aerea.jpg) center / cover no-repeat; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .figures__bg { animation: figures-par linear both; animation-timeline: view(); }
    @keyframes figures-par { from { transform: translateY(-6%); } to { transform: translateY(6%); } }
  }
}
.figures__list > div { padding-top: 22px; border-top: 2px solid rgba(255, 255, 255, 0.16); } /* taste-skill-ignore: separador de cifras */
.figures__list dt { font-size: var(--step-h1); }

/* metodología */

/* por qué elegirnos */
.why { background: url(../assets/img/topo-claro.svg) center / cover no-repeat, var(--surface); }

/* nosotros */

/* preguntas */
.faq .q { box-shadow: var(--shadow-sm); }
.faq .q[open] { box-shadow: var(--shadow-md); }

/* contacto */
.contact { background: url(../assets/img/topo-oscuro.svg) center / cover no-repeat, radial-gradient(1000px 600px at 85% 20%, #1f4b68 0%, rgba(31, 75, 104, 0) 70%), var(--navy); }
.form { border-radius: var(--radius-lg); box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.5); }
.contact__ways li { grid-template-columns: 24px 5.5em minmax(0, 1fr); align-items: center; }
.way-ico { color: #ffb38f; }

/* pie */
.foot { background: url(../assets/img/topo-oscuro.svg) center / cover no-repeat, var(--navy-deep); }

/* =====================================================================
   Tablet y teléfono
   ===================================================================== */
@media (max-width: 1080px) {
  .figures__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .hero__layout { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); row-gap: 20px; padding: 18px var(--gutter) 20px; align-items: stretch; }
  .hero__title { font-size: 2.25rem; }
  .hero__sub { font-size: var(--step-body); margin-top: 12px; }
  .hero__actions { margin-top: 20px; gap: 12px 20px; }
  .hero__proof { display: none; }
  .hero__visual { justify-content: stretch; }
  .hero__frame { width: 100%; height: 100%; }
  .hero__slot { left: auto; right: 14px; bottom: 14px; height: 66%; }
  .cine .hero__hint { right: 0; left: 0; text-align: center; bottom: 16px; }

  .pains__top, .pains__rows li, .pains__end { grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
  .pains__top { row-gap: 20px; }
  .pains__end { row-gap: 32px; }
  .ind__inner { padding-left: 0; }
  .ind__item { min-height: 0; }
  .ind__photo { top: var(--bar-h); margin-inline: calc(var(--gutter) * -1); padding: 12px var(--gutter) 4px; background: var(--bg); }
  .ind__photo::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 28px; background: linear-gradient(var(--bg), rgba(255, 255, 255, 0)); pointer-events: none; }
  .ind__credit { margin-top: 8px; }
  .ind__btn { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
  .ind__thumb { width: 44px; height: 44px; }
  .tour__grid, .ind__panel, .faq__in, .contact__in, .foot__top { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .tour__col { display: none; }
  .tour__steps { gap: 20px; }
  .tour__step { padding: 20px; border-radius: var(--radius-lg); background: var(--bg); box-shadow: var(--shadow-sm); }
  .tour__step .tour__btn, .tour__step.is-on .tour__btn { padding: 0; background: none; box-shadow: none; cursor: default; }
  .tour__step .tour__name, .tour__step.is-on .tour__name { color: var(--ink); }
  .tour__step.is-on .tour__ico { background: var(--navy-soft); color: var(--navy); }
  .tour__inline { display: grid; margin-top: 18px; overflow: hidden; }
  .js .tour .tour__inline .frag { opacity: 1; transform: none; visibility: visible; pointer-events: auto; height: auto; padding: 22px 14px; }
  .hero__chip { right: auto; left: 12px; top: 12px; padding: 8px 12px 8px 8px; }
  .hero__chip-ico { width: 30px; height: 30px; }
  .figures__list dt { font-size: var(--step-h2); }
  .tour__grid { margin-top: 32px; }
  .faq__side { position: static; }
  .form__row { grid-template-columns: 1fr; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .figures__list { grid-template-columns: 1fr; gap: 24px; }
  .panel__tabs span:not(.is-on) { display: none; }
  .panel__kpis { padding: 12px; gap: 6px; }
  .panel__kpis b { font-size: 1.25rem; }
  .panel__table th:nth-child(3), .panel__table td:nth-child(3) { display: none; }
  .panel__table td, .panel__table th { padding: 8px 6px; }
  .panel { font-size: 0.75rem; }
  .panel__table td { white-space: normal; }
  .panel__live { display: none; }
  .frag { padding: 16px; }
  .pill { white-space: nowrap; }
  .log__list li { grid-template-columns: auto 1fr; }
  .log__ok { display: none; }
}

/* =====================================================================
   Movimiento: entradas suaves, nada queda oculto sin JS
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .pains__strike { background-size: 0% 0.08em; transition: background-size 900ms var(--ease-in-out) 450ms; }
  .js .pains__rows h3 { color: var(--ink); transition: color 600ms ease 1100ms; }
  .js .is-in .pains__strike { background-size: 100% 0.08em; }
  .js .pains__rows li.is-in h3 { color: var(--text-2); }
}
