/* facilita.com.mx v5 (draft, 3 Nov 2026): a short home plus one page per audience, and the form on its own page.
   Loads after tokens.css and styles.css (base, header, buttons, form, FAQ, footer come from there).
   Brand (brand/IDENTITY.md): flat color; structure straight, software round; orange only for graphics and
   text >= 24 px; Quedó's name as its wordmark; no stock people, no icon-card rows. */

/* ---- hero: text beside the example (chat and/or report sheet) */
.v5-hero { padding: 64px 0 80px; border-bottom: 1px solid var(--color-border); }
.v5-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.v5-hero h1 { font-size: clamp(2rem, 3.9vw, 3.125rem); line-height: 1.1; }
.v5-hero .hero-sub { max-width: 32em; }
.kicker { margin: 0 0 var(--space-4); font-size: 1rem; font-weight: 600; color: var(--naranja-texto); letter-spacing: 0; }
.v5-hero-visual { justify-self: center; width: 100%; max-width: 540px; }
@media (max-width: 900px) {
  .v5-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .v5-hero-visual { justify-self: start; max-width: 480px; }
}
@media (max-width: 640px) { .v5-hero { padding: 36px 0 56px; } }

/* ---- the example: a WhatsApp-style chat (neutral colours, no WhatsApp mark) and the report it becomes */
.demo { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr); gap: 20px; align-items: center; }
.demo--chat, .demo--sheet { grid-template-columns: minmax(0, 1fr); max-width: 330px; }
.demo--sheet { max-width: 380px; }
.phone { background: var(--blanco); border: 2px solid var(--overol-profundo); border-radius: 22px; overflow: hidden; font-size: 0.8125rem; }
.phone-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 2px solid var(--overol-profundo); font-weight: 600; color: var(--overol-profundo); }
.phone-bar img { width: 26px; height: 26px; }
.chat { display: grid; gap: 10px; padding: 14px 12px 16px; background: var(--tinte); }
.msg { max-width: 88%; padding: 6px; border-radius: 12px; background: var(--blanco); display: grid; gap: 6px; }
.msg.out { justify-self: end; border-bottom-right-radius: 4px; }
.msg.in { justify-self: start; border-bottom-left-radius: 4px; grid-template-columns: auto 1fr; align-items: center; padding: 8px 10px; border: 1.5px solid var(--naranja); }
.msg .cap { font-size: 0.75rem; line-height: 1.25; color: var(--lapiz); padding: 0 4px 2px; }
.msg.in .cap { color: var(--overol-profundo); padding: 0; }
.pics { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.pic { position: relative; height: 72px; min-width: 96px; border-radius: 8px; background: #D5DCE6; overflow: hidden; }
.pics .pic { min-width: 0; height: 62px; }
/* the job sheet: a white paper, slightly turned, with handwritten lines */
.pic-sheet::before { content: ""; position: absolute; inset: 9px 18px; background: var(--blanco); border-radius: 2px; transform: rotate(-4deg); }
.pic-sheet i { position: absolute; left: 30px; height: 3px; border-radius: 2px; background: var(--lapiz); opacity: 0.55; transform: rotate(-4deg); }
.pic-sheet i:nth-child(1) { top: 20px; width: 46%; }
.pic-sheet i:nth-child(2) { top: 31px; width: 38%; }
.pic-sheet i:nth-child(3) { top: 42px; width: 50%; }
.pic-sheet i:nth-child(4) { top: 53px; width: 30%; }
/* a unit on the wall: a split A/C outline */
.pic-unit::before { content: ""; position: absolute; left: 16%; right: 16%; top: 30%; height: 34%; background: var(--blanco); border: 1.5px solid var(--overol-profundo); border-radius: 4px; }
.pic-unit::after { content: ""; position: absolute; left: 24%; right: 24%; top: 54%; height: 2px; background: var(--overol-profundo); opacity: 0.6; }
.pic-unit.b { background: #C9D2DE; }
.voice { grid-template-columns: auto 1fr; align-items: center; column-gap: 8px; padding: 8px 10px; }
.voice .cap { grid-column: 1 / -1; padding: 0; }
.voice .play { width: 0; height: 0; border-left: 9px solid var(--overol-profundo); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.voice .wave { display: flex; align-items: center; gap: 2px; height: 18px; }
.voice .wave i { width: 3px; border-radius: 2px; background: var(--lapiz); opacity: 0.7; }
.voice .wave i:nth-child(odd) { height: 60%; } .voice .wave i:nth-child(even) { height: 100%; } .voice .wave i:nth-child(3n) { height: 35%; }
.doc { position: relative; width: 24px; height: 30px; border: 1.5px solid var(--overol-profundo); border-radius: 2px; background: var(--blanco); }
.doc::after { content: ""; position: absolute; right: -6px; bottom: -6px; width: 14px; height: 14px; border-radius: 50%; background: var(--naranja); }

.sheet { position: relative; background: var(--blanco); border: 2px solid var(--overol-profundo); border-radius: var(--radius-structure); padding: 16px 16px 14px; font-size: 0.75rem; color: var(--lapiz); }
.sheet-head { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 2px solid var(--overol-profundo); color: var(--overol-profundo); font-size: 0.875rem; }
.sheet-head .co { width: 22px; height: 22px; border-radius: 2px; background: var(--overol); }
.sheet-head .mark { margin-left: auto; height: 14px; width: auto; opacity: 0.35; }
.sheet-tag { position: absolute; top: -12px; right: 12px; background: var(--blanco); border: 1px solid var(--linea); border-radius: 999px; padding: 1px 10px; font-size: 0.6875rem; color: var(--lapiz); }
.sheet-title { margin: 10px 0 6px; font-size: 0.9375rem; font-weight: 700; color: var(--overol-profundo); }
.sheet-fields { margin: 0; display: grid; gap: 0; }
.sheet-fields div { display: grid; grid-template-columns: 7.2em minmax(0, 1fr); gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--linea); }
.sheet-fields dt { margin: 0; }
.sheet-fields dd { margin: 0; }
.sheet-fields dd i { display: block; height: 7px; border-radius: 4px; background: var(--naranja); opacity: 0.85; }
.sheet-fields div:nth-child(1) i { width: 62%; } .sheet-fields div:nth-child(2) i { width: 48%; }
.sheet-fields div:nth-child(3) i { width: 36%; } .sheet-fields div:nth-child(4) i { width: 54%; }
.sheet-fields div:nth-child(5) dd { display: grid; gap: 4px; } .sheet-fields div:nth-child(5) i + i { width: 70%; }
.sheet-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 10px 0; }
.sheet-photos i { height: 44px; border-radius: 2px; background: #D5DCE6; }
.sheet-photos i:nth-child(2) { background: #C9D2DE; }
.sheet-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.sheet-foot .sheet-sign { flex: 1; max-width: 62%; display: grid; gap: 3px; }
.sheet-sign svg { display: block; width: 100%; height: 22px; border-bottom: 1px solid var(--lapiz); overflow: visible; }
.sheet-sign path { fill: none; stroke: var(--overol-profundo); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.sheet-seal { width: 52px; height: 52px; transform: rotate(-8deg); }
.sheet-chip { position: absolute; right: 12px; bottom: -14px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 8px; border-radius: 999px; background: var(--overol); color: var(--blanco); font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.sheet-chip svg, .donemsg .tick { width: 14px; height: 11px; overflow: visible; fill: none; stroke: var(--naranja); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sheet-chip path, .donemsg .tick path { stroke-dasharray: 1 2; stroke-dashoffset: 0; }
.slot { display: grid; }
.slot > .msg { grid-area: 1 / 1; }
.msg.typing, .msg.donemsg { border: 0; }
.typing { display: flex; gap: 4px; align-items: center; padding: 10px 12px; border: 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--lapiz); opacity: 0.5; }
.demo:not(.anim) .typing { visibility: hidden; }
.okmsg { padding: 6px 16px; }
.okmsg .cap { color: var(--overol-profundo); padding: 0; font-size: 0.875rem; }
.donemsg { grid-template-columns: auto 1fr; align-items: center; gap: 8px; padding: 8px 10px; border: 0; }
.donemsg .cap { color: var(--overol-profundo); padding: 0; }
.pic .flash { position: absolute; inset: 0; background: var(--blanco); opacity: 0; pointer-events: none; }
.sheet .scan { position: absolute; inset: 2px; overflow: hidden; pointer-events: none; }
.sheet .scan::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 100%; border-top: 3px solid var(--naranja); transform: translateY(-4px); opacity: 0; }
@media (max-width: 560px) {
  .demo { grid-template-columns: minmax(0, 1fr); gap: 16px; max-width: 360px; }
  .demo .phone { max-width: 300px; }
}

/* ---- the doors on the home: three full-width rows, not cards */
.v5-doors { padding: 72px 0 80px; }
.v5-doors h2 { margin-bottom: var(--space-5); }
.doors { list-style: none; margin: 0; padding: 0; max-width: 980px; border-top: 2px solid var(--overol); }
.doors li { border-bottom: 1px solid var(--color-border); }
.doors a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 24px; align-items: center; padding: 24px 0; text-decoration: none; color: var(--color-text); }
.doors strong { grid-column: 1; font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.25; color: var(--overol); letter-spacing: -0.01em; }
.doors .door-line { grid-column: 1; font-size: 1.0625rem; line-height: 1.5; color: var(--color-text); }
.doors .more { grid-column: 2; grid-row: 1 / span 2; font-weight: 600; color: var(--naranja-texto); white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .doors a:hover { background: var(--tinte); } .doors a:hover .more { text-decoration: underline; } }
.doors a:active { background: var(--tinte); }
.doors a { margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
@media (max-width: 640px) {
  .doors a { grid-template-columns: minmax(0, 1fr); padding-top: 20px; padding-bottom: 20px; }
  .doors .more { grid-column: 1; grid-row: auto; margin-top: 6px; }
}

/* ---- the "en desarrollo" line */
.dev-note { margin: var(--space-6) 0 0; font-size: 1rem; color: var(--color-text-muted); max-width: var(--measure); }
.dark .dev-note { color: var(--niebla); }

/* ---- blocks on the audience pages */
.v5-block { padding: 80px 0; }
.v5-block h2 { margin-bottom: var(--space-6); }
@media (max-width: 640px) { .v5-block { padding: 56px 0; } }

/* the cost-per-report hook (owner page): a question, no figure */
.v5-hook { padding: 72px 0; }
.v5-hook h2 { font-size: clamp(1.875rem, 3.4vw, 2.75rem); max-width: 18em; margin-bottom: var(--space-5); }
.v5-hook p { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.55; max-width: 38em; margin: 0; }

/* how it works: three numbered steps on a straight rule */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; counter-reset: step; max-width: 1080px; }
.steps li { counter-increment: step; border-top: 2px solid var(--overol); padding-top: 18px; }
.steps li::before { content: counter(step); display: block; font-size: var(--text-3xl); font-weight: 600; line-height: 1; color: var(--naranja); margin-bottom: 14px; }
.steps h3 { font-size: var(--text-lg); margin-bottom: 8px; }
.steps p { margin: 0; font-size: 1.0625rem; line-height: 1.55; }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* gains reuse .gains-list (styles.css); the FAQ block after them keeps its top padding here */
.v5 .surface + #preguntas { padding-top: 80px; }
@media (max-width: 640px) { .v5 .surface + #preguntas { padding-top: 56px; } }
.v5 .faq { max-width: var(--measure); }

/* closing call to action: an Overol band */
.v5-final { padding: 80px 0; }
.v5-final h2 { margin-bottom: var(--space-4); }
.v5-final p { max-width: 36em; font-size: 1.125rem; line-height: 1.55; }
.v5-final .hero-note { color: var(--color-on-dark); font-weight: 600; font-size: 1.0625rem; margin-top: 18px; }
.btn-light { background: var(--blanco); color: var(--overol); }
@media (hover: hover) and (pointer: fine) { .btn-light:hover { background: var(--tinte); } }
.btn-light:active { background: var(--tinte); }
.btn-ghost { background: transparent; color: var(--blanco); border: 1px solid var(--niebla); }
@media (hover: hover) and (pointer: fine) { .btn-ghost:hover { background: var(--overol-profundo); } }
.btn-ghost:active { background: var(--overol-profundo); }
.v5-final .top-actions { margin-top: var(--space-5); }
@media (max-width: 640px) { .v5-final { padding: 56px 0; } .v5-final .btn { width: 100%; } }

/* the form page */
.v5-form-h1 { font-size: clamp(2.25rem, 4vw, 3.052rem); margin-bottom: var(--space-5); }
.v5-form-h1 .qmark { height: 1.02em; vertical-align: -0.16em; }
.pilot .free { font-size: var(--text-xl); font-weight: 700; color: var(--overol); margin-top: var(--space-5); }

/* header: the current audience page */
.nav a[aria-current="page"] { color: var(--overol); box-shadow: inset 0 -2px 0 var(--naranja); border-radius: 0; }

/* footer: the Facilita line and the audience links */
.foot-facilita { margin: 0 0 20px; font-size: 0.9375rem; color: var(--color-text-muted); max-width: 52em; }

/* privacy notice: the one-line summary on top */
.legal .legal-lead { font-size: 1.1875rem; line-height: 1.55; color: var(--overol); font-weight: 500; padding: 16px 20px; background: var(--tinte); border-radius: var(--radius-structure); margin: 24px 0 8px; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin: 0 0 10px; }

/* ---- hero animation (hero-v5.js adds .anim, then .on to each piece at its data-at; .out fades the loop's end).
   Without .anim (no JavaScript, reduced motion) everything above shows as a still example. */
@media (prefers-reduced-motion: no-preference) {
  .demo.anim .msg { opacity: 0; transform: translateY(14px) scale(0.96); transform-origin: 100% 100%;
    transition: opacity 320ms cubic-bezier(0.2, 0, 0, 1), transform 420ms cubic-bezier(0.2, 0, 0, 1); }
  .demo.anim .msg.in { transform-origin: 0 100%; }
  .demo.anim .msg.on { opacity: 1; transform: none; }
  /* the camera flash on each photo, and the audio's waveform */
  .demo.anim .msg.on .flash { animation: v5-flash 560ms ease-out both; }
  .demo.anim .pics .pic + .pic .flash { animation-delay: 160ms; }
  .demo.anim .voice.on .wave i { animation: v5-wave 700ms ease-in-out 2 both; }
  .demo.anim .voice.on .wave i:nth-child(3n+1) { animation-delay: 60ms; }
  .demo.anim .voice.on .wave i:nth-child(3n+2) { animation-delay: 140ms; }
  /* Quedó typing */
  .demo.anim .typing.on i { animation: v5-dot 900ms ease-in-out infinite; }
  .demo.anim .typing.on i:nth-child(2) { animation-delay: 150ms; }
  .demo.anim .typing.on i:nth-child(3) { animation-delay: 300ms; }
  /* the report comes back: its orange dot pops in */
  .demo.anim .report .doc::after { transform: scale(0); transition: transform 360ms cubic-bezier(0.2, 0, 0, 1) 220ms; }
  .demo.anim .report.on .doc::after { transform: scale(1); }
  /* the sheet: an orange pass runs down, the fields fill left to right, photos drop in, the client signs */
  .demo.anim .scan.on::before { animation: v5-scan 1100ms cubic-bezier(0.4, 0, 0.2, 1) both; }
  .demo.anim .sheet-fields dd i { transform: scaleX(0); transform-origin: 0 50%; transition: transform 460ms cubic-bezier(0.2, 0, 0, 1); }
  .demo.anim .sheet-fields dd i.on { transform: scaleX(1); }
  .demo.anim .sheet-photos i { opacity: 0; transform: scale(0.82); transition: opacity 260ms ease, transform 420ms cubic-bezier(0.2, 0, 0, 1); }
  .demo.anim .sheet-photos i.on { opacity: 1; transform: none; }
  .demo.anim .sheet-sign path { stroke-dashoffset: 1; transition: stroke-dashoffset 750ms cubic-bezier(0.45, 0, 0.3, 1); }
  .demo.anim .sheet-sign path.on { stroke-dashoffset: 0; }
  /* the closing chip and the "done" message: Quedó's check draws (400 ms, the brand curve) */
  .demo.anim .sheet-chip { opacity: 0; transform: translateY(8px); transition: opacity 300ms ease, transform 420ms cubic-bezier(0.2, 0, 0, 1); }
  .demo.anim .sheet-chip.on { opacity: 1; transform: none; }
  .demo.anim .sheet-chip path, .demo.anim .donemsg .tick path { stroke-dashoffset: 1; transition: stroke-dashoffset 400ms cubic-bezier(0.2, 0, 0, 1) 200ms; }
  .demo.anim .sheet-chip.on path, .demo.anim .donemsg.on .tick path { stroke-dashoffset: 0; }
  /* end of the loop: the filled parts fade, the empty sheet stays */
  .demo.anim.out .msg.on, .demo.anim.out .sheet-fields dd i.on, .demo.anim.out .sheet-photos i.on, .demo.anim.out .sheet-chip.on { opacity: 0; transition: opacity 400ms ease; }
  .demo.anim.out .sheet-sign path.on { opacity: 0; transition: opacity 400ms ease; }

  @keyframes v5-flash { 0% { opacity: 0.95; } 100% { opacity: 0; } }
  @keyframes v5-wave { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.3); } }
  @keyframes v5-dot { 0%, 100% { transform: translateY(0); opacity: 0.4; } 50% { transform: translateY(-3px); opacity: 1; } }
  @keyframes v5-scan { 0% { opacity: 0; transform: translateY(-4px); } 12% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; transform: translateY(100%); } }
}

/* ---- "what changes": plain sentences on hairlines */
.changes { list-style: none; margin: 0; padding: 0; max-width: 1040px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.changes li { padding: 20px 0; border-top: 2px solid var(--overol); font-size: clamp(1.125rem, 1.7vw, 1.3125rem); line-height: 1.45; color: var(--overol); letter-spacing: -0.005em; }
@media (max-width: 760px) { .changes { grid-template-columns: minmax(0, 1fr); } }
