/* faro-landing/lib/site.css: the shared site stylesheet (14 Oct 2026).
 * Linked by every page after its own <style>. Tokens only, no colour literals.
 *
 * CENTERING STANDARD (operator decision 14 Oct 2026 12:12 ET): remaining blocks
 * in an incomplete grid row are always centered as a group; card content is
 * centered. Cards in these grids have ONE fixed width (--cg-w), so a last row
 * has exactly the width of the rows above and the group sits on the container
 * center. Section headings above a grid are centered. */
html :is(.grid, .problem-grid, .features-grid, .grid-2, .grid-3, .roi-grid, .feature-grid) {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch;
  --cg-gap: var(--sp-item); gap: var(--cg-gap); margin-inline: auto;
}
html :is(.grid, .problem-grid, .features-grid, .grid-2, .grid-3, .roi-grid, .feature-grid) > * {
  flex: 0 0 min(100%, var(--cg-w, 300px)); width: auto; min-width: 0; max-width: 100%;
  margin-block: 0; text-align: center;
}
html :is(.grid, .problem-grid, .features-grid, .grid-2, .grid-3, .roi-grid, .feature-grid) > * :is(h2, h3, h4, p, div, ul, ol) { text-align: center; }
html :is(.grid, .problem-grid, .features-grid, .grid-2, .grid-3, .roi-grid, .feature-grid) > * :is(ul, ol) { list-style-position: inside; padding-left: 0; }
html .grid { --cg-w: 300px; }
html .features-grid { --cg-w: calc((100% - var(--cg-gap)) / 2); }
html .problem-grid { --cg-w: 250px; }
html .problem-grid.cg-2 { --cg-w: calc((100% - var(--cg-gap)) / 2); }
html .grid-2 { --cg-w: 280px; }
html .grid-3 { --cg-w: 220px; }
html .roi-grid { --cg-w: 220px; }
html .feature-grid > .feature-card {
  flex: 0 0 var(--cg-w);
  width: var(--cg-w);
  max-width: var(--cg-w);
  box-sizing: border-box;
}
html .feature-grid { --cg-w: calc((100% - 2 * var(--cg-gap)) / 3); }
@media (max-width: 900px) { html .feature-grid { --cg-w: calc((100% - var(--cg-gap)) / 2); } }
@media (max-width: 640px) { html .features-grid, html .problem-grid.cg-2, html .feature-grid { --cg-w: 100%; } }
/* the tabs row of the features page: same rule, whole rows only (8 tabs) */
html .tabs { justify-items: stretch; }
html .tabs [role="tab"] { text-align: center; align-items: center; }
html .feature-card header { flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; gap: .45rem; padding: 0; }
html .feature-card header .fstatus { position: static; margin: 0; }
html .feature-card .card-foot p { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
html .feature-card .card-foot .pills { justify-content: center; }

/* SILENT ROW STRUCTURE (desktop & tablet): aligns header, job, workflow, and card-foot across columns */
@media (min-width: 641px) {
  html .feature-grid > .feature-card {
    display: flex;
    flex-direction: column;
    height: auto;
    box-sizing: border-box;
  }
  html .feature-card header {
    height: 5.6rem;
    min-height: 5.6rem;
    max-height: 5.6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: .45rem;
    padding: 0;
    box-sizing: border-box;
  }
  html .feature-card header h3 {
    height: 3.4rem;
    min-height: 3.4rem;
    max-height: 3.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0;
  }
  html .feature-card header .fstatus {
    position: static;
    margin: 0;
  }
  html .feature-card .job {
    height: 3.8rem;
    min-height: 3.8rem;
    max-height: 3.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0;
    box-sizing: border-box;
  }
  html .feature-card .workflow {
    height: 6.8rem;
    min-height: 6.8rem;
    max-height: 6.8rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    margin: 0;
    box-sizing: border-box;
    overflow: hidden;
  }
  html .feature-card .card-foot {
    margin-top: 0;
    padding-top: .75rem;
    border-top: 1px solid var(--border);
    height: 7.4rem;
    min-height: 7.4rem;
    max-height: 7.4rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: .45rem;
  }
  html .feature-card .card-foot p.roles {
    height: 3.2rem;
    min-height: 3.2rem;
    max-height: 3.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    margin: 0;
    gap: .25rem;
    box-sizing: border-box;
  }
  html .feature-card .card-foot p.proof {
    height: 2.6rem;
    min-height: 2.6rem;
    max-height: 2.6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    margin: 0;
    gap: .25rem;
    box-sizing: border-box;
  }
  html .feature-card .card-foot .pills {
    justify-content: center;
  }
}
/* section headings above grids */
html :is(h2, h3):has(+ :is(.grid, .problem-grid, .features-grid, .grid-2, .grid-3, .roi-grid, .feature-grid)),
html .feature-area h2, html .area-copy, html .features-page > h1, html .features-page > .lead { text-align: center; margin-inline: auto; }
html .area-head { justify-content: center; text-align: center; }
html .area-copy .area-intro, html .features-page .lead { margin-inline: auto; }
html .area-cta { text-align: center; }

/* VERTICAL SPACING TOKENS (operator decision 14 Oct 2026 12:26 ET): section / heading / item / title scale.
 * No block-to-block empty gap above 48px on mobile or 96px on desktop. */
:root { --sp-section: 1rem; --sp-heading: .75rem; --sp-item: .75rem; --sp-title: .25rem; }
@media (min-width: 768px) { :root { --sp-section: 2rem; --sp-heading: 1.25rem; --sp-item: 1rem; } }
html section, html .hero:not(.pin), html .cta-box { padding-block: var(--sp-section); }
html :is(.container, .features-page) > :is(h1, h2) { margin-bottom: var(--sp-heading); }
html :is(.subline, .fine, .compare-toggle, .table-wrap, .faq-list, .billing, .cta-row) { margin-top: var(--sp-heading); }
html :is(.includes-title, .lead, .subline) { margin-bottom: var(--sp-heading); }
html :is(.tiers, .tiles, .faq-list) { gap: var(--sp-item); }
html .tile { gap: var(--sp-title); }
html .tile :is(h3, p) { margin: 0; }
html .fine + .fine { margin-top: var(--sp-title); }
html :is(.card, .svc, .faq-item) { margin-bottom: 0; }
html main > .container > :is(.card, .svc) + :is(.card, .svc) { margin-top: var(--sp-item); }
html main { padding-block: 0; }
html main:not(:has(section)) { padding-block: var(--sp-section); }
html footer { padding-block: var(--sp-section); }
html footer .links { margin-bottom: var(--sp-heading); }
html body { min-height: 0; }
html article { padding-block: var(--sp-section); }
html :is(.cta-box, div.cta, .calc, div.price-row) { margin-block: var(--sp-heading); }
html :is(.cta-box, div.cta, .calc, .member, .card, .svc, details):last-child { margin-bottom: 0; }
html :is(section, .container) > h2:first-child { margin-top: 0; }
html :is(main, article) > h1:first-child, html main > .container > h1:first-child { margin-top: 0; }
html :is(main, article, .container) > :is(h1, h2, h3):not(.includes-title) { margin-bottom: var(--sp-heading); }
html h3.section { margin-top: var(--sp-heading); }
html :is(main, article, .container, section, .card) > p:last-child { margin-bottom: 0; }
html .member, html .case-card, html .post-card { margin-bottom: var(--sp-item); }
html main > h2 { margin-top: var(--sp-heading); }
html article table { display: block; overflow-x: auto; max-width: 100%; }
html :is(main, section, article) > .container > h2:not(:first-child) { margin-top: var(--sp-heading); }
html section[class]:not(.pin) { padding-block: var(--sp-section); }
html header :is(a.cta, .cta) { margin-block: 0; }
html .eyebrow { margin-top: 0; margin-bottom: var(--sp-heading); }
/* COMPARISON TABLES (operator decision 14 Oct 2026 12:30 ET): no empty cells; included = check icon + "Incluido", centered */
.incl { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; color: var(--status-live, var(--green)); font-weight: 700; }
.incl svg { flex: none; }
.no-incl { color: var(--cream-muted, var(--fg-muted)); font-weight: 400; }
html table :is(td, th):not(:first-child) { text-align: center; }
html table.compare td, html table.compare th, html table :is(td, th) .incl { vertical-align: middle; }
@media (max-width: 640px) {
  .incl { flex-direction: column; gap: .15rem; }
  html table.compare :is(td, th) { padding-inline: 4px; }
  html table.compare tbody th, html table.compare thead th:first-child { width: 31%; }
  html table.compare td, html table.compare thead th:not(:first-child) { width: 23%; }
  html .table-wrap { padding: .5rem; }
}
.date-chip { display: inline-flex; align-items: center; justify-content: center; gap: .35em; padding: .1em .6em; border-radius: 999px; font-size: .78rem; font-weight: 700; line-height: 1.5; letter-spacing: .01em; border: 1px solid var(--border, var(--line)); background: var(--bg-card-2, var(--navy-deep)); color: var(--cream-muted, var(--fg-muted)); max-width: 100%; }
.date-chip::before { content: ""; width: .5em; height: .5em; border-radius: 50%; background: currentColor; opacity: .9; }
.date-chip.fstatus-live { color: var(--status-live, var(--green)); }
.date-chip.fstatus-launching { color: var(--status-launching, var(--gold)); }
.date-chip.fstatus-projected { color: var(--status-projected, var(--cream-muted)); }
.date-chip.fstatus-unavailable { color: var(--status-unavailable, var(--cream-muted)); }
/* comparison tables that scroll inside their own container keep the first column visible and every cell readable */
html .table-wrap table :is(th:first-child, td:first-child) { position: sticky; left: 0; z-index: 1; background: var(--navy-soft, var(--surface, var(--bg-card, var(--navy)))); }
html .table-wrap table thead th:first-child { z-index: 2; }
.date-chip { white-space: nowrap; }
@media (max-width: 640px) { .date-chip { padding-inline: .4em; } .date-chip::before { display: none; } }

/* STATUS PANEL (operator decision 14 Oct 2026): legend, note, WhatsApp CTA and register version are one bordered block */
html .status-panel { margin: var(--sp-heading) auto 0; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--bg-card-2); overflow: hidden; }
html .status-panel .status-legend-wrap { margin: 0; border: 0; border-radius: 0; background: transparent; }
html .status-panel .status-legend { padding: 0 1.1rem 1.1rem; gap: var(--sp-item); }
html .status-panel .status-legend li { text-align: center; }
html .status-panel .status-legend .fstatus { margin: 0 auto .4rem; }
html .status-panel .status-legend p { font-size: .92rem; }
html .status-panel-foot { border-top: 1px solid var(--border); padding: 1.1rem; text-align: center; display: grid; justify-items: center; gap: .75rem; }
html .status-panel-foot p { margin: 0; color: var(--fg-muted); max-width: 62ch; }
html .status-panel-foot .proof { font-size: .85rem; }
@media (min-width: 641px) and (max-width: 900px) { html .status-panel .status-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 901px) { html .status-panel .status-legend { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* SHARED SITE FOOTER (landing reconcile 2026-10-18): one nav on every page; tokens only. */
html footer.site-footer { border-top: 1px solid var(--border); text-align: center; font-size: .9rem; color: var(--fg-muted); }
html footer.site-footer .links { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
html footer.site-footer .links a { color: var(--fg-muted); }
html footer.site-footer .links a:hover { color: var(--accent); }
html footer.site-footer .legal-links { font-size: .8rem; }
html p.footer-note { max-width: var(--max-width); margin: 0 auto; padding: var(--sp-section) var(--gutter) 0; text-align: center; font-size: .85rem; color: var(--fg-muted); }
html p.footer-note a { color: var(--accent); }

/* one shared header (landing polish, 22 Oct 2026): every page carries the same markup (brand, Servicios, Precios, Solicitar demo); the layout of the nav lives here so pages without their own nav rule match */
header.topnav nav { display: flex; gap: 1.25rem; align-items: center; }
header.topnav nav a:not(.cta) { font-size: .9rem; text-decoration: none; }
header.topnav .brand .mark { border-radius: 50%; overflow: hidden; }
header.topnav .brand .mark img { object-fit: cover; }

/* backstop: nothing may scroll sideways (clip does not create a scroll container, so sticky positioning keeps working); the sources of overflow are fixed at the element, this only guarantees the page never moves */
html, body { overflow-x: clip; }
@media (max-width: 480px) {
  header.topnav .container, .topnav .container { padding-left: 12px !important; padding-right: 12px !important; }
  header.topnav nav { gap: .5rem !important; }
  header.topnav nav a:not(.cta) { font-size: .8rem !important; }
  header.topnav nav a.cta, .topnav .cta { padding: .35rem .6rem !important; font-size: .78rem !important; }
  header.topnav .brand span:not(.mark), .brand span:not(.mark) { font-size: .95rem !important; }
}
@media (max-width: 360px) {
  header.topnav nav { gap: .35rem !important; }
  header.topnav nav a:not(.cta) { font-size: .75rem !important; }
  header.topnav nav a.cta, .topnav .cta { padding: .3rem .5rem !important; font-size: .72rem !important; }
}
@media (max-width: 340px) {
  header.topnav .container, .topnav .container { padding-left: 8px !important; padding-right: 8px !important; }
  header.topnav nav { gap: .25rem !important; }
  header.topnav nav a:not(.cta) { font-size: .7rem !important; }
  header.topnav nav a.cta, .topnav .cta { padding: .25rem .4rem !important; font-size: .68rem !important; }
  header.topnav .brand span:not(.mark), .brand span:not(.mark) { font-size: .85rem !important; }
}
header.topnav nav a:not(.cta) { color: var(--cream, var(--fg, inherit)); }
header.topnav nav a:not(.cta):hover { color: var(--gold, var(--accent, currentColor)); }
