/* ============================================================
   otherhalf.media/roofing — landing B2B para empresas de techado (NY + NJ)
   Sistema editorial: serif display (Instrument Serif) + Figtree, negro/carbón,
   naranja #FE5A00, grano sutil. Componentes reutilizables: .btn, .card, .display, .eyebrow…
   ============================================================ */
:root {
  --bg: #0B0B0B;
  --bg-2: #121212;
  --bg-3: #171717;
  --ink: #F3EDE4;          /* off-white cálido */
  --ink-2: #C9C1B6;
  --muted: #9C948A;
  --line: #262626;
  --line-2: #333;
  --orange: #FF5A00;         /* naranja de marca */
  --orange-ink: #1A0E05;   /* texto sobre naranja */
  --serif: 'Poppins', system-ui, sans-serif;   /* display de marca (antes serif) */
  --sans: 'Figtree', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1180px;
  --pad: clamp(20px, 5vw, 64px);
  --section: clamp(56px, 7vw, 96px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.rf { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--orange); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 2000; background: var(--orange); color: var(--orange-ink); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; padding: 12px 20px; transition: top .2s; }
.skip-link:focus { top: 16px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* grano de película muy sutil */
.grain { position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .05; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.ac { color: var(--orange); }
.mono { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.eyebrow { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 22px; }
.display { font-family: var(--serif); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; margin: 0; color: var(--ink); }
.display .line { display: block; }
.display--xl { font-size: clamp(32px, 5.4vw, 72px); }
.display--lg { font-size: clamp(28px, 4vw, 54px); }
.display--md { font-size: clamp(24px, 3vw, 40px); }
.display em, .hl { font-style: normal; color: var(--orange); }
.hl { background-image: linear-gradient(var(--orange), var(--orange)); background-repeat: no-repeat; background-size: 100% 2px; background-position: 0 96%; padding-bottom: .04em; }
.h3 { font-family: var(--sans); font-weight: 600; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.25; margin: 0 0 10px; letter-spacing: -.01em; }
.h3.serif { font-family: var(--serif); font-weight: 700; font-size: clamp(22px, 1.9vw, 27px); letter-spacing: -.02em; }
.body { margin: 0; color: var(--ink-2); font-size: clamp(16px, 1.2vw, 18px); line-height: 1.65; max-width: 60ch; }
.body--lg { font-size: clamp(18px, 1.5vw, 21px); }
.lede { margin: 26px auto 0; max-width: 62ch; color: var(--ink-2); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; }
.micro { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); }
.note { margin: 22px 0 0; color: var(--muted); font-size: 14.5px; text-align: center; }

/* ── Botones ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 24px; border: 1px solid transparent; border-radius: 2px; font-family: var(--sans); font-weight: 600; font-size: 14px; letter-spacing: .02em; line-height: 1; cursor: pointer; transition: transform .35s var(--ease), background .25s, color .25s, border-color .25s; white-space: nowrap; }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translate(2px, -2px); }
.btn--primary { background: var(--orange); color: var(--orange-ink); border-color: var(--orange); }
.btn--primary:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }
.btn--sm { padding: 11px 16px; font-size: 13px; }
.btn--lg { padding: 20px 30px; font-size: 15px; }
.btn--block { width: 100%; }

/* ── Nav ── */
.rf-nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--pad); background: rgba(11,11,11,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.rf-brand { display: flex; align-items: baseline; gap: 14px; }
.rf-wordmark { font-family: var(--serif); font-weight: 700; font-size: clamp(20px, 2vw, 24px); letter-spacing: -.035em; line-height: 1; display: block; }
.rf-brand { align-items: center; }
.rf-brand-text { display: grid; gap: 6px; }
.oh-tile { flex: none; }
.oh-mark { height: .62em; width: auto; vertical-align: -.03em; margin-left: .06em; display: inline; }
.system-brand { display: inline-flex; align-items: center; gap: 10px; }
.system-brand .oh-mark { height: 16px; }
.rf-footer-brand { display: flex; align-items: center; gap: 12px; }
.rf-descriptor { font-size: 9.5px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }

/* ── Hero ── */
.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 5vw, 64px); text-align: center; position: relative; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(254,90,0,.10), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; }
.hero .display { max-width: 22ch; margin: 0 auto; }
.hero-cta { margin-top: 30px; }
.trust { display: inline-flex; align-items: center; gap: 10px; margin: 26px 0 0; font-size: 14px; color: var(--muted); }
.tick { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--orange); position: relative; flex: none; }
.tick::after { content: ''; position: absolute; left: 5px; top: 3px; width: 5px; height: 8px; border: solid var(--orange); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.tick--lg { width: 44px; height: 44px; } .tick--lg::after { left: 15px; top: 10px; width: 10px; height: 18px; border-width: 0 2px 2px 0; }

/* ── Sección visual del sistema ── */
.system { padding: 0 0 var(--section); }
.system-frame { border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--bg-2), var(--bg)); padding: clamp(20px, 3vw, 36px); position: relative; }
.system-frame::before, .system-frame::after { content: ''; position: absolute; width: 14px; height: 14px; border: 1px solid var(--orange); }
.system-frame::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; }
.system-frame::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }
.system-frame-head, .system-frame-foot { display: flex; justify-content: space-between; gap: 12px; }
.system-frame-foot { margin-top: clamp(18px, 2.4vw, 28px); padding-top: 16px; border-top: 1px solid var(--line); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); margin-right: 8px; box-shadow: 0 0 10px rgba(254,90,0,.8); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.flow { list-style: none; margin: clamp(24px, 3vw, 40px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; position: relative; }
.flow::before { content: ''; position: absolute; left: 6%; right: 6%; top: 15px; height: 1px; background: var(--line-2); }
.flow-node { position: relative; display: grid; gap: 18px; justify-items: center; text-align: center; padding: 0 8px; }
.flow-node::before { content: ''; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg); transition: border-color .4s, box-shadow .4s, background .4s; }
.flow-node.is-on::before { border-color: var(--orange); background: var(--orange); box-shadow: 0 0 0 6px rgba(254,90,0,.15), 0 0 24px rgba(254,90,0,.45); }
.flow-node.was-on::before { border-color: var(--orange); }
.flow-index { position: absolute; top: 8px; font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--muted); transition: color .3s; }
.flow-node.is-on .flow-index { color: var(--orange-ink); }
.flow-label { font-family: var(--serif); font-weight: 600; font-size: clamp(14px, 1.3vw, 18px); letter-spacing: -.01em; line-height: 1.15; color: var(--ink-2); transition: color .3s; }
.flow-node.is-on .flow-label { color: var(--ink); }
.system-copy { margin-top: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.system-text { display: grid; gap: 16px; }

/* ── Pain ── */
.pain { padding: var(--section) 0; border-top: 1px solid var(--line); }
.grid-2 { margin-top: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.pain-item { padding: clamp(24px, 3vw, 40px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 14px; align-content: start; }

/* ── Reputación ── */
.reputation { padding: var(--section) 0; border-top: 1px solid var(--line); background: var(--bg-2); }
.rep-grid { margin: clamp(28px, 4vw, 48px) 0 0; display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.rep-text { display: grid; gap: 22px; justify-items: start; }
.equation { border: 1px solid var(--line-2); padding: clamp(20px, 3vw, 32px); display: grid; gap: 10px; font-family: var(--serif); font-weight: 600; letter-spacing: -.02em; font-size: clamp(19px, 2vw, 27px); }
.eq-row { display: flex; gap: 16px; align-items: baseline; }
.eq-op { width: 22px; text-align: center; }
.eq-row--result { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line-2); font-weight: 700; }

/* ── Sistema completo (cards) ── */
.complete { padding: var(--section) 0; border-top: 1px solid var(--line); }
.cards { margin-top: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--bg); padding: clamp(22px, 2.4vw, 32px); display: grid; gap: 16px; align-content: start; min-height: 0; transition: background .35s; }
.card:hover { background: var(--bg-2); }
.card-top { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.card .h3 { margin: 6px 0 0; }

/* ── Lead flow ── */
.leadflow { padding: var(--section) 0; border-top: 1px solid var(--line); background: var(--bg-2); }
.leadflow-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(20px, 4vw, 56px); align-items: end; }
.steps { list-style: none; margin: clamp(28px, 4vw, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.step { background: var(--bg-2); padding: 22px 22px 26px; display: grid; gap: 14px; align-content: start; }
.step p { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.step-n { font-family: var(--serif); font-weight: 700; font-size: 26px; line-height: 1; color: var(--orange); }

/* ── Audit + formulario ── */
.audit { padding: var(--section) 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.audit-box { border: 1px solid var(--line-2); border-top: 3px solid var(--orange); display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-2); }
.audit-offer { padding: clamp(28px, 4vw, 56px); border-right: 1px solid var(--line); display: grid; gap: 20px; align-content: start; }
.audit-offer .display { max-width: 14ch; }
.deliverables { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.deliverables li { position: relative; padding-left: 26px; color: var(--ink-2); }
.deliverables li::before { content: ''; position: absolute; left: 0; top: .55em; width: 12px; height: 1px; background: var(--orange); }
.caution { margin: 6px 0 0; padding: 14px 16px; border: 1px solid var(--line-2); color: var(--muted); font-size: 14px; line-height: 1.55; }
.audit-offer-cta { justify-self: start; display: none; }

.rf-form { padding: clamp(28px, 4vw, 48px); display: grid; gap: 18px; align-content: start; scroll-margin-top: 90px; }
.rf-form-head { display: flex; justify-content: space-between; }
.progress { height: 3px; background: var(--line-2); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--orange); transition: width .5s var(--ease); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rf-step { display: none; margin: 0; padding: 0; border: 0; min-width: 0; gap: 16px; }
.rf-step.is-active { display: grid; }
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--ink-2); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input { width: 100%; background: var(--bg); border: 1px solid var(--line-2); border-radius: 2px; color: var(--ink); padding: 14px 16px; font: inherit; font-size: 16px; transition: border-color .25s, box-shadow .25s; }
.field input::placeholder { color: var(--muted); }
.field input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.field input.is-invalid { border-color: #E04B2F; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.q { margin: 4px 0 0; font-family: var(--serif); font-weight: 600; letter-spacing: -.02em; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.25; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.choice span { display: flex; align-items: center; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 2px; color: var(--ink-2); font-size: 15px; line-height: 1.3; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.choice:hover span { border-color: var(--ink-2); }
.choice input:checked + span { border-color: var(--orange); background: rgba(254,90,0,.10); color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.field-error { margin: 0; padding: 12px 14px; border: 1px solid rgba(224,75,47,.5); background: rgba(224,75,47,.08); color: #F0A28F; font-size: 14px; }
.btn-row { display: flex; gap: 10px; justify-content: space-between; }
.btn-row .btn--primary { flex: 1; }
.consent { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.consent a { text-decoration: underline; }
.booked-head { display: grid; gap: 12px; justify-items: start; }
.calendar { border: 1px solid var(--line-2); min-height: 120px; background: var(--bg); }
.calendar iframe { width: 100%; border: 0; display: block; }
.calendar-fallback { padding: 22px; }
.rf-form.is-done .rf-form-head, .rf-form.is-done .progress { display: none; }

/* ── FAQ ── */
.faq { padding: var(--section) 0; border-top: 1px solid var(--line); }
.faq-list { margin: clamp(24px, 3vw, 36px) auto 0; border-top: 1px solid var(--line); max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-family: var(--serif); font-weight: 600; letter-spacing: -.015em; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.25; }
.faq-item summary::-webkit-details-marker { display: none; }
.plus { position: relative; width: 16px; height: 16px; flex: none; }
.plus::before, .plus::after { content: ''; position: absolute; background: var(--orange); left: 0; top: 7px; width: 16px; height: 1.5px; transition: transform .3s var(--ease); }
.plus::after { transform: rotate(90deg); }
.faq-item[open] .plus::after { transform: rotate(0); }
.faq-item p { margin: 0 0 24px; color: var(--ink-2); max-width: 62ch; }

/* ── Final CTA ── */
.final { padding: var(--section) 0; border-top: 1px solid var(--line); text-align: center; background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(254,90,0,.10), transparent 70%); }
.final .display { max-width: 18ch; margin: 0 auto; }
.final .lede { margin-bottom: 28px; }

/* ── Footer ── */
.rf-footer { border-top: 1px solid var(--line); padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); }
.rf-footer-grid { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.rf-tagline { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.rf-footer-links { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); }
.rf-footer-links a:hover { color: var(--orange); }

/* ── CTA fija móvil ── */
.sticky-cta { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(11,11,11,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); transform: translateY(0); transition: transform .35s var(--ease); }
.sticky-cta.is-hidden { transform: translateY(110%); }

/* ── Reveal ── */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
.hero .display .line { display: block; opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.hero .display.in .line { opacity: 1; transform: none; }
.hero .display.in .line:nth-child(2) { transition-delay: .15s; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .audit-box { grid-template-columns: 1fr; }
  .audit-offer { border-right: 0; border-bottom: 1px solid var(--line); }
  .audit-offer-cta { display: inline-flex; }
}
@media (max-width: 768px) {
  body.rf { font-size: 16px; padding-bottom: 76px; }
  .rf-descriptor { display: none; }
  .rf-nav .btn { display: none; }           /* en móvil manda la CTA fija */
  .hero { padding-top: clamp(56px, 12vw, 80px); text-align: left; }
  .hero .display, .hero .lede { margin-left: 0; }
  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow::before { left: 15px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .flow-node { grid-template-columns: 30px 1fr; gap: 16px; justify-items: start; text-align: left; padding: 10px 0; }
  .flow-index { position: static; }
  .flow-node::before { grid-row: 1 / span 1; }
  .flow-label { grid-column: 2; grid-row: 1; }
  .flow-index { display: none; }
  .system-copy, .rep-grid, .leadflow-head { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .cards, .steps { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .field-row, .choices { grid-template-columns: 1fr; }
  .btn-row { flex-direction: column-reverse; }
  .btn-row .btn { width: 100%; }
  .sticky-cta { display: block; }
  .final { text-align: left; } .final .display { margin-left: 0; }
  .rf-footer-grid { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  [data-reveal], .hero .display .line { opacity: 1 !important; transform: none !important; }
}

/* ── Tablet: el flujo de 6 pasos pasa a 3×2 ── */
@media (max-width: 1024px) and (min-width: 769px) {
  .flow { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .flow::before { display: none; }
  .rep-grid, .system-copy { grid-template-columns: 1fr; }
}
/* ── Teléfonos pequeños (≤ 380px) ── */
@media (max-width: 380px) {
  :root { --pad: 16px; }
  body.rf { font-size: 15px; }
  .display--xl { font-size: clamp(28px, 9vw, 34px); }
  .display--lg { font-size: clamp(25px, 7.6vw, 30px); }
  .btn { padding: 14px 18px; font-size: 13px; white-space: normal; text-align: center; }
  .btn--lg { padding: 16px 20px; }
  .rf-form, .audit-offer { padding: 20px 16px; }
  .pain-item, .card, .step { padding: 20px 16px; }
  .rf-nav { padding: 12px 16px; }
}
/* ── Pantallas grandes (≥ 1600px): más aire, mismo ancho de lectura ── */
@media (min-width: 1600px) {
  :root { --wrap: 1280px; --section: 160px; }
  body.rf { font-size: 18px; }
}

/* ── Cabeceras de sección centradas ── */
.sec-head { text-align: center; max-width: 820px; margin: 0 auto; display: grid; gap: 18px; justify-items: center; }
.sec-head .display { margin: 0 auto; max-width: 30ch; }
.sec-head .body { max-width: 52ch; }
.sec-head .eyebrow { margin: 0; }
.faq .sec-head .display { max-width: none; }
.reputation .sec-head .display { max-width: 20ch; }

/* ── Marcos editoriales de imagen ── */
.frame { margin: 0; position: relative; border: 1px solid var(--line-2); padding: 10px; background: var(--bg-2); }
.frame::before { content: ''; position: absolute; left: -1px; top: -1px; width: 14px; height: 14px; border: 1px solid var(--orange); border-right: 0; border-bottom: 0; }
.frame img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(.92) contrast(1.04); }
.frame--tall img { aspect-ratio: 4 / 5; }
.frame figcaption { margin-top: 10px; display: flex; justify-content: space-between; }
.frame figcaption::after { content: '●'; color: var(--orange); font-size: 8px; }
@media (max-width: 768px) {
  .frame img { aspect-ratio: 16 / 10; }
  .frame--tall img { aspect-ratio: 4 / 3; }
  .rep-text { justify-items: stretch; }
  .rep-text .btn { width: 100%; }
}

/* ── Hero: imagen cinematográfica ── */
.hero-visual { margin: clamp(32px, 5vw, 56px) auto 0; max-width: 1040px; position: relative; border: 1px solid var(--line-2); padding: 10px; background: var(--bg-2); text-align: left; }
.hero-visual::before { content: ''; position: absolute; right: -1px; top: -1px; width: 16px; height: 16px; border: 1px solid var(--orange); border-left: 0; border-bottom: 0; }
.hero-visual img { width: 100%; height: auto; aspect-ratio: 16 / 8; object-fit: cover; object-position: center 40%; filter: saturate(.9) contrast(1.05); }
.hero-visual figcaption { margin-top: 10px; display: flex; justify-content: space-between; }
.hero-visual figcaption::after { content: '●'; color: var(--orange); font-size: 8px; }
.system { padding-top: clamp(24px, 3vw, 40px); }
.audit-visual { margin-top: 4px; }
.audit-visual img { aspect-ratio: 16 / 9; }
@media (max-width: 768px) {
  .hero-visual img { aspect-ratio: 4 / 3; }
  .hero-visual { padding: 8px; }
}

/* ── Formulario HubSpot ── */
.rf-form-intro { margin: -6px 0 4px; }
.hs-form-frame { min-height: 420px; }
.hs-form-frame iframe { width: 100% !important; }

/* ── Versión corta de la landing ── */
.system-photo { margin: clamp(18px, 2.4vw, 28px) 0 0; }
.system-photo img { width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; object-position: center 40%; filter: saturate(.9) contrast(1.05); border: 1px solid var(--line); }
.system-after { margin-top: clamp(36px, 5vw, 56px); }
.cta-stack { display: grid; justify-items: center; gap: 0; margin-top: 8px; }
.rf--short .reputation { padding-bottom: var(--section); }
.rf--short .rep-text .deliverables { margin-top: 4px; }
.rf--short .final { padding-top: var(--section); }
/* página del formulario */
.audit--page { padding-top: clamp(32px, 5vw, 56px); }
.audit--page .audit-visual { margin-top: 8px; }
.rf-nav .mono.ac { white-space: nowrap; }
@media (max-width: 768px) {
  .system-photo img { aspect-ratio: 4 / 3; }
  .audit--page .audit-offer .audit-visual { display: none; }   /* móvil: directo al formulario */
}
@media (max-width: 768px) { .rf-nav > .mono.ac { display: none; } }

/* ── HubSpot form (embed clásico) con el diseño del sitio ── */
.hs-form-target { min-height: 320px; }
.hs-loading { color: var(--muted); }
.oh-hs, .oh-hs form { font-family: var(--sans); color: var(--ink); }
.oh-hs fieldset { max-width: none !important; border: 0; margin: 0 0 16px; padding: 0; }
.oh-hs fieldset.form-columns-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.oh-hs fieldset.form-columns-2 .hs-form-field { width: 100% !important; float: none; }
.oh-hs .hs-form-field { margin: 0 0 16px; }
.oh-hs fieldset .hs-form-field { margin: 0; }
.oh-hs .input { margin: 0 !important; }
.oh-hs label { display: block; margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--ink); }
.oh-hs label .hs-form-required { color: var(--orange); margin-left: 3px; }
.oh-hs .hs-richtext, .oh-hs .hs-richtext p { color: var(--ink-2); font-size: 15px; line-height: 1.55; margin: 0 0 14px; }
.oh-hs .hs-richtext em { color: var(--orange); font-style: normal; }
.oh-hs .hs-input, .oh-hs select, .oh-hs textarea { width: 100% !important; box-sizing: border-box; background: var(--bg); border: 1px solid var(--line-2); border-radius: 2px; color: var(--ink); padding: 14px 16px; font: inherit; font-size: 16px; transition: border-color .25s, box-shadow .25s; }
.oh-hs .hs-input::placeholder { color: var(--muted); }
.oh-hs .hs-input:focus, .oh-hs select:focus, .oh-hs textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.oh-hs select.hs-input { -webkit-appearance: none; appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23C9C1B6' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; cursor: pointer; }
.oh-hs select.hs-input option { background: var(--bg-2); color: var(--ink); }
.oh-hs textarea.hs-input { min-height: 96px; resize: vertical; }
.oh-hs .hs-fieldtype-intl-phone .input { display: grid; grid-template-columns: 130px 1fr; gap: 10px; }
.oh-hs .hs-fieldtype-intl-phone select.hs-input, .oh-hs .hs-fieldtype-intl-phone input.hs-input { width: 100% !important; }
.oh-hs ul.inputs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.oh-hs ul.inputs-list label { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.oh-hs ul.inputs-list input[type="checkbox"], .oh-hs ul.inputs-list input[type="radio"] { width: 18px; height: 18px; accent-color: var(--orange); margin: 0; }
.oh-hs .hs-error-msgs { list-style: none; margin: 8px 0 0; padding: 0; }
.oh-hs .hs-error-msg, .oh-hs .hs-error-msgs label { color: #F0A28F; font-size: 13px; font-weight: 500; }
.oh-hs .hs-input.invalid.error { border-color: #E04B2F; }
.oh-hs .hs_submit { margin-top: 6px; }
.oh-hs .hs-button { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; padding: 16px 24px; background: var(--orange); color: var(--orange-ink); border: 1px solid var(--orange); border-radius: 2px; font-family: var(--sans); font-weight: 600; font-size: 14px; letter-spacing: .02em; cursor: pointer; transition: transform .35s var(--ease), background .25s, color .25s; }
.oh-hs .hs-button:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); transform: translateY(-2px); }
.oh-hs .submitted-message { padding: 22px; border: 1px solid var(--line-2); color: var(--ink); font-size: 16px; line-height: 1.6; }
.oh-hs .legal-consent-container, .oh-hs .legal-consent-container p { color: var(--muted); font-size: 12.5px; }
@media (max-width: 560px) { .oh-hs fieldset.form-columns-2 { grid-template-columns: 1fr; } .oh-hs .hs-fieldtype-intl-phone .input { grid-template-columns: 112px 1fr; } }

/* ── Sección del formulario (componente del home) ── */
.rf-audit { padding: var(--section) 0; border-top: 1px solid var(--line); background: var(--bg-2); scroll-margin-top: 72px; }
.rf-form-wrap { max-width: 640px; margin: clamp(28px, 4vw, 44px) auto 0; }
.rf-audit .sec-head .display { max-width: 22ch; }

/* ── Página funnel del formulario ── */
.rf-nav--funnel { position: static; }
.rf-nav--funnel .rf-brand { cursor: default; }
.funnel-badge { white-space: nowrap; }
.funnel { padding: clamp(28px, 4vw, 56px) 0 clamp(56px, 7vw, 96px); }
.funnel-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.funnel-offer { display: grid; gap: 20px; align-content: start; position: sticky; top: 24px; }
.funnel-offer .display { max-width: 14ch; }
.funnel-visual { margin-top: 6px; }
.funnel-visual img { aspect-ratio: 16 / 9; }
.funnel-form { display: grid; gap: 16px; }
.funnel-trust { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0; font-size: 13.5px; color: var(--muted); text-align: center; }
.rf-footer--funnel { padding: 22px 0 calc(22px + env(safe-area-inset-bottom)); text-align: center; }
.rf-footer--funnel a { text-decoration: underline; }
/* formulario más grande y cómodo en el funnel */
.rf-funnel .lead-form { padding: clamp(28px, 3.6vw, 48px); gap: 18px; border-color: #333; border-top: 3px solid var(--orange); }
.rf-funnel .lead-form-title { font-size: clamp(26px, 2.4vw, 32px); }
.rf-funnel .lead-form-intro { font-size: 16px; }
.rf-funnel .oh-field { padding: 17px 18px; font-size: 17px; }
.rf-funnel .oh-dd-btn { padding: 17px 44px 17px 18px; font-size: 17px; }
.rf-funnel .oh-label { font-size: 11.5px; margin-bottom: 10px; }
.rf-funnel .lead-step { gap: 18px; }
.rf-funnel .oh-cta.lead-submit { min-height: 60px; font-size: 14px; }
.rf-funnel .lead-back { min-height: 52px; }
.rf-funnel .phone-row { grid-template-columns: 140px 1fr; }
.rf-funnel .lead-progress-track { height: 6px; }
@media (max-width: 900px) {
  .funnel-grid { grid-template-columns: 1fr; }
  .funnel-offer { position: static; }
  .funnel-form { order: -1; }                 /* móvil: el formulario primero */
  .funnel-offer .display { max-width: none; }
  .funnel-offer .funnel-visual { display: none; }
  .funnel-badge { display: none; }
  .rf-funnel .lead-form { padding: 22px 18px; }
  .rf-funnel .phone-row { grid-template-columns: 132px 1fr; }
  .rf-funnel .phone-row .oh-dd-btn { padding-left: 14px; padding-right: 36px; }
}
/* Funnel en móvil: solo el formulario */
@media (max-width: 900px) { .funnel-offer { display: none; } .funnel { padding-top: 16px; } }

/* ── Página de booking ── */
.book-wrap { max-width: 900px; }
.book .sec-head { margin-bottom: clamp(24px, 3vw, 36px); }
.book .eyebrow { display: inline-flex; align-items: center; gap: 10px; text-transform: none; letter-spacing: .02em; font-size: 14px; color: var(--ink-2); }
.calendar { border: 1px solid var(--line-2); min-height: 120px; background: var(--bg-2); }
.calendar iframe { width: 100%; border: 0; display: block; }
.calendar-fallback { padding: 24px; }

.calendar iframe { height: 100% !important; }
@media (max-width: 768px) { .rf-book .calendar { height: 1000px !important; } }
