/* ==========================================================================
   FLOW DATA — hoja de estilos única del sitio.
   Monocroma de contraste máximo: negro puro, blanco puro, cero color salvo
   las dos señales de estado. Jerarquía por peso tipográfico, por vacío y por
   líneas de un píxel. Sin sombras, sin degradados, sin iconos decorativos.
   ========================================================================== */

:root {
  --bg:      #000000;
  --panel:   #0A0A0A;
  --panel-2: #111111;
  --line:    #242424;
  --line-2:  #383838;
  --fg:      #FFFFFF;
  --fg-2:    #A1A1A1;
  --fg-3:    #6E6E6E;
  --ok:      #6BC08F;
  --warn:    #F2A65A;
  color-scheme: dark;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --maxw: 1100px;
  --r: 6px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.035em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

/* ------------------------------------------------------------ Utilidades */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.sec { border-top: 1px solid var(--line); }
.sec > .wrap { padding-block: clamp(56px, 8vw, 96px); }
.sec--tight > .wrap { padding-block: clamp(40px, 5vw, 60px); }

.kicker {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.head { max-width: 56ch; display: grid; gap: 12px; }
.head h2 { font-size: clamp(26px, 4vw, 40px); line-height: 1.08; letter-spacing: -0.04em; }
.head p { color: var(--fg-2); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 60;
  background: var(--fg); color: #000; padding: 10px 16px; border-radius: var(--r);
  font-size: 13px; font-weight: 500;
}
.skip:focus { left: 16px; top: 12px; }

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

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

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 17px; border: 1px solid var(--fg); border-radius: var(--r);
  background: var(--fg); color: #000;
  font: inherit; font-size: 13.5px; font-weight: 500; text-align: center;
  text-decoration: none; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: #D4D4D4; border-color: #D4D4D4; }
.btn--o { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn--o:hover { background: var(--panel-2); border-color: var(--fg-3); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.acts { display: flex; flex-wrap: wrap; gap: 10px; }

/* ------------------------------------------------------------ Navegación */

.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: rgba(0,0,0,.84);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 41; background: #000;
}
.nav > .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-block: 13px;
}

.logo {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 16px; letter-spacing: -0.04em; text-decoration: none;
}
.logo i {
  width: 20px; height: 20px; display: grid; place-items: center; flex: none;
  border-radius: 4px; background: var(--fg); color: #000;
  font-style: normal; font-size: 9px; font-weight: 700; letter-spacing: 0;
}

.menu { display: flex; align-items: center; gap: 4px; }
.menu a {
  padding: 7px 11px; border-radius: var(--r);
  font-size: 13.5px; color: var(--fg-2); text-decoration: none; white-space: nowrap;
  transition: color .15s ease, background .15s ease;
}
.menu a:hover { color: var(--fg); background: var(--panel-2); }
.menu a[aria-current="page"] { color: var(--fg); }

.nav__cta { flex: none; }

.burger {
  display: none; width: 38px; height: 38px; flex: none;
  align-items: center; justify-content: center;
  border: 1px solid var(--line-2); border-radius: var(--r);
  background: transparent; color: var(--fg); cursor: pointer;
}
.burger span { position: relative; display: block; width: 15px; height: 1.5px; background: currentColor; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 15px; height: 1.5px; background: currentColor;
  transition: transform .18s ease;
}
.burger span::before { top: -5px; }
.burger span::after  { top: 5px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span::after  { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 900px) {
  .menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px max(16px, env(safe-area-inset-left, 0px));
    background: #000; border-bottom: 1px solid var(--line);
  }
  .menu.is-open { display: flex; }
  .menu a { padding: 12px 4px; font-size: 15px; border-bottom: 1px solid var(--line); }
  .menu a:last-child { border-bottom: 0; }
  .burger { display: inline-flex; }
  .nav__cta { display: none; }
}

/* ----------------------------------------------------------------- Hero */

.hero > .wrap { padding-block: clamp(52px, 8vw, 96px) clamp(44px, 6vw, 76px); }
.hero .kicker { margin-bottom: 20px; }
.hero h1 {
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.03; letter-spacing: -0.045em; font-weight: 700;
  max-width: 16ch;
}
.hero .sub { margin-top: 20px; max-width: 54ch; color: var(--fg-2); font-size: clamp(15px, 1.7vw, 17px); }
.hero .acts { margin-top: 28px; }

/* ------------------------------------------- Registro de ejecución (home) */

.log { margin-top: clamp(40px, 6vw, 64px); border: 1px solid var(--line);
       border-radius: 10px; background: var(--panel); overflow: hidden; }
.log__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 16px; border-bottom: 1px solid var(--line); background: var(--panel-2);
}
.log__bar span { font-family: var(--mono); font-size: 11.5px; color: var(--fg-3); min-width: 0; }
.log__dots { display: inline-flex; gap: 6px; flex: none; }
.log__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }

.log__body { padding: 18px 16px; display: grid; gap: 1px; }
.row {
  display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 16px; align-items: baseline;
  padding: 6px 0; font-family: var(--mono); font-size: 12.5px; color: var(--fg-2);
}
.row b { font-weight: 400; color: var(--fg); }
.row .t { color: var(--fg-3); font-variant-numeric: tabular-nums; }
.row[data-state="pending"] { opacity: .2; }
.row.ok b { color: var(--ok); }
@media (max-width: 460px) { .row { font-size: 11.5px; gap: 10px; } }

.log__sum {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line);
}
.log__sum .amt {
  font-family: var(--mono); font-size: clamp(26px, 4.4vw, 34px); font-weight: 500;
  letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
}
.log__sum .was { font-size: 13px; color: var(--fg-3); }

/* ------------------------------------------------------ Logos / trayectoria */

.prev > .wrap { padding-block: 30px; }
.prev .names {
  margin-top: 14px; display: flex; flex-wrap: wrap; gap: 12px 40px;
  font-size: clamp(16px, 2.6vw, 21px); font-weight: 600;
  letter-spacing: -0.03em; color: var(--fg-3);
}

/* ------------------------------------------------------- Rejilla genérica */

.grid { margin-top: clamp(32px, 4vw, 44px); display: grid; gap: 1px;
        background: var(--line); border: 1px solid var(--line);
        border-radius: 10px; overflow: hidden; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 620px) { .grid--2, .grid--3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 940px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.cell { background: var(--bg); padding: clamp(22px, 3vw, 30px);
        display: grid; gap: 11px; align-content: start; min-width: 0; }
.cell .sz { font-family: var(--mono); font-size: 11.5px; color: var(--fg-3); }
.cell h3 { font-size: 18.5px; letter-spacing: -0.03em; }
.cell p { font-size: 14px; color: var(--fg-2); }
.cell ul { display: grid; gap: 7px; margin-top: 2px; }
.cell li { position: relative; padding-left: 17px; font-size: 13.5px; color: var(--fg-2); }
.cell li::before { content: ""; position: absolute; left: 1px; top: 8px;
                   width: 7px; height: 1px; background: var(--fg-3); }
.cell .more {
  margin-top: 4px; font-size: 13.5px; color: var(--fg); text-decoration: none;
  border-bottom: 1px solid var(--line-2); justify-self: start; padding-bottom: 1px;
}
.cell .more:hover { border-bottom-color: var(--fg); }

/* ----------------------------------------------------------------- Casos */

.cases { margin-top: clamp(32px, 4vw, 48px); border: 1px solid var(--line);
         border-radius: 10px; overflow: hidden; }
.case { display: grid; grid-template-columns: 1fr; gap: 20px;
        padding: clamp(20px, 3vw, 28px); border-bottom: 1px solid var(--line); }
.case:last-child { border-bottom: 0; }
@media (min-width: 760px) { .case { grid-template-columns: 210px 1fr; gap: 36px; } }
.case__who b { font-size: 15px; }
.case__who p { margin-top: 4px; font-size: 13px; color: var(--fg-3); }

.ms { display: grid; gap: 20px; min-width: 0;
      grid-template-columns: repeat(auto-fit, minmax(138px, 1fr)); }
.m { display: grid; gap: 3px; min-width: 0; }
.m .v { font-family: var(--mono); font-size: clamp(21px, 3vw, 28px); font-weight: 500;
        letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.m .k { font-size: 13px; color: var(--fg-2); }

/* La etiqueta de procedencia de cada cifra: medida o estimada. */
.tag { justify-self: start; margin-top: 5px; display: inline-flex; align-items: center; gap: 5px;
       padding: 2px 7px; border: 1px solid var(--line-2); border-radius: 3px;
       font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em;
       text-transform: uppercase; color: var(--fg-3); }
.tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%;
               background: currentColor; flex: none; }
.tag.med { color: var(--ok); border-color: #2C4A38; }
.tag.est { color: var(--warn); border-color: #4A3A22; }

.note { margin-top: 22px; font-size: 13px; color: var(--fg-3); max-width: 66ch; }
.note b { color: var(--fg-2); font-weight: 500; }

/* ----------------------------------------------------------------- Pasos */

.steps { margin-top: clamp(32px, 4vw, 44px); }
.step { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: baseline;
        padding-block: 24px; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step .n { font-family: var(--mono); font-size: 11.5px; color: var(--fg-3); }
.step .b { min-width: 0; display: grid; gap: 7px; }
.step h3 { font-size: 17px; letter-spacing: -0.03em; }
.step p { font-size: 14px; color: var(--fg-2); max-width: 62ch; }

/* ------------------------------------------------------ Lista de problemas */

.probs { margin-top: clamp(32px, 4vw, 44px); display: grid; gap: 0; }
.prob { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
        padding-block: 18px; border-top: 1px solid var(--line); }
.prob:last-child { border-bottom: 1px solid var(--line); }
.prob .x { font-family: var(--mono); font-size: 12px; color: var(--fg-3); line-height: 1.8; }
.prob p { font-size: 14.5px; color: var(--fg-2); min-width: 0; }
.prob p b { color: var(--fg); font-weight: 500; }

/* ------------------------------------------------------------------- FAQ */

.faq { margin-top: clamp(32px, 4vw, 44px); border-top: 1px solid var(--line); }
.faq__i { border-bottom: 1px solid var(--line); }
.faq__q { margin: 0; }
.faq__q button {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  width: 100%; padding: 20px 2px; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 15.5px; font-weight: 500; letter-spacing: -0.02em;
  color: var(--fg); text-align: left;
}
.faq__q button:hover { color: var(--fg-2); }
.faq__s { flex: none; width: 13px; height: 13px; position: relative; }
.faq__s::before, .faq__s::after {
  content: ""; position: absolute; background: var(--fg-3); transition: transform .2s ease;
}
.faq__s::before { left: 0; top: 6px; width: 13px; height: 1px; }
.faq__s::after  { left: 6px; top: 0; width: 1px; height: 13px; }
.faq__i.is-open .faq__s::after { transform: scaleY(0); }
.faq__p { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .24s ease; }
.faq__i.is-open .faq__p { grid-template-rows: 1fr; }
.faq__c { overflow: hidden; }
.faq__c p { padding: 0 32px 22px 2px; font-size: 14px; color: var(--fg-2); max-width: 70ch; }
@media (prefers-reduced-motion: reduce) { .faq__p { transition: none; } }

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

.form { margin-top: clamp(26px, 4vw, 34px); max-width: 560px; display: grid; gap: 14px; }
.pair { display: grid; gap: 14px; }
@media (min-width: 520px) { .pair { grid-template-columns: 1fr 1fr; } }
.f { display: grid; gap: 6px; min-width: 0; }
.f label { font-size: 13px; color: var(--fg-2); }
.f label .opt { color: var(--fg-3); }
.f input, .f select, .f textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--panel); color: var(--fg); font: inherit; font-size: 14px;
}
.f textarea { resize: vertical; min-height: 110px; }
.f select { appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--fg-3) 50%),
                    linear-gradient(135deg, var(--fg-3) 50%, transparent 50%);
  background-position: right 17px center, right 12px center;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.f input:focus-visible, .f select:focus-visible, .f textarea:focus-visible {
  border-color: var(--fg); outline-offset: 0;
}
.f.bad input, .f.bad select, .f.bad textarea { border-color: var(--warn); }
.f .e { font-size: 12px; color: var(--warn); }

.cons { display: flex; align-items: flex-start; gap: 9px; font-size: 12px;
        line-height: 1.5; color: var(--fg-3); cursor: pointer; }
.cons input { width: 15px; height: 15px; margin-top: 2px; flex: none; accent-color: var(--fg); }
.cons a { color: var(--fg-2); }

.st { padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r); font-size: 13.5px; }
.st.ok { border-color: #2C4A38; color: var(--ok); }
.st.ko { border-color: #4A3A22; color: var(--warn); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------- Datos de contacto */

.cdata { margin-top: clamp(32px, 4vw, 40px); display: grid; gap: 18px; align-content: start; }
.cdata div { display: grid; gap: 3px; }
.cdata dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em;
            text-transform: uppercase; color: var(--fg-3); }
.cdata dd { margin: 0; font-size: 15px; }
.cdata dd a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.cdata dd a:hover { border-bottom-color: var(--fg); }

.two { display: grid; gap: clamp(32px, 5vw, 56px); }
@media (min-width: 860px) { .two { grid-template-columns: 1fr 340px; align-items: start; } }

/* ---------------------------------------------------------- Aviso editable */
/* Marca los bloques que esperan contenido real antes de publicar. */
.todo {
  margin-top: 20px; padding: 14px 16px; border: 1px dashed var(--line-2);
  border-radius: var(--r); font-size: 13px; color: var(--fg-3); max-width: 66ch;
}
.todo b { color: var(--warn); font-weight: 500; }

/* ------------------------------------------------------------------- Pie */

.pie { border-top: 1px solid var(--line); }
.pie > .wrap { padding-block: clamp(40px, 5vw, 56px) 26px; }
.pie__top { display: grid; gap: 32px; }
@media (min-width: 760px) { .pie__top { grid-template-columns: 1.4fr 1fr 1fr; } }
.pie__col h4 { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em;
               text-transform: uppercase; color: var(--fg-3); font-weight: 500; margin-bottom: 12px; }
.pie__col ul { display: grid; gap: 8px; }
.pie__col a { font-size: 13.5px; color: var(--fg-2); text-decoration: none; }
.pie__col a:hover { color: var(--fg); }
.pie__about p { margin-top: 12px; font-size: 13px; color: var(--fg-3); max-width: 42ch; }

.pie__about .li {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 14px;
  padding: 7px 12px; border: 1px solid var(--line-2); border-radius: var(--r);
  font-size: 13px; color: var(--fg-2); text-decoration: none;
  transition: color .15s ease, border-color .15s ease;
}
.pie__about .li:hover { color: var(--fg); border-color: var(--fg-3); }
.pie__about .li svg { flex: none; }

.pie__legal { margin-top: clamp(32px, 4vw, 44px); padding-top: 22px; border-top: 1px solid var(--line);
              display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between;
              align-items: center; font-size: 12px; color: var(--fg-3); }
.pie__legal nav { display: flex; flex-wrap: wrap; gap: 16px; }
.pie__legal a { color: var(--fg-3); text-decoration: none; }
.pie__legal a:hover { color: var(--fg-2); }


/* Bloque único de reserva de cita. */
.cita { max-width: 56ch; display: grid; gap: 14px; }
.cita h2 { font-size: clamp(26px, 4vw, 40px); line-height: 1.08; letter-spacing: -0.04em; }
.cita p { color: var(--fg-2); }
.cita ul { display: grid; gap: 8px; margin-top: 4px; }
.cita li { position: relative; padding-left: 18px; font-size: 14px; color: var(--fg-2); }
.cita li::before { content: ""; position: absolute; left: 1px; top: 9px;
                   width: 8px; height: 1px; background: var(--fg-3); }
.cita .btn { margin-top: 14px; justify-self: start; --btn-py: 12px; padding: 12px 22px; font-size: 14.5px; }

/* ==========================================================================
   AÑADIDOS DE LA VERSIÓN COMERCIAL
   Nada de componentes nuevos por capricho: todo reutiliza las variables, la
   retícula y el peso tipográfico que ya existían.
   ========================================================================== */

/* --------------------------------------------------- Precio de partida */
/* En mono, como el resto de cifras del sitio. Es un dato, no una pegatina. */

.price {
  justify-self: start;
  font-family: var(--mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.cell .price { margin-top: -4px; }
.case__who .price { display: block; margin-top: 8px; color: var(--fg-2); }

/* ------------------------------------------- Trayectoria con más peso */

.prev > .wrap { padding-block: clamp(34px, 4vw, 48px); }
.prev .names {
  margin-top: 18px;
  gap: 14px 44px;
  font-size: clamp(19px, 3.2vw, 27px);
  color: var(--fg-2);
}
.prev__nota {
  margin-top: 18px; max-width: 62ch;
  font-size: 13px; color: var(--fg-3);
}
.prev__nota a { color: var(--fg-2); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.prev__nota a:hover { color: var(--fg); border-bottom-color: var(--fg); }

/* ------------------------------------- Detalle de solución (soluciones) */

.sol { display: grid; gap: 12px; min-width: 0; align-content: start; }
.sol > p { font-size: 14.5px; color: var(--fg-2); }
.sol ul { display: grid; gap: 7px; margin-top: 2px; }
.sol li { position: relative; padding-left: 17px; font-size: 13.5px; color: var(--fg-2); }
.sol li::before { content: ""; position: absolute; left: 1px; top: 8px;
                  width: 7px; height: 1px; background: var(--fg-3); }
.sol__para { font-size: 13.5px; color: var(--fg-3); }
.sol__para b { color: var(--fg-2); font-weight: 500; }
.sol .more {
  margin-top: 4px; font-size: 13.5px; color: var(--fg); text-decoration: none;
  border-bottom: 1px solid var(--line-2); justify-self: start; padding-bottom: 1px;
}
.sol .more:hover { border-bottom-color: var(--fg); }

/* ------------------------------------------------ Calculadora de retorno */

.calc {
  margin-top: clamp(32px, 4vw, 44px);
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel); overflow: hidden;
}

.calc__in {
  display: grid; gap: 18px;
  padding: clamp(20px, 3vw, 28px);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 620px) { .calc__in { grid-template-columns: 1fr 1fr; } }
@media (min-width: 940px) { .calc__in { grid-template-columns: repeat(4, 1fr); } }

.calc__in .f input { background: var(--bg); }

.calc__out {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  padding: clamp(20px, 3vw, 28px);
  background: var(--panel-2);
}
.calc__out .v { font-size: clamp(22px, 3.4vw, 30px); }

.calc__nota {
  padding: 0 clamp(20px, 3vw, 28px) clamp(18px, 2vw, 22px);
  margin-top: clamp(18px, 2vw, 22px);
  font-size: 13px; color: var(--fg-3); max-width: 72ch;
}
.calc__nota b { color: var(--fg-2); font-weight: 500; }

.calc .acts { padding: 0 clamp(20px, 3vw, 28px) clamp(22px, 3vw, 28px); }

/* El menú pasó de seis entradas a siete y la cabecera quedó justa: sin esto
   el logotipo se parte en dos líneas a partir de 1100 px. */
.logo { flex: none; white-space: nowrap; }

/* Con cinco entradas la cabecera respira; solo se aprieta un poco al final
   del tramo de escritorio para que el botón no toque el último enlace. */
@media (min-width: 901px) and (max-width: 1050px) {
  .menu a { padding-inline: 8px; font-size: 13px; }
  .nav__cta { font-size: 13px; padding-inline: 14px; }
}


/* ==========================================================================
   PIEZAS DE LA REORGANIZACIÓN COMERCIAL
   ========================================================================== */

/* ------------------------------------------------- Muro de empresas */
/* Los nombres grandes y en línea, a la manera del muro de clientes de
   Vercel. Cuando haya archivos de logotipo, cada <span> se sustituye por
   su <img> y la retícula no cambia. */

.muro > .wrap { padding-block: clamp(36px, 5vw, 56px); }
.muro__logos {
  margin-top: 20px;
  display: grid; gap: 22px 40px;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  align-items: center;
}
.muro__logos span {
  font-size: clamp(18px, 2.6vw, 24px); font-weight: 600;
  letter-spacing: -0.035em; color: var(--fg-3);
  transition: color .15s ease;
}
.muro__logos span:hover { color: var(--fg-2); }
.muro__nota { margin-top: 22px; max-width: 64ch; font-size: 13px; color: var(--fg-3); }
.muro__nota a { color: var(--fg-2); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.muro__nota a:hover { color: var(--fg); border-bottom-color: var(--fg); }

/* ------------------------------------- Precio bajo el titular de solución */

.hero__precio { margin-top: 24px; font-size: 13px; color: var(--fg-3); }
.hero__precio .price { color: var(--fg); margin-right: 6px; }

/* La categoría ocupa el sitio del número de orden en las tarjetas. */
.cell .sz { text-transform: uppercase; letter-spacing: .08em; font-size: 10.5px; }

/* ----------------------------------------------- Ficha lateral de precio */

.ficha {
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel);
  padding: clamp(20px, 3vw, 26px); display: grid; gap: 10px; align-content: start;
}
.ficha__precio {
  font-family: var(--mono); font-size: clamp(22px, 3vw, 28px); font-weight: 500;
  letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
}
.ficha p { font-size: 13.5px; color: var(--fg-2); }
.ficha .btn { margin-top: 6px; justify-self: start; }
.ficha__nota { font-size: 12.5px; color: var(--fg-3); }

/* ----------------------------------------- Listas de las páginas de solución */

.sol__lista { margin-top: clamp(24px, 3vw, 32px); display: grid; gap: 10px; }
.sol__lista li { position: relative; padding-left: 18px; font-size: 14.5px; color: var(--fg-2); }
.sol__lista li::before { content: ""; position: absolute; left: 1px; top: 10px;
                         width: 8px; height: 1px; background: var(--fg-3); }
.sol__lista--rel li { padding-left: 0; }
.sol__lista--rel a { color: var(--fg); text-decoration: none;
                     border-bottom: 1px solid var(--line-2); }
.sol__lista--rel a:hover { border-bottom-color: var(--fg); }

/* ------------------------------------------------- Casos con su problema */

.caso__cuerpo { display: grid; gap: 18px; min-width: 0; }
.caso__prob { font-size: 13.5px; color: var(--fg-3); max-width: 62ch; }
.caso__prob b { color: var(--fg-2); font-weight: 500; }

main [id] { scroll-margin-top: 84px; }
.hero-calculadora { margin-top: clamp(36px, 6vw, 64px); }
.hero-calculadora .calc { margin-top: clamp(20px, 3vw, 32px); }

/* Acento azul de marca en acciones y resultados. */
:root {
  --accent-blue: #539AF8;
  --accent-blue-hover: #7CB4FF;
  --accent-ink: #0A0A0A;
}
.btn:not(.btn--o) {
  border-color: var(--accent-blue);
  background: var(--accent-blue);
  color: var(--accent-ink);
}
.btn:not(.btn--o):hover {
  border-color: var(--accent-blue-hover);
  background: var(--accent-blue-hover);
}
#c-valor,
.price,
main a.more,
.muro__nota a {
  color: var(--accent-blue);
}
main a.more:hover {
  color: var(--accent-blue-hover);
  border-bottom-color: currentColor;
}

.levels { display: flex; flex-wrap: wrap; gap: 12px 20px; }


.flow-preview { margin-top:32px; border:1px solid var(--line); border-radius:var(--r); background:var(--panel); }
.flow-preview__steps { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); border-bottom:1px solid var(--line); }
.flow-preview__steps button { min-width:0; text-align:left; padding:14px 12px; border:0; border-right:1px solid var(--line); background:transparent; color:var(--fg-2); font:inherit; cursor:pointer; transition:background .15s,color .15s; }
.flow-preview__steps button span { display:block; margin-bottom:4px; font:12px var(--mono); }
.flow-preview__steps button[aria-selected="true"] { background:var(--panel-2); color:var(--accent-blue); box-shadow:inset 0 -2px var(--accent-blue); }
.flow-preview__panel { display:grid; grid-template-columns: 1.25fr 1fr; gap:clamp(18px,4vw,52px); padding:clamp(18px,4vw,36px); min-height:185px; }
.flow-preview__panel[hidden] { display:none; }
.flow-preview__panel h3 { color:var(--fg); font-size:1.18rem; margin:0 0 8px; }
.flow-preview__panel p { color:var(--fg-2); max-width:54ch; }
.flow-preview__panel dl { margin:0; display:grid; gap:13px; } .flow-preview__panel dl div { border-left:1px solid var(--line); padding-left:12px; }
.flow-preview__panel dt { font:12px var(--mono); color:var(--accent-blue); } .flow-preview__panel dd { margin:3px 0 0; color:var(--fg-2); }
.film-preview { display:grid; grid-template-columns: .72fr 1.28fr; align-items:center; gap:clamp(22px,5vw,62px); }
.film-preview .more { justify-self:start; } .film-preview figure { margin:0; } .film-preview video { display:block; width:100%; height:auto; aspect-ratio:16/9; border:1px solid var(--line); border-radius:var(--r); background:#080b10; }
.solution-featured { box-shadow:inset 0 2px var(--accent-blue); } .solutions-secondary { margin-top:28px; } .solutions-secondary > h3 { color:var(--fg-2); font-size:1rem; margin-bottom:14px; }
.calculator-preview .calc { margin-top:24px; }
@media(max-width:720px) { .flow-preview__steps {grid-template-columns:repeat(3,minmax(0,1fr))} .flow-preview__steps button {border-bottom:1px solid var(--line)} .flow-preview__panel,.film-preview {grid-template-columns:1fr;} }
@media(prefers-reduced-motion:reduce) { .flow-preview__steps button {transition:none;} }

.demo-datos__card {
  display: grid;
  gap: clamp(28px, 5vw, 54px);
  padding: clamp(22px, 6vw, 64px);
  border: 1px solid #304762;
  border-radius: var(--r);
  background: #101a28;
}
.demo-datos__card .head { max-width: 66ch; gap: clamp(12px, 2vw, 20px); }
.demo-datos__card .head h2 {
  max-width: 20ch;
  font-size: clamp(1.85rem, 5.3vw, 4.2rem);
  line-height: 1.04;
  text-wrap: balance;
}
.demo-datos__card .head p { color: #c1cddd; max-width: 59ch; }
.demo-datos__tarifa {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 28px;
  padding-top: clamp(18px, 3vw, 30px);
  border-top: 1px solid #304762;
  color: #c1cddd;
}
.demo-datos__tarifa strong {
  color: var(--accent-blue);
  font-size: clamp(2.25rem, 5.5vw, 4.25rem);
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: -.05em;
}
@media (max-width: 620px) {
  .demo-datos__tarifa { flex-direction: column; align-items: flex-start; }
}

.calc--rangos { display:grid; grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr); align-items:stretch; }
.calc--rangos .calc__in { display:block; }
.calc--rangos .calc__in > .f { margin-bottom:12px; }
.slider-row { border-top:1px solid var(--line); padding:12px 0 9px; }
.slider-row:first-of-type { margin-top:8px; }
.slider-row__header { display:flex; gap:12px; justify-content:space-between; align-items:center; }
.slider-row__header label { color:var(--fg); font-size:.93rem; line-height:1.35; }
.slider-row__value { display:flex; align-items:center; gap:4px; flex:none; color:var(--accent-blue); font-size:.82rem; white-space:nowrap; }
.calc--rangos input[data-slider-value] { width:6ch; padding:4px 5px; appearance:textfield; background:var(--panel-2); color:var(--accent-blue); border:1px solid var(--line); border-radius:5px; text-align:right; font:600 .9rem var(--mono); }
.calc--rangos input[data-slider-value]::-webkit-inner-spin-button { appearance:none; }
.calc--rangos input[type="range"] { appearance:none; display:block; width:100%; height:28px; margin:3px 0 0; background:transparent; accent-color:var(--accent-blue); cursor:pointer; }
.calc--rangos input[type="range"]::-webkit-slider-runnable-track { height:4px; border-radius:4px; background:linear-gradient(90deg,var(--accent-blue) var(--slider-fill,0%),var(--line) var(--slider-fill,0%)); }
.calc--rangos input[type="range"]::-webkit-slider-thumb { appearance:none; border:1px solid var(--accent-blue-hover); width:15px; height:15px; margin-top:-5.5px; border-radius:50%; background:var(--accent-blue); }
.calc--rangos input[type="range"]::-moz-range-track { height:4px; border-radius:4px; background:var(--line); }
.calc--rangos input[type="range"]::-moz-range-progress { height:4px; border-radius:4px; background:var(--accent-blue); }
.calc--rangos input[type="range"]::-moz-range-thumb { border:1px solid var(--accent-blue-hover); width:14px; height:14px; border-radius:50%; background:var(--accent-blue); }
.calc--rangos input:focus-visible { outline:2px solid var(--accent-blue); outline-offset:2px; }
.calc__results { padding:clamp(20px,3vw,30px); border-left:1px solid var(--line); background:var(--bg); }
.calc--rangos .calc__out { display:block; padding:0; border:0; background:transparent; }
.calc__main { display:block; padding-bottom:18px; border-bottom:1px solid var(--line); }
.calc__main .kicker { display:block; margin-bottom:8px; color:var(--accent-blue); }
.calc__main strong { display:block; font-size:clamp(2.7rem,5vw,4.2rem); line-height:1.04; letter-spacing:-.05em; overflow-wrap:anywhere; }
.calc__main-unit { color:var(--fg-2); }
.calc__costs { display:grid; gap:12px; margin:18px 0; }
.calc__costs dt { color:var(--fg-2); font-size:.875rem; }
.calc__costs dd { margin:2px 0 0; color:var(--fg); font-weight:650; font-size:clamp(1.2rem,2.4vw,1.65rem); overflow-wrap:anywhere; }
.calc__costs #c-valor { color:var(--accent-blue); }
.calc--rangos .calc__nota { padding:0; margin:0; }
.calc--rangos .acts { margin-top:18px; padding:0; }
.tech-demo__video,.tech-flow { margin:26px 0 0; }
.tech-demo__video video { display:block; width:100%; height:auto; aspect-ratio:16/9; border:1px solid var(--line); border-radius:var(--r); background:var(--panel); }
.tech-flow { border:1px solid var(--line); border-radius:var(--r); background:var(--panel); }
.tech-flow figcaption { padding:14px 16px; border-bottom:1px solid var(--line); color:var(--fg); font-weight:600; }
.tech-flow__stages { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); list-style:none; margin:0; padding:0; }
.tech-flow__stages > li { padding:16px; border-left:1px solid var(--line); min-width:0; }
.tech-flow__stages > li:first-child { border-left:0; }
.tech-flow__stages h3 { margin:0 0 8px; font-size:1rem; color:var(--accent-blue); }
.tech-flow__stages p { font-size:.88rem; color:var(--fg-2); }
.tech-flow__stages ul { padding-left:16px; margin-top:12px; color:var(--fg); font-size:.82rem; }
.tech-flow__files,.tech-flow__review { display:flex; flex-wrap:wrap; gap:6px; margin-top:12px; }
.tech-flow__files span,.tech-flow__review { border:1px solid var(--line); border-radius:4px; padding:2px 7px; font-size:.78rem; }
.tech-flow__review { display:inline-flex; color:var(--accent-blue); }
@media(max-width:820px){ .tech-flow__stages { grid-template-columns:1fr; } .tech-flow__stages > li { border-left:0; border-top:1px solid var(--line); } .tech-flow__stages > li:first-child { border-top:0; } }
@media(max-width:680px){ .calc--rangos { grid-template-columns:1fr; } .calc__results {border-left:0; border-top:1px solid var(--line);} }

/* Keep compact portrait layouts readable without horizontal scrolling. */
.film-preview > *, .calc--rangos > *, .grid > *, .two > * { min-width:0; }
.flow-preview__steps button { overflow-wrap:anywhere; }
.tech-flow__stages > li:first-child { border-top:0; }
video { max-width:100%; }
@media(max-width:380px) {
  .flow-preview__steps {grid-template-columns:repeat(2,minmax(0,1fr));}
  .slider-row__header {gap:8px;}
}

.operacion-precio {
  display: block;
  width: fit-content;
  margin-top: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--fg-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--fg-3);
}
.operacion-precio:hover { color: var(--fg); }
.operacion-resumen {
  margin-top: 28px;
  padding: clamp(16px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  scroll-margin-top: 96px;
}
.operacion-resumen h3 { font-size: clamp(1.125rem, 3vw, 1.5rem); }
.operacion-resumen p {
  margin-top: 8px;
  max-width: 70ch;
  color: var(--fg-2);
}
