/* Hoja compartida por lantix.com.ar y las tres landings de producto. */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; }
/* height: auto es necesario: los atributos width/height del <img> entran como
   hints de CSS, y sin esto el alto del atributo le gana al aspect-ratio. */
img, svg { max-width: 100%; height: auto; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 120ms ease, background-color 120ms ease, border-color 120ms ease;
}

a:hover { color: var(--accent-deep); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

html { scroll-behavior: smooth; }

.skip-link {
  position: absolute;
  left: var(--space-3);
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: var(--ink-inverse);
  padding: var(--space-3) var(--space-4);
  font-size: var(--step--1);
}

.skip-link:focus { top: var(--space-3); color: var(--ink-inverse); }

/* --- Estructura ------------------------------------------------------- */

.wrap {
  width: min(100%, var(--measure));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band { border-top: 1px solid var(--line); }
.band--flush { border-top: 0; }
.band--sunken { background: var(--surface-sunken); }

.band--inverse {
  background: var(--surface-inverse);
  color: var(--ink-inverse);
  border-top-color: var(--line-inverse);
}

.band--inverse a:hover { color: var(--ink-inverse); }
.band--inverse .lede { color: var(--ink-inverse-muted); }
.band--inverse .eyebrow__text { color: var(--ink-inverse-muted); }

.band__inner { padding-block: var(--space-7); }
.band__inner--tall { padding-block: var(--space-8); }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
  gap: var(--space-6);
}

.split--wide { gap: clamp(2rem, 5vw, 4rem); }
.split--end { align-items: end; }
.stack { display: flex; flex-direction: column; gap: var(--space-4); align-items: flex-start; }

/* --- Tipografia -------------------------------------------------------- */

.display {
  font-family: var(--font-display);
  font-size: var(--step-5);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 20ch;
}

.display em { font-style: italic; color: var(--accent-deep); }

.title {
  font-family: var(--font-display);
  font-size: var(--step-4);
  line-height: 1.07;
  letter-spacing: -0.02em;
  max-width: 22ch;
}

.heading {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.subheading {
  font-family: var(--font-text);
  font-weight: 600;
  font-size: var(--step-1);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.lede { font-size: var(--step-1); line-height: 1.6; color: var(--ink-muted); max-width: 62ch; }
.prose { color: var(--ink-muted); max-width: 68ch; }
.note { font-size: var(--step--1); color: var(--ink-faint); max-width: 70ch; }

.mono {
  font-family: var(--font-mono);
  font-size: var(--step-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.mono--plain { text-transform: none; letter-spacing: 0.03em; font-size: var(--step--1); }

.eyebrow { display: flex; align-items: center; gap: var(--space-3); }
.eyebrow__rule { width: 2.25rem; height: 3px; background: var(--accent); flex: none; }
.eyebrow__text {
  font-family: var(--font-mono);
  font-size: var(--step-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* --- Botones ----------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 3rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: var(--step-0);
  font-weight: 500;
  cursor: pointer;
  text-align: center;
}

.btn--solid { background: var(--ink); color: var(--ink-inverse); }
.btn--solid:hover { background: var(--accent-deep); color: var(--ink-inverse); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--surface-sunken); color: var(--ink); }
.btn--accent { background: var(--accent); color: oklch(0.98 0.005 95); }
.btn--accent:hover { background: var(--ink); color: var(--ink-inverse); }
.btn--small { min-height: 2.5rem; padding: 0.55rem 1rem; font-size: var(--step--1); }

.band--inverse .btn--ghost { border-color: var(--ink-inverse-muted); color: var(--ink-inverse); }
.band--inverse .btn--ghost:hover { background: var(--line-inverse); color: var(--ink-inverse); }

.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

/* --- Barra superior y pie ---------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in oklab, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-4);
  align-items: baseline;
  justify-content: space-between;
  padding-block: var(--space-3);
}

.brand { display: flex; align-items: baseline; gap: var(--space-2); }
.brand__parent { font-family: var(--font-mono); font-size: var(--step-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.brand__name { font-family: var(--font-display); font-size: var(--step-2); letter-spacing: -0.01em; }

.sitenav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) clamp(0.9rem, 2.4vw, 1.9rem);
  font-size: 0.95rem;
}

.sitenav a:not(.btn):hover { color: var(--accent-deep); }

.sitefoot {
  background: var(--surface-inverse);
  color: var(--ink-inverse-muted);
  border-top: 1px solid var(--line-inverse);
}

.sitefoot__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  padding-block: var(--space-5);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.06em;
}

.sitefoot a:hover { color: var(--ink-inverse); }

/* --- Rejillas y tarjetas ------------------------------------------------ */

.hairline-grid {
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.hairline-grid > * { background: var(--surface); padding: var(--space-4); }
.band--sunken .hairline-grid > * { background: var(--surface-sunken); }
.hairline-grid--roomy > * { padding: var(--space-5); }
.hairline-grid--tight { grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr)); }

.numbered__index {
  font-family: var(--font-mono);
  font-size: var(--step-mono);
  letter-spacing: 0.14em;
  color: var(--accent-deep);
  margin-bottom: var(--space-3);
}

.numbered .subheading { margin-bottom: var(--space-2); }
.numbered p { font-size: 0.95rem; color: var(--ink-muted); }

.rule-card { border-top: 2px solid var(--accent); padding-top: var(--space-3); }
.rule-card .subheading { margin-bottom: var(--space-2); }
.rule-card p { font-size: 0.95rem; color: var(--ink-muted); }

.product-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-height: 18rem;
  background: var(--accent-wash);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  padding: var(--space-5);
}

.product-card:hover {
  background: var(--accent-tint);
  border-color: var(--accent);
  color: var(--ink);
}
.product-card__name { font-family: var(--font-display); font-size: var(--step-3); letter-spacing: -0.01em; }
.product-card p { font-size: 0.98rem; color: var(--ink-muted); }

.product-card__go {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.05em;
  color: var(--accent-deep);
  font-weight: 500;
}

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--step-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  padding: 0.25rem 0.5rem;
  color: var(--ink-faint);
}

.chip--accent { border-color: var(--accent-line); color: var(--accent-deep); }
.chip--fake { border-style: dashed; }

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.03em;
  border: 1px solid var(--line);
  background: var(--surface-sunken);
  padding: 0.3rem 0.55rem;
  color: var(--ink-muted);
}

.tag--rule { background: transparent; border-color: var(--accent-line); color: var(--accent-deep); }
.tag--ok { border-color: var(--accent-line); color: var(--accent-deep); background: var(--accent-wash); }
.tag-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }


.callout {
  border-left: 3px solid var(--accent);
  padding: var(--space-3) 0 var(--space-3) var(--space-4);
  max-width: 46rem;
}

.callout strong { font-weight: 600; }

/* --- Maqueta de producto (panel enmarcado) ------------------------------ */

.panel {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-raised);
}

.panel__head {
  background: var(--surface-inverse);
  color: var(--ink-inverse);
  padding: var(--space-3) var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}

.panel__head .mono { color: var(--ink-inverse-muted); }
.panel__section { padding: var(--space-4); }
.panel__section + .panel__section { border-top: 1px solid var(--line); }
.panel__section--sunken { background: var(--surface-sunken); }
.panel__label { margin-bottom: var(--space-4); }

.panel__split {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}

.panel__split > * { background: var(--surface-raised); padding: var(--space-4); min-width: 0; }
.panel__split--narrow-first { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.panel__split--wide-first { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }

@media (max-width: 62rem) {
  .panel__split { grid-template-columns: 1fr; }
}

.statline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(10rem, 100%), 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}

.statline > * { background: var(--surface-raised); padding: var(--space-4); }
.stat__value { font-family: var(--font-display); font-size: var(--step-4); line-height: 1.05; margin-top: var(--space-1); }
.stat__foot { font-size: var(--step--1); color: var(--ink-faint); }

.status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  border: 1px solid currentColor;
  padding: 0.35rem 0.7rem;
  font-family: var(--font-mono);
  font-size: var(--step-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status--review { color: oklch(0.82 0.12 85); }
.dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; flex: none; }
.dot--ok { background: var(--ok); }
.dot--warn { background: var(--warn); }
.dot--bad { background: var(--bad); }
.dot--accent { background: var(--accent); }

/* --- Listas de documentos y hallazgos ----------------------------------- */

.doclist { display: flex; flex-direction: column; list-style: none; padding: 0; }

.doclist li {
  display: flex;
  gap: var(--space-3);
  align-items: baseline;
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.doclist li:last-child { border-bottom: 0; }
.doclist .dot { align-self: flex-start; margin-top: 0.45rem; }
.doclist .mono--plain { color: var(--ink-faint); }

.findings { display: flex; flex-direction: column; gap: var(--space-3); }

.finding {
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
}

.finding--bad { border-left-color: var(--bad); }
.finding--warn { border-left-color: var(--warn); }

.finding__head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  align-items: baseline;
  margin-bottom: var(--space-2);
}

.finding__level { font-family: var(--font-mono); font-size: var(--step-mono); letter-spacing: 0.12em; }
.finding--bad .finding__level { color: var(--bad); }
.finding--warn .finding__level { color: oklch(0.5 0.12 78); }
.finding p { font-size: 0.95rem; color: var(--ink-muted); margin-bottom: var(--space-3); }
.finding .checklist { gap: var(--space-2); }

.checklist { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.checklist li { display: flex; gap: var(--space-3); align-items: baseline; font-size: 0.95rem; }
.checklist .dot { align-self: flex-start; margin-top: 0.45rem; }

.alerts { display: flex; flex-direction: column; gap: var(--space-2); }

.alert {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  align-items: baseline;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-left: 3px solid var(--warn);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  font-size: 0.95rem;
}

.alert--bad { border-left-color: var(--bad); }
.alert__time { font-family: var(--font-mono); font-size: var(--step--1); color: var(--ink-faint); min-width: 3rem; }

/* --- Conversaciones ----------------------------------------------------- */

.thread { display: flex; flex-direction: column; gap: var(--space-3); }
.thread--wide { max-width: 52rem; }

.msg { max-width: min(34rem, 92%); border-radius: var(--radius); padding: var(--space-3) var(--space-4); font-size: 0.95rem; line-height: 1.5; }
.msg__who { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: var(--space-2); }
.msg--them { background: var(--surface-sunken); border: 1px solid var(--line); }
.msg--us { align-self: flex-end; background: var(--surface-inverse); color: var(--ink-inverse); }
.msg--us .msg__who { color: var(--ink-inverse-muted); }
.msg--agent { background: var(--surface-raised); border: 1px solid var(--line); border-left: 3px solid var(--accent); }
.msg--agent .msg__who { color: var(--accent-deep); }

.msg--tool {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  max-width: 100%;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  color: var(--accent-deep);
  background: var(--accent-wash);
  border: 1px solid var(--accent-line);
  padding: 0.45rem 0.7rem;
}

/* --- Codigo y pestanas --------------------------------------------------- */

.tabs { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-4); }

.tab {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  min-height: 2.75rem;
  padding: 0.7rem 1.25rem;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
}

.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--ink-inverse); }
.tabpanel[hidden] { display: none; }

.codeframe {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
}
.codeframe--muted { border-color: var(--line); }

.codeframe__head {
  background: var(--surface-inverse);
  color: var(--ink-inverse-muted);
  padding: 0.7rem var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--step-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.codeframe--muted .codeframe__head {
  background: var(--surface-sunken);
  color: var(--ink-faint);
  border-bottom: 1px solid var(--line);
}

.codeframe pre {
  margin: 0;
  padding: var(--space-4);
  background: var(--surface-raised);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.75;
  overflow-x: auto;
  color: var(--ink-muted);
  tab-size: 2;
}

.endpoints { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }

/* --- Graficos del tablero ------------------------------------------------ */

.bars { display: flex; align-items: flex-end; gap: clamp(3px, 1vw, 10px); height: 11rem; }
.bars__col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: var(--space-2); height: 100%; }
.bars__bar { width: 100%; height: var(--bar); background: oklch(0.86 0.045 var(--accent-hue)); }
.bars__col--busy .bars__bar { background: oklch(0.72 0.09 var(--accent-hue)); }
.bars__col--peak .bars__bar { background: var(--accent); }
.bars__label { font-family: var(--font-mono); font-size: 0.66rem; color: var(--ink-faint); }
.bars__col--peak .bars__label { color: var(--ink); }

.meters { display: flex; flex-direction: column; gap: var(--space-3); }
.meter__head { display: flex; justify-content: space-between; gap: var(--space-3); font-size: 0.9rem; margin-bottom: var(--space-1); }
.meter__track { height: 0.5rem; background: var(--surface-sunken); }
.meter__fill { height: 100%; width: var(--fill); background: var(--accent); }

/* --- Planes -------------------------------------------------------------- */

.plan { display: flex; flex-direction: column; gap: var(--space-3); min-height: 21rem; }
.band--sunken .hairline-grid > .plan--featured { background: var(--surface-raised); border-top: 3px solid var(--accent); }
.plan__name { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.plan__name > span:first-child { font-family: var(--font-display); font-size: var(--step-2); letter-spacing: -0.01em; }

.plan__price {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  border: 1px dashed var(--line-strong);
  background: var(--surface);
  padding: 0.45rem 0.7rem;
}

.plan__features { padding-left: 1.1rem; font-size: 0.95rem; line-height: 1.7; color: var(--ink-muted); }
.plan .btn { margin-top: auto; }

/* --- Formulario ----------------------------------------------------------- */

.formcard {
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
  padding: var(--space-5);
}
.form { display: flex; flex-direction: column; gap: var(--space-4); }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(9rem, 100%), 1fr)); gap: var(--space-4); }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field > span { font-size: 0.9rem; font-weight: 500; }

.field input,
.field select {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--surface-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.85rem;
  min-height: 3rem;
}

.field input::placeholder { color: var(--ink-faint); }
.field input:focus-visible,
.field select:focus-visible { border-color: var(--accent); }

/* --- Piezas menores ------------------------------------------------------- */

.title-row { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.section-body { margin-top: var(--space-5); }
.text-faint { color: var(--ink-faint); }

.contact-lines {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.03em;
  line-height: 1.9;
  color: var(--ink-faint);
}

.band--inverse .contact-lines,
.band--inverse .text-faint { color: var(--ink-inverse-muted); }

.plain-list { list-style: none; padding: 0; }
.title-row--spread { justify-content: space-between; }
.panel__value { font-size: 0.95rem; margin-top: var(--space-1); }

.stack--fill { align-items: stretch; }
