/* JomLogic landing. Direction B «Despacho» (docs/ops/informes/landing-2026-10-26): the tone of a close gestor,
   the ERP palette and type so the page and the product screenshots read as one brand. Mobile first. */

/* IBM Plex Sans (the ERP's interface face) and Newsreader (titles and leads), latin subset. OFL: /fonts/OFL-*.txt */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2?v=1793722782") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-500-normal.woff2?v=1793722782") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2?v=1793722782") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/newsreader-latin-wght-normal.woff2?v=1793722782") format("woff2");
}

/* Tokens: the same values as jomlabs-frontend/src/index.css, light and dark */
:root {
  color-scheme: light;
  --color-bg: #F5F7FA;
  --color-bg-alt: #FFFFFF;
  --color-surface: #FFFFFF;
  --color-raised: #F1F5F9;
  --color-text: #0F172A;
  --color-muted: #5B6475;
  --color-brand: #C2410C;
  --color-cta: #C2410C;
  --color-on-cta: #FFFFFF;
  --color-border: #E2E8F0;
  --color-input-border: #94A3B8;
  --color-success: #15803D;
  --color-error: #C81E26;

  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --text-xs: 0.8125rem;   /* 13px: notes, hints */
  --text-sm: 0.9375rem;   /* 15px: secondary copy */
  --text-md: 1rem;        /* 16px: body */
  --text-lg: 1.125rem;    /* 18px: small headings */
  --text-xl: 1.25rem;     /* 20px: leads */
  --text-2xl: clamp(1.75rem, 3.2vw, 2.5rem);
  --text-3xl: clamp(2.1rem, 5vw, 3.4rem);
  --leading-tight: 1.15;
  --leading-body: 1.6;

  /* Spacing (4px grid) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --gutter: 16px;
  --container: 1200px;
  /* Same height as the ERP top bar (MobileTopBar, h-14) and its page header row */
  --header-height: 56px;

  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --color-bg: #161A23;
    --color-bg-alt: #1B1F29;
    --color-surface: #1B1F29;
    --color-raised: #232836;
    --color-text: #E6E8EE;
    --color-muted: #9AA1B2;
    --color-brand: #FF6A1A;
    --color-cta: #FF6A1A;
    --color-on-cta: #1A0E06;
    --color-border: #2A3040;
    --color-input-border: #4A5368;
    --color-success: #3DD68C;
    --color-error: #F2555A;
  }
}

/* Base */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + var(--space-4)); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font);
  font-size: var(--text-md);
  line-height: var(--leading-body);
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; }

a { color: var(--color-brand); text-underline-offset: 3px; }

h1, h2 { margin: 0 0 var(--space-4); font-family: var(--font-serif); font-weight: 500; line-height: var(--leading-tight); letter-spacing: -0.015em; }
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { margin: 0 0 var(--space-2); font-size: var(--text-lg); font-weight: 600; line-height: 1.35; }
p { margin: 0 0 var(--space-4); }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: var(--gutter); top: var(--space-2); z-index: 30; background: var(--color-surface); padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); }

:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; }

.lead { max-width: 38rem; color: var(--color-muted); font-family: var(--font-serif); font-size: var(--text-xl); line-height: 1.55; }
.note { color: var(--color-muted); font-size: var(--text-xs); }

/* Buttons: feedback on press, nothing else moves */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: var(--space-3) var(--space-5);
  border: 0;
  border-radius: var(--radius-md);
  font: inherit;
  font-size: var(--text-md);
  font-weight: 600;
  line-height: 20px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary { background: var(--color-cta); color: var(--color-on-cta); }
.btn-primary:hover { filter: brightness(1.06); color: var(--color-on-cta); }
.btn-secondary { background: var(--color-surface); color: var(--color-text); box-shadow: inset 0 0 0 1px var(--color-border); }
.btn-secondary:hover { box-shadow: inset 0 0 0 1px var(--color-muted); color: var(--color-text); }
.btn-small { min-height: 36px; padding: var(--space-2) var(--space-4); font-size: var(--text-sm); }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* Sections: hairlines between them, no colour bands */
.section { padding: var(--space-12) 0; border-top: 1px solid var(--color-border); }
.section-head { max-width: 46rem; margin: 0 0 var(--space-8); }
.section-head-start { margin-left: 0; text-align: left; }
.section-head .lead { margin: 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-6); min-height: var(--header-height); padding-top: 6px; padding-bottom: 6px; }
.logo { display: inline-flex; align-items: center; margin-right: auto; text-decoration: none; }
.logo picture { display: block; line-height: 0; }
.logo-img { display: block; height: 26px; width: auto; }
.header-menu { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); width: 100%; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1); }
/* «Mi cuenta», the same round button as the ERP header (UserMenu): leads to sign in */
.account-btn {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-muted);
}
.account-btn:hover { border-color: var(--color-brand); color: var(--color-brand); }
.site-nav a { padding: 6px var(--space-3); border-radius: var(--radius-md); color: var(--color-muted); font-weight: 500; line-height: 20px; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--color-text); }
/* Compact menu on mobile once js/menu.js is ready. While the module loads, (scripting: enabled)
   already shows it compact, so the header does not shrink and push the page up (CLS). */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
}
[data-menu-header][data-menu] .menu-toggle { display: inline-flex; }
@media (scripting: enabled) and (max-width: 1023px) {
  [data-menu-header]:not([data-menu]) .menu-toggle { display: inline-flex; }
  [data-menu-header]:not([data-menu]) .header-menu { display: none; }
}
.menu-icon,
.menu-icon::before,
.menu-icon::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.menu-icon { position: relative; }
.menu-icon::before,
.menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
[data-menu="open"] .menu-icon { background: transparent; }
[data-menu="open"] .menu-icon::before { top: 0; transform: rotate(45deg); }
[data-menu="open"] .menu-icon::after { top: 0; transform: rotate(-45deg); }
[data-menu-header][data-menu] .header-menu { display: none; }
[data-menu-header][data-menu="open"] .header-menu { display: flex; flex-direction: column; align-items: stretch; padding: var(--space-2) 0 var(--space-4); }
[data-menu="open"] .site-nav { flex-direction: column; align-items: stretch; }
[data-menu="open"] .site-nav a { padding: var(--space-3); }

/* Hero: the letter on the left, what is coming on the right */
.hero { padding: var(--space-8) 0 var(--space-8); }
.hero-grid { display: grid; gap: var(--space-8); align-items: start; }
.hero h1 { max-width: 17ch; }
.hero .lead { margin-bottom: var(--space-6); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: 0 0 var(--space-3); }
.hero .note { margin: 0; }

/* Agenda of deadlines (js/agenda.js): the most characteristic thing of a gestor's desk */
.agenda { padding: var(--space-6); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); }
.agenda-switch { display: inline-flex; gap: 2px; margin-bottom: var(--space-4); padding: 3px; border-radius: var(--radius-md); background: var(--color-raised); }
.agenda-switch button {
  min-height: 36px;
  padding: 0 var(--space-3);
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--color-muted);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
}
.agenda-switch button[aria-pressed="true"] { background: var(--color-surface); color: var(--color-text); box-shadow: 0 0 0 1px var(--color-border); }
.agenda h2 { margin: 0; font-family: var(--font); font-size: var(--text-md); font-weight: 600; letter-spacing: 0; }
.agenda-sub { margin: 0 0 var(--space-3); color: var(--color-muted); font-size: var(--text-sm); }
.agenda-list { margin: 0; padding: 0; list-style: none; }
.agenda-list[hidden] { display: none; }
.agenda-list li { display: grid; grid-template-columns: 56px 1fr; gap: var(--space-4); padding: var(--space-3) 0; border-top: 1px solid var(--color-border); }
.agenda-list time { font-family: var(--font-serif); font-size: 1.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.agenda-list li:first-child time { color: var(--color-brand); }
.agenda-list time small { display: block; margin-top: var(--space-1); color: var(--color-muted); font-family: var(--font); font-size: var(--text-xs); font-weight: 500; }
.agenda-list strong { display: block; font-weight: 600; }
.agenda-list p { margin: 2px 0 0; color: var(--color-muted); font-size: var(--text-sm); }
.agenda-note { margin: var(--space-3) 0 0; }
.agenda-label { margin: var(--space-4) 0 var(--space-2); font-size: var(--text-sm); font-weight: 600; }
/* Without JS: the whole year of both cases, each with its label. With JS: the switch and the next three.
   While the module loads, (scripting: enabled) already lays out the JS view, so the hero does not shrink (CLS). */
.agenda[data-agenda-ready] .agenda-label { display: none; }
@media (scripting: none) { .agenda-switch { display: none; } }
@media (scripting: enabled) {
  .agenda-label,
  .agenda:not([data-agenda-ready]) [data-agenda-list="sociedad"],
  .agenda:not([data-agenda-ready]) .agenda-list li:nth-child(n+4) { display: none; }
}

/* The product, real screens at full width (the gallery of js/gallery.js) */
.product { padding-top: var(--space-8); }
.gallery-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
/* Without JS every panel is stacked; with JS only the first shows from the start, so nothing below moves */
@media (scripting: none) {
  .gallery-bar { display: none; }
  .gallery-panel + .gallery-panel { margin-top: var(--space-12); }
}
@media (scripting: enabled) { .gallery:not([data-gallery-ready]) .gallery-panel + .gallery-panel { display: none; } }
.gallery-tabs { display: flex; flex-wrap: wrap; }
.gallery-views { display: inline-flex; }

/* Text selector, the one style of every tab list and two-way switch of the landing
   (gallery tabs, desktop/mobile view, quarterly/annual): no pill, the active option in
   bold with a bar in the brand colour. Call-to-action buttons keep their own look. */
.gallery-tabs, .gallery-views, .period-switch { gap: var(--space-6); }
.gallery-tab, .gallery-view, .period-switch button {
  position: relative;
  flex: none;
  min-height: 44px;
  padding: var(--space-2) 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--color-muted);
  font: inherit;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}
.gallery-tab:hover, .gallery-view:hover, .period-switch button:hover { color: var(--color-text); }
.gallery-tab[aria-selected="true"], .gallery-tab.is-active,
.gallery-view[aria-pressed="true"], .period-switch button[aria-pressed="true"] { color: var(--color-text); font-weight: 600; }
.gallery-tab[aria-selected="true"]::after, .gallery-tab.is-active::after,
.gallery-view[aria-pressed="true"]::after, .period-switch button[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 3px;
  border-radius: 2px;
  background: var(--color-brand);
}
.gallery-panel[hidden] { display: none; }
.screen { padding: var(--space-3) var(--space-3) 0; border: 1px solid var(--color-border); border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--color-raised); }
.gallery-shot { margin: 0 auto; }
.gallery-shot-movil { display: none; padding-bottom: var(--space-3); }
.gallery-shot-escritorio img { display: block; width: 100%; border-radius: 6px 6px 0 0; box-shadow: 0 0 0 1px var(--color-border); }
.gallery-shot-movil img { display: block; width: 100%; max-width: 300px; margin: 0 auto; border-radius: 18px; box-shadow: 0 0 0 1px var(--color-border); }
.gallery[data-view="movil"] .gallery-shot-escritorio { display: none; }
.gallery[data-view="movil"] .gallery-shot-movil { display: block; }
.screen-caption { margin: var(--space-3) 0 0; }

/* VeriFactu: a plain line in the hero and a short block of facts with its sources */
.hero-verifactu { margin: 0 0 var(--space-6); padding-left: var(--space-3); border-left: 3px solid var(--color-brand); }
.hero-verifactu a { color: var(--color-text); text-decoration: none; }
.hero-verifactu a:hover { text-decoration: underline; }
.hero-verifactu strong { color: var(--color-brand); font-weight: 600; }
.verifactu { display: grid; gap: var(--space-4); margin-top: var(--space-12); padding: var(--space-6); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); }
.verifactu h3 { font-family: var(--font-serif); font-size: 1.75rem; font-weight: 500; }
.verifactu-facts { margin: 0 0 var(--space-4); }
.verifactu-facts dt { margin-top: var(--space-4); font-weight: 600; }
.verifactu-facts dt:first-child { margin-top: 0; }
.verifactu-facts dd { margin: var(--space-1) 0 0; color: var(--color-muted); }
.verifactu-sources { margin: 0; }

/* What it takes off your hands: text rows on hairlines, one real screen each */
.jobs { margin: var(--space-12) 0 0; padding: 0; list-style: none; }
.job { display: grid; gap: var(--space-4); padding: var(--space-8) 0; border-top: 1px solid var(--color-border); }
.job h3 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 500; }
.job p { margin: 0; color: var(--color-muted); }
.job p + p { margin-top: var(--space-3); }
.job-shot img { display: block; width: 100%; border-radius: var(--radius-md); box-shadow: 0 0 0 1px var(--color-border); }
.seal { display: inline-flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-2); color: var(--color-muted); font-size: var(--text-sm); font-weight: 500; }
.marca-ia { display: inline-block; flex: none; width: 16px; height: 16px; line-height: 0; }
.marca-ia img { display: block; width: 16px; height: 16px; }

/* Self-employed or company: one ledger, two columns */
.ledger { display: grid; gap: 1px; overflow: hidden; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-border); }
.ledger-col { padding: var(--space-6); background: var(--color-surface); }
.ledger-col h3 { margin-bottom: var(--space-1); font-family: var(--font-serif); font-size: 1.6rem; font-weight: 500; }
.ledger-for { margin: 0 0 var(--space-4); color: var(--color-muted); }
.ledger-col ul { margin: 0 0 var(--space-4); padding-left: 1.1em; }
.ledger-col li { margin: var(--space-1) 0; }
.ledger-plan { margin: 0; color: var(--color-muted); font-size: var(--text-sm); }
.ledger-shot { margin-top: var(--space-4); }
.ledger-shot img { display: block; width: 100%; border-radius: var(--radius-md); box-shadow: 0 0 0 1px var(--color-border); }
.ledger-more { margin: var(--space-6) 0 0; color: var(--color-muted); }

/* Plans: one card per plan from js/plans.js */
.period-switch { display: none; margin-top: var(--space-6); }
[data-period] .period-switch { display: inline-flex; }
.grid { display: grid; gap: var(--space-4); grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; }
.plans { align-items: stretch; }
.plan-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}
.plan-card.is-highlighted { border-color: var(--color-brand); box-shadow: inset 0 0 0 1px var(--color-brand); }
.plan-badge { align-self: flex-start; margin: 0 0 var(--space-3); color: var(--color-brand); font-size: var(--text-xs); font-weight: 600; }
.plan-name { margin: 0; font-family: var(--font-serif); font-size: 1.5rem; font-weight: 500; line-height: 1.2; }
.plan-tagline { margin-bottom: var(--space-4); color: var(--color-muted); font-size: var(--text-sm); }
.plan-price { margin: 0; color: var(--color-muted); font-size: var(--text-xs); }
.plan-price strong { color: var(--color-text); font-family: var(--font-serif); font-size: 2rem; font-weight: 500; line-height: 40px; font-variant-numeric: tabular-nums; }
/* Price a month in large type; below, what is actually paid: a quarter or a year, as the switch says */
.plan-price-billed { margin: 0; color: var(--color-muted); font-size: var(--text-xs); }
.plan-price-a,
[data-period="annual"] .plan-price-q { display: none; }
[data-period="annual"] .plan-price-a { display: block; }
.plan-bullets { flex: 1; display: grid; align-content: start; gap: var(--space-2); margin: var(--space-4) 0 var(--space-6); padding: var(--space-4) 0 0; border-top: 1px solid var(--color-border); list-style: none; font-size: var(--text-sm); }
.plan-bullets li { display: grid; grid-template-columns: 14px 1fr; gap: var(--space-2); line-height: 20px; }
.plan-bullets li::before { content: "✓"; color: var(--color-success); font-weight: 600; }
.plan-bullets li::first-letter { text-transform: uppercase; }
.plan-card .btn { width: 100%; }
.plans-note { margin-top: var(--space-6); }
.plans-compare { margin: var(--space-4) 0 0; }

/* /planes: the full comparison, one column per plan, from js/plan-table.js */
.back-link { color: var(--color-muted); font-weight: 500; }
.compare-page h1 { font-size: var(--text-2xl); }
.section-head-start .lead { margin-left: 0; }
.compare-page { border-top: 0; }
.compare-hint { margin: 0 0 var(--space-3); color: var(--color-muted); font-size: var(--text-xs); }
.compare-scroll { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); }
.compare-scroll:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; }
.compare-table { width: 100%; min-width: 600px; border-collapse: separate; border-spacing: 0; font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.compare-table td { white-space: nowrap; }
.compare-table th, .compare-table td { padding: var(--space-3); border-bottom: 1px solid var(--color-border); text-align: center; vertical-align: middle; }
.compare-table thead th, .compare-table thead td { vertical-align: bottom; border-bottom: 2px solid var(--color-text); background: var(--color-surface); }
.compare-table th[scope="row"] { position: sticky; left: 0; z-index: 1; min-width: 140px; background: var(--color-surface); font-weight: 500; text-align: left; }
.compare-table th[scope="row"] small { display: block; color: var(--color-muted); font-size: var(--text-xs); font-weight: 400; line-height: 1.4; }
.compare-group th { position: sticky; left: 0; background: var(--color-raised); font-weight: 600; text-align: left; }
.compare-plan { display: block; font-family: var(--font-serif); font-size: 1.25rem; font-weight: 500; }
.compare-price { display: block; color: var(--color-muted); font-size: var(--text-xs); }
.compare-price strong { color: var(--color-text); font-size: var(--text-md); font-weight: 600; }
.compare-billed { display: block; white-space: nowrap; }
/* Same period switch as the cards; .compare-price sets display, so the hidden period needs the table scope */
.compare-table .plan-price-a,
[data-period="annual"] .compare-table .plan-price-q { display: none; }
[data-period="annual"] .compare-table .plan-price-a { display: block; }
.compare-yes::before { content: "✓"; color: var(--color-success); font-weight: 600; }
.compare-no::before { content: "—"; color: var(--color-muted); }
.compare-scroll + .note { margin-top: var(--space-4); }
.compare-actions { margin-top: var(--space-6); }

/* FAQ: a plain list on hairlines */
.faq { border-bottom: 1px solid var(--color-border); }
.faq details { border-top: 1px solid var(--color-border); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 44px;
  padding: var(--space-4) 0;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--color-brand); font-size: 1.25rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { max-width: 62ch; margin: 0; padding: 0 0 var(--space-4); color: var(--color-muted); }

/* Contact and the last call */
.contact-grid { display: grid; gap: var(--space-8); align-items: start; }
.contact-start { margin-top: var(--space-6); }
.lead-form { display: grid; gap: var(--space-4); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; }
.optional { margin-left: 6px; color: var(--color-muted); font-size: var(--text-xs); font-weight: 500; }
.field input,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px var(--space-3);
  border: 1px solid var(--color-input-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  font-size: 1rem;
}
.field input:focus,
.field textarea:focus { border-color: var(--color-brand); }
.field textarea { resize: vertical; }
.field-check { grid-template-columns: auto 1fr; align-items: start; gap: 10px; }
.field-check input { width: 20px; min-height: 0; height: 20px; margin-top: 2px; accent-color: var(--color-brand); }
.field-check label { font-weight: 400; }
.lead-form .btn { justify-self: start; }
.lead-captcha:empty { display: none; }
.lead-captcha { min-height: 65px; }
.form-status { margin: 0; font-weight: 600; }
.form-success { color: var(--color-success); }
.form-error { color: var(--color-error); }

/* Honeypot: out of sight, out of tab order */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { padding: var(--space-8) 0; border-top: 1px solid var(--color-border); color: var(--color-muted); font-size: var(--text-sm); }
.footer-grid { display: grid; gap: var(--space-8) var(--space-6); grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand p { max-width: 384px; margin: var(--space-3) 0 0; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.footer-col p { margin: 0; }
.footer-title { margin: 0 0 var(--space-1); color: var(--color-text); font-family: var(--font); font-size: var(--text-sm); font-weight: 600; letter-spacing: 0; }
.site-footer a:not(.logo) { color: var(--color-muted); text-decoration: none; }
.site-footer a:not(.logo):hover { color: var(--color-brand); text-decoration: underline; }
.footer-bottom { margin-top: var(--space-8); padding-top: var(--space-4); border-top: 1px solid var(--color-border); }
.footer-bottom p { margin: 0; }

/* Legal and error pages: same header, footer and type */
.legal { padding: var(--space-12) 0 var(--space-16); }
.legal-body { padding-top: var(--space-6); padding-bottom: var(--space-6); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); }
.legal h1 { margin-bottom: var(--space-6); font-size: var(--text-2xl); }
.legal h2 { margin-top: var(--space-8); font-size: 1.5rem; }
.legal h3 { margin-top: var(--space-6); }
.legal p,
.legal li { color: var(--color-muted); }
.legal ul,
.legal ol { padding-left: 1.3rem; }
.table-scroll { overflow-x: auto; margin: var(--space-4) 0; }
.legal table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: var(--text-sm); }
.legal th,
.legal td { border: 1px solid var(--color-border); padding: var(--space-2); text-align: left; vertical-align: top; }
.legal th { background: var(--color-raised); color: var(--color-text); }
/* Content pages (docs/landing/paginas, build_legal.py): the legal layout plus a breadcrumb and a call to action */
.breadcrumb { margin-bottom: var(--space-4); color: var(--color-muted); font-size: var(--text-sm); }
.breadcrumb a { color: var(--color-muted); }
.pagina table { min-width: 0; }
.pagina-cta { margin-top: var(--space-8); padding: var(--space-6); border-radius: var(--radius-md); background: var(--color-raised); }
.pagina-cta p:last-child { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: 0; }
.page-404 { padding-top: var(--space-16); padding-bottom: var(--space-16); }

/* Phones */
@media (max-width: 639px) {
  .account-btn { width: 44px; height: 44px; }
  /* Phone screens of the rows: a phone's width, not the page's */
  .job-shot img, .ledger-shot img, .verifactu .job-shot img { max-width: 240px; margin: 0 auto; border-radius: 16px; }
  .actions .btn,
  .lead-form .btn { width: 100%; }
}

/* Phones: the gallery tabs become a wheel (js/rueda.js): one row that scrolls sideways,
   without a scrollbar. The look is the shared text selector above. */
@media (max-width: 639px) {
  .gallery-tabs[data-rueda] {
    position: relative;
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .gallery-tabs[data-rueda]::-webkit-scrollbar { display: none; }
  .gallery-tabs[data-rueda="quieta"] { justify-content: center; }
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
  .section { padding: var(--space-16) 0; }
  .legal-body { padding: var(--space-12); }
  .ledger { grid-template-columns: 1fr 1fr; }
  .ledger-col { padding: var(--space-8); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
  .screen { padding: var(--space-4) var(--space-4) 0; }
  .compare-hint { display: none; }
  .compare-table th, .compare-table td { padding: var(--space-3) var(--space-4); }
  .compare-table th[scope="row"] { min-width: 220px; }
}

@media (min-width: 960px) {
  .hero { padding: var(--space-12) 0; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: var(--space-12); }
  .job { grid-template-columns: 1fr 1.4fr; gap: var(--space-12); align-items: start; }
  .verifactu { grid-template-columns: 1.1fr 1fr; gap: var(--space-8); padding: var(--space-8); }
}

@media (min-width: 1024px) {
  [data-menu-header][data-menu] .menu-toggle { display: none; }
  [data-menu-header][data-menu] .header-menu,
  .header-menu { display: flex; flex: 1; flex-direction: row; align-items: center; width: auto; padding: 0; }
  .account-btn { order: 3; }
  .header-menu { order: 2; }
  .site-nav { flex: 1; flex-direction: row; justify-content: center; }
  .logo { margin-right: var(--space-6); }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 5fr 7fr; gap: var(--space-16); }
}

/* Five plans side by side only when each card keeps room for its bullets */
@media (min-width: 1200px) {
  .plans { grid-template-columns: repeat(5, 1fr); }
}

/* Motion only answers a press: buttons, the agenda switch and the selectors. Off with reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .btn, .agenda-switch button { transition: transform 140ms var(--ease-out), background-color 160ms ease, color 160ms ease; }
  .btn:active, .agenda-switch button:active { transform: scale(0.97); }
  .gallery-tab, .gallery-view, .period-switch button { transition: color 0.15s ease; }
  .agenda-list { transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out); }
  .agenda-list.is-entering { opacity: 0; transform: translateY(4px); }
}
