/* Shared public-site system. Product demonstrations retain their own branding. */
:root { --site-bg: #000; --site-muted: #b7b7b0; }
:root[data-theme="light"] { --site-bg: #f3f1eb; --site-muted: #57574f; }
html { scroll-padding-top: 0; scrollbar-color: #ff5000 #000; }
@supports not (scrollbar-color: #ff5000 #000) {
  html::-webkit-scrollbar { width: 12px; height: 12px; }
  html::-webkit-scrollbar-track,html::-webkit-scrollbar-corner { background: #000; }
  html::-webkit-scrollbar-thumb { background: #ff5000; border: 3px solid #000; border-radius: 12px; }
}
:where(section[id], h1[id], h2[id], [id="pedir-proposta"]) { scroll-margin-top: 112px; }
:where(a,button,input,textarea,select,summary):focus-visible { outline: 2px solid var(--site-accent, #ff5000); outline-offset: 4px; }
:root[data-theme] .textured-page {
  background-image: linear-gradient(color-mix(in srgb,var(--site-bg) 88%,transparent),color-mix(in srgb,var(--site-bg) 88%,transparent)), var(--site-texture);
}
.bm-ring,.lead-card-beam { display: none !important; }
:is(.hdr-cta,.proposal-button,.lead-submit,.ed-button:not(.ed-button-outline),.svc-action,.bm-orbit,.lp-button-primary) {
  background: var(--ls-action) !important; color: var(--ls-on-action) !important;
  border: 1px solid transparent !important; border-radius: var(--ls-control-radius) !important;
  box-shadow: none !important; min-height: var(--ls-control-height); text-transform: none !important;
  letter-spacing: 0 !important; font-family: var(--font-sans); font-weight: 600 !important;
  transition: background-color 160ms ease,color 160ms ease !important; will-change: auto;
}
:is(.hdr-cta,.proposal-button,.lead-submit,.ed-button:not(.ed-button-outline),.svc-action,.bm-orbit,.lp-button-primary):is(:hover,:focus-visible) {
  background: var(--ls-action-hover) !important; color: var(--ls-on-action) !important; opacity: 1; transform: none; box-shadow: none !important;
}
:is(.hdr-cta,.proposal-button,.lead-submit,.ed-button,.svc-action,.bm-orbit) :is(svg,.arrow-icon) { color: inherit; stroke: currentColor; }
:is(.ed-button-outline,.lp-button-secondary,.contact-whatsapp) { border-radius: var(--ls-control-radius) !important; box-shadow: none !important; }
:is(.hdr-cta,.proposal-button,.bm-orbit)::before,:is(.hdr-cta,.proposal-button,.bm-orbit)::after { display: none !important; }
:is(.proposal-button,.lead-submit):disabled { background: #777 !important; color: #111 !important; cursor: wait; }
.inner-page .contact-section { max-width: var(--ls-content-width); padding-top: clamp(44px,6vw,88px); padding-bottom: var(--ls-section-space); gap: clamp(32px,6vw,96px); align-items: start; }
.inner-page .contact-section .page-title { font-size: var(--ls-heading-xl); line-height: 1.12; letter-spacing: -.045em; margin-bottom: 24px; }
.inner-page .contact-section .page-title em { font-family: inherit; font-weight: inherit; font-style: normal; color: var(--site-accent); }
.inner-page .contact-copy > p:not(.section-label) { font-size: 17px; line-height: 1.7; max-width: 380px; color: var(--site-muted); }
.inner-page .contact-form { border: 0; border-radius: 12px; padding: clamp(22px,3vw,36px); background: var(--ls-form-bg); color: var(--ls-form-ink); box-shadow: none; }
.inner-page .contact-form::before,.inner-page .contact-form::after { display: none; }
:is(.contact-form,.lp-proposal) :is(input,textarea,select):not([name="website"]) {
  min-width: 0; box-sizing: border-box; background: var(--ls-field-bg) !important;
  color: var(--ls-form-ink) !important; border: 1px solid var(--ls-field-line) !important;
  border-radius: var(--ls-control-radius); box-shadow: none !important; font: 400 16px/1.5 var(--font-sans);
  min-height: var(--ls-control-height); padding: 12px 16px;
}
.lp-proposal .lead-field input { padding-right: 44px; }
:is(.contact-form,.lp-proposal) :is(input,textarea,select):focus-visible { outline: 2px solid var(--site-accent, #ff5000); outline-offset: 4px; }
:is(.contact-form,.lp-proposal) :is(input,textarea,select)[aria-invalid="true"] { border-color: #ffb09b !important; }
:is(.contact-form,.lp-proposal) :is(input,textarea)::placeholder { color: var(--ls-form-muted) !important; opacity: 1; }
.inner-page .contact-form form { gap: 20px; }
.inner-page .contact-form label,.lp-proposal .lead-label { color: var(--ls-form-ink); font-size: 14px; line-height: 1.5; }
.inner-page .contact-form label:not(.contact-honeypot) { display: grid; gap: 8px; }
.inner-page .contact-form textarea { resize: vertical; }
:is(.contact-form,.lp-proposal) :is(.form-note,.lead-note) { color: var(--ls-form-muted); font-size: 13px; line-height: 1.6; }
:is(.contact-form,.lp-proposal) :is(.form-note,.lead-note) a { color: var(--ls-form-ink); text-decoration: underline; text-underline-offset: 3px; }
.home-page .lp-proposal .lead-card { background: var(--ls-form-bg); border: 0; }
.inner-page .contact-form .proposal-button { font-size: 15px; padding: 14px 18px; gap: 16px; }
.inner-page .contact-form .proposal-button > span { background: transparent; }
.inner-page .contact-form :is(.proposal-result,#proposal-status) { color: var(--ls-form-ink); }
.inner-page .contact-form :is(.field-error,.form-error,[data-error]) { color: #ffb09b; }
.inner-page .contact-form .text-link { color: var(--ls-form-ink); }
.inner-page .contact-section .contact-whatsapp { min-height: 48px; }
.inner-page .contact-section .contact-socials a { min-width: 44px; min-height: 44px; }
.home-page #inicio.lp-hero { background: #000; color: #f5f5f4; }
/* Only the closed mobile header overlays the fixed dark hero surface. */
@media (max-width: 1023px) {
  :root[data-theme="light"] .home-page .hdr:not([data-scrolled]):not([data-menu-open]) { --site-text:#f5f5f4; --site-muted:#b7b7b0; --site-rule:#ffffff40; color:#f5f5f4; }
  :root[data-theme="light"] .home-page .hdr:not([data-scrolled]):not([data-menu-open]) .hdr-burger span { background:#f5f5f4; }
}
.home-page .hsc-field { border-radius: var(--ls-control-radius); }
.home-page .hsc-field button { min-height: 44px; background: none; color: var(--site-text, #fff); border-radius: 0; box-shadow: none; }
.sv-section .sv-tab-description { font-size: 14px; line-height: 1.6; color: var(--site-muted); }
.sv-section .sv-tab[data-active="true"] .sv-tab-description { color: var(--site-text); }
.sv-heading span,.sv-tab-arrow,.hsc-copy h2 span,.hsc-head strong,.hsc-field button:hover { color: var(--site-accent); }
.gs-hero h1 span,.ap-hero h1 span,.ax-hero h1 span { color: var(--site-accent); }
.gs-checker .gs-checker-field .gs-button:hover,
:is([data-google-seo],[data-marketing]) .gs-checker .gs-checker-field .gs-button:hover { color: var(--site-accent); }
.ap-sig-item:has(input:checked) .ap-sig-box svg { stroke: var(--ls-on-action); }
:root[data-theme="light"] .hdr:not([data-menu-open]) :is([aria-current="page"],.hdr-nav > details[open] > summary) { color: var(--site-accent) !important; }
.hdr-services-bar,.hdr-concepts-bar,.hdr-platforms-bar { box-shadow: 0 1px 0 var(--site-rule); }
.sb-page .sb-cta { background: var(--ls-action) !important; color: var(--ls-on-action) !important; border-radius: var(--ls-control-radius); min-height: var(--ls-control-height); box-shadow: none; }
.sb-page .sb-cta:is(:hover,:focus-visible) { background: var(--ls-action-hover) !important; transform: none; }
/* The same proposal action keeps its shape and contrast across every service. */
:is(.gs-button:not(.gs-button-quiet):not(.ax-button-ink),.gs-final-button,.sb-cta,.bk-button)[href*="/contacto"] {
  background: var(--ls-action) !important; color: var(--ls-on-action) !important;
  border: 1px solid transparent !important; border-radius: var(--ls-control-radius) !important;
  min-height: var(--ls-control-height); box-shadow: none !important;
  text-transform: none; font-weight: 600; letter-spacing: 0; transition: background-color 160ms ease !important;
}
:is(.gs-button:not(.gs-button-quiet):not(.ax-button-ink),.gs-final-button,.sb-cta,.bk-button)[href*="/contacto"]:is(:hover,:focus-visible) {
  background: var(--ls-action-hover) !important; color: var(--ls-on-action) !important; box-shadow: none !important; transform: none;
}
:is(.gs-button,.gs-final-button,.sb-cta,.bk-button)[href*="/contacto"] svg { color: inherit; }
.homepage-process-number { color: var(--site-accent); }
[data-scroll-progress-fill] { background: var(--ls-action); box-shadow: none; }
/* Fallback content is visible without a successful animation controller. */
.ed-page:not(.ed-motion) .ed-reveal,.service-story:not(.svc-entrances-ready) :is(h1,h2,.svc-illustration) { opacity: 1; }
@media(max-width:820px) {
  /* Keep the app's benefit and next step before its demonstration on small screens. */
  .ap-page .ap-hero .gs-lead { display: block; grid-row: 2; margin: 0 !important; font-size: 16px; line-height: 1.6; }
  .ap-page .ap-h-stage { grid-row: 4; }
}
@media(max-width:767px) {
  html { scroll-padding-top: 0; scrollbar-width: none; }
  html::-webkit-scrollbar,body::-webkit-scrollbar { display: none; width: 0; height: 0; }
  :where(section[id],h1[id],h2[id],[id="pedir-proposta"]) { scroll-margin-top: 92px; }
  .inner-page .contact-section { padding-top: 28px; }
  .inner-page .contact-form { padding: 22px 18px; }
  .inner-page .contact-section .contact-quick a { border-radius: var(--ls-control-radius); }
  .inner-page .contact-section .page-title { font-size: clamp(34px,8.5vw,52px); }
}
@media(max-width:719px) {
  /* These pages already end with a complete proposal section; no empty dock below it. */
  body:has(main :is(.ed-final,.service-closing)) .site-actions { height: 0; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto !important; }
  :is(.ed-button,.proposal-button,.hdr-cta,.lead-submit,.svc-action,.bm-orbit,.lp-button,.gs-button,.gs-final-button,.sb-cta,.bk-button) { transition: none !important; transform: none !important; }
  :is(.gs-button:not(.gs-button-quiet):not(.ax-button-ink),.gs-final-button,.sb-cta,.bk-button)[href*="/contacto"] { transition: none !important; transform: none !important; }
}
