/* =========================================================
   COVERSAL · Landing de trabajos verticales
   Paleta tomada del logotipo
   ========================================================= */
:root {
  --orange: #F7941D;
  --orange-deep: #E8501C;
  --amber: #FFC23D;
  --sun: #FFF6DC;
  --ink: #121214;
  --ink-2: #1c1c21;
  --ink-3: #2a2a31;
  --cream: #FFF8EC;
  --paper: #FFFFFF;
  --muted: #6a6a74;
  --glass: #9FD3FF;
  --slate: #8592AE;
  --pine: #2C561E;
  --pine-2: #437A2A;

  --radius: 18px;
  --shadow: 0 24px 60px -28px rgba(60, 25, 0, .45);
  --font-head: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, .h1 {
  font-family: var(--font-head);
  line-height: 1.08;
  margin: 0 0 .5em;
  letter-spacing: -0.02em;
}
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
@media (min-width: 1100px) {
  .container { width: min(1180px, 100% - 200px); }
}

.hl {
  background: linear-gradient(90deg, var(--orange-deep), var(--orange) 55%, var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 3px;
  border-radius: 3px;
  background: var(--orange-deep);
}
.eyebrow--dark { color: var(--orange-deep); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: .95em 1.6em;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  color: #fff;
  box-shadow: 0 12px 30px -12px rgba(232, 80, 28, .8);
}
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 14px 30px -14px rgba(0,0,0,.7); }
.btn-dark:hover { background: #000; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: rgba(255,255,255,.25); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-block { width: 100%; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 clamp(16px, 4vw, 48px);
  background: rgba(18, 18, 20, .55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background .3s ease, height .3s ease, box-shadow .3s ease;
}
.nav.is-scrolled {
  background: rgba(18, 18, 20, .92);
  box-shadow: 0 10px 30px -15px rgba(0,0,0,.6);
  --nav-h: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: .02em;
}
.brand img { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)); }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: var(--orange);
  transition: right .25s ease;
}
.nav-links a:hover, .nav-links a.is-current { color: #fff; }
.nav-links a:hover::after, .nav-links a.is-current::after { right: 0; }
.nav-call { padding: .7em 1.2em; }
.burger { display: none; }

@media (max-width: 900px) {
  .nav-call { display: none; }
  .burger {
    display: grid;
    gap: 5px;
    margin-left: auto;
    width: 44px; height: 44px;
    place-content: center;
    background: transparent;
    border: 0;
    cursor: pointer;
  }
  .burger span { width: 24px; height: 2.5px; border-radius: 2px; background: #fff; transition: transform .3s, opacity .3s; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: #141416;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,.5);
    padding: 8px 20px 20px;
    /* cerrado: totalmente fuera de pantalla (su altura + la barra) y oculto */
    transform: translateY(calc(-100% - var(--nav-h) - 40px));
    visibility: hidden;
    transition: transform .35s ease, visibility 0s linear .35s;
    z-index: -1;
  }
  .nav-links.is-open { transform: none; visibility: visible; transition: transform .35s ease, visibility 0s; }
  .nav.menu-open { background: #141416; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-links a { padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,.08); }
}

/* =========================================================
   HERO · escena con descenso en cuerda
   ========================================================= */
.hero { position: relative; height: 300vh; }
.hero-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.layer { position: absolute; inset: 0; pointer-events: none; will-change: transform; }
.sky {
  background:
    radial-gradient(circle at 72% 42%, #FFFDF2 0, #FFE9A6 16%, #FFC24A 36%, #F98F1E 64%, #E4531B 100%);
}
.sun {
  inset: auto;
  left: 66%;
  top: 30%;
  width: 30vmin; height: 30vmin;
  margin-left: -15vmin;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 55%, rgba(255,250,230,.0) 72%);
  box-shadow: 0 0 120px 40px rgba(255, 244, 205, .55);
}
.skyline { top: auto; bottom: 8vh; height: 58vh; width: 100%; }
.skyline-back { opacity: .7; }
.skyline-mid { bottom: 7vh; height: 46vh; }
.trees { top: auto; bottom: 6vh; height: 26vh; width: 100%; }
.ground { top: auto; bottom: 0; height: 14vh; width: 100%; }

/* Torre */
.tower {
  position: absolute;
  right: 15vw;
  bottom: 11vh;
  width: clamp(150px, 19vw, 290px);
  height: 74vh;
  z-index: 2;
}
.tower-face {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #17171a 0%, #222228 70%, #2c2c33 100%);
  border-right: 7px solid var(--orange);
  box-shadow: inset 6px 0 0 rgba(255,255,255,.06), 30px 30px 60px -20px rgba(60,20,0,.45);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 4.5% 9%;
  padding: 10% 12% 14%;
}
.tower-roof {
  position: absolute;
  left: -4%; right: -6%;
  top: -14px; height: 14px;
  background: #0d0d0f;
  border-radius: 3px 3px 0 0;
}
.tower-roof::after { /* anclaje */
  content: "";
  position: absolute;
  right: -10px; top: -10px;
  width: 26px; height: 12px;
  border-radius: 3px;
  background: var(--orange-deep);
}
.win {
  position: relative;
  border-radius: 2px;
  background: linear-gradient(135deg, #4b4d53, #3a3b40);
  overflow: hidden;
  transition: background .6s ease, box-shadow .6s ease;
}
.win::before { /* suciedad */
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 70%, rgba(120,90,60,.45) 0 18%, transparent 30%),
    radial-gradient(circle at 75% 30%, rgba(90,80,70,.35) 0 14%, transparent 26%);
  transition: opacity .6s ease;
}
.win::after { /* reflejo */
  content: "";
  position: absolute;
  top: -50%; left: -80%;
  width: 60%; height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.85), transparent);
  transform: rotate(25deg);
  opacity: 0;
}
.win.is-clean {
  background: linear-gradient(135deg, #78B8F0 0%, #D9EEFF 45%, #FFD56B 100%);
  box-shadow: 0 0 12px rgba(255, 213, 107, .35);
}
.win.is-clean::before { opacity: 0; }
.win.is-clean::after { animation: shine .9s ease-out forwards; }
@keyframes shine {
  0% { left: -80%; opacity: 1; }
  100% { left: 140%; opacity: 0; }
}

/* Cuerda */
.rope {
  position: absolute;
  left: calc(100% + 26px);
  top: -60vh;
  bottom: -11vh;
  width: 4px;
  margin-left: -2px;
  border-radius: 2px;
  background: repeating-linear-gradient(170deg, #1a1a1d 0 4px, #3a3a40 4px 7px);
}
.rope::before { /* línea de seguridad */
  content: "";
  position: absolute;
  left: 8px; top: 0; bottom: 0;
  width: 2.5px;
  background: repeating-linear-gradient(170deg, var(--orange-deep) 0 4px, #ff9a52 4px 7px);
  opacity: .9;
}

/* Operario */
.worker {
  --w: clamp(84px, 9vw, 130px);
  position: absolute;
  top: 0;
  left: calc(100% + 26px - var(--w) * 0.25);
  width: var(--w);
  will-change: transform;
}
.worker-svg {
  width: 100%;
  height: auto;
  transform-origin: 25% 7%;
  animation: sway 4.5s ease-in-out infinite;
  filter: drop-shadow(10px 14px 10px rgba(60,20,0,.3));
}
@keyframes sway {
  0%, 100% { transform: rotate(-2.5deg); }
  50% { transform: rotate(2.5deg); }
}

/* Textos */
.hero-copy {
  position: absolute;
  left: clamp(20px, 7vw, 120px);
  top: calc(76px + 2vh);   /* siempre por debajo del menú */
  bottom: 15vh;            /* por encima del suelo y del altímetro */
  width: min(560px, 46vw);
  z-index: 3;
  display: grid;
  align-items: center;
}
.copy-panel {
  grid-area: 1 / 1;        /* paneles apilados en la misma celda */
  transform: translateY(30px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease, transform .6s ease, visibility .6s;
}
.copy-panel.is-active { opacity: 1; visibility: visible; transform: none; }
.hero h1, .hero .h1 {
  font-size: clamp(2.1rem, min(4.4vw, 7vh), 4.1rem);
  font-weight: 900;
  color: var(--ink);
  text-wrap: balance;
}
.hero .hl {
  background: none;
  color: #fff;
  -webkit-text-stroke: 0;
  text-shadow: 0 3px 0 var(--orange-deep), 0 10px 30px rgba(150,50,0,.35);
}
.hero h1 .eyebrow { display: flex; width: fit-content; line-height: 1.6; text-wrap: nowrap; }
.lead { font-size: clamp(1rem, 1.3vw, 1.15rem); color: #2b1a0c; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }

.altimeter {
  position: absolute;
  left: clamp(20px, 7vw, 120px);
  bottom: 2.5vh;
  z-index: 3;
  display: flex;
  flex-direction: column;
  font-family: var(--font-head);
  color: var(--ink);
}
.alt-label { font-size: .7rem; letter-spacing: .25em; text-transform: uppercase; font-weight: 700; opacity: .75; }
.alt-value { font-size: 1.6rem; font-weight: 900; line-height: 1; }
.alt-value b { font-variant-numeric: tabular-nums; }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 3vh;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  transition: opacity .4s ease;
}
.scroll-hint.is-hidden { opacity: 0; }
.mouse {
  width: 22px; height: 34px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  display: grid;
  justify-items: center;
  padding-top: 6px;
}
.mouse i { width: 3px; height: 7px; border-radius: 2px; background: var(--orange-deep); animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(10px); opacity: 0; } }

@media (max-width: 820px) {
  .hero-copy {
    top: calc(var(--nav-h) + 24px);
    bottom: auto;
    left: 20px; right: 20px;
    width: auto;
    align-items: start;
  }
  .copy-panel { transform: translateY(24px); }
  .hero h1, .hero .h1 { font-size: clamp(2rem, 8.6vw, 2.8rem); }
  .lead { font-size: .96rem; }
  .cta-row .btn { padding: .8em 1.2em; font-size: .88rem; }
  .tower { right: 24vw; width: 28vw; height: 38vh; bottom: 10vh; }
  .tower-face { padding: 12% 12% 16%; }
  .worker { --w: 70px; }
  .rope { top: -14px; }
  .sun { left: 30%; top: 56%; width: 22vmin; height: 22vmin; margin-left: -11vmin; }
  .altimeter { bottom: 15vh; left: 20px; }
  .alt-value { font-size: 1.3rem; }
  .scroll-hint { display: none; }
}
@media (max-width: 820px) and (max-height: 700px) {
  .lead { display: none; }
}

/* =========================================================
   BANDA (marquesina con scroll)
   ========================================================= */
.band {
  background: var(--ink);
  color: #fff;
  padding: 28px 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.band-row {
  display: flex;
  gap: 32px;
  white-space: nowrap;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 4rem);
  text-transform: uppercase;
  line-height: 1.15;
  will-change: transform;
}
.band-row i { color: var(--orange); font-style: normal; font-size: .6em; align-self: center; }
.band-row--outline { color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.45); }

/* =========================================================
   SECCIONES GENÉRICAS
   ========================================================= */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 900; text-wrap: balance; }
.section-head > p:last-child { color: var(--muted); font-size: 1.08rem; }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Servicios ---------- */
.services { background: var(--cream); }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.card {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 30px 26px 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease, opacity .8s ease;
}
.card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--orange-deep), var(--orange), var(--amber));
  transform: scaleX(.18);
  transform-origin: left;
  transition: transform .45s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -26px rgba(232,80,28,.5); }
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #FFF0D6, #FFE0B0);
  margin-bottom: 20px;
}
.card-icon svg { width: 32px; height: 32px; fill: none; stroke: var(--orange-deep); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.15rem; font-weight: 800; }
.card p { color: var(--muted); font-size: .96rem; margin: 0; }
@media (max-width: 600px) {
  .cards { gap: 12px; }
  .card {
    display: grid;
    grid-template-columns: 52px 1fr;
    column-gap: 16px;
    align-items: start;
    padding: 20px 18px;
  }
  .card-icon { grid-row: 1 / 3; width: 52px; height: 52px; border-radius: 14px; margin: 0; }
  .card-icon svg { width: 28px; height: 28px; }
  .card h3 { font-size: 1.02rem; margin: 2px 0 .3em; }
  .card p { font-size: .9rem; line-height: 1.5; }
}

/* ---------- Divisor parallax ---------- */
.divider {
  position: relative;
  min-height: 80vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, #1a0f08 0%, #3a1a08 45%, #8a3410 100%);
  color: #fff;
}
.divider-bg { position: absolute; inset: 0; }
.divider-glow {
  position: absolute;
  left: 50%; top: 60%;
  width: 70vmax; height: 70vmax;
  margin: -35vmax 0 0 -35vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,200,90,.55) 0, rgba(247,148,29,.25) 30%, transparent 60%);
  will-change: transform;
}
.divider-sky { position: absolute; left: 0; width: 100%; bottom: -10%; height: 70%; will-change: transform; }
.divider-sky--front { bottom: -4%; height: 45%; }
.divider-copy { position: relative; z-index: 1; text-align: center; padding: 120px 0; }
.divider-copy .eyebrow { color: var(--amber); }
.divider-copy .eyebrow::before { background: var(--amber); }
.divider-copy h2 { font-size: clamp(2.4rem, 6.4vw, 5.6rem); font-weight: 900; text-wrap: balance; text-shadow: 0 10px 40px rgba(0,0,0,.4); }
.divider-copy p { max-width: 560px; margin-inline: auto; color: rgba(255,255,255,.9); font-size: 1.1rem; text-shadow: 0 2px 12px rgba(0,0,0,.9), 0 0 2px rgba(0,0,0,.8); }
.divider::after { /* oscurece el centro para que el texto se lea sobre las ventanas */
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 45% at 50% 55%, rgba(20,10,4,.55), transparent 70%);
  pointer-events: none;
}
.divider-copy { z-index: 2; }

/* ---------- Proceso (cuerda vertical) ---------- */
.process { background: var(--paper); }
.steps {
  list-style: none;
  margin: 0; padding: 0;
  position: relative;
  display: grid;
  gap: clamp(40px, 6vw, 72px);
}
.rope-track {
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 6px;
  margin-left: -3px;
  border-radius: 3px;
  background: repeating-linear-gradient(170deg, #e6e1d8 0 5px, #d6cfc2 5px 9px);
}
.rope-fill {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 0%;
  border-radius: 3px;
  background: repeating-linear-gradient(170deg, var(--orange-deep) 0 5px, var(--orange) 5px 9px);
  box-shadow: 0 0 18px rgba(247,148,29,.6);
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 90px 1fr;
  align-items: center;
}
.knot {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  width: 72px; height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.2rem;
  background: var(--paper);
  border: 4px solid #e2dbcf;
  color: #b8afa2;
  position: relative;
  z-index: 1;
  transition: background .4s ease, color .4s ease, border-color .4s ease, transform .4s ease;
}
.step.is-reached .knot {
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  border-color: #fff;
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 10px 30px -8px rgba(232,80,28,.7);
}
.step-body {
  grid-row: 1;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow);
}
.step:nth-child(even) .step-body { grid-column: 1; }
.step:nth-child(odd) .step-body { grid-column: 3; }
.step-body h3 { font-size: 1.3rem; font-weight: 800; }
.step-body p { margin: 0; color: var(--muted); }

@media (max-width: 760px) {
  .rope-track { left: 34px; }
  .step { grid-template-columns: 68px 1fr; gap: 16px; }
  .knot { grid-column: 1; width: 60px; height: 60px; font-size: 1rem; }
  .step:nth-child(even) .step-body, .step:nth-child(odd) .step-body { grid-column: 2; }
}

/* ---------- Ventajas ---------- */
.perks {
  background:
    radial-gradient(circle at 85% 10%, rgba(247,148,29,.22), transparent 40%),
    var(--ink);
  color: #fff;
}
.perks-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.perks-intro { position: sticky; top: calc(var(--nav-h) + 40px); }
.perks-intro .eyebrow { color: var(--amber); }
.perks-intro .eyebrow::before { background: var(--amber); }
.perks-intro h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 900; }
.perks-intro p { color: rgba(255,255,255,.75); font-size: 1.08rem; margin-bottom: 2rem; }
.perks-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.perk {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 24px 26px;
  border-radius: var(--radius);
  background: var(--ink-2);
  border: 1px solid rgba(255,255,255,.07);
  transition: border-color .3s ease, background .3s ease, transform .3s ease, opacity .8s ease;
}
.perk:hover { border-color: rgba(247,148,29,.6); background: var(--ink-3); }
.perk b { font-family: var(--font-head); font-weight: 900; font-size: 1.5rem; color: var(--orange); line-height: 1.1; }
.perk h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: .3em; }
.perk p { margin: 0; color: rgba(255,255,255,.68); font-size: .97rem; }
@media (max-width: 900px) {
  .perks-grid { grid-template-columns: 1fr; }
  .perks-intro { position: static; }
}

/* ---------- Contacto ---------- */
.contact { background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 28px; align-items: stretch; }
.bizcard {
  position: relative;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff 0%, #FFF3DA 55%, #FFD995 100%);
  box-shadow: var(--shadow);
  padding: 32px 32px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.bizcard-top { display: flex; gap: 18px; align-items: center; margin-bottom: 26px; }
.bizcard-top img { width: 96px; height: 96px; object-fit: contain; border-radius: 50%; background: var(--ink); padding: 4px; }
.bizcard-kicker { margin: 0; font-family: var(--font-head); font-weight: 900; color: #E5231B; text-transform: uppercase; letter-spacing: .02em; font-size: 1.05rem; }
.bizcard-name { margin: 0; font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; }
.bizcard-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 16px; }
.bizcard-list li { display: flex; align-items: center; gap: 14px; font-weight: 500; overflow-wrap: anywhere; }
.bizcard-list a { text-decoration: none; }
.bizcard-list a:hover { color: var(--orange-deep); text-decoration: underline; }
.ico {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: var(--ink);
}
.ico svg { width: 20px; height: 20px; fill: currentColor; }
.bizcard-strip {
  margin: auto -32px 0;
  padding: 16px 32px;
  background: var(--orange);
  font-family: var(--font-head);
  font-weight: 900;
  letter-spacing: .06em;
}

.form {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  display: grid;
  gap: 18px;
  align-content: start;
}
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 1rem;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1.5px solid #e6dfd2;
  background: #fffdf9;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
  width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(247,148,29,.2);
}
.field .is-invalid { border-color: #E5231B; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--orange-deep); flex: 0 0 auto; }
.check a { color: var(--orange-deep); font-weight: 600; }
.check.is-invalid span { color: #C41E16; }
.form-error { margin: 0; color: #C41E16; font-weight: 600; font-size: .92rem; }
.form-note { margin: 0; font-size: .85rem; color: var(--muted); text-align: center; }
.form-note a { color: var(--orange-deep); font-weight: 600; white-space: nowrap; }
.form { position: relative; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.btn:disabled { opacity: .7; cursor: wait; transform: none; }
.form.is-sent > :not(.form-success) { visibility: hidden; }
.form-success {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  gap: 6px;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--paper);
}
.form-success[hidden] { display: none; }
.form-success-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  box-shadow: 0 14px 30px -10px rgba(232,80,28,.8);
  margin-bottom: 12px;
}
.form-success h3 { font-size: 1.5rem; font-weight: 900; margin: 0; }
.form-success p { color: var(--muted); max-width: 30em; margin: 0 0 14px; }

.map {
  margin-top: 28px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 360px;
  background: #eee;
}
.map iframe { width: 100%; height: 100%; border: 0; filter: saturate(.85); }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
  .form, .bizcard { padding-left: 22px; padding-right: 22px; }
  .bizcard-strip { margin-inline: -22px; padding-inline: 22px; }
  .bizcard-top img { width: 72px; height: 72px; }
  .bizcard-name { font-size: 1.4rem; }
  .bizcard-list li { font-size: .95rem; }
  .map { height: 260px; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 48px 0; font-size: .92rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.footer p { margin: 0; }
.footer-legal { display: grid; gap: 8px; justify-items: end; }
.footer-legal nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-legal a { color: rgba(255,255,255,.75); text-decoration: none; }
.footer-legal a:hover { color: var(--orange); text-decoration: underline; }
.footer-legal .credit { font-size: .82rem; color: rgba(255,255,255,.5); }
.footer-legal .credit a { color: var(--orange); font-weight: 600; }
.footer-legal .credit a:hover { color: var(--amber); }
@media (max-width: 700px) { .footer-legal { justify-items: start; } }
/* =========================================================
   CUERDA LATERAL (progreso de página)
   ========================================================= */
.rail {
  position: fixed;
  top: 0; bottom: 0;
  right: 44px;
  width: 4px;
  z-index: 40;
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s ease;
}
.rail.is-visible { opacity: 1; }
.rail-rope {
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: repeating-linear-gradient(170deg, #2a2a2e 0 4px, #55555c 4px 7px);
}
.rail-worker {
  position: absolute;
  top: 0;
  left: -13px;
  width: 52px;
  will-change: transform;
}
.rail-worker svg { width: 100%; height: auto; transform-origin: 25% 7%; animation: sway 4.5s ease-in-out infinite; filter: drop-shadow(0 6px 8px rgba(0,0,0,.25)); }
.rail-alt {
  position: absolute;
  right: calc(100% + 2px);
  top: 18px;
  white-space: nowrap;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .72rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 1099px) { .rail { display: none; } }

/* Botón flotante de llamada (móvil) */
.fab {
  position: fixed;
  left: 18px; bottom: 18px;
  z-index: 45;
  width: 54px; height: 54px;
  border-radius: 50%;
  display: none;
  place-items: center;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  box-shadow: 0 14px 30px -10px rgba(232,80,28,.8);
  transition: opacity .3s ease, transform .3s ease;
}
.fab.is-hidden { opacity: 0; transform: scale(.6); pointer-events: none; }
.fab svg { width: 24px; height: 24px; fill: #fff; }
@media (max-width: 900px) { .fab { display: grid; } }

/* =========================================================
   PÁGINA LEGAL
   ========================================================= */
.legal-page { background: var(--cream); }
.legal-hero {
  padding: calc(var(--nav-h) + 70px) 0 60px;
  background:
    radial-gradient(circle at 80% 30%, #FFF1C9 0, #FFC24A 30%, #F98F1E 65%, #E4531B 100%);
}
.legal-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 900; }
.legal-hero p { max-width: 640px; color: #2b1a0c; font-size: 1.08rem; }
.legal-hero .legal-updated { font-size: .9rem; opacity: .75; margin: 0; }

.legal-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: clamp(32px, 5vw, 72px);
  padding: 64px 0 100px;
  align-items: start;
}
.legal-toc { position: sticky; top: calc(var(--nav-h) + 24px); }
.legal-toc-title { font-family: var(--font-head); font-weight: 800; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-deep); }
.legal-toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 10px; }
.legal-toc a { text-decoration: none; font-weight: 600; }
.legal-toc a:hover { color: var(--orange-deep); }

.legal-content { max-width: 760px; min-width: 0; }
.legal-content section { padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid #ecdcc2; scroll-margin-top: calc(var(--nav-h) + 20px); }
.legal-content section:last-of-type { border-bottom: 0; margin-bottom: 0; }
.legal-content h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 900; display: flex; gap: 14px; align-items: baseline; }
.legal-content h2 span { color: var(--orange); font-size: .7em; }
.legal-content h3 { font-size: 1.12rem; font-weight: 800; margin-top: 1.8em; }
.legal-content p, .legal-content li { color: #3b3b44; }
.legal-content ul { padding-left: 1.3em; }
.legal-content li { margin-bottom: .4em; }
.legal-content a { color: var(--orange-deep); font-weight: 600; overflow-wrap: anywhere; }

.legal-data { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; background: var(--paper); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow); margin: 0; }
.legal-data dt { font-weight: 700; }
.legal-data dd { margin: 0; color: #3b3b44; overflow-wrap: anywhere; }

.legal-summary { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 26px 28px; margin: 24px 0; }
.legal-summary h3 { margin-top: 0; color: var(--amber); }
.legal-summary table, .legal-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.legal-summary th, .legal-summary td { text-align: left; vertical-align: top; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.1); }
.legal-summary th { width: 32%; padding-right: 16px; font-family: var(--font-head); font-weight: 700; }
.legal-summary td { color: rgba(255,255,255,.8); }

.legal-table { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin: 16px 0; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid #f0e6d6; }
.legal-table thead th { background: var(--orange); font-family: var(--font-head); font-weight: 800; }

mark.todo { background: #FFE08A; color: var(--ink); padding: 1px 6px; border-radius: 4px; font-weight: 600; }
.legal-contact { font-weight: 600; }

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; padding-top: 40px; }
  .legal-toc { position: static; background: var(--paper); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow); }
  .legal-nav { display: none; }
  .legal-back { display: inline-flex; margin-left: auto; padding: .6em 1.1em; font-size: .85rem; white-space: nowrap; }
  .legal-back .hide-sm { display: none; }
}
@media (max-width: 560px) {
  .legal-data { grid-template-columns: 1fr; gap: 2px; }
  .legal-data dd { margin-bottom: 10px; }
  .legal-summary th, .legal-summary td { display: block; width: auto; padding: 4px 0; }
  .legal-summary th { padding-top: 12px; }
  .legal-table thead { display: none; }
  .legal-table tr { display: block; padding: 10px 0; border-bottom: 1px solid #f0e6d6; }
  .legal-table td { display: block; border: 0; padding: 4px 16px; }
}

/* Accesibilidad: menos movimiento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .worker-svg, .rail-worker svg, .mouse i { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .win.is-clean::after { animation: none; }
}
