/* =========================================================
   COTA CERO — Landing (versión escritorio)
   ========================================================= */

:root {
  --black: #0B0B0C;
  --black-pure: #000;
  --ink-2: #141416;
  --green: #08FE75;
  --green-dim: rgba(8, 254, 117, .14);
  --white: #F2F2EE;
  --gray: #5E5E62;
  --gray-2: #8C8C90;
  --line: rgba(242, 242, 238, .14);
  --pill: #ECECE7;
  --orange: #FF7A1A;

  --font-display: "Anton", "Archivo Black", Impact, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(24px, 3.2vw, 56px);
  --ease: cubic-bezier(.22, .8, .24, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-mono);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* grano sutil sobre toda la página */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, dl, dd { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }

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

/* ---------- utilidades ---------- */
.display { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: .005em; }
.mono { font-family: var(--font-mono); font-size: 11px; line-height: 1.55; letter-spacing: .06em; text-transform: uppercase; }
/* textos pequeños secundarios: gris más claro para que se lean bien (contraste AA) */
.muted { color: #8C8C90; }
.gray { color: var(--gray); }
.accent { color: var(--green); font-style: normal; }

.pill {
  display: inline-block;
  padding: 3px 9px;
  background: var(--white);
  color: var(--black);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .08em;
}

.grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 50%, #000 30%, transparent 100%);
          mask-image: radial-gradient(ellipse 70% 65% at 50% 50%, #000 30%, transparent 100%);
}

.section-meta {
  position: absolute;
  top: 40px;
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  z-index: 5;
}

/* aparición al hacer scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 6px 6px 6px 10px;
  background: var(--pill);
  color: var(--black);
  border-radius: 999px;
  box-shadow: 0 10px 40px rgba(0,0,0,.45);
}
.nav__logo img { width: 30px; height: 30px; }
.nav__links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  display: block;
  padding: 9px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: background .25s, color .25s;
}
.nav__links a:hover { background: rgba(11,11,12,.08); }
.nav__links a.is-active { background: var(--black); color: var(--white); }

/* =========================================================
   01 · HERO
   ========================================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 780px;
  max-height: 1100px;
  overflow: hidden;
  background: var(--black-pure);
  isolation: isolate;
}

.hero__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 38% 55% at 50% 52%, rgba(8,254,117,.20), transparent 70%),
    radial-gradient(ellipse 60% 40% at 82% -6%, rgba(8,254,117,.22), transparent 70%),
    radial-gradient(ellipse 120% 70% at 50% 120%, rgba(8,254,117,.10), transparent 60%);
}

.hero__contours,
.contours {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  color: rgba(8,254,117,.55);
}

.hero__title {
  position: absolute;
  left: 0;
  right: 0;
  top: 13vh;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: .14em;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: min(23.5vw, 44vh);
  line-height: .86;
  letter-spacing: -.005em;
  color: var(--green);
  text-shadow: 0 0 80px rgba(8,254,117,.35);
  user-select: none;
}
.hero__title span {
  display: inline-block;
  line-height: 1.22;           /* caja alta: background-clip:text no recorta la parte superior de las letras */
  margin-top: -.18em;          /* compensa la caja más alta para no mover el titular */
  background: linear-gradient(180deg, #5BFFA4 0%, var(--green) 45%, #02a84c 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rise 1.1s var(--ease) both;
}
.hero__title span:last-child { animation-delay: .08s; }

.hero__character {
  position: absolute;
  left: 50%;
  bottom: 6.6%;
  height: 86%;
  width: auto;
  max-width: none;
  transform: translateX(-50%);
  z-index: 3;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.6));
  animation: rise-char 1.2s .15s var(--ease) both;
}

.hero__dims {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
  color: var(--green);
}
.dim line, .dim path { stroke: currentColor; stroke-width: 1.4; fill: none; }
.dim .fill { fill: currentColor; stroke: none; }
.dim text { fill: currentColor; font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; stroke: none; }
.dim text.muted { fill: rgba(242,242,238,.55); font-size: 11px; }
.dim .tag { fill: var(--green); stroke: none; }
.dim--height { color: rgba(242,242,238,.45); }

/* dibujo de líneas al cargar */
.draw { stroke-dasharray: var(--len, 1600); stroke-dashoffset: var(--len, 1600); animation: draw 2.2s .5s var(--ease) forwards; }
.hero__contours .draw,
.contours .draw { animation: drift 18s linear infinite; stroke-dasharray: 2 7; stroke-dashoffset: 0; }

/* línea de nivel ±0.00 (HTML para que siempre coincida con los pies) */
.hero__level {
  position: absolute;
  left: 2.8%;
  right: 2.8%;
  bottom: 6.6%;
  height: 1.5px;
  z-index: 4;
  pointer-events: none;
  background: repeating-linear-gradient(90deg, var(--green) 0 10px, transparent 10px 18px);
  transform-origin: left;
  animation: grow-x 1.6s .4s var(--ease) both;
}
.hero__level-mark {
  position: absolute;
  left: 11.5%;
  bottom: 3px;
  width: 28px;
  height: 22px;
  background: var(--green);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.hero__level-mark::before {
  content: "";
  position: absolute;
  inset: 0 -14px auto;
  height: 1.5px;
  background: var(--green);
}
.hero__level-val,
.hero__level-txt {
  position: absolute;
  bottom: 12px;
  white-space: nowrap;
}
.hero__level-val { left: calc(11.5% + 40px); color: var(--green); font-size: 13px; }
.hero__level-txt { left: calc(11.5% + 104px); color: rgba(242,242,238,.55); }

/* etiquetas */
.tag-corner, .tag-side { position: absolute; z-index: 5; }
.tag-corner--tl { top: 28px; left: var(--gutter); display: flex; gap: 12px; align-items: center; }
.tag-corner--tr { top: 28px; right: var(--gutter); text-align: right; }
.tag-corner--bl { bottom: 26px; left: var(--gutter); }
.tag-corner--br { bottom: 26px; right: var(--gutter); text-align: right; }
.tag-side { top: 52%; }
.tag-side--l { left: var(--gutter); }
.tag-side--r { right: var(--gutter); text-align: right; }

/* =========================================================
   FRANJA VERDE
   ========================================================= */
.ticker {
  position: relative;
  z-index: 6;
  overflow: hidden;
  background: var(--green);
  color: var(--black);
  border-block: 1px solid var(--black);
}
.ticker__track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 28px;
  padding: 14px 0;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  animation: marquee 38s linear infinite;
}
.ticker__track i { font-style: normal; font-family: var(--font-mono); font-size: 13px; font-weight: 700; }

/* =========================================================
   02 · SOBRE
   ========================================================= */
.about {
  position: relative;
  min-height: 100vh;
  padding: 150px var(--gutter) 90px;
  display: grid;
  grid-template-columns: minmax(0, 6.2fr) minmax(0, 4fr);
  grid-template-rows: 1fr auto;
  column-gap: 2vw;
  overflow: hidden;
  background: var(--black);
}

.about__title {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  position: relative;
  z-index: 2;
  font-size: clamp(56px, 6.1vw, 104px);
  line-height: .95;
}
.about__title .gray { display: inline; }

.about__plano {
  position: absolute;
  top: 70px;
  right: -7vw;
  width: 54vw;
  max-width: 900px;
  z-index: 1;
  pointer-events: none;
  animation: float 9s ease-in-out infinite;
  filter: drop-shadow(0 0 40px rgba(8,254,117,.12));
}

.about__caption {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  position: relative;
  z-index: 2;
  width: 330px;
  margin-top: 40px;
  font-size: 12px;
  padding: 18px 20px;
  background: var(--black);
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
  border-left: 2px solid var(--green);
}
.barcode { width: 64px; height: 18px; margin-bottom: 14px; color: var(--white); }

/* =========================================================
   03 · SERVICIOS — carrusel
   ========================================================= */
.services {
  --card-w: 380px;
  --card-h: 540px;
  --card-top: 130px;
  --ped-w: 620px;
  /* la tarjeta descansa sobre la cara superior del bloque (34% de la altura de la imagen) */
  --ped-top: calc(var(--card-top) + var(--card-h) - var(--ped-w) * 1642 / 1200 * .34);

  position: relative;
  height: max(100vh, 860px);
  overflow: hidden;
  background:
    radial-gradient(ellipse 40% 45% at 50% 62%, rgba(8,254,117,.16), transparent 70%),
    radial-gradient(ellipse 55% 40% at 12% -4%, rgba(8,254,117,.16), transparent 70%),
    radial-gradient(ellipse 50% 35% at 92% 104%, rgba(8,254,117,.12), transparent 70%),
    var(--black-pure);
  isolation: isolate;
}
.services .grid-bg,
.contact .grid-bg { z-index: -1; }
.services .contours,
.contact .contours { z-index: -1; color: rgba(8,254,117,.38); }

.services__bgword {
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 19vw;
  line-height: .9;
  color: #111113;
  -webkit-text-stroke: 1px rgba(255,255,255,.05);
  user-select: none;
  pointer-events: none;
}

.services__aside {
  position: absolute;
  left: var(--gutter);
  bottom: 64px;
  z-index: 5;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.rings { width: 48px; height: 40px; flex: none; color: var(--gray-2); }

.carousel { position: absolute; inset: 0; }
.carousel__stage { position: absolute; inset: 0; }

.carousel__pedestal {
  position: absolute;
  left: 50%;
  top: var(--ped-top);
  width: var(--ped-w);
  max-width: none;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
}

/* tarjetas */
.card {
  position: absolute;
  left: 50%;
  top: var(--card-top);
  width: var(--card-w);
  height: var(--card-h);
  display: flex;
  flex-direction: column;
  padding: 22px 24px 24px;
  background: linear-gradient(180deg, #121214 0%, #0A0A0B 100%);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 40px 80px rgba(0,0,0,.65);
  transform-origin: 50% 100%;
  transition: transform 1s var(--ease), opacity .8s var(--ease), filter .8s var(--ease);
  will-change: transform;
}
.card[data-pos="0"]  { z-index: 4; transform: translateX(-50%); }
.card[data-pos="1"]  { z-index: 3; transform: translateX(calc(-50% + 470px)) translateY(-60px) scale(.74); opacity: .6; filter: brightness(.7); cursor: pointer; }
.card[data-pos="-1"] { z-index: 3; transform: translateX(calc(-50% - 470px)) translateY(-60px) scale(.74); opacity: .6; filter: brightness(.7); cursor: pointer; }
.card[data-pos="2"]  { z-index: 1; transform: translateX(-50%) translateY(-220px) scale(.55); opacity: 0; pointer-events: none; }
.card[data-pos="1"]:hover, .card[data-pos="-1"]:hover { opacity: .85; filter: brightness(.9); }
.card[data-pos="0"] { border-color: rgba(8,254,117,.35); }

.card__head { display: flex; justify-content: space-between; align-items: center; font-size: 10px; }
.card__head span:first-child { display: flex; align-items: center; gap: 8px; }

.card__art {
  margin: 18px 0 18px;
  height: 150px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: rgba(242,242,238,.8);
  background-image:
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 16px 16px;
}
.card__art svg { width: 100%; height: 100%; padding: 6px; }
.card__art text { fill: var(--gray-2); font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; }
.card__art .accent-stroke { stroke: var(--green); }
.card__art .accent-fill { fill: var(--green); }

.card__kicker { color: var(--gray-2); font-size: 10px; margin-bottom: 8px; }
.card__title { font-size: 46px; line-height: .95; }
.card__text { margin-top: 14px; font-size: 12px; text-transform: none; letter-spacing: .01em; line-height: 1.6; color: rgba(242,242,238,.72); }

.card__cta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--white);
  font-size: 22px;
  letter-spacing: .02em;
  transition: color .25s, border-color .25s;
}
.card__cta span { color: var(--green); transition: transform .3s var(--ease); }
.card__cta:hover { color: var(--green); border-color: var(--green); }
.card__cta:hover span { transform: translateX(6px); }

/* controles */
.carousel__controls {
  position: absolute;
  right: var(--gutter);
  bottom: 64px;
  z-index: 6;
  width: 240px;
  display: grid;
  grid-template-columns: 1fr auto;
  row-gap: 14px;
  align-items: end;
}
.carousel__count { font-family: var(--font-display); font-size: 56px; line-height: .9; letter-spacing: 0; }
.carousel__count .muted { font-size: 28px; }
.carousel__buttons { display: flex; gap: 8px; }
.carousel__btn {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid rgba(255,255,255,.25);
  font-size: 18px;
  transition: background .25s, color .25s, border-color .25s;
}
.carousel__btn:hover { background: var(--green); color: var(--black); border-color: var(--green); }

.carousel__progress { grid-column: 1 / -1; height: 2px; background: rgba(255,255,255,.12); overflow: hidden; }
.carousel__progress span { display: block; height: 100%; width: 100%; background: var(--green); transform-origin: left; transform: scaleX(0); }
.carousel__progress.is-running span { animation: progress var(--interval, 5s) linear forwards; }
.carousel__progress.is-paused span { animation-play-state: paused; }

.carousel__dots { grid-column: 1 / -1; display: flex; gap: 8px; }
.carousel__dots button {
  width: 22px; height: 6px; padding: 0;
  background: rgba(255,255,255,.2);
  border: 0;
  transition: background .3s, width .3s var(--ease);
}
.carousel__dots button[aria-selected="true"] { background: var(--green); width: 44px; }

/* =========================================================
   04 · CONTACTO
   ========================================================= */
.contact {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(ellipse 45% 40% at 88% 0%, rgba(8,254,117,.16), transparent 70%),
    radial-gradient(ellipse 60% 35% at 70% 105%, rgba(8,254,117,.10), transparent 70%),
    var(--black-pure);
  isolation: isolate;
  display: grid;
  grid-template-columns: 42% 1fr;
}

.contact__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 34% 60% at 18% 60%, rgba(8,254,117,.12), transparent 70%);
  pointer-events: none;
}

.contact__face {
  position: absolute;
  left: -3vw;
  bottom: -8%;
  height: 110%;
  width: auto;
  max-width: none;
  z-index: 1;
  -webkit-mask-image: linear-gradient(90deg, #000 50%, transparent 90%), linear-gradient(180deg, #000 70%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, #000 50%, transparent 90%), linear-gradient(180deg, #000 70%, transparent 100%);
          mask-composite: intersect;
}

.contact__rule {
  position: absolute;
  top: 96px;
  left: 42%;
  right: var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  z-index: 3;
}

.contact__body {
  grid-column: 2;
  position: relative;
  z-index: 2;
  padding: 170px var(--gutter) 90px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact__title {
  font-size: clamp(72px, 7.6vw, 132px);
  line-height: .9;
}
.contact__title .line { display: block; }

.contact__info {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 640px;
  font-size: 12.5px;
}
.contact__info dl { display: grid; gap: 18px; }
.contact__info dt { font-size: 10px; margin-bottom: 4px; }
.contact__info a { border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.contact__info a:hover { color: var(--green); border-color: var(--green); }

.btn-primary {
  margin-top: 48px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 20px 30px;
  background: var(--green);
  color: var(--black);
  border: 0;
  font-size: 26px;
  letter-spacing: .02em;
  box-shadow: 0 0 0 0 rgba(8,254,117,.0);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
}
.btn-primary span { transition: transform .3s var(--ease); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(8,254,117,.28); }
.btn-primary:hover span { transform: translateX(6px); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px var(--gutter);
  border-top: 1px solid var(--line);
  background: var(--black);
}
.footer img { width: 24px; height: 24px; }
.footer__social { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.footer__ig { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; transition: color .2s, border-color .2s; }
.footer__ig:hover { color: var(--green); border-color: var(--green); }

/* =========================================================
   ENCUESTA DE COTIZACIÓN (#cotizar)
   ========================================================= */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

body:has(.quote[open]) { overflow: hidden; }

.quote {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--white);
  background: var(--black-pure);
  overflow: hidden;
}
.quote[open] { animation: quote-in .45s var(--ease) both; }
.quote::backdrop { background: rgba(0,0,0,.85); }

.quote__form {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  isolation: isolate;
  background:
    radial-gradient(ellipse 50% 40% at 90% -5%, rgba(8,254,117,.18), transparent 70%),
    radial-gradient(ellipse 60% 40% at 10% 105%, rgba(8,254,117,.10), transparent 70%),
    var(--black-pure);
}
.quote__form > .grid-bg { z-index: -1; }

/* ilustración de fondo: pila de herramientas en la parte baja */
.quote__scene {
  position: absolute;
  /* ocupa el área de las preguntas: así se apoya sobre la línea de la barra inferior */
  grid-row: 3 / 4;
  grid-column: 1;
  left: 50%;
  bottom: 0;
  z-index: -1;
  width: auto;
  height: clamp(220px, 38vh, 440px);
  max-width: none;
  transform: translateX(-50%);
  pointer-events: none;
  user-select: none;
  opacity: .5;
  -webkit-mask-image: linear-gradient(to top, #000 45%, transparent 100%);
          mask-image: linear-gradient(to top, #000 45%, transparent 100%);
  transition: opacity .8s var(--ease), filter .8s var(--ease);
}
.quote[open] .quote__scene { animation: scene-rise 1.1s .1s var(--ease) both; }
.quote.is-done .quote__scene {
  opacity: .95;
  -webkit-mask-image: linear-gradient(to top, #000 70%, transparent 100%);
          mask-image: linear-gradient(to top, #000 70%, transparent 100%);
}

.quote__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px var(--gutter);
}
.quote__brand { display: flex; align-items: center; gap: 10px; }
.quote__brand img { width: 22px; height: 22px; }
.quote__count { font-size: 12px; }
.quote__close {
  padding: 9px 16px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  transition: border-color .2s, color .2s;
}
.quote__close:hover { border-color: var(--green); color: var(--green); }

.quote__progress { height: 2px; margin: 0 var(--gutter); background: rgba(255,255,255,.1); }
.quote__progress span { display: block; height: 100%; width: var(--p, 12.5%); background: var(--green); transition: width .5s var(--ease); }

.quote__body {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 5vh var(--gutter) 40px;
}
.quote__step,
.quote__done {
  width: min(960px, 100%);
  margin: auto;
  padding: 0;
  border: 0;
  min-width: 0;
}
.quote__step:not([hidden]),
.quote__done:not([hidden]) { animation: step-in .45s var(--ease) both; }
.quote__step:focus { outline: none; }
.field input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.field input[type="number"]::-webkit-inner-spin-button,
.field input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.quote__q {
  float: left;
  width: 100%;
  padding: 0;
  margin-bottom: 14px;
  font-size: clamp(44px, 5.4vw, 86px);
  line-height: .95;
}
.quote__hint {
  clear: both;
  margin-bottom: 18px;
  color: var(--gray-2);
  font-size: 13px;
  letter-spacing: .01em;
  text-transform: none;
}

/* opciones tipo tarjeta */
.quote__options {
  clear: both;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.quote__options--wide { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt__box {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  min-height: 112px;
  padding: 16px 44px 16px 18px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(12,12,13,.86);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.opt__box::after {
  content: "";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(255,255,255,.35);
  transition: background .2s, border-color .2s;
}
.opt input[type="radio"] + .opt__box::after { border-radius: 50%; }
.opt__k { color: var(--gray-2); font-size: 10px; }
.opt__t { font-size: 28px; line-height: 1; }
.opt:hover .opt__box { border-color: rgba(8,254,117,.55); }
.opt input:checked + .opt__box {
  border-color: var(--green);
  background: rgba(8,40,22,.9);
  box-shadow: inset 0 0 0 1px var(--green);
}
.opt input:checked + .opt__box::after { background: var(--green); border-color: var(--green); box-shadow: inset 0 0 0 3px var(--black-pure); }
.opt input:checked + .opt__box .opt__k { color: var(--green); }
.opt input:focus-visible + .opt__box { outline: 2px solid var(--green); outline-offset: 3px; }

/* campos de texto */
.quote__fields {
  clear: both;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 32px;
  margin-top: 18px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--area { clear: both; }
.field__label { color: var(--gray-2); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 0;
  background: transparent;
  border: 0;
  border-bottom: 2px solid rgba(255,255,255,.25);
  border-radius: 0;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 20px;
  outline: none;
  transition: border-color .2s;
}
.field select { cursor: pointer; }
.field select option { background: var(--black); color: var(--white); }
.field textarea {
  padding: 16px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.75);
  font-size: 15px;
  line-height: 1.6;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(242,242,238,.28); }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--green); }
.field .is-invalid,
.field input.is-invalid,
.field select.is-invalid { border-color: var(--orange); }

.check {
  clear: both;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 26px;
  max-width: 720px;
  color: rgba(242,242,238,.75);
  font-size: 12px;
  letter-spacing: .01em;
  text-transform: none;
  cursor: pointer;
}
.check input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--green); cursor: pointer; }
.check.is-invalid { color: var(--orange); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.quote__error { clear: both; min-height: 1.6em; margin-top: 18px; color: var(--orange); font-size: 12px; }

/* barra inferior */
.quote__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--gutter) 22px;
  border-top: 1px solid var(--line);
  background: linear-gradient(to top, rgba(0,0,0,.92), rgba(0,0,0,.6));
  -webkit-backdrop-filter: blur(3px);
          backdrop-filter: blur(3px);
}
.quote__back {
  padding: 14px 4px;
  background: none;
  border: 0;
  color: var(--gray-2);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  transition: color .2s;
}
.quote__back:hover:not(:disabled) { color: var(--white); }
.quote__back:disabled { opacity: .25; cursor: default; }
.quote__keys { color: #8C8C90; }
.quote__next {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 16px 28px;
  background: var(--green);
  color: var(--black);
  border: 0;
  font-size: 22px;
  letter-spacing: .02em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), opacity .2s;
}
.quote__next:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(8,254,117,.25); }
.quote__next.is-loading { opacity: .6; cursor: wait; transform: none; box-shadow: none; }

/* confirmación */
.quote.is-done .quote__nav { display: none; }
.quote__done .quote__q { float: none; margin: 14px 0 22px; }
.quote__done-text {
  max-width: 640px;
  color: rgba(242,242,238,.8);
  font-size: 14px;
  line-height: 1.75;
  letter-spacing: .01em;
  text-transform: none;
}
.quote__done-text strong { color: var(--white); }
.quote__done-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 36px; }
.quote__done .btn-primary { margin-top: 0; }
.quote__ghost {
  padding: 20px 22px;
  background: none;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  transition: border-color .2s, color .2s;
}
.quote__ghost:hover { border-color: var(--white); }

@keyframes quote-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes scene-rise { from { opacity: 0; transform: translate(-50%, 60px); } }
@keyframes step-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .quote__top { padding: 14px var(--gutter); }
  .quote__brand > span { display: none; }
  .quote__body { padding: 28px var(--gutter) 28px; }
  .quote__step, .quote__done { margin: 0 auto auto; }
  .quote__q { font-size: clamp(36px, 10.5vw, 60px); }
  .quote__options,
  .quote__options--wide { grid-template-columns: 1fr 1fr; gap: 10px; }
  .opt__box { min-height: 86px; padding: 12px 34px 12px 14px; gap: 10px; }
  .opt__box::after { top: 12px; right: 12px; width: 14px; height: 14px; }
  .opt__t { font-size: 21px; }
  .quote__fields { grid-template-columns: 1fr; gap: 22px; }
  .field input, .field select { font-size: 18px; }
  .quote__keys { display: none; }
  .quote__scene { height: clamp(170px, 26svh, 260px); opacity: .4; }
  .quote__nav { padding: 12px var(--gutter) 16px; }
  .quote__next { padding: 15px 20px; font-size: 20px; }
  .quote__done-actions > * { flex: 1 1 100%; justify-content: space-between; text-align: center; }
}

/* =========================================================
   PÁGINA LEGAL (privacidad)
   ========================================================= */
.legal__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px var(--gutter);
  border-bottom: 1px solid var(--line);
}
.legal__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.legal__brand img { width: 24px; height: 24px; }
.legal__back { color: var(--gray-2); transition: color .2s; }
.legal__back:hover { color: var(--green); }

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px var(--gutter) 96px;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(242,242,238,.82);
}
.legal__title { margin: 10px 0 12px; font-size: clamp(48px, 8vw, 96px); line-height: .95; color: var(--white); }
.legal section { margin-top: 44px; }
.legal h2 { margin: 0 0 14px; font-size: 26px; color: var(--white); }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 12px 0; padding-left: 20px; }
.legal li { margin: 6px 0; }
.legal li::marker { color: var(--green); }
.legal strong { color: var(--white); }
.legal a { color: var(--green); border-bottom: 1px solid rgba(8,254,117,.35); }
.legal a:hover { border-color: var(--green); }
.footer__link { color: var(--gray-2); text-decoration: underline; text-underline-offset: 3px; }
.footer__link:hover { color: var(--green); }
.check a { color: var(--green); border-bottom: 1px solid rgba(8,254,117,.4); }

/* botón de menú: solo visible en pantallas pequeñas */
.nav__toggle,
.nav__current { display: none; }

/* =========================================================
   TABLET Y MÓVIL  (≤ 900px)
   Los bloques pasan a una sola columna y el carrusel
   muestra una tarjeta a la vez.
   ========================================================= */
@media (max-width: 900px) {
  :root { --gutter: 20px; }

  .mono { font-size: 10px; }

  .section-meta { top: 84px; padding-bottom: 10px; }
  .section-meta > span:last-child { display: none; }

  /* ---------- nav con menú desplegable ---------- */
  .nav {
    top: 12px;
    left: 12px;
    right: 12px;
    transform: none;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0;
    padding: 6px 6px 6px 10px;
    border-radius: 26px;
  }
  .nav { justify-content: flex-start; }
  .nav__current {
    display: block;
    margin-left: 12px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--black);
  }
  .nav__toggle {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border: 0;
    border-radius: 999px;
    background: var(--black);
    color: var(--white);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .nav__toggle-icon,
  .nav__toggle-icon::before {
    display: block;
    width: 14px;
    height: 1.5px;
    background: currentColor;
    transition: transform .3s var(--ease);
  }
  .nav__toggle-icon { position: relative; transform: translateY(-3px); }
  .nav__toggle-icon::before { content: ""; position: absolute; top: 6px; }
  .nav.is-open .nav__toggle-icon { transform: translateY(0) rotate(45deg); }
  .nav.is-open .nav__toggle-icon::before { transform: translateY(-6px) rotate(-90deg); }

  .nav > nav {
    order: 3;
    width: 100%;
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .4s var(--ease);
  }
  .nav.is-open > nav { grid-template-rows: 1fr; }
  .nav__links {
    min-height: 0;
    overflow: hidden;
    flex-direction: column;
    gap: 2px;
  }
  .nav.is-open .nav__links { padding: 10px 0 6px; }
  .nav__links a {
    padding: 14px 14px;
    font-size: 13px;
    border-radius: 16px;
  }

  /* ---------- 01 · hero ---------- */
  .hero {
    height: 100vh;
    height: 100svh;
    min-height: 620px;
    max-height: none;
  }
  .hero__glow {
    background:
      radial-gradient(ellipse 70% 45% at 50% 55%, rgba(8,254,117,.22), transparent 70%),
      radial-gradient(ellipse 90% 35% at 85% -4%, rgba(8,254,117,.22), transparent 70%),
      radial-gradient(ellipse 140% 50% at 50% 115%, rgba(8,254,117,.12), transparent 60%);
  }
  .hero__title {
    top: 13svh;
    flex-direction: column;
    align-items: center;
    gap: 0;
    font-size: min(41vw, 24svh);
    line-height: .84;
  }
  .hero__title span { margin-top: -.2em; }
  .hero__character {
    height: 61%;
    bottom: 8.5%;
  }
  .dim--height { display: none; }
  .hero__level { bottom: 8.5%; left: 0; right: 0; }
  .hero__level-mark { left: var(--gutter); }
  .hero__level-val { left: calc(var(--gutter) + 40px); }
  .hero__level-txt { display: none; }
  .tag-corner--tl,
  .tag-corner--tr,
  .tag-side { display: none; }
  .tag-corner--bl { bottom: 18px; }
  .tag-corner--br { bottom: 18px; }

  /* ---------- franja ---------- */
  .ticker__track { font-size: 22px; gap: 20px; padding: 11px 0; animation-duration: 30s; }
  .ticker__track i { font-size: 11px; }

  /* ---------- 02 · sobre ---------- */
  .about {
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 140px var(--gutter) 64px;
  }
  .about__title { font-size: clamp(40px, 10.6vw, 76px); line-height: .96; }
  .about__plano {
    position: relative;
    top: auto;
    right: auto;
    align-self: flex-end;
    width: min(115vw, 720px);
    max-width: none;
    margin: -10px calc(var(--gutter) * -1 - 12vw) 0 0;
  }
  .about__caption {
    align-self: stretch;
    width: auto;
    margin-top: -110px;
    font-size: 11px;
  }

  /* ---------- 03 · servicios ---------- */
  .services {
    --card-w: min(330px, 80vw);
    --card-h: 500px;
    --card-top: 150px;
    --ped-w: min(130vw, 640px);
    height: 960px;
    background:
      radial-gradient(ellipse 80% 40% at 50% 62%, rgba(8,254,117,.16), transparent 70%),
      radial-gradient(ellipse 90% 30% at 10% -2%, rgba(8,254,117,.16), transparent 70%),
      var(--black-pure);
  }
  .services__bgword { top: 120px; font-size: 25vw; }
  .services__aside { display: none; }

  /* la base del pedestal se funde en negro para que los controles se lean */
  .carousel__stage::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 300px;
    z-index: 5;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, var(--black-pure) 70%);
  }

  .card { padding: 18px 18px 20px; }
  .card[data-pos="1"]  { transform: translateX(calc(-50% + var(--card-w) * .92)) translateY(30px) scale(.86); opacity: .4; }
  .card[data-pos="-1"] { transform: translateX(calc(-50% - var(--card-w) * .92)) translateY(30px) scale(.86); opacity: .4; }
  .card__art { height: 130px; margin: 14px 0; }
  .card__title { font-size: 40px; }
  .card__text { font-size: 12px; }
  .card__cta { font-size: 20px; }

  .carousel__controls {
    left: var(--gutter);
    right: var(--gutter);
    bottom: 36px;
    width: auto;
  }
  .carousel__count { font-size: 44px; }
  .carousel__count .muted { font-size: 22px; }
  .carousel__btn { width: 50px; height: 50px; }
  .carousel__dots button { height: 8px; }

  /* ---------- 04 · contacto ---------- */
  .contact {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background:
      radial-gradient(ellipse 90% 30% at 85% 40%, rgba(8,254,117,.14), transparent 70%),
      radial-gradient(ellipse 100% 30% at 50% 102%, rgba(8,254,117,.10), transparent 70%),
      var(--black-pure);
  }
  .contact__glow { background: radial-gradient(ellipse 80% 30% at 50% 18%, rgba(8,254,117,.16), transparent 70%); }
  .contact__face {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    height: min(62svh, 560px);
    object-fit: cover;
    object-position: 50% 18%;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  }
  .contact__rule {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    margin: -20px var(--gutter) 0;
  }
  .contact__body { padding: 28px var(--gutter) 64px; }
  .contact__title { font-size: clamp(44px, 13.4vw, 110px); }
  .contact__info {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 32px;
    font-size: 13px;
  }
  .btn-primary {
    align-self: stretch;
    justify-content: space-between;
    margin-top: 36px;
    padding: 20px 22px;
    font-size: 22px;
  }

  /* ---------- footer ---------- */
  .footer { flex-wrap: wrap; row-gap: 14px; padding: 22px var(--gutter) 26px; }
  .footer p { order: 3; width: 100%; font-size: 9.5px; }
}

/* tablet: hay más ancho, así que se aprovecha */
@media (min-width: 600px) and (max-width: 900px) {
  .hero__title { flex-direction: row; gap: .14em; font-size: min(23.5vw, 30svh); top: 16svh; }
  .hero__title span { margin-top: -.18em; }
  .hero__character { height: 80%; bottom: 7%; }
  .dim--height { display: inline; }
  .hero__level { bottom: 7%; }
  .hero__level-txt { display: block; left: calc(var(--gutter) + 104px); }
  .tag-side { display: block; top: 58%; }
  .contact__info { grid-template-columns: 1fr 1fr; }
  .btn-primary { align-self: flex-start; }
  .contact__face { align-self: center; width: min(460px, 70%); height: auto; }
}

/* =========================================================
   animaciones
   ========================================================= */
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes rise-char { from { opacity: 0; transform: translate(-50%, 50px); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes drift { to { stroke-dashoffset: -180; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-16px) rotate(-1deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes progress { to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .draw { stroke-dashoffset: 0; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
