/* ==========================================================================
   AV PRO RENTING — hoja de estilos
   ========================================================================== */

:root {
  /* color */
  --ink: #0b0d10;
  --ink-2: #12151a;
  --ink-3: #1b2027;
  --rule-dark: #2a3038;
  --paper: #e9ebed;
  --paper-2: #f6f7f8;
  --rule-light: #c9ced4;
  --muted: #535c67;
  --on-dark: #eceff2;
  --muted-dark: #98a2ad;
  --accent: #ff4d1f;
  --accent-deep: #e03a0c;
  --accent-text: #b8300a;   /* acento para texto pequeño sobre claro: contraste AA */
  --field-line: #6b747e;    /* borde de campos: 3:1 sobre claro y sobre oscuro */
  --focus: var(--ink);      /* anillo de foco; cada fondo fija el suyo */
  --vu-green: #3ddc97;
  --vu-amber: #ffc043;

  /* tipografía */
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;

  /* medidas */
  --wrap: 1280px;
  --gutter: clamp(20px, 4.5vw, 64px);
  --section: clamp(72px, 9vw, 136px);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { padding: 0; border: 0; min-width: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[id] { scroll-margin-top: 24px; }

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: .7rem 1rem; background: var(--accent); color: var(--ink);
  font: 500 .8rem/1 var(--mono); text-decoration: none;
}
.skip:focus { top: 12px; }

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

/* --- piezas comunes ------------------------------------------------------ */

.label {
  font: 500 .72rem/1.2 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.h2 {
  font-size: clamp(1.9rem, 3.7vw, 3.3rem);
  font-weight: 400;
  font-stretch: 116%;
  line-height: 1.05;
  letter-spacing: -.028em;
  text-wrap: balance;
}

.btn {
  display: inline-flex; align-items: center; gap: .9em;
  padding: 1.1em 1.5em;
  border: 0; border-radius: 3px;
  background: var(--ink); color: var(--paper);
  font: 500 .78rem/1 var(--mono);
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  transition: background-color .2s, color .2s;
}
.btn::after { content: "→"; content: "→" / ""; font-size: 1.3em; line-height: .5; transition: transform .25s; }
.btn:hover::after { transform: translateX(5px); }
.btn:hover { background: var(--ink-3); }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: #ff6c45; }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #fff; }

.tally {
  display: inline-block; flex: none;
  width: .6em; height: .6em; border-radius: 50%;
  background: var(--accent);
  animation: tally 2s infinite;
}
@keyframes tally {
  0% { box-shadow: 0 0 0 0 rgba(255, 77, 31, .6); }
  70%, 100% { box-shadow: 0 0 0 .65em rgba(255, 77, 31, 0); }
}

.dark { background: var(--ink); color: var(--on-dark); }

/* aparición al hacer scroll (solo con JS activo) */
.js [data-reveal] {
  opacity: 0; transform: translateY(20px);
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* --- franja superior ----------------------------------------------------- */

.strip {
  display: flex; justify-content: center; align-items: center; gap: .8em;
  padding: .85rem var(--gutter);
  background: var(--ink); color: var(--on-dark);
  font: 500 .7rem/1.3 var(--mono);
  letter-spacing: .13em; text-transform: uppercase; text-align: center;
}

/* --- cabecera ------------------------------------------------------------ */

.header { position: relative; z-index: 20; }
.header__in {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding-block: clamp(18px, 2.4vw, 30px);
}

.logo { display: inline-flex; align-items: center; gap: .85rem; text-decoration: none; }
.logo__mark { width: clamp(44px, 4.6vw, 60px); height: auto; flex: none; }
.logo__bg { fill: var(--ink); }
.logo__off { fill: #39414b; }
.logo__on { fill: var(--accent); }
.logo__text { display: grid; line-height: 1; }
.logo__name {
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
  font-weight: 800; font-stretch: 125%; letter-spacing: -.02em;
}
.logo__sub {
  margin-top: .42em;
  font: 500 clamp(.62rem, .95vw, .78rem)/1 var(--mono);
  letter-spacing: .52em; text-transform: uppercase;
}

.header__right { display: grid; justify-items: end; gap: 14px; }
.header__contact { font-size: .9rem; color: var(--muted); }
.header__contact a { text-decoration: none; color: var(--ink); }
.header__contact a:hover { color: var(--accent-text); }
.header__contact span { margin-inline: .5em; color: var(--accent-deep); }

.nav { display: flex; gap: clamp(18px, 2.2vw, 34px); }
.nav a {
  position: relative; padding-block: .3em;
  font-size: .95rem; font-weight: 500; font-stretch: 108%;
  letter-spacing: .05em; text-transform: uppercase; text-decoration: none;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .25s;
}
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }

.nav-toggle {
  display: none; align-items: center; gap: .7em;
  padding: .75em 1em; border: 1px solid var(--ink); border-radius: 3px;
  background: none;
  font: 500 .74rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
}
.nav-toggle i { display: block; width: 16px; height: 8px; border-block: 2px solid currentColor; }

/* --- hero ---------------------------------------------------------------- */

.hero { padding-top: clamp(20px, 3.4vw, 48px); }

.hero__title {
  font-size: clamp(2.3rem, 6vw, 5.6rem);
  font-stretch: 118%;
  line-height: .98;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.hero__l1 { display: block; font-weight: 700; color: var(--accent-deep); }
.hero__l2 { display: block; font-weight: 300; }

.hero__row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: end; gap: 26px clamp(32px, 5vw, 80px);
  margin-top: clamp(22px, 2.8vw, 38px);
}
.hero__lead {
  max-width: 34rem;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem); font-stretch: 106%; line-height: 1.42;
  text-wrap: pretty;
}
.hero__lead a {
  font-weight: 600;
  text-decoration: underline 2px var(--accent); text-underline-offset: .22em;
}
.hero__lead a:hover { color: var(--accent-text); }

/* mensaje y pixel pitch en una fila, pegados a la derecha; el botón de pausa, encima */
.wallctl {
  display: grid; grid-template-columns: auto auto;
  justify-content: end; align-items: end; gap: 18px 28px;
}
.wallctl .motion-toggle { grid-column: 1 / -1; grid-row: 1; justify-self: end; }
.wallctl .label { display: block; margin-bottom: .75em; color: var(--muted); }

.wallmsg { width: 340px; max-width: 420px; }
.wallmsg input {
  width: 100%; padding: .55em 0;
  border: 0; border-bottom: 1px solid var(--ink); border-radius: 0;
  background: none;
  font: 500 1rem/1.2 var(--mono); letter-spacing: .04em; text-transform: uppercase;
}
.wallmsg input::placeholder { color: var(--muted); opacity: 1; text-transform: none; letter-spacing: 0; }
.wallmsg input:focus { border-bottom-color: var(--accent-deep); box-shadow: 0 1px 0 var(--accent-deep); }

.seg__opts { display: inline-flex; border: 1px solid var(--ink); border-radius: 3px; overflow: hidden; }
.seg label { position: relative; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span {
  display: block; padding: .72em 1.05em;
  font: 500 .78rem/1 var(--mono); letter-spacing: .08em;
  transition: background-color .2s, color .2s;
}
.seg label + label span { border-left: 1px solid var(--ink); }
.seg input:checked + span { background: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 2px solid #fff; outline-offset: -5px; box-shadow: inset 0 0 0 3px var(--ink); }

.wall { margin-top: clamp(22px, 2.8vw, 36px); height: clamp(230px, 38vh, 420px); }
.wall canvas { width: 100%; height: 100%; }

/* --- introducción + cifras ---------------------------------------------- */

.intro { padding-bottom: var(--section); }
.wall-glow {
  position: absolute; inset: 0 0 auto 0; width: 100%; height: 130px;
  filter: blur(18px); opacity: .5; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000, transparent);
  mask-image: linear-gradient(#000, transparent);
}
.intro__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 7vw, 110px); align-items: start;
  padding-top: clamp(56px, 6.5vw, 100px);
  border-top: 1px solid var(--rule-dark);
}
.intro__text p { max-width: 34rem; color: var(--on-dark); }
.intro__text p + p { margin-top: 1.3em; }
.intro__text .lead { font-size: 1.3rem; font-stretch: 108%; line-height: 1.4; }
.intro__text .btn { margin-top: 2.2rem; }

.stat {
  display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  align-items: baseline; gap: 6px 28px;
  padding-block: clamp(16px, 2vw, 26px);
  border-top: 1px solid var(--rule-dark);
}
.stat:last-child { border-bottom: 1px solid var(--rule-dark); }
.stat__n {
  font-size: clamp(2.2rem, 4.6vw, 4.1rem);
  font-weight: 300; font-stretch: 122%; line-height: 1;
  letter-spacing: -.04em; font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat__l {
  justify-self: end; max-width: 15rem; text-align: right;
  color: var(--muted-dark); font-size: .98rem; line-height: 1.35;
}

/* --- carruseles y tarjetas ---------------------------------------------- */

.equipos {
  position: relative; overflow: hidden;
  padding-block: var(--section) clamp(56px, 6.5vw, 100px);
}
.equipos > .wrap { position: relative; }
.clientes { padding-block: var(--section); }

.sec-head__note { color: var(--muted-dark); padding-bottom: .6em; }

/* catálogo completo: todo a la vista, sin carrusel */
.eq-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(30px, 3.6vw, 56px) clamp(16px, 2vw, 28px);
}
.card--cta {
  justify-content: space-between; gap: 1.6rem;
  padding: clamp(22px, 2.6vw, 36px);
  border-radius: 6px; background: var(--accent); color: var(--ink);
}
.card--cta h3 {
  font-size: clamp(1.5rem, 2.3vw, 2.1rem); font-weight: 500; font-stretch: 114%;
  line-height: 1.1; letter-spacing: -.022em; text-wrap: balance;
}
.card--cta p { margin-top: .9rem; font-size: 1.05rem; line-height: 1.45; }
.card--cta .btn { align-self: start; }

.sec-head {
  display: flex; justify-content: space-between; align-items: end; gap: 24px;
  margin-bottom: clamp(28px, 4vw, 52px);
}
.car-nav { display: flex; gap: 10px; }
.car-nav button {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid currentColor; background: none;
  font-size: 1.1rem; line-height: 1;
  transition: background-color .2s, color .2s, opacity .2s;
}
.car-nav button:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.car-nav button:disabled { opacity: .3; cursor: default; }

.track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: clamp(250px, 30.5%, 400px);
  gap: clamp(16px, 2vw, 28px);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none; }

.card { scroll-snap-align: start; display: flex; flex-direction: column; }
.card__media {
  aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px;
  border-bottom: 3px solid var(--accent);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
/* panel de plano técnico: para una foto, quita la clase .plano */
.plano {
  background-color: var(--ink-2);
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: center;
}
.plano img { object-fit: contain; }
.clientes .plano { background-color: var(--ink); }

.card__title {
  margin-top: 1.15rem;
  font-size: 1.4rem; font-weight: 500; font-stretch: 112%;
  line-height: 1.15; letter-spacing: -.015em;
}
.card__text { margin-top: .5rem; color: var(--muted-dark); font-size: 1rem; line-height: 1.45; }
.clientes .card__text { color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 1rem; }
.chips li {
  padding: .5em .7em; border: 1px solid var(--rule-dark); border-radius: 2px;
  font: 400 .68rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted-dark);
}
.clientes .chips li { border-color: var(--rule-light); color: var(--muted); }

/* --- equipo técnico (bloque de acento) ---------------------------------- */

.equipo { background: var(--accent); color: var(--ink); padding-block: var(--section); }
.equipo__grid {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(40px, 7vw, 110px); align-items: center;
}
.equipo__text > p { margin-top: 1.6rem; max-width: 33rem; font-size: 1.1rem; }
.ticks { margin-top: 2rem; display: grid; gap: .95rem; max-width: 35rem; }
.ticks li { display: grid; grid-template-columns: 2.4rem 1fr; font-weight: 500; line-height: 1.4; }
.ticks li::before { content: "→"; content: "→" / ""; font-family: var(--mono); }
.equipo .btn { margin-top: 2.4rem; }

.rack {
  padding: clamp(18px, 2.4vw, 30px);
  background: var(--ink); color: var(--on-dark);
  border-radius: 10px;
  box-shadow: 0 30px 60px -30px rgba(40, 8, 0, .55);
}
.rack__head {
  display: flex; align-items: center; gap: .8em;
  padding-bottom: 1rem; margin-bottom: 1.4rem;
  border-bottom: 1px solid var(--rule-dark);
  color: var(--muted-dark);
}
.rack__head b { margin-left: auto; font-weight: 500; color: var(--on-dark); }
.vu { display: grid; grid-template-columns: repeat(8, 1fr); gap: clamp(8px, 1.4vw, 18px); }
.vu__ch { display: grid; gap: .8rem; justify-items: center; }
.vu__bar {
  position: relative; width: 100%; height: clamp(150px, 20vw, 250px);
  -webkit-mask-image: repeating-linear-gradient(to top, #000 0 7px, transparent 7px 10px);
  mask-image: repeating-linear-gradient(to top, #000 0 7px, transparent 7px 10px);
  background: var(--ink-3);
}
.vu__bar::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--vu-green) 0 62%, var(--vu-amber) 62% 86%, var(--accent) 86%);
  clip-path: inset(var(--rest, 45%) 0 0 0);
  animation: vu var(--d, 2s) linear infinite;
  animation-delay: var(--o, 0s);
}
.vu__ch span { font: 400 .62rem/1 var(--mono); letter-spacing: .06em; color: var(--muted-dark); }
@keyframes vu {
  0%, 100% { clip-path: inset(62% 0 0 0); }
  9% { clip-path: inset(30% 0 0 0); }
  18% { clip-path: inset(48% 0 0 0); }
  27% { clip-path: inset(18% 0 0 0); }
  36% { clip-path: inset(40% 0 0 0); }
  48% { clip-path: inset(26% 0 0 0); }
  58% { clip-path: inset(55% 0 0 0); }
  67% { clip-path: inset(22% 0 0 0); }
  78% { clip-path: inset(38% 0 0 0); }
  89% { clip-path: inset(12% 0 0 0); }
}

/* --- renting de larga duración ------------------------------------------ */

.promo {
  padding-block: clamp(48px, 6vw, 84px);
  background:
    radial-gradient(90% 240% at 100% 50%, rgba(255, 77, 31, .6), rgba(255, 77, 31, 0) 60%),
    var(--ink);
  color: var(--on-dark);
}
.promo__grid {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr) auto;
  gap: clamp(24px, 4vw, 56px); align-items: center;
}
.promo__body { padding-left: clamp(24px, 4vw, 56px); border-left: 1px solid rgba(255, 255, 255, .28); }
.promo__body .label { color: var(--on-dark); }
.promo__body p:last-child { margin-top: .5rem; font-size: 1.25rem; font-stretch: 108%; line-height: 1.3; }

/* --- contacto ------------------------------------------------------------ */

.contacto { padding-bottom: var(--section); }
.contacto__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 7vw, 110px); align-items: start;
  padding-top: var(--section);
  border-top: 1px solid var(--rule-light);
}
.contacto__text > p { margin-top: 1.5rem; max-width: 30rem; color: var(--muted); }
.contacto__text .direct { margin-top: 2.4rem; color: var(--ink); }
.direct { display: grid; gap: .3rem; }
.direct a {
  width: fit-content;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem); font-weight: 500; font-stretch: 112%;
  letter-spacing: -.015em; text-decoration: none;
}
.direct a:hover { color: var(--accent-text); }

.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px;
  padding: clamp(22px, 3.2vw, 44px);
  background: var(--paper-2); border-radius: 8px;
}
.field { display: grid; gap: .5rem; }
.field--full { grid-column: 1 / -1; }
.field .label { color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: .6em 0;
  border: 0; border-bottom: 1px solid var(--field-line); border-radius: 0;
  background: none; font-size: 1rem;
}
.field textarea { min-height: 10.5rem; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink);
}
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: .4rem; }
.form__status { flex: 1 1 14rem; font-size: .92rem; color: var(--muted); }
.form__status.is-ok { color: var(--ink); font-weight: 500; }

/* --- pie ----------------------------------------------------------------- */

.footer { padding-block: clamp(56px, 7vw, 96px) 34px; }
.footer .logo__bg { fill: var(--ink-3); }
.footer .logo__off { fill: #48525e; }
.footer__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(32px, 5vw, 80px);
}
.footer__about h2 { margin-top: 2.2rem; font-size: 1.35rem; font-weight: 500; font-stretch: 112%; }
.footer__about p { margin-top: .5rem; max-width: 27rem; color: var(--muted-dark); }
.footer__about .direct { margin-top: 1.6rem; color: var(--on-dark); }
.footer__about .direct a:hover { color: var(--accent); }
.footer__col .label { display: block; margin-bottom: 1.2rem; color: var(--muted-dark); }
.footer__col ul { display: grid; gap: .65rem; }
.footer__col a { text-decoration: none; }
.footer__col a:hover { color: var(--accent); }
.footer__note {
  margin-top: clamp(40px, 6vw, 72px); max-width: 52rem;
  font-size: .85rem; line-height: 1.5; color: var(--muted-dark);
}
.footer__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px;
  margin-top: 26px; padding-top: 22px;
  border-top: 1px solid var(--rule-dark);
  color: var(--muted-dark);
}
.footer__legal ul { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.footer__legal a { text-decoration: none; }
.footer__legal a:hover { color: var(--on-dark); }

/* --- calculadora --------------------------------------------------------- */

.calc-tab {
  position: fixed; right: 0; top: 50%; z-index: 40;
  writing-mode: vertical-rl; rotate: 180deg; translate: 0 -50%;
  padding: 1.5rem .85rem;
  border: 0; border-radius: 0 10px 10px 0;
  background: var(--accent); color: var(--ink);
  font: 500 .74rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase;
  box-shadow: 0 8px 28px -8px rgba(0, 0, 0, .45);
  transition: padding .2s, background-color .2s;
}
.calc-tab:hover { background: #ff6c45; padding-inline: 1.15rem; }

.calc {
  position: fixed; inset: 0 0 0 auto; margin: 0; padding: 0;
  width: min(450px, 100%); height: 100dvh; max-width: none; max-height: none;
  border: 0; background: var(--ink-2); color: var(--on-dark);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.2, .7, .2, 1), display .4s allow-discrete, overlay .4s allow-discrete;
}
.calc[open] { transform: none; }
@starting-style { .calc[open] { transform: translateX(100%); } }
.calc::backdrop { background: rgba(5, 6, 8, .6); }

.calc__in { display: grid; gap: 22px; padding: clamp(22px, 5vw, 34px); }
.calc__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.calc__head h2 { font-size: 1.5rem; font-weight: 500; font-stretch: 114%; letter-spacing: -.02em; }
.calc__close {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--field-line); background: none; font-size: 1.3rem; line-height: 1;
}
.calc__close:hover { border-color: var(--on-dark); }

.calc__total { padding: 20px; background: var(--ink); border-radius: 6px; border-left: 3px solid var(--accent); }
.calc__total .label { display: block; color: var(--muted-dark); }
.calc__total output {
  display: inline-block; margin-top: .25em;
  font-size: 2.7rem; font-weight: 300; font-stretch: 120%; line-height: 1.05;
  letter-spacing: -.035em; font-variant-numeric: tabular-nums;
}
.calc__total small { margin-left: .4em; font: 400 .78rem/1 var(--mono); color: var(--muted-dark); }

.calc__rows { display: grid; }
.calc__row {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding-block: 12px; border-bottom: 1px solid var(--rule-dark);
}
.calc__row:first-child { border-top: 1px solid var(--rule-dark); }
.calc__name { display: grid; gap: .3em; line-height: 1.2; }
.calc__name small { font: 400 .68rem/1 var(--mono); letter-spacing: .06em; color: var(--muted-dark); }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--field-line); border-radius: 3px; flex: none; }
.stepper button { width: 36px; height: 36px; border: 0; background: none; font-size: 1.05rem; }
.stepper button:hover { background: var(--ink-3); color: var(--accent); }
.stepper input {
  width: 3.4em; height: 36px; padding: 0; border: 0; border-inline: 1px solid var(--field-line);
  background: none; text-align: center;
  font: 500 .9rem/1 var(--mono); appearance: textfield; -moz-appearance: textfield;
}
.stepper--wide input { width: 6.4em; }
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.calc .seg__opts { border-color: var(--field-line); }
.calc .seg label + label span { border-left-color: var(--field-line); }
.calc .seg span { padding: .85em .95em; font-size: .9rem; }
.calc .seg input:checked + span { background: var(--accent); color: var(--ink); }

.calc__break { display: grid; gap: .5rem; font-size: .92rem; color: var(--muted-dark); }
.calc__break div { display: flex; justify-content: space-between; gap: 16px; }
.calc__break dd { color: var(--on-dark); font-variant-numeric: tabular-nums; }
.calc .btn { justify-content: center; }
.calc__note { font-size: .82rem; line-height: 1.45; color: var(--muted-dark); }

/* --- adaptación a pantallas pequeñas ------------------------------------ */

@media (max-width: 960px) {
  .intro__grid, .equipo__grid, .contacto__grid { grid-template-columns: minmax(0, 1fr); }
  .promo__grid { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .promo__body { padding-left: 0; padding-top: 22px; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .28); }
  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer__about { grid-column: 1 / -1; }
  .track { grid-auto-columns: clamp(250px, 44%, 400px); }
  .hero__row { grid-template-columns: minmax(0, 1fr); }
  .wallctl { justify-content: start; }
  .wallctl .motion-toggle { justify-self: start; }
  .eq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .header__contact { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    padding: 6px var(--gutter) 18px;
    background: var(--paper); border-bottom: 1px solid var(--rule-light);
    box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .35);
  }
  .header.is-open .nav { display: flex; }
  .nav a { padding-block: .95em; border-top: 1px solid var(--rule-light); font-size: 1rem; }
  .nav a::after { display: none; }
  .nav a[aria-current] { color: var(--accent-text); text-decoration: underline 2px; text-underline-offset: .3em; }
}

@media (max-width: 700px) {
  .stat { grid-template-columns: minmax(0, 1fr); }
  .stat__l { justify-self: start; text-align: left; max-width: none; }
  .track { grid-auto-columns: 78%; }
  .eq-grid { grid-template-columns: minmax(0, 1fr); }
  .eq-grid .card__media { aspect-ratio: 16 / 10; }
  .sec-head { flex-direction: column; align-items: start; gap: 10px; }
  .clientes .sec-head { flex-direction: row; align-items: end; }
  .wallctl { grid-template-columns: minmax(0, 1fr); justify-content: stretch; }
  .wallmsg { width: 100%; max-width: none; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .calc-tab {
    writing-mode: horizontal-tb; rotate: none; translate: none;
    top: auto; bottom: 14px; right: 14px;
    padding: 1rem 1.2rem; border-radius: 999px;
  }
  .calc-tab:hover { padding-inline: 1.2rem; }
  .footer { padding-bottom: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .tally, .vu__bar::after { animation: none; }
  .calc, .btn::after { transition: none; }
}

/* --- piezas legales: casilla del formulario, aviso de cookies ------------ */

[hidden] { display: none !important; }

.check { display: flex; align-items: flex-start; gap: .7rem; font-size: .95rem; cursor: pointer; }
.check input { flex: none; width: 1.15rem; height: 1.15rem; margin: .15rem 0 0; accent-color: var(--ink); }
.check a, .form__legal a { text-underline-offset: .18em; }
.form__legal { font-size: .8rem; line-height: 1.5; color: var(--muted); }

.linklike {
  padding: 0; border: 0; background: none;
  font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit;
}
.footer__legal .linklike:hover { color: var(--on-dark); }

.cookies {
  position: fixed; left: 16px; bottom: 16px; z-index: 60;
  display: grid; gap: .8rem;
  width: min(430px, calc(100% - 32px)); padding: 22px;
  background: var(--ink-2); color: var(--on-dark);
  border: 1px solid var(--rule-dark); border-left: 3px solid var(--accent); border-radius: 8px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .6);
  font-size: .92rem; line-height: 1.5;
}
.cookies__title { font: 500 .72rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-dark); }
.cookies a { color: inherit; text-underline-offset: .18em; white-space: nowrap; }
/* aceptar y rechazar pesan lo mismo: ninguna opción se esconde ni se destaca */
.cookies__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: .3rem; }
.cookies__actions .btn { justify-content: center; padding-inline: 1em; }
.cookies__actions .btn::after { content: none; }

/* --- páginas legales ----------------------------------------------------- */

.back {
  font-size: .95rem; font-weight: 500; font-stretch: 108%;
  letter-spacing: .05em; text-transform: uppercase; text-decoration: none;
}
.back:hover { color: var(--accent-text); }

.legal { max-width: 46rem; padding-block: clamp(28px, 5vw, 72px) var(--section); }
.legal > .label { color: var(--muted); }
.legal h1 { margin-top: .7rem; }
.legal__meta { margin-top: 1rem; color: var(--muted); font-size: .95rem; }
.legal h2 {
  margin-top: 2.8rem;
  font-size: 1.45rem; font-weight: 500; font-stretch: 112%;
  line-height: 1.2; letter-spacing: -.015em;
}
.legal p, .legal ul, .legal .table-wrap { margin-top: 1rem; }
.legal ul { display: grid; gap: .45rem; padding-left: 1.2rem; list-style: disc; }
.legal a, .legal .linklike { text-decoration: underline; text-underline-offset: .18em; }
.legal a:hover, .legal .linklike:hover { color: var(--accent-text); }
.table-wrap { overflow-x: auto; }
.legal table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: .95rem; }
.legal th, .legal td {
  padding: .75rem 1rem .75rem 0; border-bottom: 1px solid var(--rule-light);
  text-align: left; vertical-align: top;
}
.legal th { font: 500 .72rem/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
/* dato pendiente de rellenar antes de publicar */
.pend { padding: .05em .35em; border-radius: 3px; background: #ffd5c7; color: var(--ink); font-weight: 500; }

.footer--legal { padding-block: 30px; }
.footer--legal .footer__legal { margin-top: 0; padding-top: 0; border-top: 0; }

/* --- accesibilidad ------------------------------------------------------- */

/* el anillo de foco cambia de color según el fondo, para verse siempre */
.dark, .strip, .promo, .calc, .cookies { --focus: #fff; }
.equipo, .card--cta { --focus: var(--ink); }
.calc-tab:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 8px #fff; }
main:focus { outline: none; }

/* botón para pausar todo lo que se mueve */
.motion-toggle {
  padding: .72em 1.05em; border: 1px solid var(--ink); border-radius: 3px; background: none;
  font: 500 .78rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
}
.motion-toggle:hover { background: var(--ink); color: var(--paper); }
.motion-off { scroll-behavior: auto; }
.motion-off .tally, .motion-off .vu__bar::after { animation: none; }
.motion-off.js [data-reveal] { opacity: 1; transform: none; transition: none; }

.req { margin-left: .25em; color: var(--accent-text); }
.form__req { grid-column: 1 / -1; font-size: .85rem; color: var(--muted); }

/* campo trampa antispam: fuera de la vista, del teclado y de los lectores de pantalla */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (forced-colors: active) {
  .btn, .calc-tab, .seg span, .motion-toggle { border: 1px solid ButtonText; }
  .seg input:checked + span { background: Highlight; color: HighlightText; }
}

/* --- móvil --------------------------------------------------------------- */

.call { display: none; }

@media (max-width: 860px) {
  .header__right { grid-auto-flow: column; align-items: center; gap: 10px; }
  .call {
    display: grid; place-items: center; width: 46px; height: 46px;
    border: 1px solid var(--ink); border-radius: 3px;
  }
  .call svg { width: 20px; height: 20px; }
  .nav-toggle { min-height: 46px; }
}

@media (max-width: 420px) {
  /* en pantallas muy estrechas el botón de menú se queda solo con el icono */
  .nav-toggle { padding-inline: .95em; }
  .nav-toggle span {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
  }
}

/* con el dedo: zonas de toque de al menos 44 px y sin zoom automático en iOS */
@media (pointer: coarse) {
  .seg span, .motion-toggle { padding-block: 1.1em; }
  .stepper button { width: 44px; height: 44px; }
  .stepper input { height: 44px; font-size: 1rem; }
  .calc__close { width: 44px; height: 44px; }
  .footer__col ul { gap: 0; }
  .footer__col a, .footer__legal a, .footer__legal .linklike { display: inline-block; padding-block: .6em; }
  .chips li { font-size: .72rem; }
}

/* pantallas muy estrechas: el logo no se parte y el aviso de cookies ocupa menos */
.logo__name { white-space: nowrap; }

@media (max-width: 420px) {
  .header__in { gap: 14px; }
  .logo { gap: .7rem; }
  .logo__name { font-size: 1.25rem; }
  .logo__sub { letter-spacing: .42em; }
  .cookies { left: 10px; bottom: 10px; width: calc(100% - 20px); padding: 16px; gap: .6rem; font-size: .88rem; }
}

@media (pointer: coarse) {
  .seg span, .motion-toggle, .cookies__actions .btn { display: grid; place-items: center; min-height: 44px; }
  .nav-toggle { min-width: 46px; justify-content: center; }
  .wallmsg input { min-height: 44px; }
}

@media (pointer: coarse) {
  .btn { min-height: 44px; }
  .direct a { padding-block: .3em; }
  .field input, .field select { min-height: 44px; }
  .check input { width: 1.4rem; height: 1.4rem; margin-top: 0; }
  .footer__legal a, .footer__legal .linklike { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; }
}
