/* landing.css — landing pública de LawnTrail (/es y /en).
 * CSS propio, sin Tailwind ni frameworks. Mobile first.
 * Tokens tomados de css/styles.css (familia --v145-*) para que se sienta de la misma app.
 * ⚠ El verde de marca #16a34a con texto blanco da 3.3:1 (no pasa AA en texto normal):
 *   los botones y enlaces usan --accent-strong (#15803d, 5.0:1) y el verde profundo
 *   #1D6A3A de la landing anterior (7.4:1) en la banda final. */

:root {
  --bg: #f8fafc;              /* --v145-bg */
  --card: #ffffff;            /* --v145-card */
  --ink: #0f172a;             /* --v145-ink */
  --ink-soft: #475569;        /* un paso más oscuro que --v145-ink-soft: AA sobre --bg y --tint */
  --line: rgba(15, 23, 42, 0.10);       /* --v145-line */
  --line-soft: rgba(15, 23, 42, 0.06);  /* --v145-line-soft */
  --accent: #16a34a;          /* --v145-accent: verde LawnTrail (decorativo, iconos) */
  --accent-strong: #15803d;   /* botones/enlaces con texto blanco o sobre blanco */
  --accent-hover: #166534;
  --accent-soft: rgba(22, 163, 74, 0.12);  /* --v145-accent-soft */
  --deep: #1d6a3a;            /* verde profundo de la landing anterior */
  --tint: #f0fdf4;
  --radius: 18px;             /* --v145-radius */
  --radius-sm: 14px;          /* --v145-radius-sm */
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 2px 6px rgba(15, 23, 42, 0.06), 0 24px 48px rgba(15, 23, 42, 0.14);
  --header-h: 64px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-strong); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* Foco visible y consistente en todo lo interactivo */
:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 3px; border-radius: 8px; }
.final :focus-visible { outline-color: #ffffff; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; color: #fff; }
main:focus { outline: none; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.wrap--narrow { max-width: 820px; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ── Botones ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 12px; border: 1.5px solid transparent;
  font: inherit; font-weight: 600; font-size: 0.95rem; line-height: 1.2; text-decoration: none;
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn .ico { width: 18px; height: 18px; }
.btn--lg { min-height: 52px; padding: 14px 22px; font-size: 1rem; border-radius: 14px; }
.btn--primary { background: var(--accent-strong); color: #fff; box-shadow: 0 6px 16px rgba(21, 128, 61, 0.25); }
.btn--primary:hover { background: var(--accent-hover); color: #fff; }
.btn--ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: rgba(15, 23, 42, 0.25); color: var(--ink); }
.btn--light { background: #fff; color: var(--deep); }
.btn--light:hover { background: var(--tint); color: var(--deep); }
.btn--outline-light { color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.btn--outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); color: #fff; }

/* ── Header fijo ─────────────────────────────────────────────────────────── */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, 0.92); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(160%) blur(10px); backdrop-filter: saturate(160%) blur(10px);
}
.top__in { height: 100%; display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand img { width: 36px; height: 36px; }
.nav { margin-left: auto; }
.nav__list a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem; white-space: nowrap; }
.nav__list a:hover { color: var(--accent-strong); }
.lang {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 10px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.9rem; border-radius: 10px;
}
.lang:hover { background: var(--accent-soft); color: var(--ink); }
.lang .ico { width: 18px; height: 18px; }
.lang__short { display: none; }
@media (min-width: 1280px) { .lang__full { display: none; } .lang__short { display: inline; } }

.burger {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer;
  align-items: center; justify-content: center;
}
.burger .ico { width: 22px; height: 22px; }
.burger__close { display: none; }
.burger:hover { border-color: rgba(15, 23, 42, 0.25); }
.burger .ico { transition: transform .2s ease; }
.burger[aria-expanded="true"] .ico { transform: rotate(90deg); }
.burger[aria-expanded="true"] .burger__open { display: none; }
.burger[aria-expanded="true"] .burger__close { display: block; }

/* Móvil y tablet: menú desplegable. Sin JS el menú se ve siempre (degradación segura). */
@media (max-width: 1279.98px) {
  .js .burger { display: inline-flex; }
  .js .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0; z-index: 49;
    background: var(--card); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    border-radius: 0 0 20px 20px;
    padding: 8px 20px 20px; max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain;
    visibility: hidden; opacity: 0; transform: translateY(-12px);
    transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
  }
  .js .nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .22s ease, transform .22s ease, visibility 0s; }
  .nav__list li { border-bottom: 1px solid var(--line-soft); }
  .nav__list a { display: flex; align-items: center; min-height: 52px; font-size: 1.05rem; border-radius: 10px; }
  .nav__list a:active { background: var(--accent-soft); }
  .nav__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 16px; }
  .nav__actions .btn { min-height: 48px; }
  .nav__actions .lang { grid-column: 1 / -1; justify-content: flex-start; padding-left: 0; min-height: 48px; }
  .burger { width: 48px; height: 48px; }
  /* Sin JS: el nav va debajo de la barra, en flujo */
  html:not(.js) .top { position: static; height: auto; }
  html:not(.js) .top__in { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  html:not(.js) .nav { width: 100%; }
  html:not(.js) main { padding-top: 0; }
}
@media (min-width: 1280px) {
  .nav { display: flex; align-items: center; gap: 16px; }
  .nav__list { display: flex; gap: 16px; }
  .nav__actions { display: flex; align-items: center; gap: 8px; }
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
main { padding-top: var(--header-h); }
.hero {
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(22, 163, 74, 0.14), transparent 60%),
    radial-gradient(700px 400px at -10% 20%, rgba(22, 163, 74, 0.08), transparent 60%),
    linear-gradient(180deg, var(--tint), var(--bg));
  overflow: hidden;
}
.hero__in { display: grid; gap: 36px; padding-top: 40px; padding-bottom: 56px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent-strong); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.ico--eyebrow { width: 18px; height: 18px; }
.hero h1 { margin-top: 12px; font-size: clamp(2rem, 1.3rem + 3.6vw, 3.5rem); font-weight: 800; letter-spacing: -0.03em; text-wrap: balance; }
.lead { margin-top: 16px; font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.2rem); color: var(--ink-soft); max-width: 40em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cta-row--center { justify-content: center; }
.note { margin-top: 14px; font-size: 0.9rem; color: var(--ink-soft); }
.note strong { color: var(--ink); font-weight: 600; }
.ico--check { width: 16px; height: 16px; color: var(--accent-strong); stroke-width: 2.6; }
@media (max-width: 380px) { .cta-row .btn { width: 100%; } }
@media (min-width: 1024px) {
  .hero__in { gap: 56px; padding-top: 64px; padding-bottom: 88px; }
  .hero__text { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: end; }
  .hero__body .lead { margin-top: 0; }
}

/* ── Marcos de captura (CSS puro) ────────────────────────────────────────── */
.phone {
  margin: 0; position: relative; width: 260px; max-width: 100%;
  padding: 10px; border-radius: 34px; background: #0f172a;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #1e293b;
}
/* Sin isla/cámara dibujada: las capturas no traen barra de estado y la isla tapaba su encabezado. */
/* v258 QA: franja superior del color del marco (como una barra de estado): la esquina redondeada ya no corta
   el texto de las capturas que empiezan arriba a la izquierda (Registro de tiempo, Agregar clientes al día). */
.phone__screen { border-radius: 24px; overflow: hidden; background: #fff; aspect-ratio: 390 / 844; border-top: 10px solid #0f172a; box-sizing: content-box; }
/* v261: content-box → la proporción 390/844 es la del ÁREA de la imagen (con border-box, la franja superior de 10 px
   se comía la proporción y cover cortaba el pie de la captura: las etiquetas de la barra inferior). Una captura con
   otra proporción usa --natural (build.mjs pone su aspect-ratio real): se ve entera, sin cortar costados. */
.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone__screen--natural img { object-fit: fill; }
.phone--sm { width: 150px; padding: 6px; border-radius: 20px; box-shadow: var(--shadow); }
.phone--sm .phone__screen { border-radius: 14px; border-top-width: 6px; }

.browser { margin: 0; border-radius: var(--radius-sm); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.browser__bar { display: flex; gap: 6px; align-items: center; height: 30px; padding: 0 12px; background: #f1f5f9; border-bottom: 1px solid var(--line); }
.browser__bar span { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.browser img { width: 100%; }

/* Solo en modo --placeholders (revisión): nunca en la página publicada */
.ph {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  text-align: center; padding: 12px; background: repeating-linear-gradient(45deg, #f1f5f9 0 12px, #e2e8f0 12px 24px);
  color: var(--ink-soft); font-size: 0.8rem; font-weight: 600;
}
.ph code { font-size: 0.7rem; }
.ph--desk { aspect-ratio: 16 / 10; }

/* ── Secciones ───────────────────────────────────────────────────────────── */
.sec { padding: 64px 0; }
.sec--alt { background: var(--card); border-block: 1px solid var(--line-soft); }
.sec__head { max-width: 720px; margin-bottom: 36px; }
.sec__head h2 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem); font-weight: 800; letter-spacing: -0.025em; text-wrap: balance; }
@media (min-width: 900px) { .sec { padding: 96px 0; } .sec__head { margin-bottom: 52px; } }

/* Cómo funciona */
.steps { display: grid; gap: 16px; counter-reset: s; }
.step {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.step__num {
  position: absolute; top: 18px; right: 18px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-strong); font-weight: 700; font-size: 0.85rem;
}
.step__icon, .card__icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-strong); margin-bottom: 14px;
}
.step__icon .ico, .card__icon .ico { width: 22px; height: 22px; }
.step__t { font-size: 1.1rem; font-weight: 700; padding-right: 36px; }
.step__d { margin-top: 8px; color: var(--ink-soft); font-size: 0.97rem; }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* Funciones: alternan imagen / texto */
.features { display: grid; gap: 72px; }
.feature { display: grid; gap: 32px; align-items: center; }
.feature__t { margin-top: 10px; font-size: clamp(1.4rem, 1.15rem + 1.1vw, 1.9rem); font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.feature__d { margin-top: 12px; color: var(--ink-soft); font-size: 1.05rem; max-width: 36em; }
.checks { display: grid; gap: 10px; margin-top: 20px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .ico--check { margin-top: 4px; }
.soon {
  display: inline-block; margin-top: 18px; padding: 6px 12px; border-radius: 999px;
  background: #fef3c7; color: #78350f; font-size: 0.875rem; font-weight: 600;
}
.feature__media { display: flex; justify-content: center; }
.feature__media .phone { width: min(270px, 72vw); }
/* v261: los dos teléfonos de un par ya NO se superponen (el segundo tapaba «Importar», las cifras y la barra
   inferior del primero): van lado a lado con un hueco, el segundo más abajo, y cada uno cabe en su mitad. */
.feature__media--pair { gap: 20px; align-items: flex-start; }
.feature__media--pair .phone { width: min(230px, calc((100% - 20px) / 2)); }
.feature__media--pair .phone + .phone { margin-top: 48px; }
.feature__media .browser { width: 100%; }

@media (max-width: 639.98px) {
  .feature__media--pair {
    justify-content: flex-start; flex-wrap: nowrap; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: 4px; padding: 4px 4px 14px;
    -webkit-overflow-scrolling: touch; scrollbar-width: thin;
  }
  .feature__media--pair > * { flex: 0 0 auto; scroll-snap-align: center; }
  .feature__media--pair .phone { width: min(300px, 88%); }
  .feature__media--pair .phone + .phone { margin-left: 0; margin-top: 0; }
  .feature__media--pair:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 2px; border-radius: 12px; }
}
.feature--textonly { max-width: 720px; }
@media (min-width: 900px) {
  .features { gap: 112px; }
  .feature { grid-template-columns: 1fr 1fr; gap: 64px; }
  .feature--rev .feature__text { order: 2; }
  .feature--textonly { grid-template-columns: 1fr; }
  .feature__media--pair .phone { width: min(250px, calc((100% - 20px) / 2)); }
  .feature__media--pair .phone + .phone { margin-top: 64px; }
}

/* Un día de trabajo: línea de tiempo */
.day { display: grid; gap: 0; position: relative; }
.day__item { position: relative; padding: 0 0 32px 52px; }
.day__item::before { /* la línea */
  content: ''; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: var(--accent-soft);
}
.day__item:last-child::before { display: none; }
.day__head { display: flex; align-items: center; gap: 12px; margin-left: -52px; }
.day__dot {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--accent-strong); color: #fff; box-shadow: 0 0 0 6px var(--bg);
}
.day__k { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-strong); }
.day__t { margin-top: 6px; font-size: 1.15rem; font-weight: 700; }
.day__d { margin-top: 6px; color: var(--ink-soft); }
.day__media { margin-top: 16px; }
@media (min-width: 900px) {
  .day { grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
  .day__item { padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
  .day__item::before { display: none; }
  .day__head { margin-left: 0; }
  .day__dot { box-shadow: none; }
  .day__media { display: flex; justify-content: center; }
  .day__media .phone--sm { width: 180px; }
}

/* Móvil y PWA */
.cards { display: grid; gap: 16px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card__t { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.card p { color: var(--ink-soft); }
.card strong { color: var(--ink); font-weight: 600; }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.offline {
  display: flex; gap: 16px; align-items: flex-start; margin-top: 24px; padding: 22px;
  border-radius: var(--radius); background: var(--tint); border: 1px solid rgba(21, 128, 61, 0.2);
}
.offline__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--accent-strong); flex: none; }
@media (max-width: 479.98px) { .offline { flex-direction: column; } }
.offline h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.offline p { color: #334155; }
.desk { margin-top: 48px; }
.desk__t { font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; }

/* Preguntas frecuentes */
.faq { display: grid; gap: 12px; }
.qa { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.qa summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 14px 20px; font-weight: 600; font-size: 1.02rem;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:focus-visible { outline-offset: -3px; border-radius: var(--radius-sm); }
.qa__chev { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--ink-soft); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.qa[open] .qa__chev { transform: rotate(180deg); }
.qa__a { padding: 0 20px 18px; color: var(--ink-soft); }
.qa[open] summary { color: var(--accent-strong); }

/* CTA final */
.final { background: linear-gradient(160deg, var(--deep), #14532d); color: #fff; text-align: center; }
.final__in { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; align-items: center; }
.final img { width: 72px; height: 72px; background: #fff; border-radius: 20px; padding: 8px; }
.final h2 { margin-top: 20px; font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem); font-weight: 800; text-wrap: balance; }
.final p { margin-top: 12px; max-width: 36em; color: #dcfce7; font-size: 1.05rem; }

/* Footer */
.foot { background: var(--ink); color: #cbd5e1; font-size: 0.95rem; }
.foot a { color: #e2e8f0; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot :focus-visible { outline-color: #86efac; }
.foot__grid { display: grid; gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.foot .brand { color: #fff; }
.foot__brand p { margin-top: 10px; color: #94a3b8; }
.foot__h { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: #94a3b8; font-weight: 700; margin: 0 0 10px; }
.foot__h + ul + .foot__h, ul + .foot__h { margin-top: 20px; }
.foot ul li a { display: inline-flex; align-items: center; min-height: 36px; }
.foot__langs a[aria-current="page"] { color: #86efac; font-weight: 600; }
.foot__legal { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 18px; padding-bottom: 28px; color: #94a3b8; font-size: 0.875rem; }
@media (min-width: 768px) { .foot__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* Aparición discreta al hacer scroll (solo con JS y sin reduce-motion) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* Detalle recortado (p-live): se muestra SOLO la parte de arriba de la captura.
 * El recorte lo hace el aspect-ratio del contenedor (inline, calculado por build.mjs);
 * la imagen conserva su proporción natural, anclada arriba, y lo que sobra queda oculto. */
.crop { margin: 24px 0 0; max-width: 320px; }
/* v261 · Detalle en marco de teléfono dentro de la columna del texto (portal en vivo, Tiempos · Equipo). */
.dphone { margin: 24px 0 0; width: min(270px, 72vw); }
.dphone .phone { width: 100%; }
.dphone figcaption { margin-top: 10px; font-size: 0.9rem; color: var(--ink-soft); font-weight: 500; }
.crop__box {
  position: relative; overflow: hidden; border-radius: 22px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.crop__box img { width: 100%; height: auto; }
.crop figcaption { margin-top: 10px; font-size: 0.9rem; color: var(--ink-soft); font-weight: 500; }

/* ── Composiciones por ancho (build.mjs: candidato con `only`) ─────────────── */
.only-lg, .only-xl { display: none; }
@media (min-width: 1024px) { .only-lg { display: block; } .only-sm { display: none; } }
@media (min-width: 1200px) { .only-xl { display: block; } }


/* Franja recortada sin pie, como imagen de una función (p. ej. el gráfico de finanzas en EN) */
.crop--plain { margin: 0; width: min(360px, 100%); }
.crop--plain .crop__box { box-shadow: var(--shadow-lg); }
.crop--sm { width: 220px; }
.feature__media .browser.only-lg { width: 100%; }
.desk__grid { display: grid; gap: 20px; }
@media (min-width: 1024px) { .desk__grid { grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; } }
.desk .browser { width: 100%; }
@media (max-width: 639.98px) { .desk { display: none; } }
.feature__swap { min-width: 0; }


/* ══════════════════════════════════════════════════════════════════════════
 * Utilidades, menú (fondo), encabezado al hacer scroll, estados de interacción
 * ══════════════════════════════════════════════════════════════════════════ */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nav-backdrop {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 48; background: rgba(15, 23, 42, 0.45);
  opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility 0s linear .22s;
}
.nav-backdrop.is-open { opacity: 1; visibility: visible; transition: opacity .22s ease, visibility 0s; }
@media (min-width: 1280px) { .nav-backdrop { display: none; } }
html.menu-open, html.menu-open body { overflow: hidden; }
.top { transition: box-shadow .2s ease, background-color .2s ease; }
.top.is-scrolled { background: rgba(255, 255, 255, 0.97); box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(15, 23, 42, 0.08); }

.btn:active { transform: translateY(1px) scale(0.99); }
.btn--primary:hover { box-shadow: 0 8px 22px rgba(21, 128, 61, 0.32); }
.step, .card, .qa, .day__item { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
@media (hover: hover) {
  .step:hover, .card:hover, .day__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(21, 128, 61, 0.25); }
  .qa:hover { border-color: rgba(21, 128, 61, 0.35); }
}
.qa summary { transition: color .15s ease; }
.feature__media .phone, .feature__media .browser, .crop__box { transition: transform .3s ease; }
@media (hover: hover) { .feature__media .phone:hover { transform: translateY(-4px); } }

/* ══════════════════════════════════════════════════════════════════════════
 * Demostración del hero (demo.js). Un solo teléfono grande + pasos.
 * ══════════════════════════════════════════════════════════════════════════ */
.demo { display: grid; gap: 20px; justify-items: center; }
.demo__stage { width: 100%; display: flex; justify-content: center; }
.phone--demo { width: min(100%, 400px); padding: 11px; border-radius: 38px; }
.phone--demo .phone__screen { border-radius: 27px; border-top: 0; }
.demo__screen { position: relative; }
/* Sin JS: el primer fotograma se ve normal. Con JS: fotogramas apilados. */
.demo--js .demo__frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top;
  opacity: 0; transform: translateX(14px); transition: opacity .45s ease, transform .45s ease; }
.demo--js .demo__frame.is-active { opacity: 1; transform: none; }
.demo--js .is-fast .demo__frame { transition-duration: .14s; transform: none; }
.demo__ring {
  position: absolute; z-index: 3; pointer-events: none; box-sizing: border-box;
  border: 3px solid #16a34a; border-radius: 16px;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.22), 0 0 0 9999px rgba(15, 23, 42, 0.10);
  transition: left .22s ease, top .22s ease, width .22s ease, height .22s ease;
}
/* Fotogramas cortos (< 800 ms): el aro llega ya colocado, sin viajar sobre la pantalla. */
.demo__ring--snap { transition: none; }
.demo--js.is-playing .demo__ring { animation: demoPulse 1.6s ease-in-out infinite; }
@keyframes demoPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.22), 0 0 0 9999px rgba(15, 23, 42, 0.10); }
  50% { box-shadow: 0 0 0 9px rgba(22, 163, 74, 0.10), 0 0 0 9999px rgba(15, 23, 42, 0.10); }
}
.demo__panel { width: 100%; max-width: 440px; display: grid; gap: 14px; }
.demo__caption { text-align: center; color: var(--ink-soft); min-height: 3.2em; }
.demo__caption b { display: block; color: var(--ink); font-size: 1.05rem; }
/* Móvil: pasos como segmentos de progreso (tipo «historias»), cada uno pulsable. */
.demo__steps { display: flex; gap: 6px; }
.demo__steps li { flex: 1; min-width: 0; }
.demo__step {
  width: 100%; min-height: 48px; padding: 6px 0; border: 0; background: none; cursor: pointer; font: inherit; color: var(--ink-soft);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-radius: 10px;
}
.demo__num { font-size: 0.78rem; font-weight: 700; line-height: 1; }
.demo__txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.demo__bar { display: block; width: 100%; height: 4px; border-radius: 4px; background: rgba(15, 23, 42, 0.12); overflow: hidden; }
.demo__bar > span { display: block; height: 100%; width: 0; background: var(--accent-strong); border-radius: inherit; }
.demo__step[aria-current="step"] { color: var(--accent-strong); }
.demo__step.is-done .demo__bar > span { width: 100%; }
.demo__step:hover { color: var(--ink); }
.demo__controls { display: flex; justify-content: center; align-items: center; gap: 12px; }
.demo__btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink);
  display: inline-grid; place-items: center; cursor: pointer; transition: background-color .15s, border-color .15s, transform .15s;
}
.demo__btn:hover { border-color: rgba(15, 23, 42, 0.3); }
.demo__btn:active { transform: scale(0.95); }
.demo__btn .ico { width: 22px; height: 22px; }
.demo__btn--play { width: 56px; height: 56px; background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.demo__btn--play:hover { background: var(--accent-hover); }
.demo__btn--play .ico { fill: currentColor; }
.demo__i-pause { display: none; }
.demo.is-playing .demo__i-pause { display: block; }
.demo.is-playing .demo__i-play { display: none; }
/* Sin JS no hay controles que funcionen: se ocultan. */
html:not(.js) .demo__controls, html:not(.js) .demo__steps, html:not(.js) .demo__ring { display: none; }

/* Escritorio: pasos (izquierda) + teléfono grande (derecha). */
@media (min-width: 1024px) {
  .demo { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "panel stage"; gap: 56px; align-items: center; justify-items: stretch; }
  .demo__stage { grid-area: stage; }
  .demo__panel { grid-area: panel; max-width: 540px; justify-self: start; }
  /* Que el teléfono entero quepa en la ventana (alto útil ≈ 100svh − encabezado − aire). */
  /* 1024–1279: mínimo 322 → pantalla 300 px (con 768 de alto el teléfono mide ~690 y entra). */
  .phone--demo { width: clamp(322px, calc((100svh - 130px) * 0.462), 380px); }
  .demo__panel { min-width: 0; }
  .demo__caption { display: none; }
  .demo__steps { flex-direction: column; gap: 6px; }
  .demo__step {
    display: grid; grid-template-columns: 36px 1fr; grid-template-rows: auto auto; column-gap: 14px; row-gap: 8px;
    align-items: start; text-align: left; padding: 12px 14px; border: 1px solid transparent; color: var(--ink);
  }
  .demo__num { grid-row: 1 / 3; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
    /* #166534 sobre el verde suave compuesto: 5,7–6,2:1 (con #15803d daba 4,2:1). */
    background: var(--accent-soft); color: var(--accent-hover); font-size: 0.9rem; }
  .demo__txt { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; display: grid; gap: 2px; }
  .demo__t { font-weight: 700; }
  .demo__d { color: var(--ink-soft); font-size: 0.95rem; }
  .demo__bar { grid-column: 2; height: 3px; }
  .demo__step:hover { background: rgba(255, 255, 255, 0.7); }
  .demo__step[aria-current="step"] { background: var(--card); border-color: rgba(21, 128, 61, 0.25); box-shadow: var(--shadow); color: var(--ink); }
  .demo__step[aria-current="step"] .demo__num { background: var(--accent-strong); color: #fff; }
  .demo__controls { justify-content: flex-start; padding-left: 14px; }
}
/* ≥1280: legibilidad antes que caber entero en el alto. Pantalla = ancho − 22 px de marco:
 * mínimo 362 → pantalla 340 px; máximo 402 → pantalla 380 px. */
@media (min-width: 1280px) { .phone--demo { width: clamp(362px, calc((100svh - 130px) * 0.462), 402px); } }

/* ── Reduced motion: nada se mueve ni se anima ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; scroll-behavior: auto !important; }
  .demo--js .demo__frame { transform: none; }
  .step:hover, .card:hover, .day__item:hover, .feature__media .phone:hover { transform: none; }
}

/* ══════════════════════════════════════════════════════════════════════════
 * Recorrido de producto (tour.js). Una captura grande a la vez; texto y controles
 * fuera de la interfaz (arriba en móvil, al costado en escritorio), nunca encima.
 * ══════════════════════════════════════════════════════════════════════════ */
.tour__tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 0 8px;
  scrollbar-width: thin; scroll-snap-type: x proximity; }
.tour__tabs li { flex: none; scroll-snap-align: start; }
.tour__tab {
  position: relative; min-height: 48px; padding: 10px 16px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font: inherit; font-weight: 600; font-size: 0.95rem; cursor: pointer; white-space: nowrap;
  transition: border-color .15s, background-color .15s;
}
.tour__tab:hover { border-color: rgba(21, 128, 61, 0.35); }
.tour__tab[aria-current="true"] { border-color: var(--accent-strong); background: var(--tint); color: var(--accent-hover); }
.tour__bar { position: absolute; left: 12px; right: 12px; bottom: 6px; height: 3px; border-radius: 3px; background: rgba(15, 23, 42, 0.08); overflow: hidden; }
.tour__bar > span { display: block; height: 100%; width: 0; background: var(--accent-strong); }
.tour__body { display: grid; gap: 20px; }
.tour__text { display: grid; gap: 8px; align-content: start; }
.tour__t { font-size: 1.25rem; font-weight: 800; }
.tour__d { color: var(--ink-soft); }
.tour__count { font-size: 0.875rem; color: var(--ink-soft); font-weight: 600; }
/* Móvil: título y texto arriba, captura grande, controles debajo (nunca sobre la interfaz). */
.tour__controls { display: flex; gap: 12px; align-items: center; justify-content: center; }
.tour__i-pause { display: none; }
.tour.is-playing .tour__i-pause { display: block; }
.tour.is-playing .tour__i-play { display: none; }
.tour__stage { display: flex; justify-content: center; min-width: 0; }
html:not(.js) .tour__controls, html:not(.js) .tour__bar { display: none; }

/* Captura con marco, aro de foco y botón de ampliar (en la esquina del marco, no sobre la interfaz). */
.shot { position: relative; margin: 0; width: min(100%, 400px); padding: 10px; border-radius: 34px; background: #0f172a; box-shadow: var(--shadow-lg); }
.shot__screen { position: relative; border-radius: 24px; overflow: hidden; background: #fff; border-top: 10px solid #0f172a; }
.shot--card .shot__screen, .shot--desk .shot__screen { border-top: 0; }
.shot__screen img { display: block; width: 100%; height: auto; }
.shot--desk { width: 100%; max-width: 900px; padding: 0; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); }
.shot--desk .shot__screen { border-radius: var(--radius-sm); }
.tour--js .tour__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .35s ease; }
.tour--js .tour__img.is-active { position: relative; opacity: 1; height: auto; }
.shot__ring {
  position: absolute; z-index: 2; pointer-events: none; box-sizing: border-box; border: 3px solid #16a34a; border-radius: 14px;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.22), 0 0 0 9999px rgba(15, 23, 42, 0.10);
  transition: left .22s ease, top .22s ease, width .22s ease, height .22s ease;
}
/* La lupa va DEBAJO del marco, a la derecha: nunca encima de la interfaz capturada. */
.shot { margin-bottom: 60px; }
.shot__zoom {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 3; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); box-shadow: var(--shadow);
  display: grid; place-items: center; cursor: zoom-in;
}
.shot__zoom:hover { border-color: rgba(21, 128, 61, 0.4); color: var(--accent-hover); }
.shot__zoom .ico { width: 22px; height: 22px; }

@media (min-width: 1024px) {
  .tour__tabs { flex-wrap: wrap; overflow: visible; margin: 0 0 20px; padding: 0; }
  .tour__body { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); grid-template-areas: "text stage" "controls stage"; grid-template-rows: auto 1fr; column-gap: 56px; row-gap: 20px; align-items: start; }
  .tour__text { grid-area: text; padding-top: 24px; }
  .tour__stage { grid-area: stage; }
  .tour__controls { grid-area: controls; justify-content: flex-start; align-self: start; }
  .tour .shot:not(.shot--desk) { width: clamp(340px, calc((100svh - 150px) * 0.462), 400px); }
}
/* Horizontal bajo (teléfono girado): captura a lo alto de la ventana, texto al costado. */
@media (orientation: landscape) and (max-height: 500px) {
  .tour__body { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "text stage" "controls stage"; grid-template-rows: auto 1fr; gap: 16px 24px; align-items: start; }
  .tour__text { grid-area: text; } .tour__stage { grid-area: stage; } .tour__controls { grid-area: controls; justify-content: flex-start; }
  .tour .shot:not(.shot--desk), .roles .shot:not(.shot--desk) { width: calc((100svh - 40px) * 0.462); }
}

/* Recorte real mostrado como tarjeta (sin marco de teléfono). */
.shot--card { padding: 0; border-radius: 18px; background: #fff; border: 1px solid var(--line); width: min(100%, 420px); }
.shot--card .shot__screen { border-radius: 18px; }
@media (min-width: 1024px) { .tour .shot--card { width: min(100%, 440px); } }

/* ── «Dueño y trabajador» ─────────────────────────────────────────────── */
.roles { display: grid; gap: 24px; justify-items: center; }
.roles__switch { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.roles__opt { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: none; font: inherit; font-weight: 600; color: var(--ink-soft); cursor: pointer; }
.roles__opt[aria-pressed="true"] { background: var(--accent-strong); color: #fff; }
.roles__pair { display: grid; gap: 24px; width: 100%; justify-items: center; }
.roles__item { display: grid; gap: 12px; justify-items: center; text-align: center; max-width: 380px; }
.roles__tag { font-size: 0.85rem; font-weight: 700; color: var(--accent-hover); text-transform: uppercase; letter-spacing: 0.06em; }
.roles__cap { color: var(--ink-soft); }
.roles .shot { width: min(100%, 340px); }
.roles__where { display: grid; gap: 20px; width: 100%; justify-items: center; margin-top: 12px; padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.roles__where-t { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.roles__where-text p { color: var(--ink-soft); }
.roles__where-text strong { color: var(--ink); }
/* Móvil con JS: el interruptor elige qué ruta se ve. Sin JS se ven las dos. */
.roles--js[data-show="owner"] [data-roles-item="worker"], .roles--js[data-show="worker"] [data-roles-item="owner"] { display: none; }
@media (min-width: 900px) {
  .roles__switch { display: none; }
  .roles--js [data-roles-item] { display: grid !important; }
  .roles__pair { grid-template-columns: 1fr 1fr; align-items: start; max-width: 860px; }
  .roles .shot { width: min(100%, 320px); }
  .roles__where { grid-template-columns: minmax(0, 1fr) auto; align-items: center; justify-items: start; max-width: 960px; }
  .roles__where .shot { width: 280px; }
}

/* ── Visor ampliado ───────────────────────────────────────────────────── */
html.viewer-open, html.viewer-open body { overflow: hidden; }
.viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0b1220; color: #fff; }
.viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; }
.viewer::backdrop { background: rgba(15, 23, 42, 0.6); }
.viewer__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; }
.viewer__t { font-size: 1rem; font-weight: 700; }
.viewer__tools { display: flex; gap: 8px; }
.viewer__btn { min-width: 48px; height: 48px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.08); color: #fff; display: grid; place-items: center; cursor: pointer; font: inherit; font-weight: 600; }
.viewer__btn:hover { background: rgba(255, 255, 255, 0.16); }
.viewer__btn .ico { width: 22px; height: 22px; }
.viewer__btn--txt { padding: 0 10px; font-variant-numeric: tabular-nums; }
.viewer__canvas { position: relative; overflow: hidden; display: grid; place-items: center; touch-action: none; cursor: grab; outline-offset: -3px; }
.viewer.is-zoomed .viewer__canvas { cursor: move; }
/* Absoluta y centrada: así el % de max-height se resuelve contra el lienzo (en grid no se resolvía y
 * a 390 px la imagen se salía por debajo del lienzo). */
.viewer__img { position: absolute; inset: 0; margin: auto; max-width: calc(100% - 24px); max-height: calc(100% - 24px); width: auto; height: auto; border-radius: 12px; transform-origin: center; user-select: none; -webkit-user-drag: none; }
.viewer__alt { padding: 6px 16px 0; color: #e2e8f0; font-size: 0.95rem; max-width: 70ch; margin: 0 auto; text-align: center; }
.viewer__hint { padding: 6px 16px 14px; color: #94a3b8; font-size: 0.8rem; text-align: center; }
.viewer :focus-visible { outline-color: #86efac; }

/* ── Hueco de «Planes» (solo vista previa) ────────────────────────────── */
.plans-pending { padding: 32px; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--ink-soft); text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .tour--js .tour__img, .shot__ring { transition: none !important; }
}

/* ── «Planes» ─────────────────────────────────────────────────────────── */
/* Móvil: tarjetas deslizables con scroll-snap (la lista es un <ul>: los lectores la
 * recorren entera; con teclado, cada tarjeta con enlace recibe foco). ≥768: grilla. */
/* La región desplazable es el contenedor (role=region, tabindex=0): foco visible y flechas en landing.js. */
.plans-scroll { overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 16px; margin: 0 -4px; scrollbar-width: thin; border-radius: var(--radius); }
.plans-scroll:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 2px; }
.plans { display: flex; gap: 14px; }
.plan { flex: 0 0 min(80%, 300px); scroll-snap-align: start; display: grid; gap: 14px; align-content: start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.plan--free { border-color: rgba(21, 128, 61, 0.45); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow); }
.plan__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.plan__name { font-size: 1.2rem; font-weight: 800; }
.plan__soon { padding: 4px 10px; border-radius: 999px; background: #fef3c7; color: #78350f; font-size: 0.8rem; font-weight: 700; }
.plan__list { display: grid; gap: 10px; }
.plan__list li { display: flex; gap: 10px; align-items: flex-start; }
.plan__list small { color: var(--ink-soft); font-size: 0.85rem; }
.plan__ico { width: 18px; height: 18px; margin-top: 3px; color: var(--accent-strong); }
.plan__list .is-no .plan__ico { color: #94a3b8; }
.plan__free { color: var(--ink-soft); font-size: 0.95rem; }
.plan__cta { justify-self: start; }
.plans__note { margin-top: 12px; color: var(--ink-soft); font-size: 0.95rem; max-width: 60em; }
@media (min-width: 768px) {
  .plans-scroll { overflow: visible; }
  .plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) { .plans { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.brand { flex: none; }   /* el logo nunca se encoge debajo del menú */

/* v261 fase E · La nota «En desarrollo» de una función va DESPUÉS de sus capturas (build.mjs): en una columna queda
   al final, separada; desde 900 px ocupa la columna del texto en la fila siguiente, nunca pegada encima de una captura. */
.feature__note { margin-top: 8px; }
@media (min-width: 900px) {
  .feature__note { grid-column: 1; margin-top: -24px; }
  .feature--rev .feature__note { grid-column: 2; }
}
/* v261 fase E · En una columna (< 900 px) el teléfono del detalle (servicio en vivo) va centrado, no pegado a la izquierda. */
@media (max-width: 899.98px) { .dphone { margin-inline: auto; } .dphone figcaption { text-align: center; } }
