/* StriatumOS Consulting: one stylesheet for every page (homepage and /servicios/).
   Built into dist/assets/site.<hash>.css by tools/build.mjs; the hash changes when this file does. */
:root {
  /* Rainbow taken from the logo (#CC0907 #E3710D #F2D00D #016C20 #022794 #6F0281),
     with red, green, blue and violet lightened to reach 4.5:1 on the dark card.
     Teal and pink are extra card hues (7.0:1 and 5.7:1 on the card), so eight service cards each get their own. */
  --red: #F04A47;
  --orange: #E3710D;
  --yellow: #F2D00D;
  --green: #1FA34A;
  --blue: #5B82F5;
  --violet: #C455DE;
  --teal: #14B8A6;
  --pink: #F0609E;
  --rainbow: linear-gradient(90deg, var(--red), var(--orange), var(--yellow), var(--green), var(--blue), var(--violet));

  --bg: #0E1014;
  --surface: #171A20;
  --text: #E8EAED;
  --heading: #F3F4F6;
  --muted: #A0A6B0;
  --line: #2A2F38;
  --field: #3A404B;  /* input and dashed borders */
  --soft: #C5CAD3;   /* secondary text that sat between body and muted */
  --slate: #2B313C;  /* dark fill for primary buttons and step numbers */
  --ink: #0E1014;    /* text on a coloured fill */

  --radius: 14px;
  --max: 1080px;
  --gutter: 20px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
/* Traditional Chinese pages (/zh/): the same stack, then the system's Traditional Chinese fonts. No web font. */
html:lang(zh) { --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; display: block; height: 5px; background: var(--rainbow); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { color: var(--heading); line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { padding: 14px 0; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; }
.brand { display: block; flex: none; }
.brand img { height: 54px; width: auto; }
.nav { display: none; gap: 24px; margin-left: auto; }
.nav a { color: var(--soft); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--text); text-decoration: underline; }
.lang { margin-left: auto; display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); }
.lang a {
  font: 600 13px/1 var(--font); letter-spacing: 0.04em; color: var(--muted);
  padding: 8px 12px; border-radius: 999px; text-decoration: none; display: inline-block;
}
.lang a[aria-current="page"] { background: var(--slate); color: #fff; }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 22px; border-radius: 999px;
  font: 600 16px/1.2 var(--font); text-decoration: none; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, .45); text-decoration: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary {
  color: #fff;
  border: 3px solid transparent;
  background: linear-gradient(var(--slate), var(--slate)) padding-box, var(--rainbow) border-box;
}
.btn-small { min-height: 42px; padding: 8px 18px; font-size: 15px; }

/* Hero */
.hero { padding: 48px 0 72px; }
.hero h1 { font-size: clamp(34px, 7.5vw, 60px); font-weight: 700; max-width: 19ch; }
.hero-bar { width: 112px; height: 5px; border-radius: 5px; background: var(--rainbow); margin: 26px 0; }
.hero .lead { font-size: clamp(18px, 2.4vw, 21px); color: var(--soft); max-width: 60ch; }
.hero .for-example { color: var(--muted); max-width: 60ch; margin-top: 16px; font-size: 16px; }
.hero .guide { color: var(--text); max-width: 60ch; margin-top: 16px; font-size: 16px; font-weight: 500; }
.hero .btns { margin-top: 32px; }
.hero .note { margin-top: 16px; font-size: 15px; color: var(--muted); }

/* Sections */
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line); }
.section-head { margin-bottom: 36px; }
.section-head h2 { font-size: clamp(27px, 4.4vw, 38px); }
.section-intro { color: var(--soft); font-size: 18px; max-width: 64ch; margin-top: 14px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }

.grid { display: grid; gap: 18px; grid-template-columns: 1fr; }

/* Service cards: each gets its own colour edge and icon chip */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; position: relative; overflow: hidden;
}
.service { border-left: 5px solid var(--c); padding-left: 24px; display: flex; flex-direction: column; }
.service > p { margin-bottom: 22px; }
.chip {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--c); color: var(--ink); margin-bottom: 16px;
}
.chip svg { width: 24px; height: 24px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 16px; }
.service > p strong { color: var(--text); font-weight: 600; }
.svc-link { display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0 14px; font-size: 15px; font-weight: 600; }
.faq { max-width: 760px; }
.faq-item { padding: 22px 0; border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: 18px; margin-bottom: 8px; }
.faq-item p { color: var(--soft); }

/* Example cards */
.example { display: flex; flex-direction: column; gap: 12px; padding-top: 30px; }
.example::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--c); }
.example h3 { margin: 0; }
.example h3 a { color: var(--heading); text-decoration: none; }
.example h3 a:hover { text-decoration: underline; }
.example .summary { color: var(--text); font-weight: 500; }
.example { overflow-wrap: anywhere; }
.example .meta { font-size: 15px; border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 6px; }
.example .meta strong { color: var(--text); }
.more { display: grid; gap: 10px; }
.more > summary {
  justify-self: start; cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; font-size: 15px; font-weight: 600; color: var(--soft);
}
.more > summary::-webkit-details-marker { display: none; }
.more > summary::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .15s ease; }
.more[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.more > summary:hover { color: var(--text); }
.more[open] .when-closed, .more:not([open]) .when-open { display: none; }
.more > :not(summary) { display: grid; gap: 10px; }
.ex-actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.ex-actions .gh { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; font-size: 15px; font-weight: 600; }
.ex-actions .gh svg { width: 18px; height: 18px; }

/* Example clips: 4:5 recordings of each tool. Sources load only near the screen,
   play only while on screen, and wait behind the poster with reduced motion. */
.clip {
  position: relative; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden;
  background: color-mix(in srgb, var(--c) 10%, var(--bg)); border: 1px solid var(--line);
}
.clip video, .clip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.clip-btn {
  position: absolute; right: 8px; bottom: 8px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; padding: 0;
  border: 1px solid rgba(255, 255, 255, .35); background: rgba(14, 16, 20, .72); color: #fff;
  opacity: .8; transition: opacity .15s ease, transform .15s ease;
}
.clip-btn:hover, .clip-btn:focus-visible { opacity: 1; }
.clip-btn svg { width: 18px; height: 18px; }
.clip-btn .i-play, .clip.is-playing .clip-btn .i-pause { display: block; }
.clip-btn .i-pause, .clip.is-playing .clip-btn .i-play { display: none; }
.clip.is-paused-by-user .clip-btn, .clip.is-motionless .clip-btn {
  inset: 50% auto auto 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; opacity: 1;
}
.clip.is-paused-by-user .clip-btn svg, .clip.is-motionless .clip-btn svg { width: 26px; height: 26px; }
/* Image-only clip: a still preview in the same 4:5 slot, cropped from the top-left corner
   (where an app's title and first panel sit). No play button, nothing to wait for. */
.clip.is-image { background: var(--bg); }
.clip.is-image img { object-position: left top; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; }
.steps .card::before {
  content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  font-weight: 700; color: #fff; background: var(--slate); margin-bottom: 16px;
}

/* Contact */
.contact-grid { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: start; }
.contact-intro p { color: var(--soft); font-size: 18px; max-width: 46ch; margin-top: 14px; }
.contact-intro .btns { margin-top: 26px; }
.contact-lines { margin-top: 22px; display: grid; gap: 6px; font-size: 16px; }
form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; color: var(--heading); }
.optional { font-weight: 400; color: var(--muted); }
input, textarea {
  font: 16px/1.5 var(--font); color: var(--text); background: var(--bg);
  border: 1px solid var(--field); border-radius: 10px; padding: 12px 14px; width: 100%;
}
textarea { min-height: 170px; resize: vertical; }
input:focus, textarea:focus { outline: 3px solid color-mix(in srgb, var(--blue) 40%, transparent); border-color: var(--blue); }
.form-note, .privacy { font-size: 14px; color: var(--muted); }
.privacy { display: flex; gap: 8px; align-items: center; }
.privacy svg { width: 16px; height: 16px; flex: none; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 56px 0 40px; position: relative; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--rainbow); }
.footer-cta { display: flex; flex-direction: column; gap: 18px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.footer-cta h2 { font-size: 26px; }
.footer-meta { padding-top: 24px; display: grid; gap: 6px; font-size: 15px; color: var(--muted); }

/* Service demos: short looping clips drawn in HTML/CSS. The resting styles are
   the final frame (shown with reduced motion or no JS); the keyframes only run
   once JS adds .is-ready, and --play pauses them while the card is off screen. */
.demo {
  --play: paused; --dur: 4s; --tint: color-mix(in srgb, var(--c) 18%, var(--surface));
  position: relative; margin-top: auto; height: 200px; flex: none; padding: 30px 10px 10px;
  border-radius: 12px; background: color-mix(in srgb, var(--c) 7%, var(--bg));
  display: flex; align-items: stretch; gap: 8px; overflow: hidden;
  font-size: 10px; line-height: 1.35; color: var(--text); user-select: none;
}
.demo.is-playing { --play: running; }
.demo-tag {
  position: absolute; top: 8px; left: 10px; font-size: 10px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px;
}
.demo-phone {
  flex: 0 0 44%; max-width: 140px; background: #0B141A; border: 3px solid #3A404B;
  border-radius: 14px; overflow: hidden; display: flex; flex-direction: column;
}
.demo-phone-top {
  background: var(--c); color: var(--ink); font-weight: 600; padding: 5px 7px;
  display: flex; align-items: center; gap: 5px; white-space: nowrap;
}
.demo-phone-top i { width: 12px; height: 12px; border-radius: 50%; background: rgba(14,16,20,.55); flex: none; }
.demo-chat { padding: 6px; display: grid; gap: 5px; align-content: start; }
.demo-bubble {
  background: #202C33; border-radius: 2px 8px 8px 8px; padding: 4px 6px;
  box-shadow: 0 1px 0 rgba(0,0,0,.3); max-width: 95%;
}
.demo-map {
  height: 38px; border-radius: 5px; margin-bottom: 3px; position: relative;
  background:
    linear-gradient(90deg, transparent 46%, #4A5852 46% 54%, transparent 54%),
    linear-gradient(0deg, transparent 40%, #4A5852 40% 50%, transparent 50%), #24332B;
}
.demo-chat .demo-map { height: 30px; }
.demo-pin { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -13px 0 0 -7px; color: var(--c); }
.demo-arrow { align-self: center; flex: none; width: 14px; height: 14px; color: var(--c); }
.demo-dash {
  flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; display: flex; flex-direction: column; overflow: hidden;
}
.demo-dash-top { padding: 6px 8px; font-weight: 700; color: var(--heading); border-bottom: 1px solid var(--line); }
.demo-rows { flex: 1; overflow: hidden; }
.demo-row {
  height: 42px; padding: 0 8px; display: flex; align-items: center; gap: 6px;
  border-bottom: 1px solid var(--line);
}
.demo-row.is-new { background: var(--tint); }
.demo-row .demo-map { flex: none; width: 24px; height: 24px; margin: 0; }
.demo-row .demo-pin { width: 11px; height: 11px; margin: -9px 0 0 -5.5px; }
.demo-row-text { min-width: 0; flex: 1; display: grid; }
.demo-row-text > b, .demo-row-text span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-row-text > span { color: var(--muted); }
.demo p { font-size: inherit; color: var(--text); }
.demo-row-text > b { color: var(--heading); }
.demo-row-sub { display: flex; align-items: center; gap: 4px; }
.demo-badge { flex: none; background: var(--c); color: var(--ink); border-radius: 999px; padding: 0 5px; font-size: 9px; font-style: normal; }
.demo-skel { flex: 1; display: grid; gap: 5px; }
.demo-skel i { display: block; height: 5px; border-radius: 3px; background: var(--line); }
.demo-skel i + i { width: 60%; }

/* Shared timing: .at-NN fades an item in at NN% of the loop; .until-NN shows it
   only until NN%. Items in a .demo-swap stack on top of each other. */
.demo-swap { display: inline-grid; }
.demo-swap > * { grid-area: 1 / 1; }
.demo [class*="until-"] { opacity: 0; }
.demo.is-ready .at-08 { animation: demo-in-08 var(--dur) infinite var(--play); }
.demo.is-ready .at-14 { animation: demo-in-14 var(--dur) infinite var(--play); }
.demo.is-ready .at-20 { animation: demo-in-20 var(--dur) infinite var(--play); }
.demo.is-ready .at-26 { animation: demo-in-26 var(--dur) infinite var(--play); }
.demo.is-ready .at-32 { animation: demo-in-32 var(--dur) infinite var(--play); }
.demo.is-ready .at-38 { animation: demo-in-38 var(--dur) infinite var(--play); }
.demo.is-ready .at-58 { animation: demo-in-58 var(--dur) infinite var(--play); }
.demo.is-ready .at-64 { animation: demo-in-64 var(--dur) infinite var(--play); }
.demo.is-ready .at-70 { animation: demo-in-70 var(--dur) infinite var(--play); }
.demo.is-ready .at-78 { animation: demo-in-78 var(--dur) infinite var(--play); }
.demo.is-ready .until-14 { animation: demo-out-14 var(--dur) infinite var(--play); }
.demo.is-ready .until-26 { animation: demo-out-26 var(--dur) infinite var(--play); }
.demo.is-ready .until-38 { animation: demo-out-38 var(--dur) infinite var(--play); }
.demo.is-ready .until-64 { animation: demo-out-64 var(--dur) infinite var(--play); }
.demo.is-ready .until-78 { animation: demo-out-78 var(--dur) infinite var(--play); }
@keyframes demo-in-08 { 0%, 8% { opacity: 0; translate: 0 6px; } 14%, 90% { opacity: 1; translate: none; } 97%, 100% { opacity: 0; } }
@keyframes demo-in-14 { 0%, 14% { opacity: 0; translate: 0 6px; } 20%, 90% { opacity: 1; translate: none; } 97%, 100% { opacity: 0; } }
@keyframes demo-in-20 { 0%, 20% { opacity: 0; translate: 0 6px; } 26%, 90% { opacity: 1; translate: none; } 97%, 100% { opacity: 0; } }
@keyframes demo-in-26 { 0%, 26% { opacity: 0; translate: 0 6px; } 32%, 90% { opacity: 1; translate: none; } 97%, 100% { opacity: 0; } }
@keyframes demo-in-32 { 0%, 32% { opacity: 0; translate: 0 6px; } 38%, 90% { opacity: 1; translate: none; } 97%, 100% { opacity: 0; } }
@keyframes demo-in-38 { 0%, 38% { opacity: 0; translate: 0 6px; } 44%, 90% { opacity: 1; translate: none; } 97%, 100% { opacity: 0; } }
@keyframes demo-in-58 { 0%, 58% { opacity: 0; translate: 0 6px; } 64%, 90% { opacity: 1; translate: none; } 97%, 100% { opacity: 0; } }
@keyframes demo-in-64 { 0%, 64% { opacity: 0; translate: 0 6px; } 70%, 90% { opacity: 1; translate: none; } 97%, 100% { opacity: 0; } }
@keyframes demo-in-70 { 0%, 70% { opacity: 0; translate: 0 6px; } 76%, 90% { opacity: 1; translate: none; } 97%, 100% { opacity: 0; } }
@keyframes demo-in-78 { 0%, 78% { opacity: 0; translate: 0 6px; } 84%, 90% { opacity: 1; translate: none; } 97%, 100% { opacity: 0; } }
@keyframes demo-out-14 { 0%, 14% { opacity: 1; } 18%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes demo-out-26 { 0%, 26% { opacity: 1; } 30%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes demo-out-38 { 0%, 38% { opacity: 1; } 42%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes demo-out-64 { 0%, 64% { opacity: 1; } 68%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes demo-out-78 { 0%, 78% { opacity: 1; } 82%, 96% { opacity: 0; } 100% { opacity: 1; } }

/* Field report: note, voice note and photo arrive, then the chat slides to the report */
.demo-field { display: block; }
.demo-view { position: relative; height: 100%; overflow: hidden; }
.field-track { display: flex; width: 200%; height: 100%; transform: translateX(-50%); }
.field-track > * { flex: 0 0 50%; min-width: 0; }
.field-chat { display: flex; justify-content: center; }
.field-chat .demo-phone { flex: 0 0 auto; width: 150px; max-width: none; }
.field-chat .demo-chat { justify-items: end; }
.field-chat .demo-bubble { background: #144D37; border-radius: 8px 2px 8px 8px; }
.demo-voice { display: flex; align-items: center; gap: 4px; width: 112px; }
.demo-voice svg { width: 10px; height: 10px; color: var(--soft); flex: none; }
.demo-wave { flex: 1; display: flex; align-items: center; gap: 2px; height: 14px; }
.demo-wave i { flex: 1; height: var(--h); border-radius: 1px; background: var(--soft); opacity: .7; }
.demo-voice span { color: var(--muted); font-size: 9px; }
.demo-photo { display: block; width: 112px; height: 40px; border-radius: 5px; }
.field-report {
  background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--c);
  border-radius: 10px; padding: 8px 10px; display: grid; gap: 6px; align-content: start;
}
.field-report-head { display: grid; }
.field-report-head b { font-size: 12px; color: var(--heading); }
.field-report-head span, .demo-label { color: var(--muted); font-size: 9px; }
.demo-label { display: block; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.field-body { display: flex; gap: 8px; align-items: flex-start; }
.field-body > div { flex: 1; min-width: 0; display: grid; gap: 4px; }
.field-body .demo-photo { flex: none; width: 64px; height: 48px; }
.field-trans { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-style: italic; }
.demo-field.is-ready .field-track { animation: field-slide var(--dur) infinite var(--play); }
@keyframes field-slide {
  0%, 46% { transform: none; opacity: 1; }
  56%, 90% { transform: translateX(-50%); opacity: 1; }
  95% { transform: translateX(-50%); opacity: 0; }
  96% { transform: none; opacity: 0; }
  100% { transform: none; opacity: 1; }
}

/* Workflow: the quote is drafted, waits for approval, is tapped and sent */
.demo-quote { flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: grid; gap: 4px; align-content: start; }
.quote-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 2px; }
.quote-head b { font-size: 12px; color: var(--heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-pill { font-style: normal; font-weight: 700; font-size: 9px; border-radius: 999px; padding: 1px 7px; background: var(--line); color: var(--soft); white-space: nowrap; }
.demo-pill.is-done { background: var(--c); color: var(--ink); }
.quote-line { display: flex; justify-content: space-between; gap: 8px; }
.quote-line span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quote-total { border-top: 1px solid var(--line); padding-top: 4px; font-weight: 700; color: var(--heading); }
.quote-bar { display: grid; margin-top: 4px; }
.quote-wait, .quote-sent { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 28px; padding: 0 0 0 8px; border-radius: 8px; background: var(--tint); }
.quote-wait > span:first-child { color: var(--soft); min-width: 0; }
.quote-btn { position: relative; flex: none; background: var(--c); color: var(--ink); font-weight: 700; border-radius: 7px; padding: 5px 10px; }
.quote-sent { justify-content: flex-start; color: color-mix(in srgb, var(--c) 65%, #fff); font-weight: 700; }
.quote-sent svg { width: 13px; height: 13px; flex: none; }
.demo-tap {
  position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border-radius: 50%; background: rgba(255, 255, 255, .35); border: 2px solid #fff; opacity: 0;
}
.demo-work.is-ready .demo-tap { animation: work-tap var(--dur) infinite var(--play); }
.demo-work.is-ready .quote-btn { animation: work-press var(--dur) infinite var(--play); }
@keyframes work-tap {
  0%, 48% { opacity: 0; transform: translate(26px, 24px); }
  52% { opacity: 1; transform: translate(26px, 24px); }
  58% { opacity: 1; transform: none; }
  61% { opacity: 1; transform: scale(.75); }
  65%, 100% { opacity: 0; transform: scale(1.4); }
}
@keyframes work-press { 0%, 58% { transform: none; } 61% { transform: scale(.9); } 64%, 100% { transform: none; } }

/* Data: raw rows sort themselves, bars grow, then one value updates */
.demo-data { flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; overflow: hidden; }
.data-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.data-head b { color: var(--heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.data-head .demo-swap { color: var(--muted); font-size: 9px; text-align: right; white-space: nowrap; }
.data-rows { position: relative; flex: 1; margin: 4px 8px; }
.data-row {
  position: absolute; left: 0; right: 0; top: calc(var(--to) * 22px); height: 22px;
  display: flex; align-items: center; gap: 6px;
}
.data-row > span:first-child { flex: 0 0 58px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.data-track { flex: 1; height: 10px; }
.data-bar { display: block; height: 100%; width: var(--w); border-radius: 0 3px 3px 0; background: var(--c); transform-origin: left; }
.data-row .demo-swap { flex: 0 0 18px; justify-items: end; font-variant-numeric: tabular-nums; font-weight: 600; }
.data-up { color: var(--green); }
.demo-dataviz.is-ready .data-rows { animation: data-fade var(--dur) infinite var(--play); }
.demo-dataviz.is-ready .data-row { animation: data-sort var(--dur) infinite var(--play); }
.demo-dataviz.is-ready .data-bar { animation: data-bars var(--dur) infinite var(--play); }
.demo-dataviz.is-ready .data-bar.is-updated { animation-name: data-grow; }
@keyframes data-fade { 0% { opacity: 0; } 5%, 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes data-sort {
  0%, 10% { transform: translateY(calc((var(--from) - var(--to)) * 22px)); }
  32%, 96% { transform: none; }
  100% { transform: translateY(calc((var(--from) - var(--to)) * 22px)); }
}
@keyframes data-bars { 0%, 36% { transform: scaleX(0); } 52%, 96% { transform: none; } 100% { transform: scaleX(0); } }
@keyframes data-grow {
  0%, 36% { transform: scaleX(0); }
  52%, 76% { transform: scaleX(.9); }
  84%, 96% { transform: none; }
  100% { transform: scaleX(0); }
}

/* Hosting: services tick green one by one, then backup and uptime appear */
.demo-status { flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.status-head { background: var(--c); color: var(--ink); font-weight: 700; padding: 6px 8px; }
.status-row { display: flex; align-items: center; gap: 7px; padding: 0 8px; height: 26px; border-bottom: 1px solid var(--line); }
.status-row > span:nth-child(2) { flex: 1; min-width: 0; font-weight: 600; color: var(--heading); }
.status-dot { flex: none; width: 14px; height: 14px; }
.status-dot > * { width: 14px; height: 14px; border-radius: 50%; }
.status-dot i { border: 2px dashed #5A606B; }
.status-dot svg { background: var(--green); color: var(--ink); padding: 2px; }
.status-row .demo-swap { justify-items: end; color: var(--muted); white-space: nowrap; }
.status-row .demo-swap .is-ok { color: var(--green); font-weight: 600; }
.status-foot { display: flex; flex-wrap: wrap; gap: 5px; padding: 7px 8px; }
.status-foot .demo-pill { background: var(--tint); color: color-mix(in srgb, var(--c) 65%, #fff); }

/* Lead intake: message, location, then the new lead row slides in */
.demo-lead.is-ready .lead-msg { animation: lead-msg var(--dur) infinite var(--play); }
.demo-lead.is-ready .lead-loc { animation: lead-loc var(--dur) infinite var(--play); }
.demo-lead.is-ready .lead-loc .demo-pin { animation: lead-pin var(--dur) infinite var(--play); }
.demo-lead.is-ready .demo-arrow { animation: lead-arrow var(--dur) infinite var(--play); }
.demo-lead.is-ready .demo-row:not(.is-new) { animation: lead-shift var(--dur) infinite var(--play); }
.demo-lead.is-ready .demo-row.is-new { animation: lead-new var(--dur) infinite var(--play); }
.demo-lead.is-ready .demo-row.is-new .demo-badge { animation: lead-badge var(--dur) infinite var(--play); }
@keyframes lead-msg {
  0%, 6% { opacity: 0; transform: translateY(6px) scale(.96); }
  14%, 90% { opacity: 1; transform: none; }
  100% { opacity: 0; }
}
@keyframes lead-loc {
  0%, 22% { opacity: 0; transform: translateY(6px) scale(.96); }
  30%, 90% { opacity: 1; transform: none; }
  100% { opacity: 0; }
}
@keyframes lead-pin {
  0%, 28% { opacity: 0; transform: translateY(-8px); }
  35%, 100% { opacity: 1; transform: none; }
}
@keyframes lead-arrow {
  0%, 36%, 54%, 100% { transform: none; opacity: .35; }
  45% { transform: translateX(3px) scale(1.25); opacity: 1; }
}
@keyframes lead-shift {
  0%, 46% { transform: translateY(-42px); }
  56%, 92% { transform: none; }
  100% { transform: translateY(-42px); }
}
@keyframes lead-new {
  0%, 50% { opacity: 0; transform: translateX(14px); }
  58% { opacity: 1; transform: none; background: color-mix(in srgb, var(--c) 34%, var(--surface)); }
  76%, 90% { opacity: 1; transform: none; background: var(--tint); }
  97%, 100% { opacity: 0; transform: none; }
}
@keyframes lead-badge {
  0%, 56% { transform: scale(0); }
  62% { transform: scale(1.2); }
  66%, 100% { transform: none; }
}
/* Demo shell (src/demos/_demo.js): the box holds the demo and its play/pause button.
   The button is hidden until site.js shows it (never with reduced motion or without JS). */
.demo-box { position: relative; margin-top: auto; flex: none; }
.demo-box .demo { margin-top: 0; }
.demo.is-paused-by-user { --play: paused; }
.demo-btn {
  position: absolute; top: 5px; right: 5px; width: 28px; height: 28px; padding: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--soft);
}
.demo-btn[hidden] { display: none; }
.demo-btn:hover, .demo-btn:focus-visible { color: var(--heading); border-color: var(--soft); }
.demo-btn svg { width: 13px; height: 13px; }
.demo-btn .i-play, .demo-box.is-paused .demo-btn .i-pause { display: none; }
.demo-box.is-paused .demo-btn .i-play { display: block; }

/* Shared pieces for the newer demos: a panel with a header, and an outgoing (green) chat bubble */
.demo-book, .demo-team, .demo-dues, .demo-reviews { --dur: 5s; }
.demo-panel { flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 5px 8px; min-height: 24px; border-bottom: 1px solid var(--line); }
.panel-head b { color: var(--heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-bubble.demo-out { background: #144D37; border-radius: 8px 2px 8px 8px; justify-self: end; }

/* Booking: the client asks, two times are offered, one is tapped, the visit fills the calendar */
.book-slots { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.book-slot { position: relative; display: inline-grid; padding: 1px 5px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .35); white-space: nowrap; font-weight: 600; }
.book-slot > span { grid-area: 1 / 1; }
.book-picked { margin: -1px -5px; padding: 1px 5px; border-radius: 6px; background: var(--c); color: var(--ink); }
.book-day { flex: 1; display: grid; grid-template-rows: repeat(4, 1fr); }
.book-hour { display: flex; align-items: center; gap: 6px; padding: 0 8px; border-bottom: 1px solid var(--line); min-width: 0; }
.book-hour:last-child { border-bottom: 0; }
.book-hour > span:first-child { flex: 0 0 30px; color: var(--muted); font-variant-numeric: tabular-nums; }
.book-hour i { display: block; flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.book-hour .demo-swap { flex: 1; min-width: 0; align-items: center; }
.book-event { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; padding: 2px 6px; border-radius: 5px; background: var(--tint); border-left: 3px solid var(--c); color: var(--heading); overflow: hidden; }
.demo-book.is-ready .demo-tap { animation: work-tap var(--dur) infinite var(--play); }
.demo-book.is-ready .book-slot.is-first { animation: work-press var(--dur) infinite var(--play); }

/* Team & parts: who goes where today, a part arrives, the day-before WhatsApp goes out */
.team-row { display: flex; align-items: center; gap: 7px; padding: 4px 8px; border-bottom: 1px solid var(--line); min-width: 0; }
.team-avatar { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: var(--ink); font-weight: 700; font-size: 9px; }
.team-avatar.is-part { background: var(--tint); color: var(--c); }
.team-avatar svg { width: 12px; height: 12px; }
.team-text { flex: 1; min-width: 0; display: grid; }
.team-text b, .team-text span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-text b { color: var(--heading); }
.team-text span { color: var(--muted); }
.team-row .demo-swap { flex: none; justify-items: end; }
.team-wa { margin: auto 6px 6px auto; max-width: calc(100% - 12px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Payment reminders: a reminder goes out, the invoice is paid, the rest stop, the weekly summary */
.dues-row { display: flex; align-items: center; gap: 6px; padding: 0 8px; height: 21px; border-bottom: 1px solid var(--line); }
.dues-row > span:first-child { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dues-row > span:nth-child(2) { font-variant-numeric: tabular-nums; color: var(--heading); font-weight: 600; }
.dues-row .demo-swap { justify-items: end; }
.dues-row.is-focus { background: var(--tint); }
.dues-steps { display: flex; align-items: center; gap: 4px; padding: 4px 8px 0; }
.dues-later { display: flex; gap: 4px; }
.dues-step { font-style: normal; font-size: 9px; font-weight: 700; padding: 1px 6px; border-radius: 999px; border: 1px solid var(--field); color: var(--soft); white-space: nowrap; }
.dues-step.is-sent { background: var(--c); border-color: var(--c); color: var(--ink); }
.dues-stop { font-style: normal; font-size: 9px; font-weight: 700; color: var(--muted); padding: 1px 2px; white-space: nowrap; }
.dues-msg { margin: 4px 6px 0 auto; max-width: calc(100% - 12px); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dues-foot { margin-top: auto; padding: 4px 8px 6px; }
.dues-foot .demo-pill { background: var(--tint); color: color-mix(in srgb, var(--c) 60%, #fff); }

/* Google reviews: check-in, review link, a 5-star review, its reply approved and posted */
.rev-sys { justify-self: center; font-style: normal; font-size: 9px; color: var(--muted); background: rgba(255, 255, 255, .06); border-radius: 6px; padding: 1px 6px; text-align: center; }
.rev-link { display: grid; gap: 1px; }
.rev-stars { color: var(--yellow); letter-spacing: 1px; }
.rev-panel { padding: 7px 8px; gap: 5px; }
.rev-card { display: grid; gap: 2px; }
.rev-card b { color: var(--heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rev-card > span { color: var(--soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rev-reply { padding: 4px 6px; border-radius: 6px; border-left: 3px solid var(--c); background: var(--tint); }
.rev-panel .quote-bar { margin-top: auto; }
.demo-reviews.is-ready .demo-tap { animation: work-tap var(--dur) infinite var(--play); }
.demo-reviews.is-ready .quote-btn { animation: work-press var(--dur) infinite var(--play); }

@media (prefers-reduced-motion: reduce) {
  .demo * { animation: none !important; }
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .brand img { height: 66px; }
  .nav { display: flex; }
  .nav + .lang { margin-left: 0; }
  .hero { padding: 72px 0 96px; }
  section { padding: 96px 0; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .card { padding: 28px; }
  .footer-cta { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (min-width: 980px) {
  .examples { grid-template-columns: repeat(3, 1fr); }
  /* An even count that doesn't fill rows of three (4, 8…) goes two by two, so no card sits alone. */
  .examples.is-pairs { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
}

/* /servicios/ pages */
.svc-main { padding: 28px 0 72px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--soft); }
.crumbs span[aria-hidden] { margin: 0 6px; }
.svc-main h1 { font-size: clamp(30px, 6vw, 46px); font-weight: 700; max-width: 22ch; }
.svc-main .hero-bar { margin: 22px 0; }
.answer { font-size: clamp(18px, 2.4vw, 21px); color: var(--soft); max-width: 62ch; }
.svc-block { margin-top: 56px; }
.svc-block h2 { font-size: clamp(24px, 4vw, 32px); margin-bottom: 20px; }
.svc-demos { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 36px; }
.svc-demo { padding: 0; border-left: 5px solid var(--c); }
.svc-demo .demo { margin: 0; border-radius: 0 12px 12px 0; }
.steps-list { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 14px; max-width: 720px; }
.steps-list li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; color: var(--text); }
.steps-list li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--slate); color: #fff; font-weight: 700; }
.needs-list { margin: 0; padding-left: 1.2em; display: grid; gap: 10px; max-width: 720px; color: var(--text); }
.svc-list { display: grid; gap: 16px; grid-template-columns: 1fr; }
.svc-list .card { padding-top: 26px; }
.svc-list .card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c); }
.svc-list h3 { font-size: 18px; margin-bottom: 8px; }
.svc-list h3 a { color: var(--heading); text-decoration: none; }
.svc-list h3 a:hover { text-decoration: underline; }
.svc-list .q { color: var(--soft); margin-bottom: 10px; }
.cta-box { margin-top: 64px; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; }
.cta-box::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--rainbow); }
.cta-box h2 { font-size: clamp(24px, 4vw, 30px); margin-bottom: 10px; }
.cta-box p { color: var(--soft); margin-bottom: 20px; max-width: 52ch; }
@media (min-width: 720px) { .svc-demos { grid-template-columns: repeat(2, 1fr); } .svc-list { grid-template-columns: repeat(2, 1fr); } .cta-box { padding: 36px; } }

/* Each demo is a fixed-height (200px) box: containing it keeps its animations from re-laying out the page, and
   off-screen demos skip rendering. Their size never changes, so anchors and scroll positions stay exact. */
.demo { contain: layout paint style; content-visibility: auto; contain-intrinsic-size: auto 200px; }
