/* STA TecnologIA · Opus v2. Documento sereno, móvil primero, claro a propósito.
   Paleta del logo con roles fijos: morado = pendiente, verde = en orden, azul = guía y foco. */
:root {
  --sc-canvas: #ffffff;
  --sc-surface: #f5f7fb;
  --sc-ink: #10233d;
  --sc-ink-soft: #4a5871;
  --sc-accent: #157a3c;
  --sc-accent-ink: #ffffff;
  --sc-font-display: "Red Hat Display", system-ui, sans-serif;
  --sc-font-text: "Red Hat Text", system-ui, sans-serif;
  --sc-shadow-color: 218 45% 18%;

  --navy: #1e3a5f;
  --accent: #15803d;        /* verde del "IA" del logo, oscurecido para contraste AA con texto blanco */
  --accent-hover: #116b33;
  --accent-soft: #e7f5ec;
  --pend: #6b2a85;
  --ok: #157a3c;
  --ok-bg: #e4f3e9;
  --guide: #2563eb;
  --soft: #f5f7fb;
  --line: rgba(16, 35, 61, 0.11);
  --gut: max(16px, env(safe-area-inset-left, 0px), clamp(1.1rem, 4.5vw, 3rem));
  --maxw: 72rem;
  --r: 16px;
}
::selection { background: #d6e4ff; color: var(--sc-ink); }
:focus-visible { outline: 2px solid var(--guide); outline-offset: 3px; border-radius: 6px; }
html { scroll-padding-top: 120px; }
body { background: var(--sc-canvas); }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
h1, h2, h3 { font-family: var(--sc-font-display); margin: 0; text-wrap: balance; color: var(--sc-ink); }
p { margin: 0; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }
.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 10px; }
.skip:focus { left: 16px; }
.icon { width: 1.1em; height: 1.1em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--navy); color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap;
  box-shadow: var(--sc-e1), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: background 160ms var(--sc-ease-out), transform 120ms var(--sc-ease-out);
}
.btn:hover { background: #17304f; }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: #fff; color: var(--sc-ink); border: 1px solid var(--line); box-shadow: none; }
.btn--ghost:hover { background: var(--soft); }
.btn .icon { width: 18px; height: 18px; }
.eyebrow { font: 700 0.76rem/1 var(--sc-font-text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ok); display: block; margin-bottom: 14px; }

/* ---------------------------------------------------------------- barra */
.bar { position: sticky; top: 0; z-index: 60; background: #ffffff; border-bottom: 1px solid transparent; transition: border-color 200ms var(--sc-ease-out), box-shadow 200ms var(--sc-ease-out); }
.bar.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 18px -10px rgba(16, 35, 61, 0.28); }
section[id], [id$="-title"] { scroll-margin-top: 120px; }
.bar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 90px; }
.bar__logo img { height: 72px; width: auto; }
.bar__nav { display: none; align-items: center; gap: 4px; font-weight: 600; font-size: 0.95rem; }
.bar__nav > a, .drop > button { padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--sc-ink-soft); background: none; border: 0; font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.bar__nav > a:hover, .drop > button:hover { color: var(--sc-ink); background: var(--soft); }
.drop { position: relative; }
.drop .icon { width: 14px; height: 14px; transition: transform 160ms var(--sc-ease-out); }
.drop.open .icon { transform: rotate(180deg); }
.drop__panel { display: none; position: absolute; top: calc(100% + 8px); left: 0; width: 20rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sc-e3); padding: 8px; }
.drop.open .drop__panel { display: block; }
.drop__panel a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-weight: 600; color: var(--sc-ink); }
.drop__panel a:hover { background: var(--soft); color: var(--ok); }
.bar__cta { display: none; }
.bar__toggle { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--sc-ink); }
.bar__toggle .icon { width: 22px; height: 22px; }
.bar__progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--guide); transform-origin: 0 50%; transform: scaleX(var(--page, 0)); opacity: 0.7; }

.sheet { position: fixed; inset: 0; z-index: 90; background: #fff; overflow: auto; padding: 0 var(--gut) 32px; }
.sheet[hidden] { display: none; }
.sheet__top { display: flex; justify-content: space-between; align-items: center; min-height: 90px; }
.sheet__top img { height: 72px; width: auto; }
.sheet h2 { font: 700 0.76rem/1 var(--sc-font-text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--sc-ink-soft); margin: 22px 0 6px; }
.sheet ul { list-style: none; margin: 0; padding: 0; }
.sheet a:not(.btn) { display: flex; min-height: 48px; align-items: center; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.sheet .btn { width: 100%; margin-top: 24px; }

@media (min-width: 980px) {
  .bar__nav, .bar__cta { display: inline-flex; }
  .bar__toggle { display: none; }
  .bar__logo img { height: 92px; }
  .bar__in { min-height: 108px; }
}

/* ---------------------------------------------------------------- hero */
.hero { padding: 28px 0 56px; overflow-x: clip; }
.hero__grid { display: grid; gap: 36px; }
.hero h1 { font-weight: 800; font-size: clamp(2rem, 1.3rem + 3.2vw, 3.6rem); line-height: 1.04; letter-spacing: -0.03em; max-width: 16ch; }
.hero__sub { margin-top: 18px; color: var(--sc-ink-soft); font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.2rem); max-width: 44ch; }
.hero__ctas { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; color: var(--sc-ink-soft); font-size: 0.9rem; }
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts .icon { color: var(--guide); }

/* la bandeja que se ordena sola */
.stage { position: relative; }
.stage__mark { position: absolute; width: 70%; right: -14%; top: -10%; opacity: 0.08; pointer-events: none; }
.stage__back { position: absolute; inset: 22px -10px -14px 22px; border-radius: 22px; background: var(--soft); border: 1px solid var(--line); }
.inbox { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--sc-e3); padding: 14px; }
.inbox__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 6px 12px; border-bottom: 1px solid var(--line); }
.inbox__head b { font: 700 1rem/1.2 var(--sc-font-display); }
.inbox__head span { font-size: 0.75rem; color: var(--sc-ink-soft); }
.inbox__list { --rowh: 5rem; list-style: none; margin: 0; padding: 10px 0 0; display: flex; flex-direction: column; gap: 8px; height: calc(var(--rowh) * 5 + 8px * 4 + 10px); overflow: hidden; contain: layout paint; }
@media (min-width: 900px) { .inbox__list { --rowh: 4.25rem; } }
.row { flex: none; height: var(--rowh); box-sizing: border-box; overflow: hidden; display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; grid-template-rows: auto 1fr; gap: 2px 10px; align-items: start; padding: 10px; border-radius: 12px; background: var(--soft); border: 1px solid transparent;
  transition: background 400ms var(--sc-ease-out), border-color 400ms var(--sc-ease-out), opacity 500ms var(--sc-ease-out); }
.row.enter { opacity: 0; }
.row__ch { grid-row: 1 / span 2; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); font: 700 0.62rem/1 var(--sc-font-text); color: var(--sc-ink-soft); }
.row__txt { font-size: 0.9rem; line-height: 1.32; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 900px) { .row__txt { -webkit-line-clamp: 1; } }
.row__state { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 700; color: var(--pend); white-space: nowrap; }
.row__state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.row__next { grid-column: 2 / span 2; font-size: 0.76rem; color: var(--sc-ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity 400ms var(--sc-ease-out); }
.row.done { background: #fff; border-color: rgba(21, 122, 60, 0.22); }
.row.done .row__state { color: #11602f; background: var(--ok-bg); padding: 3px 9px; border-radius: 999px; }
.row.done .row__state::before { display: none; }
.row.done .row__next { opacity: 1; }
.row.human.done .row__state { color: var(--navy); background: #e6edf8; }
.inbox__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 6px 2px; border-top: 1px solid var(--line); margin-top: 10px; font-size: 0.8rem; color: var(--sc-ink-soft); font-variant-numeric: tabular-nums; }
.inbox__foot b { color: var(--sc-ink); }
.replay { background: none; border: 1px solid var(--line); border-radius: 999px; min-height: 36px; padding: 0 12px; font-weight: 700; font-size: 0.78rem; color: var(--sc-ink); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.replay:hover { background: var(--soft); }
.replay .icon { width: 14px; height: 14px; }

@media (min-width: 900px) {
  .hero { padding: 56px 0 88px; }
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
}

/* ---------------------------------------------------------------- secciones */
.sec { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.sec--soft { background: var(--soft); }
.sec h2 { font-weight: 800; font-size: clamp(1.65rem, 1.2rem + 2vw, 2.6rem); line-height: 1.08; letter-spacing: -0.03em; max-width: 20ch; }
.sec__lead { margin-top: 14px; color: var(--sc-ink-soft); max-width: 52ch; }

.cost { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 0; }
.cost li { display: grid; grid-template-columns: 1.6rem 1fr; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); font: 600 clamp(1.08rem, 0.98rem + 0.5vw, 1.35rem)/1.35 var(--sc-font-display); }
.cost li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--pend); margin-top: 0.5em; }
.cost li:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 900px) {
  .cost { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .cost li:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .split-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
  .split-head .sec__lead { margin-top: 0; }
}

.ledger { list-style: none; margin: 30px 0 0; padding: 0; border-top: 1px solid var(--line); }
.ledger a { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.ledger b { font: 700 clamp(1.08rem, 1rem + 0.4vw, 1.3rem)/1.25 var(--sc-font-display); }
.ledger span { grid-column: 1; color: var(--sc-ink-soft); font-size: 0.97rem; }
.ledger .icon { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: var(--ok); width: 20px; height: 20px; transition: transform 160ms var(--sc-ease-out); }
.ledger a:hover b { color: var(--ok); }
@media (hover: hover) and (pointer: fine) { .ledger a:hover .icon { transform: translateX(4px); } }
.ledger em { font-style: normal; margin-left: 8px; font: 700 0.66rem/1 var(--sc-font-text); letter-spacing: 0.06em; text-transform: uppercase; background: var(--ok-bg); color: #11602f; padding: 4px 8px; border-radius: 999px; vertical-align: 3px; }
.local { margin-top: 20px; font-size: 0.97rem; color: var(--sc-ink-soft); }
.local a { color: var(--sc-ink); font-weight: 600; }
@media (min-width: 900px) { .ledger { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; } }

.channels { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; list-style: none; padding: 0; }
.channels li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 0.9rem; }
.resp { display: grid; gap: 28px; }
/* Sello oficial de respond.io (archivo entregado por Jaime, 200x73). Se muestra a su tamaño para que no pierda nitidez. */
.partner { display: inline-block; margin-top: 24px; line-height: 0; border-radius: 10px; }
.partner img { width: 180px; height: auto; display: block; }
.page-hero .partner { margin-top: 22px; }
.resp ul.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.resp ul.checks li { display: grid; grid-template-columns: 1.5rem 1fr; gap: 10px; }
.resp ul.checks .icon { color: var(--ok); margin-top: 3px; }
@media (min-width: 900px) { .resp { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; } }

/* pasos con línea de avance: lo único que se mueve con el scroll */
.steps { position: relative; list-style: none; margin: 32px 0 0; padding: 0 0 0 28px; display: grid; gap: 26px; }
.steps::before, .steps::after { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; }
.steps::before { background: var(--line); }
.steps::after { background: var(--guide); transform-origin: 50% 0; transform: scaleY(var(--fill, 0)); }
.steps li { position: relative; }
.steps li::before { content: ""; position: absolute; left: -26px; top: 0.35em; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--guide); }
.steps b { display: block; font: 700 1.15rem/1.25 var(--sc-font-display); }
.steps span { color: var(--sc-ink-soft); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); padding: 30px 0 0; gap: 28px; }
  .steps::before, .steps::after { left: 0; right: 0; top: 6px; bottom: auto; width: auto; height: 2px; }
  .steps::after { transform-origin: 0 50%; transform: scaleX(var(--fill, 0)); }
  .steps li::before { left: 0; top: -31px; }
}

.area { display: grid; gap: 40px; }
@media (min-width: 900px) { .area { grid-template-columns: 0.9fr 1.1fr; gap: 56px; } }
.places { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 22px 0 0; }
.places li { border: 1px solid rgba(21, 122, 60, 0.28); color: #11602f; border-radius: 999px; padding: 6px 13px; font-size: 0.9rem; font-weight: 600; }
.faq { border-top: 1px solid var(--line); }
.faq h3 { font: inherit; margin: 0; }
.faq button { width: 100%; min-height: 56px; display: flex; justify-content: space-between; align-items: center; gap: 14px; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 14px 0; font: 700 1.02rem/1.35 var(--sc-font-display); color: var(--sc-ink); cursor: pointer; }
.faq button .icon { color: var(--ok); transition: transform 200ms var(--sc-ease-out); }
.faq button[aria-expanded="true"] .icon { transform: rotate(45deg); }
.faq .ans { padding: 6px 0 18px; color: var(--sc-ink-soft); }
.faq .ans[hidden] { display: none; }
.more { display: inline-block; margin-top: 18px; font-weight: 700; color: var(--ok); }

/* ---------------------------------------------------------------- cierre */
.close { padding: clamp(3.5rem, 8vw, 6rem) 0 0; }
.close__box { background: var(--navy); color: #fff; border-radius: 24px; padding: clamp(1.8rem, 5vw, 3.5rem); display: grid; gap: 26px; }
.close__box h2 { color: #fff; font-weight: 800; font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3rem); line-height: 1.05; letter-spacing: -0.03em; max-width: 18ch; }
.close__box p { color: rgba(255, 255, 255, 0.86); max-width: 46ch; }
.close__box .btn { background: #fff; color: var(--navy); }
.close__box .btn:hover { background: #eef3fb; }
.close__box .btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.nap { font-style: normal; display: grid; gap: 8px; font-size: 0.97rem; }
.nap a { color: #fff; font-weight: 600; text-decoration: none; }
.nap a:hover { text-decoration: underline; }
@media (min-width: 900px) { .close__box { grid-template-columns: 1.2fr 0.8fr; align-items: end; } }
.ph { background: #fff4c7; color: #6b4a00; padding: 0 4px; border-radius: 4px; font-weight: 700; }

.foot { padding: 36px 0 40px; }
.foot__in { display: grid; gap: 22px; border-top: 1px solid var(--line); padding-top: 26px; font-size: 0.9rem; color: var(--sc-ink-soft); }
.foot__in img { height: 104px; width: auto; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot nav a { text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.foot nav a:hover { color: var(--ok); }
@media (min-width: 900px) { .foot__in { grid-template-columns: auto 1fr auto; align-items: center; } .foot nav { justify-content: center; } }
.foot__link { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; min-height: 32px; display: inline-flex; align-items: center; }
.foot__link:hover { color: var(--ok); }

/* Aviso de cookies: fijo abajo a la izquierda, no empuja el contenido */
.cookies { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 50px -18px rgba(16, 35, 61, 0.35); padding: 18px 18px 16px; font-size: 0.93rem; color: var(--sc-ink); }
.cookies[hidden] { display: none; }
.cookies h2 { font-size: 1.02rem; margin: 0 0 6px; }
.cookies p { margin: 0; color: var(--sc-ink-soft); line-height: 1.5; }
.cookies p a { color: var(--sc-ink); font-weight: 600; }
.cookies__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.cookies__btns .btn { min-height: 42px; padding: 0 18px; font-size: 0.93rem; }
@media (min-width: 640px) { .cookies { right: auto; max-width: 420px; left: 24px; bottom: 24px; } }

@media (prefers-reduced-motion: reduce) {
  .row, .row__next { transition: none; }
  .steps::after { transform: none; }
}

/* ---------------------------------------------------------------- páginas internas */
.narrow { max-width: 52rem; }
.page-hero { padding: 22px 0 clamp(2.5rem, 6vw, 4rem); }
.crumbs ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.88rem; color: var(--sc-ink-soft); }
.crumbs li + li::before { content: "/"; margin-right: 6px; }
.crumbs a { text-decoration: none; font-weight: 600; color: var(--sc-ink); }
.crumbs a:hover { color: var(--ok); }
.page-hero h1 { font-weight: 800; font-size: clamp(1.9rem, 1.2rem + 3vw, 3.3rem); line-height: 1.06; letter-spacing: -0.03em; max-width: 20ch; }
.page-hero .lead { margin-top: 18px; color: var(--sc-ink-soft); font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.2rem); max-width: 60ch; }
.article { padding-top: 0; }
.prose { max-width: 46rem; display: flex; flex-direction: column; gap: 16px; font-size: 1.04rem; color: #26364f; }
/* Párrafos de lectura justificados. La división silábica (hyphens) evita huecos grandes entre palabras. */
.prose p, .prose li, .page-hero .lead, .sec__lead, .about__text p, .ans p, .svc__card p, .hero__sub {
  text-align: justify; -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 7 4 3;
}
.prose h2 { font-weight: 800; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); line-height: 1.12; letter-spacing: -0.02em; margin-top: 30px; max-width: none; }
.prose h3 { font-weight: 700; font-size: 1.18rem; margin-top: 10px; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3rem; display: grid; gap: 8px; }
.prose li::marker { color: var(--ok); }
.prose strong { color: var(--sc-ink); }
.prose a { color: var(--ok); font-weight: 600; }
.sec h2[id="faq-title"], .related h2 { margin-bottom: 22px; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); }
.ledger--short a { padding: 16px 0; align-items: center; }
.ledger--short b { grid-column: 1; }
.ledger--short .icon { grid-row: 1; }
.napcard { display: grid; gap: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.napcard p { display: grid; grid-template-columns: 7rem 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.napcard span { color: var(--sc-ink-soft); font-size: 0.92rem; }
.napcard a { color: var(--sc-ink); font-weight: 600; text-decoration: none; }
.napcard a:hover { color: var(--ok); }
@media (max-width: 480px) { .napcard p { grid-template-columns: 1fr; gap: 2px; } }

.contact { display: grid; gap: 40px; }
@media (min-width: 900px) { .contact { grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; } }
.contact__li { margin-top: 18px; }
.contact__li a { color: var(--ok); font-weight: 700; }
.form { background: var(--soft); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.25rem, 4vw, 2rem); display: grid; gap: 16px; }
.form h2 { font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; }
.form__row { display: grid; gap: 16px; }
@media (min-width: 600px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(16, 35, 61, 0.24); background: #fff; font-size: 1rem; }
.field textarea { resize: vertical; min-height: 130px; }
.field [aria-invalid="true"] { border-color: #b91c1c; }
.field-error { color: #991b1b; font-size: 0.86rem; margin-top: 5px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; }
@media (min-width: 600px) { .form .btn { width: auto; justify-self: start; } }
.btn[disabled] { opacity: 0.65; cursor: wait; }
.form__note { font-size: 0.86rem; color: var(--sc-ink-soft); }
.form__note a { color: var(--ok); }
.form__status { display: none; padding: 12px 14px; border-radius: 12px; font-weight: 600; }
.form__status.show { display: block; }
.form__status.ok { background: var(--ok-bg); color: #11602f; }
.form__status.err { background: #fdecec; color: #991b1b; }

/* ---------------------------------------------------------------- acento del logo */
.btn { background: var(--accent); }
.btn:hover { background: var(--accent-hover); }
.btn--ghost { background: #fff; }
.btn--ghost:hover { background: var(--soft); }
.close__box .btn { background: var(--accent); color: #fff; }
.close__box .btn:hover { background: var(--accent-hover); }
.eyebrow { color: var(--accent); }
.bar__progress { background: var(--accent); }
.steps::after { background: var(--accent); }
.steps li::before { border-color: var(--accent); }
.hero h1 em { font-style: normal; color: var(--accent); }

/* ---------------------------------------------------------------- servicios en tarjetas */
.svc { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 700px) { .svc { grid-template-columns: 1fr 1fr; } }
.svc__card { position: relative; display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--sc-e1); }
.svc__card--feat { border-color: rgba(21, 128, 61, 0.35); background: linear-gradient(180deg, var(--accent-soft), #fff 70%); }
.svc__badge { position: absolute; top: 18px; right: 18px; background: var(--accent); color: #fff; font: 700 0.68rem/1 var(--sc-font-text); letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; }
.svc__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); color: var(--navy); }
.svc__card--feat .svc__icon { background: var(--accent); color: #fff; }
.svc__icon .icon { width: 24px; height: 24px; }
.svc__card h3 { font: 700 1.2rem/1.25 var(--sc-font-display); padding-right: 6.5rem; }
.svc__card:not(.svc__card--feat) h3 { padding-right: 0; }
.svc__card h3 a { text-decoration: none; }
.svc__card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }
.svc__card p { color: var(--sc-ink-soft); font-size: 0.97rem; }
.svc__ex { background: var(--soft); border-radius: 12px; padding: 10px 12px; font-size: 0.92rem !important; color: #2a3a52 !important; }
.svc__card--feat .svc__ex { background: #fff; }
.svc__ex b { color: var(--accent); }
.svc__more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--accent); font-size: 0.92rem; }
.svc__more .icon { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) { .svc__card { transition: transform 160ms var(--sc-ease-out), box-shadow 160ms var(--sc-ease-out); } .svc__card:hover { transform: translateY(-2px); box-shadow: var(--sc-e2); } }
.svc__card:focus-within { outline: 2px solid var(--guide); outline-offset: 3px; }

/* ---------------------------------------------------------------- quiénes somos */
.about { display: grid; gap: 32px; }
@media (min-width: 900px) { .about { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; } }
.about__photo { display: block; min-width: 0; }
.about__photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; box-shadow: 0 18px 40px -24px rgba(16, 35, 61, 0.35); }
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.photo { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.photo__frame { aspect-ratio: 4 / 5; max-width: 100%; border-radius: 18px; border: 2px dashed rgba(16, 35, 61, 0.22); background: var(--soft); display: grid; place-items: center; text-align: center; color: var(--sc-ink-soft); padding: 12px; }
.photo__frame .icon { width: 30px; height: 30px; margin: 0 auto 8px; }
.photo__frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.photo figcaption { font-size: 0.86rem; color: var(--sc-ink-soft); }
.about__text p + p { margin-top: 14px; }
.about__text .more { margin-top: 18px; }
.quote { margin: 40px 0 0; background: #fff; border: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 18px; padding: 24px; display: grid; grid-template-columns: auto 1fr; gap: 14px; box-shadow: var(--sc-e1); }
.quote > .icon { width: 30px; height: 30px; color: var(--accent); }
.quote blockquote { margin: 0; font: 600 1.1rem/1.45 var(--sc-font-display); }
.quote figcaption { grid-column: 2; font-size: 0.9rem; color: var(--sc-ink-soft); }
.close__box .btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.close__box .btn--ghost:hover { background: rgba(255, 255, 255, 0.08); }
.photo { min-width: 0; }
.photo__frame span { overflow-wrap: anywhere; font-size: 0.85rem; }
.testis { display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 900px) { .testis { grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); } }
.testis .quote { margin: 0; }
