/* Bitácora · página de ventas.
   Papel frío, tinta de la marca, teal para acción y naranja de sello para lo terminado. */
:root {
  --paper: #F2F5F4;
  --paper-deep: #E4ECEA;
  --ink: #1E1E1E;
  --ink-soft: #4A4F4E;
  --ink-muted: #727978;
  --teal: #0E7C76;
  --teal-deep: #0B625D;
  --teal-bright: #21A19A;
  --signal: #FC911D;
  --signal-deep: #B4560A;
  --line: #CCD6D4;
  --white: #FFFFFF;
  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 28px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-deep); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Titulares: Archivo ancho y pesado, como rotulación de camioneta de servicio. */
.display, h1, h2 {
  font-weight: 800;
  font-stretch: 118%;
  font-variation-settings: "wdth" 118;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0;
}
h1 { font-size: clamp(42px, 6.4vw, 84px); }
h2 { font-size: clamp(32px, 4.2vw, 54px); }
h3 { font-size: 21px; font-weight: 700; margin: 0 0 6px; line-height: 1.25; }
p { margin: 0; }
.lede { font-size: clamp(19px, 1.6vw, 22px); color: var(--ink-soft); max-width: 36em; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-deep); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 15px; }

/* ---------- Barra superior ---------- */
.top { position: sticky; top: 0; z-index: 10; background: rgba(242, 245, 244, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 20px; font-variation-settings: "wdth" 112; }
.brand img { height: 36px; width: auto; display: block; }
.top nav { display: flex; gap: 24px; margin-left: 12px; }
.top nav a { color: var(--ink-soft); text-decoration: none; font-size: 16px; }
.top nav a:hover { color: var(--ink); }
.top .actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.top .actions a.plain { color: var(--ink); text-decoration: none; font-size: 16px; }
@media (max-width: 900px) { .top nav { display: none; } }
@media (max-width: 560px) { .top .actions a.plain.signin { display: none; } .top .wrap { gap: 12px; } }

/* ---------- Portada ---------- */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1fr; gap: 56px; align-items: center; }
@media (min-width: 980px) { .hero .wrap { grid-template-columns: 1.08fr .92fr; } }
.hero h1 { max-width: 11ch; }
.hero .lede { margin-top: 24px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero .fine { margin-top: 16px; font-size: 15px; color: var(--ink-muted); }
.trades { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-soft); font-size: 15px; }
.trades span { display: inline-flex; align-items: center; gap: 8px; }
.trades span::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--teal-bright); }

/* La composición: el teléfono del técnico y la orden de trabajo con su sello. */
.scene { position: relative; min-height: 560px; display: flex; justify-content: center; }
.phone {
  position: relative; width: 290px; border-radius: 44px; padding: 10px;
  background: var(--ink); box-shadow: 0 30px 60px -20px rgba(30, 30, 30, .45);
}
.phone img { border-radius: 34px; width: 100%; }
.scene .phone { transform: rotate(-3deg); z-index: 2; }
.slip {
  position: absolute; right: max(0px, calc(50% - 300px)); bottom: 18px; z-index: 3;
  width: 280px; background: var(--white); border-radius: var(--radius-s);
  padding: 18px 20px 22px; box-shadow: 0 18px 40px -18px rgba(30, 30, 30, .35);
  transform: rotate(4deg); font-size: 14px; color: var(--ink-soft);
  background-image: repeating-linear-gradient(var(--white) 0 27px, #E8EEEC 27px 28px);
}
.slip .no { font-weight: 800; color: var(--teal-deep); font-size: 13px; }
.slip .ttl { color: var(--ink); font-weight: 700; font-size: 17px; line-height: 1.25; margin: 4px 0 10px; }
.slip .row { display: flex; justify-content: space-between; gap: 12px; }
.slip svg.sig { width: 150px; height: 46px; margin-top: 8px; }
.stamp {
  position: absolute; right: -14px; bottom: 34px;
  border: 3px solid var(--signal); color: var(--signal-deep);
  border-radius: 10px; padding: 6px 12px 7px; transform: rotate(-12deg);
  font-weight: 800; font-size: 20px; font-variation-settings: "wdth" 120; letter-spacing: .02em;
  background: rgba(255, 255, 255, .7); line-height: 1.1; text-align: center;
}
.stamp small { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0; }
@media (prefers-reduced-motion: no-preference) {
  .stamp { animation: stamp .55s cubic-bezier(.2, .9, .3, 1.3) .6s both; }
  @keyframes stamp { from { opacity: 0; transform: rotate(-12deg) scale(2.2); } to { opacity: 1; transform: rotate(-12deg) scale(1); } }
}
@media (max-width: 560px) {
  .scene { min-height: 0; padding-bottom: 150px; }
  .phone { width: 240px; }
  .slip { right: 0; width: 240px; bottom: 0; }
}

/* ---------- Del despacho al trabajo (secuencia real: va numerada) ---------- */
.flow { background: var(--ink); color: var(--white); padding: clamp(64px, 8vw, 110px) 0; }
.flow h2 { max-width: 16ch; }
.flow ol { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 0; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 860px) { .flow ol { grid-template-columns: repeat(4, 1fr); } }
.flow li { counter-increment: step; padding: 26px 24px 8px 0; border-top: 2px solid #3A3F3E; position: relative; }
@media (min-width: 860px) { .flow li { padding-right: 28px; } }
.flow li::before {
  content: counter(step); display: block; font-weight: 800; font-size: 54px; line-height: 1;
  font-variation-settings: "wdth" 125; color: var(--teal-bright); margin-bottom: 18px;
}
.flow li:last-child::before { color: var(--signal); }
.flow li h3 { color: var(--white); }
.flow li p { color: #C9CFCE; font-size: 17px; }

/* ---------- Funciones ---------- */
.feature { padding: clamp(64px, 8vw, 112px) 0; }
.feature .wrap { display: grid; grid-template-columns: 1fr; gap: 44px; align-items: center; }
@media (min-width: 980px) {
  .feature .wrap { grid-template-columns: .8fr 1.2fr; }
  .feature.flip .wrap { grid-template-columns: 1.2fr .8fr; }
  .feature.flip .copy { order: 2; }
}
.feature .copy p { margin-top: 18px; color: var(--ink-soft); }
.feature ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.feature li { padding-left: 30px; position: relative; color: var(--ink-soft); }
.feature li strong { color: var(--ink); }
.feature li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 3px; background: var(--teal); }
.shot { border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 50px -28px rgba(30, 30, 30, .35); background: var(--white); }
.shot.tall { max-height: 560px; }
.shot img { width: 100%; }
.phones { display: flex; justify-content: center; gap: clamp(14px, 3vw, 32px); align-items: flex-start; }
.phones .phone { width: min(44%, 270px); }
.phones .phone:nth-child(2) { margin-top: 56px; }
.alt { background: var(--paper-deep); }

/* Reporte del panel con el teléfono de la firma encima. */
.stack { position: relative; padding: 0 0 40px 60px; }
.stack .phone { position: absolute; left: 0; bottom: 0; width: min(36%, 220px); padding: 7px; border-radius: 34px; transform: rotate(-4deg); }
.stack .phone img { border-radius: 27px; }
@media (max-width: 560px) { .stack { padding: 0 0 120px 0; } .stack .phone { width: 150px; left: 8px; } }

/* ---------- Bilingüe: la frase grande ---------- */
.both { padding: clamp(72px, 9vw, 128px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.both .display { font-size: clamp(34px, 5.2vw, 70px); max-width: 18ch; }
.both .display .es { color: var(--teal); }
.both p.lede { margin-top: 28px; }

/* ---------- Preguntas ---------- */
.faq { padding: clamp(64px, 8vw, 110px) 0; }
.faq .wrap { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 980px) { .faq .wrap { grid-template-columns: .7fr 1.3fr; } }
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 26px; line-height: 1; color: var(--teal); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 12px; color: var(--ink-soft); max-width: 40em; }

/* ---------- Demo ---------- */
.demo { background: var(--teal-deep); color: var(--white); padding: clamp(64px, 8vw, 110px) 0; }
.demo .wrap { display: grid; grid-template-columns: 1fr; gap: 44px; }
@media (min-width: 980px) { .demo .wrap { grid-template-columns: .85fr 1.15fr; } }
.demo .copy p { margin-top: 18px; color: #D6ECEA; max-width: 30em; }
.demo .copy .or { margin-top: 30px; }
.demo .copy .or a { color: var(--white); font-weight: 700; }
.demo form { background: var(--white); color: var(--ink); border-radius: var(--radius-l); padding: clamp(22px, 3vw, 36px); display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .demo form { grid-template-columns: 1fr 1fr; } .demo form .full { grid-column: 1 / -1; } }
.demo label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.demo input, .demo select, .demo textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); }
.demo textarea { min-height: 96px; resize: vertical; }
.demo input:focus, .demo select:focus, .demo textarea:focus { outline: 3px solid var(--teal-bright); outline-offset: 0; border-color: transparent; }
.demo .err { color: #B42318; font-size: 14px; margin-top: 4px; }
.demo .thanks { background: var(--white); color: var(--ink); border-radius: var(--radius-l); padding: 36px; }
.demo .thanks h3 { font-size: 26px; font-variation-settings: "wdth" 115; font-weight: 800; }
.demo .thanks p { color: var(--ink-soft); margin-top: 8px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Pie ---------- */
footer { padding: 44px 0 56px; font-size: 15px; color: var(--ink-muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
footer a { color: var(--ink-soft); text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Textos legales ---------- */
.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(36px, 5vw, 56px); }
.legal .updated { color: var(--ink-muted); margin-top: 12px; font-size: 15px; }
.legal .note { margin-top: 24px; padding: 14px 18px; border-left: 4px solid var(--signal); background: var(--white); font-size: 15px; color: var(--ink-soft); }
.legal h2 { font-size: 26px; margin-top: 40px; font-variation-settings: "wdth" 110; }
.legal p, .legal li { color: var(--ink-soft); margin-top: 12px; }
.legal ul { padding-left: 22px; }
