/* Rodriguez Studio · portafolio
   Idea: el lienzo del diseñador de formularios (rejilla de puntos + marco de selección).
   Un solo acento, el azul de selección; el verde solo significa «publicado». */

@font-face {
  font-family: "Anybody";
  src: url("fonts/anybody.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 50% 150%;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --canvas: #e9ecf1;
  --paper: #ffffff;
  --ink: #0d1017;
  --ink-2: #1a1f2b;
  --muted: #535c6a;
  --line: #cdd3dc;
  --dot: #b4bcc8;
  --select: #2b3bff;
  --select-deep: #1b27c9;
  --select-wash: #dfe2ff;
  --live: #0b7f44;
  --on-dark: #eef0f5;
  --on-dark-muted: #a7afbe;

  --font-display: "Anybody", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --text-caption: 0.75rem;
  --text-body: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --text-h3: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --text-h2: clamp(2rem, 1.3rem + 2.8vw, 3.5rem);
  --text-hero: clamp(2.4rem, 1rem + 3.4vw, 4.4rem);

  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --space-section: clamp(4.5rem, 3rem + 6vw, 9rem);
  --radius: 14px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 160ms;
  --dur-sel: 620ms;
  --shadow-obj: 0 1px 2px rgb(13 16 23 / 0.08), 0 18px 40px -18px rgb(13 16 23 / 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 var(--text-body) / 1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--select); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2 * var(--gutter), 1240px); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }


/* ---------- botones ---------- */
.btn {
  --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-bd: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0 1.4rem;
  border: 1px solid var(--btn-bd); border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font: 600 1rem / 1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast), box-shadow var(--dur-fast);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--primary { --btn-bg: var(--select); --btn-fg: #fff; --btn-bd: var(--select); box-shadow: 0 8px 20px -10px var(--select); }
.btn--primary:hover { --btn-bg: var(--select-deep); }
.btn--ghost { --btn-bg: transparent; --btn-bd: var(--ink); }
.btn--ghost:hover { --btn-bg: var(--paper); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: #fff; }
.btn--frost { --btn-bg: rgb(255 255 255 / 0.08); --btn-fg: #fff; --btn-bd: rgb(255 255 255 / 0.35); }
.btn--frost:hover { --btn-bg: rgb(255 255 255 / 0.16); }
.btn--sm { min-height: 40px; padding: 0 1rem; font-size: 0.9375rem; }
.btn--block { width: 100%; }

/* ---------- cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(233 236 241 / 0.86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__row { display: flex; align-items: center; gap: 2rem; min-height: 68px; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.05; margin-right: auto; }
.brand__name { white-space: nowrap; font: 800 1.125rem / 1 var(--font-display); font-stretch: 118%; letter-spacing: -0.01em; }
.brand__tag { font: 400 0.6875rem / 1.4 var(--font-mono); color: var(--muted); }
.site-nav { display: flex; gap: 1.6rem; }
.site-nav a { text-decoration: none; font-weight: 500; font-size: 0.9375rem; color: var(--ink-2); position: relative; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--select); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-fast) var(--ease-out);
}
.site-nav a:hover::after { transform: scaleX(1); }
@media (max-width: 900px) { .site-nav { display: none; } }
.site-header .btn { white-space: nowrap; }
@media (max-width: 480px) {
  .site-header__row { gap: 0.75rem; }
  .brand { min-width: 0; }
  .brand__name { font-size: 0.95rem; font-stretch: 100%; }
  .brand__tag { display: none; }
  .site-header .btn { padding: 0 0.85rem; font-size: 0.875rem; }
  .hide-xs { display: none; }
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(2.5rem, 1rem + 5vw, 5.5rem) clamp(3rem, 2rem + 4vw, 6rem); }
.hero__grid { display: block; }
.hero__copy { max-width: 46rem; }

/* en pantalla ancha la cabecera se abre: titular a todo lo ancho, y debajo
   el puesto y el texto en dos columnas, como una portada de revista */
@media (min-width: 900px) {
  .hero__copy {
    max-width: none; display: grid; align-items: start;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(2.5rem, 4vw, 5rem);
  }
  .hero__title { grid-area: 1 / 1 / 2 / 3; font-size: clamp(3.4rem, 1.4rem + 4.4vw, 5.6rem); }
  .hero__role { grid-area: 2 / 1 / 3 / 2; margin-top: 1.4rem; max-width: none; }
  .hero__actions { grid-area: 3 / 1 / 4 / 2; align-self: start; margin-top: 1.8rem; }
  .hero__lead { grid-area: 2 / 2 / 3 / 3; margin-top: 1.6rem; max-width: 34rem; }
  .hero .status { grid-area: 3 / 2 / 4 / 3; justify-self: start; margin-top: 1.8rem; }
  .hero__meta { grid-area: 4 / 2 / 5 / 3; }
}
.hero__title {
  font: 800 var(--text-hero) / 0.98 var(--font-display);
  font-stretch: 112%;
  letter-spacing: -0.035em;
}
.hero__accent { color: var(--select); }
.hero__role {
  margin-top: 1rem;
  font: 750 clamp(1.35rem, 1rem + 1.4vw, 2.1rem) / 1.12 var(--font-display);
  font-stretch: 108%; letter-spacing: -0.02em; max-width: 30rem;
}
.hero__meta { margin-top: 1.2rem; font: 400 0.875rem / 1.5 var(--font-mono); color: var(--muted); }
.hero__meta a { color: var(--ink); text-underline-offset: 3px; white-space: nowrap; }
.hero__lead { margin-top: 1.6rem; font-size: var(--text-lead); color: var(--ink-2); max-width: 36rem; }
.hero__lead a { color: var(--select); font-weight: 600; text-underline-offset: 3px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }



/* ---------- cifras de la cabecera: sin caja, sobre la propia página ---------- */
.stats { margin-top: clamp(2.5rem, 2rem + 2vw, 3.8rem); border-top: 1px solid var(--line); }
.stats__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 1.1rem 1.4rem 1.2rem 0; }
.stats__row .stat + .stat { padding-left: 1.4rem; border-left: 1px solid var(--line); }
.stat__n, .stat__v {
  display: block; color: var(--ink); font-variant-numeric: tabular-nums;
  font: 750 clamp(2.1rem, 1.2rem + 2.6vw, 3.1rem) / 0.95 var(--font-display);
  font-stretch: 114%; letter-spacing: -0.035em;
}
.stat__k { display: block; margin-top: 0.45rem; font: 400 0.8125rem / 1.4 var(--font-mono); color: var(--muted); }
.stat--wide { border-top: 1px solid var(--line); padding-bottom: 0; }
.stat--wide .stat__v { font-size: clamp(1.3rem, 0.9rem + 1.4vw, 1.9rem); color: var(--select); }

@media (max-width: 760px) {
  .stats__row { grid-template-columns: 1fr 1fr; }
  .stats__row .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stats__row .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* ---------- secciones ---------- */
.section { padding-block: var(--space-section); }
.section--tint { background: #dfe3ea; }
.section__head { max-width: 46rem; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.section__title {
  font: 800 var(--text-h2) / 1 var(--font-display);
  font-stretch: 115%;
  letter-spacing: -0.03em;
}
.stack { font: 400 0.8125rem / 1.6 var(--font-mono); color: var(--muted); }

/* ---------- servicios: una pieza grande + dos ---------- */
.svc { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1rem; }
.svc__item {
  position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.svc__item:target, .svc__item:hover { border-color: var(--select); box-shadow: 0 0 0 1px var(--select); }
.svc__item--app { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2rem; overflow: hidden; }
.svc__item--web { grid-column: 1 / span 5; }
.svc__item--desk { grid-column: 1 / -1; background: var(--ink-2); color: var(--on-dark); border-color: var(--ink-2); }
.svc__item--desk .stack { color: var(--on-dark-muted); }
.svc__item--desk .svc__pitch { color: var(--on-dark); }
.svc__item--desk .svc__list li::before { background: var(--on-dark-muted); }
.svc__name { font: 800 var(--text-h3) / 1.05 var(--font-display); font-stretch: 118%; letter-spacing: -0.02em; margin-bottom: 0.8rem; }
.svc__pitch { font-size: var(--text-lead); color: var(--ink-2); max-width: 34rem; }
.svc__list { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: 0.55rem; }
.svc__list li { position: relative; padding-left: 1.2rem; }
.svc__list li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 7px; height: 7px; background: var(--select); }
.svc__shots { display: flex; gap: 1rem; align-items: flex-start; justify-content: center; margin-bottom: -3.5rem; }
.svc__shots img { width: min(46%, 220px); border-radius: 18px; border: 5px solid #0b0d12; box-shadow: var(--shadow-obj); }
.svc__shots img:nth-child(2) { margin-top: 2.5rem; }

.svc__item--ai { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2rem; align-items: center; }

.method { margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.method:hover { border-color: var(--line); box-shadow: none; }
.term { background: var(--ink); color: var(--on-dark); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-obj); }
.term__bar {
  display: flex; justify-content: space-between; padding: 8px 12px;
  font: 400 0.6875rem / 1 var(--font-mono); color: var(--on-dark-muted);
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
}
.term__body { margin: 0; padding: 1rem 1.1rem 1.2rem; font: 400 0.8125rem / 1.75 var(--font-mono); white-space: pre-wrap; }
.term__you { color: #fff; }
.term__dim { color: var(--on-dark-muted); }
.term__ok { color: #5fd49a; }
.term__wait { color: #aab3ff; }

@media (max-width: 860px) {
  .svc__item--app, .svc__item--ai { grid-template-columns: 1fr; }
  .svc__item--web, .svc__item--desk { grid-column: 1 / -1; }
}

/* ---------- caso mon ---------- */
.case { background: var(--ink); color: var(--on-dark); padding-block: var(--space-section); overflow: hidden; }
.case__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.case__brand { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.8rem; }
.case__icon { width: 64px; height: 64px; border-radius: 15px; }
/* el wordmark es granate: sobre la tinta se pinta en blanco para que se lea */
.case__wordmark { width: auto; height: 34px; filter: brightness(0) invert(1); }
.case__lead { margin-top: 1.4rem; font-size: var(--text-lead); color: var(--on-dark-muted); max-width: 34rem; }
.case__facts { margin: 2rem 0; display: grid; gap: 0; border-top: 1px solid rgb(255 255 255 / 0.14); }
.case__facts div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid rgb(255 255 255 / 0.14); }
.case__facts dt { font: 400 var(--text-caption) / 1.9 var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--on-dark-muted); }
.case__facts dd { margin: 0; }
/* insignias de tienda: icono + dos líneas, como las oficiales pero en el lenguaje de la web */
.stores { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.7rem; }
.store {
  display: flex; align-items: center; gap: 0.75rem;
  min-height: 60px; padding: 0.55rem 1.2rem 0.55rem 0.95rem;
  background: #000; color: #fff; text-decoration: none;
  border: 1px solid rgb(255 255 255 / 0.28); border-radius: 14px;
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast), box-shadow var(--dur-fast), background-color var(--dur-fast);
}
.store:hover { transform: translateY(-2px); border-color: #fff; box-shadow: 0 12px 26px -12px rgb(0 0 0 / 0.8), 0 0 0 1px #fff; }
.store:active { transform: translateY(0) scale(0.98); }
.store:focus-visible { outline-color: #fff; }
.store__icon { width: 26px; height: 26px; flex: none; }
.store__app { width: 32px; height: 32px; flex: none; border-radius: 8px; }
.store__text { display: flex; flex-direction: column; line-height: 1.1; }
.store__text small { font-size: 0.6875rem; letter-spacing: 0.02em; color: rgb(255 255 255 / 0.78); }
.store__text b { font: 700 1.1875rem / 1.15 var(--font-body); letter-spacing: -0.01em; }
.store--web { background: var(--select); border-color: var(--select); }
.store--web:hover { background: var(--select-deep); }
.store--web .store__text b { font-size: 0.9375rem; font-family: var(--font-mono); font-weight: 500; letter-spacing: 0; }
.case__rail {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0.5rem 0.25rem 1.5rem; scrollbar-width: thin; scrollbar-color: #3a4152 transparent;
}
.case__rail figure { margin: 0; flex: 0 0 min(58%, 230px); scroll-snap-align: start; }
.case__rail img { border-radius: 20px; border: 5px solid #262c3a; }
.case__rail figcaption { margin-top: 0.7rem; font: 400 var(--text-caption) / 1 var(--font-mono); color: var(--on-dark-muted); text-transform: uppercase; letter-spacing: 0.08em; }
@media (max-width: 960px) { .case__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .case__facts div { grid-template-columns: 1fr; gap: 0.2rem; } }

/* ---------- proceso (secuencia real: va numerado) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: step; border-top: 2px solid var(--ink); }
.step { counter-increment: step; padding: 1.4rem 1.2rem 0 0; position: relative; }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block; font: 500 var(--text-caption) / 1 var(--font-mono); color: var(--select); margin-bottom: 1.4rem;
}
.step::after { content: ""; position: absolute; top: -6px; left: 0; width: 10px; height: 10px; background: var(--canvas); border: 2px solid var(--ink); }
.step__name { font: 750 1.25rem / 1.1 var(--font-display); font-stretch: 112%; margin-bottom: 0.6rem; }
.step p { color: var(--muted); font-size: 0.9688rem; }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--ink); }
  .step { padding: 0 0 2rem 1.6rem; }
  .step::after { top: 0; left: -6px; }
  .step::before { margin-bottom: 0.6rem; }
}

/* ---------- experiencia ---------- */
.exp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); }
.exp__head { margin-bottom: 0; }
.exp__note { margin-top: 1.4rem; color: var(--muted); }
.exp__links { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; margin-top: 1.6rem; }
.link-arrow { display: inline-block; color: var(--select); font-weight: 600; text-underline-offset: 3px; }
.link-arrow::after { content: " ↗"; }
@media (max-width: 860px) { .exp { grid-template-columns: 1fr; } }
@media (min-width: 861px) { .exp__head { position: sticky; top: 100px; align-self: start; } }

.jobs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.job { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.job__when { font: 400 0.8125rem / 1.9 var(--font-mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.job:first-child .job__when { color: var(--select); font-weight: 600; }
.job__org { font: 750 1.25rem / 1.25 var(--font-display); font-stretch: 108%; }
.job__role { color: var(--muted); margin-top: 0.15rem; }
.job__list { margin: 0.7rem 0 0; padding-left: 1.1rem; display: grid; gap: 0.3rem; }
.job__list li::marker { color: var(--select); }
.job__tech { margin-top: 0.6rem; font: 400 0.8125rem / 1.5 var(--font-mono); color: var(--muted); }
@media (max-width: 520px) { .job { grid-template-columns: 1fr; gap: 0.2rem; } }

.facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 0.8fr); gap: 1rem; }
.facts__col { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); }
.facts__h { font: 750 1.125rem / 1.2 var(--font-display); font-stretch: 108%; margin-bottom: 0.9rem; }
.facts__h--gap { margin-top: 1.6rem; }
.facts__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.facts__when { display: block; font: 400 0.8125rem / 1.5 var(--font-mono); color: var(--muted); }
.facts__skills { margin: 0; display: grid; gap: 0.5rem; }
.facts__skills div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.8rem; }
.facts__skills dt { font: 400 0.8125rem / 1.9 var(--font-mono); color: var(--muted); }
.facts__skills dd { margin: 0; }
@media (max-width: 960px) { .facts { grid-template-columns: 1fr 1fr; } .facts__col--wide { grid-column: 1 / -1; grid-row: 1; } }
@media (max-width: 620px) { .facts { grid-template-columns: 1fr; } .facts__skills div { grid-template-columns: 1fr; gap: 0; } }

/* ---------- preguntas ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(2rem, 1rem + 4vw, 5rem); }
.faq .section__head { margin-bottom: 0; }
.faq__list { border-top: 1px solid var(--line); }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem;
  padding: 1.2rem 0; font-weight: 600; font-size: 1.0625rem;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: "+"; font: 400 1.4rem / 1 var(--font-mono); color: var(--select);
  transition: transform var(--dur-fast) var(--ease-out);
}
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list details p { padding: 0 0 1.3rem; color: var(--muted); max-width: 40rem; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* ---------- contacto ---------- */
.contact { background: var(--select); color: #fff; padding-block: var(--space-section); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.contact__title { font: 800 var(--text-h2) / 1 var(--font-display); font-stretch: 118%; letter-spacing: -0.03em; }
.contact__lead { margin-top: 1.4rem; font-size: var(--text-lead); color: rgb(255 255 255 / 0.88); max-width: 30rem; }
.contact__direct { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 0.9rem; }
.contact__direct li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.9rem; }
.contact__direct li[hidden] { display: none; }
.contact__label { flex-basis: 100%; font-size: 0.9375rem; color: rgb(255 255 255 / 0.8); }
.contact__direct a { color: #fff; font-weight: 600; font-size: 1.125rem; text-underline-offset: 3px; overflow-wrap: anywhere; }
.contact__direct .contact__wa { font-size: 0.9375rem; padding: 0.2rem 0.7rem; border: 1px solid rgb(255 255 255 / 0.5); border-radius: 999px; text-decoration: none; }
.contact__alt { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; gap: 1.5rem; }
.contact__alt a { font-weight: 600; text-underline-offset: 3px; }
.contact__alt a::after { content: " ↗"; }

.brief { background: var(--select-deep); border-radius: var(--radius); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); display: grid; gap: 1.1rem; }
.brief__kind { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.brief__kind legend { font-weight: 600; margin-bottom: 0.7rem; padding: 0; }
.brief__kind label { position: relative; cursor: pointer; }
.brief__kind input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.brief__kind span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 0.95rem;
  border: 1px solid rgb(255 255 255 / 0.45); border-radius: 999px; font-size: 0.9375rem;
  transition: background-color var(--dur-fast), color var(--dur-fast);
}
.brief__kind input:checked + span { background: #fff; color: var(--select-deep); border-color: #fff; font-weight: 600; }
.brief__kind input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.brief__field { display: grid; gap: 0.4rem; font-weight: 600; }
.brief__field input, .brief__field textarea {
  font: 400 1rem / 1.5 var(--font-body); color: var(--ink);
  background: #fff; border: 2px solid transparent; border-radius: 10px; padding: 0.7rem 0.85rem; resize: vertical;
}
.brief__field input:focus, .brief__field textarea:focus { outline: none; border-color: var(--ink); }
.brief__error { background: #fff; color: #9b1b1b; border-radius: 8px; padding: 0.6rem 0.8rem; font-weight: 600; font-size: 0.9375rem; }
.brief__hint { font-size: 0.875rem; color: rgb(255 255 255 / 0.8); }
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } }

/* ---------- pie ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); font-size: 0.9375rem; padding-top: clamp(3rem, 2rem + 3vw, 4.5rem); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
.site-footer__name { font: 800 1.25rem / 1.1 var(--font-display); font-stretch: 112%; color: #fff; margin-bottom: 0.6rem; }
.site-footer__h { font: 500 0.8125rem / 1 var(--font-mono); color: #fff; margin: 0 0 0.9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer__base { margin-top: 3rem; padding-block: 1.4rem; border-top: 1px solid rgb(255 255 255 / 0.1); font-size: 0.8125rem; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- entrada ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .stats { opacity: 0; transform: translateY(14px); }
  .js .stats.is-in {
    opacity: 1; transform: none;
    transition: opacity 600ms var(--ease-out), transform 800ms var(--ease-out);
  }
}

/* ---------- cabecera de página interior ---------- */
.hero__title--service { font-size: clamp(2.2rem, 1rem + 3.2vw, 3.9rem); }

.incs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.inc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.inc:hover { border-color: var(--select); box-shadow: 0 0 0 1px var(--select); }
.inc__name { font: 750 1.1875rem / 1.2 var(--font-display); font-stretch: 108%; margin-bottom: 0.5rem; }
.inc p { color: var(--muted); }
@media (max-width: 900px) { .incs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .incs { grid-template-columns: 1fr; } }

.proofs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.proofs__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.proofs__list li { position: relative; padding: 1rem 0 1rem 1.6rem; border-bottom: 1px solid var(--line); }
.proofs__list li::before { content: ""; position: absolute; left: 0; top: 1.55rem; width: 8px; height: 8px; background: var(--select); }
.proofs__more { margin-top: 1.2rem; }
@media (max-width: 860px) { .proofs { grid-template-columns: 1fr; } }

@media (min-width: 961px) { .steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.direct { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.direct__item {
  display: flex; flex-direction: column; gap: 0.2rem; padding: 1rem 1.2rem; border-radius: 12px;
  background: var(--select-deep); color: #fff; text-decoration: none;
  transition: background-color var(--dur-fast), transform var(--dur-fast) var(--ease-out);
}
.direct__item:hover { background: #121c9e; transform: translateX(4px); }
.direct__item span { font-size: 0.875rem; color: rgb(255 255 255 / 0.8); }
.direct__item b { font-size: 1.125rem; overflow-wrap: anywhere; }

.others { padding-block: 2.5rem; }
.others__h { font: 750 1.125rem / 1.2 var(--font-display); font-stretch: 108%; margin-bottom: 0.8rem; }
.others ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; }
.others a { color: var(--select); font-weight: 600; text-underline-offset: 3px; }
.section__lead { margin-top: 1rem; font-size: var(--text-lead); color: var(--muted); max-width: 40rem; }
.section--tight { padding-block: 0 var(--space-section); }

/* ---------- paleta de componentes Delphi (como la Tool Palette del IDE) ---------- */
.cv-subh { font: 600 0.9375rem / 1.2 var(--font-body); margin: 1.4rem 0 0.8rem; }
.palette { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: 0.6rem 1rem; }
.pal { display: flex; align-items: center; gap: 0.75rem; }
.pal__icon {
  position: relative; flex: none; display: grid; place-items: center;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 6px;
  background: linear-gradient(#fff, #eef1f6); color: var(--select);
  transition: border-color var(--dur-fast), color var(--dur-fast);
}
.pal__icon svg { width: 24px; height: 24px; }
/* tiradores de selección en las esquinas al pasar el ratón */
.pal__icon::after {
  content: ""; position: absolute; inset: -5px; opacity: 0; pointer-events: none;
  background:
    linear-gradient(var(--select), var(--select)) 0 0 / 6px 6px no-repeat,
    linear-gradient(var(--select), var(--select)) 100% 0 / 6px 6px no-repeat,
    linear-gradient(var(--select), var(--select)) 0 100% / 6px 6px no-repeat,
    linear-gradient(var(--select), var(--select)) 100% 100% / 6px 6px no-repeat;
  transition: opacity var(--dur-fast);
}
.pal:hover .pal__icon { border-color: var(--select); color: var(--select-deep); }
.pal:hover .pal__icon::after { opacity: 1; }
.pal__text { display: grid; line-height: 1.25; }
.pal__text b { font-weight: 600; font-size: 0.9375rem; }
.pal__text span { font-size: 0.8125rem; color: var(--muted); }

.palette--big { grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 1rem; }
.palette--big .pal { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; gap: 1rem; transition: border-color var(--dur-fast); }
.palette--big .pal:hover { border-color: var(--select); }
.palette--big .pal__icon { width: 56px; height: 56px; border-radius: 8px; }
.palette--big .pal__icon svg { width: 30px; height: 30px; }
.palette--big .pal__text b { font: 750 1.125rem / 1.2 var(--font-display); font-stretch: 108%; }
.palette--big .pal__text span { font-size: 0.9375rem; }

/* ---------- cómo trabajo en un equipo (con código Delphi de ejemplo) ---------- */
.team { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr); gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); align-items: start; }
.team.method { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.team__title { font: 800 var(--text-h3) / 1.05 var(--font-display); font-stretch: 118%; letter-spacing: -0.02em; }
.team--page .team__title { font-size: var(--text-h2); line-height: 1; letter-spacing: -0.03em; }
.team__intro { margin-top: 0.9rem; font-size: var(--text-lead); color: var(--ink-2); max-width: 34rem; }
.team__list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.9rem; }
.team__item { position: relative; display: grid; gap: 0.15rem; padding-left: 1.2rem; }
.team__item::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; background: var(--select); }
.team__item b { font-weight: 600; }
.team__item span { color: var(--muted); }

/* ventana del editor clásico de Delphi: fondo blanco, reservadas en negrita azul */
.ide { margin: 0; border: 1px solid #9aa3b1; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: var(--shadow-obj); position: sticky; top: 96px; }
.ide__bar { display: flex; justify-content: space-between; align-items: center; background: var(--ink-2); padding: 0 10px; }
.ide__tab { font: 500 0.75rem / 1 var(--font-mono); color: #fff; background: #2c3445; padding: 9px 12px; border-top: 2px solid var(--select); }
.ide__ctrls { display: flex; gap: 5px; }
.ide__ctrls i { width: 9px; height: 9px; border: 1px solid #8e97a8; }
.ide__code { margin: 0; padding: 0.9rem 0; overflow-x: auto; font: 400 0.78rem / 1.7 var(--font-mono); color: #1d2230; tab-size: 2; }
.ide__code code { display: block; min-width: max-content; padding-right: 1rem; }
.ide__ln { display: inline-block; width: 2.6rem; padding-right: 0.8rem; margin-right: 0.8rem; text-align: right; color: #9aa3b1; border-right: 1px solid #e3e6eb; user-select: none; }
.ide__code .k { color: #1a1aa6; font-weight: 700; }
.ide__code .s { color: #0b7f44; }
.ide__code .c { color: #6b7385; font-style: italic; }
.ide__status { padding: 6px 12px; border-top: 1px solid #e3e6eb; background: #f0f0f0; font: 400 0.6875rem / 1.4 var(--font-mono); color: #5b6272; }
.method + .method { margin-top: 1rem; }
@media (max-width: 960px) { .team { grid-template-columns: 1fr; } .ide { position: static; } }



/* ---------- barra de progreso de lectura ---------- */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--select); z-index: 60; }

/* ---------- navegación que sigue al scroll ---------- */
.site-nav a[aria-current="true"] { color: var(--select); }
.site-nav a[aria-current="true"]::after { transform: scaleX(1); }

/* ---------- paleta de comandos ---------- */
.cmdk { border: 0; padding: 0; background: transparent; width: min(560px, calc(100% - 2rem)); margin-top: 12vh; }
.cmdk::backdrop { background: rgb(13 16 23 / 0.45); backdrop-filter: blur(3px); }
.cmdk__box { background: var(--paper); border: 1.5px solid var(--select); border-radius: 12px; box-shadow: 0 30px 60px -20px rgb(13 16 23 / 0.5); overflow: hidden; }
.cmdk__input { width: 100%; border: 0; border-bottom: 1px solid var(--line); padding: 1rem 1.1rem; font: 400 1rem / 1.2 var(--font-mono); color: var(--ink); }
.cmdk__input:focus { outline: none; }
.cmdk__list { list-style: none; margin: 0; padding: 0.4rem; max-height: 52vh; overflow-y: auto; }
.cmdk__item { display: flex; align-items: center; gap: 0.7rem; width: 100%; border: 0; background: transparent; border-radius: 8px; padding: 0.6rem 0.7rem; cursor: pointer; text-align: left; font: 400 0.9375rem / 1.2 var(--font-body); color: var(--ink); }
.cmdk__item[aria-selected="true"] { background: var(--select-wash); }
.cmdk__kind { font: 400 0.6875rem / 1 var(--font-mono); color: var(--muted); margin-left: auto; }
.cmdk__hint { border-top: 1px solid var(--line); padding: 0.55rem 1.1rem; font: 400 0.75rem / 1.3 var(--font-mono); color: var(--muted); display: flex; justify-content: space-between; gap: 1rem; }
.cmdk__empty { padding: 1rem 1.1rem; color: var(--muted); }
.kbd { font: 500 0.75rem / 1 var(--font-mono); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 3px 5px; background: #f7f8fb; }
.cmdk-btn { display: inline-flex; align-items: center; gap: 0.45rem; background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 0 0.7rem; height: 40px; color: var(--muted); font: 400 0.8125rem / 1 var(--font-mono); cursor: pointer; }
.cmdk-btn:hover { border-color: var(--select); color: var(--select); }
@media (max-width: 900px) { .cmdk-btn { display: none; } }

/* ---------- aparición al bajar ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(18px); }
  .js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out); }
}
/* el rótulo de «antes» va a la derecha: así se leen los dos a la vez sea cual sea el corte */

/* ---------- estado de disponibilidad ---------- */
.status { display: inline-flex; align-items: center; gap: 0.55rem; margin-top: 1.6rem; padding: 0.4rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font: 500 0.875rem / 1 var(--font-body); color: var(--ink-2); }
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px rgb(11 127 68 / 0.16); }
@media (prefers-reduced-motion: no-preference) { .status__dot { animation: pulso 2.4s ease-in-out infinite; } }
@keyframes pulso { 0%, 100% { box-shadow: 0 0 0 3px rgb(11 127 68 / 0.18); } 50% { box-shadow: 0 0 0 7px rgb(11 127 68 / 0.05); } }

/* ---------- sección Delphi ---------- */
.delphi-block { margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.delphi-block__title, .delphi-demo__title { font: 750 var(--text-h3) / 1.1 var(--font-display); font-stretch: 112%; letter-spacing: -0.02em; margin-bottom: 0.8rem; }
.delphi-block__lead { color: var(--muted); max-width: 40rem; margin-bottom: 1.4rem; }
.delphi-demo { display: block; }
.delphi-demo__text { max-width: 48rem; margin-bottom: clamp(1.2rem, 1rem + 1vw, 1.8rem); }
.delphi-demo__text p { color: var(--ink-2); }
.delphi-demo__text p + p { margin-top: 0.8rem; }
.delphi-demo__note { font-size: 0.9375rem; color: var(--muted); }

/* ---------- formulario VCL (aspecto Windows: cuadrado, clBtnFace, rejilla con indicador) ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.vcl {
  --face: #f0f0f0; --edge: #a0a0a0; --btn: #adadad; --hi: #0078d7; --grid-line: #c8c8c8;
  background: var(--face); border: 1px solid #6f6f6f; box-shadow: var(--shadow-obj);
  font: 400 12px / 1.35 "Segoe UI", Tahoma, system-ui, sans-serif; color: #1a1a1a;
}
.vcl *, .vcl *::before, .vcl *::after { box-sizing: border-box; }

/* barra de título */
.vcl__title { display: flex; align-items: center; gap: 8px; height: 30px; padding-left: 8px; background: linear-gradient(#fff, #f3f3f3); border-bottom: 1px solid #dadada; }
.vcl__ico { flex: none; width: 14px; height: 14px; background: var(--select); box-shadow: inset 0 0 0 1px #fff, inset 0 0 0 2px var(--select); }
.vcl__cap { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vcl__ctrls { margin-left: auto; display: flex; align-self: stretch; }
.vcl__sys { width: 42px; display: grid; place-items: center; color: #2b2b2b; }
.vcl__sys::before { font-size: 10px; line-height: 1; }
.vcl__sys--min::before { content: "\2500"; }
.vcl__sys--max::before { content: "\25A1"; font-size: 11px; }
.vcl__sys--close::before { content: "\2715"; }

/* cuerpo y TGroupBox */
.vcl__body { padding: 10px 10px 0; display: grid; gap: 10px; }
.vcl__gb { border: 1px solid #d5dfe5; margin: 0; padding: 8px 10px 10px; min-width: 0; }
.vcl__gb--grid { margin: 10px; }
.vcl__gb > legend { padding: 0 4px; margin-left: 2px; font-weight: 600; color: #2d3340; }
.vcl__row { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: flex-end; }
.vcl__field { display: flex; flex-direction: column; gap: 3px; flex: 1 1 10rem; min-width: 0; }
.vcl__field--wide { flex: 2 1 14rem; }
.vcl__field--s { flex: 1 1 8rem; }
.vcl__field--xs { flex: 0 1 6rem; }
.vcl__field > span { color: #3b3b3b; }

/* TEdit / TDBLookupComboBox */
.vcl__in {
  font: inherit; width: 100%; height: 23px; padding: 0 5px; color: inherit;
  background: #fff; border: 1px solid #7a7a7a; border-radius: 0; min-width: 0;
}
.vcl__in.num { text-align: right; }
.vcl__in:focus { outline: none; border-color: var(--hi); box-shadow: inset 0 0 0 1px var(--hi); }
.vcl__in[readonly] { background: var(--face); color: #4a4a4a; }
.vcl__combo {
  appearance: none; padding-right: 20px; text-align: left; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23303030' stroke-width='1.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 4px center; background-size: 12px;
}

/* TButton: 75 x 25 px, como en el diseñador */
.vcl__acts { display: flex; gap: 6px; flex: 0 0 auto; }
.vcl__btn {
  font: inherit; min-width: 75px; height: 25px; padding: 0 10px; cursor: pointer; color: inherit;
  background: #e1e1e1; border: 1px solid var(--btn); border-radius: 0;
  transition: background-color var(--dur-fast), border-color var(--dur-fast);
}
.vcl__btn:hover { background: #e5f1fb; border-color: var(--hi); }
.vcl__btn:active { background: #cce4f7; border-color: #005499; }
.vcl__btn:focus-visible { outline: 1px dotted #1a1a1a; outline-offset: -4px; }
.vcl__btn--default { border-color: var(--hi); box-shadow: inset 0 0 0 1px var(--hi); }

/* TDBGrid */
.vcl__gridwrap { border: 1px solid #7a7a7a; background: #fff; overflow: auto; max-height: 15rem; }
.vcl__grid { width: 100%; min-width: 22rem; border-collapse: collapse; font: inherit; background: #fff; }
.vcl__grid th, .vcl__grid td { padding: 3px 6px; text-align: left; white-space: nowrap; border-right: 1px solid var(--grid-line); border-bottom: 1px solid var(--grid-line); }
.vcl__grid thead th {
  position: sticky; top: 0; z-index: 1; font-weight: 400; background: var(--face);
  border-right: 1px solid var(--edge); border-bottom: 1px solid var(--edge);
  box-shadow: inset 1px 1px 0 #fff;
}
.vcl__grid .num { text-align: right; font-variant-numeric: tabular-nums; }
.vcl__grid th:nth-child(2) { width: 100%; }
.vcl__grid th.num { width: 6rem; }
.vcl__ind { width: 16px; padding: 0; background: var(--face); border-right: 1px solid var(--edge); }
.vcl__grid tbody tr { cursor: pointer; }
.vcl__grid tbody tr:hover td { background: #f2f7fd; }
.vcl__grid tbody tr.is-sel td { background: var(--hi); color: #fff; border-right-color: #2f8ce0; border-bottom-color: #2f8ce0; }
.vcl__grid tbody tr.is-sel .vcl__ind { background: var(--face); }
.vcl__grid tbody tr.is-sel .vcl__ind::before { content: "\25B6"; display: block; font-size: 8px; color: #1a1a1a; text-align: center; }
.vcl__grid tbody .vcl__empty td { color: #6b6b6b; cursor: default; background: #fff; }

/* TPanel de totales */
.vcl__totals { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 16px; padding-top: 8px; }
.vcl__totals span { color: #3b3b3b; font-variant-numeric: tabular-nums; }
.vcl__totals b { color: #1a1a1a; }
.vcl__total { font-size: 13px; }

.vcl__foot { display: flex; justify-content: flex-end; gap: 6px; padding: 0 10px 10px; }

/* TStatusBar con paneles hundidos y sizegrip */
.vcl__status { display: flex; align-items: stretch; height: 22px; background: var(--face); border-top: 1px solid #dadada; }
.vcl__panel {
  display: flex; align-items: center; padding: 0 8px; font-size: 11px; color: #3b3b3b;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  box-shadow: inset 1px 1px 0 #b4b4b4, inset -1px -1px 0 #fff; margin: 2px 0 2px 2px;
}
.vcl__panel--wide { flex: 1 1 auto; min-width: 0; }
.vcl__grip { width: 16px; align-self: end; height: 16px; background: repeating-linear-gradient(135deg, transparent 0 2px, #b4b4b4 2px 3px, transparent 3px 5px); }

/* caja de mensaje de Windows */
.msgbox { border: 1px solid #6f6f6f; border-radius: 0; padding: 0; background: var(--vcl-face, #f0f0f0); box-shadow: 0 20px 45px -18px rgb(13 16 23 / 0.6); font: 400 12px / 1.4 "Segoe UI", Tahoma, system-ui, sans-serif; color: #1a1a1a; max-width: min(92vw, 30rem); }
.msgbox::backdrop { background: rgb(13 16 23 / 0.35); }
.msgbox__bar { background: linear-gradient(#fff, #f3f3f3); border-bottom: 1px solid #dadada; padding: 7px 10px; }
.msgbox__body { display: flex; gap: 12px; padding: 16px 18px 10px; }
.msgbox__ico { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--hi, #0078d7); color: #fff; font: italic 700 16px/1 Georgia, serif; }
.msgbox__text { margin: 0; min-width: 12rem; }
.msgbox__call { margin: 0 18px 4px; padding: 8px 10px; background: #fff; border: 1px solid #c8c8c8; font: 400 11px / 1.6 var(--font-mono); color: #2d3340; overflow-x: auto; }
.msgbox__foot { display: flex; justify-content: flex-end; padding: 12px 18px 14px; }
.msgbox .vcl__btn { --btn: #adadad; --hi: #0078d7; font: inherit; min-width: 75px; height: 25px; }

@media (max-width: 620px) {
  .vcl__field, .vcl__field--wide, .vcl__field--s, .vcl__field--xs { flex: 1 1 100%; }
  .vcl__field--xs { flex: 1 1 calc(50% - 5px); }
  .vcl__acts { width: 100%; }
  .vcl__acts .vcl__btn { flex: 1 1 0; min-width: 0; }
  .vcl__sys { width: 34px; }
  .vcl__gb--grid { margin: 10px; }
  .vcl__totals { justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) { .vcl__btn { transition: none; } }
