/* Shared agency-site mobile layer. Product applications keep their own layouts. */
html { scroll-padding-top: calc(var(--header-h, 78px) + 16px); }
main, .container, .field, .ph-copy, .form-shell > *, .need-inner > * { min-width: 0; }
img { height: auto; }
.skip-link { position: fixed; top: 8px; left: 12px; z-index: 1000; padding: 12px 18px; border-radius: 10px; background: var(--ink); color: white; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.mobile-actions { display: none; }
.hero-copy-mobile { display: none; }
.header.is-dark .brand img { content: url('../assets/logo/brand-tech-white.png'); }
.field input, .field select, .field textarea { font-size: 16px; scroll-margin-top: 110px; }
.field input, .field select { min-height: 50px; }
.form-success { scroll-margin-top: 100px; }
.svc-row[role="button"] { cursor: pointer; }
.svc-row[role="button"]:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }
body.menu-open .header { z-index: 140; background: var(--paper); border-bottom-color: var(--line); }
body.menu-open .header.is-dark .brand img { content: url('../assets/logo/brand-tech.png'); }
body.menu-open #moko-live-host, body.menu-open .mobile-actions { display: none !important; }
body.lb-lock #moko-live-host, body.lb-lock [data-ai-widget], body.lb-lock .mobile-actions { display: none !important; }
.mobile-menu { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.mobile-menu.open { clip-path: none; }
.mobile-menu.open .mm-links, .mobile-menu.open .mm-links a { visibility: visible; }
.mobile-menu .mm-links a { min-height: 48px; }
.mobile-menu .mm-links a[aria-current="page"] { color: var(--red); }
.ms-panel .btn, .sys-card .btn { white-space: normal; text-align: center; justify-content: center; max-width: 100%; overflow-wrap: anywhere; }
.hs-btns { flex: 0 0 auto; }
.hs-dots { min-width: 0; }
.hs-btn, .lb-close, .lb-nav { min-width: 44px; min-height: 44px; }
.hs-dot, .tst-dots button { width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; background: transparent; display: grid; place-items: center; padding: 0; }
.hs-dot::before, .tst-dots button::before { position: static; inset: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--line); content: ''; }
.hs-dot.is-active, .tst-dots button.on { width: 24px; border-radius: 50%; background: transparent; }
.hs-dot.is-active::before, .tst-dots button.on::before { width: 10px; height: 10px; background: var(--red); }
.f-contact a, .need-body em, .breadcrumb { overflow-wrap: anywhere; }

@media (max-width: 1100px) {
  .header .nav-links { display: none; }
  .header .burger { display: flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; flex-shrink: 0; }
  .mobile-menu { justify-content: flex-start; padding: calc(var(--header-h) + 18px + env(safe-area-inset-top, 0px)) max(6%, 20px) calc(24px + env(safe-area-inset-bottom, 0px)); height: 100vh; height: 100dvh; }
  .mobile-menu .mm-links { gap: 2px; }
  .mobile-menu .mm-links a { font-size: clamp(21px, 4vw, 29px); line-height: 1.25; padding: 10px 0; gap: 14px; }
  .mobile-menu .mm-foot { margin-top: 22px; gap: 10px; flex-shrink: 0; }
  .mobile-menu .mm-foot .btn { min-height: 48px; padding: 12px 18px; justify-content: center; white-space: normal; text-align: center; }
}

@media (max-width: 860px) {
  :root { --header-h: 72px; }
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
  .container { width: calc(100% - 36px); }
  section { padding-block: clamp(48px, 8vw, 72px); }
  .header, .header.scrolled { height: var(--header-h); background: rgba(244, 244, 241, .97); border-bottom-color: var(--line); }
  .header .nav-inner { gap: 14px; }
  .header .brand { min-width: 0; }
  .header .brand img { max-width: min(210px, 52vw); object-fit: contain; }
  .header.is-dark { background: var(--ink); }
  .header .nav-cta { margin-left: auto; }
  .hero { min-height: 0; padding-top: calc(var(--header-h) + 28px); }
  .hero h1 .w-in { animation: none; transform: none; }
  .hero h1 { width: 100%; max-width: none; font-size: clamp(2.75rem, 13vw, 4rem); font-weight: 700; line-height: 1.04; letter-spacing: -.05em; }
  .hero h1 .word { display: block; width: max-content; max-width: 100%; padding: 0; margin: 0; overflow: visible; white-space: nowrap; }
  .hero h1 .word + .word { margin-top: .015em; }
  .hero h1 .w-in { display: block; }
  .hero h1 small { max-width: 34ch; line-height: 1.65; font-size: 10px; letter-spacing: .09em; margin-top: 22px; }
  .hero-sub, .page-hero .ph-lead, .section-head .head-text { font-size: 16px; line-height: 1.7; }
  .hero .hero-sub { margin-top: 20px; max-width: 34ch; }
  .hero-copy-desktop { display: none; }
  .hero-copy-mobile { display: inline; }
  .hero .hero-cta { margin-top: 24px; }
  .hero-badge { font-size: 10px; line-height: 1.6; letter-spacing: .04em; white-space: normal; padding: 0; max-width: 100%; margin-bottom: 22px; border: 0; border-radius: 0; background: transparent; }
  .hero-badge .dot { flex-shrink: 0; }
  .hero-split { gap: 30px; }
  .hero-visual { width: 100%; max-width: 560px; margin-inline: auto; }
  .hero-foot { gap: 18px; padding-block: 28px; }
  .hero-foot .hf-item { width: 100%; margin-left: 0; }
  .page-hero { padding-top: calc(var(--header-h) + 26px); padding-bottom: 36px; }
  .page-hero h1 { font-size: clamp(2rem, 7.5vw, 3.2rem); overflow-wrap: break-word; }
  .page-hero .breadcrumb { flex-wrap: wrap; font-size: 12px; line-height: 1.6; margin-bottom: 22px; }
  .section-head { margin-bottom: 28px; }
  .section-head h2 { font-size: clamp(1.8rem, 6.5vw, 2.6rem); max-width: 100%; }
  .btn { min-height: 48px; padding: 13px 20px; touch-action: manipulation; }
  .form-shell, .form-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .form-card, .sp-box { padding: 24px; }
  .field { min-width: 0; }
  .field textarea { min-height: 150px; }
  .field label { font-size: 14px; }
  .form-note { line-height: 1.65; }
  .faq-item summary { min-height: 52px; padding-block: 16px; padding-right: 30px; font-size: 16px; line-height: 1.5; }
  .faq-item p { font-size: 15px; line-height: 1.7; }
  .sys-grid, .ms-panels, .ms-panels-2, .ms-panels-3, .ms-panels-6 { grid-template-columns: minmax(0, 1fr); }
  .sys-card, .ms-panel, .works-band .port-item { min-width: 0; padding: 22px; }
  .ms-panel .btn, .sys-card .btn { width: 100%; }
  .hp-chip { min-height: 44px; padding: 10px 12px; font-size: 12px; white-space: normal; }
  .hs-bar { align-items: flex-start; }
  .hs-dots { gap: 2px; justify-content: flex-end; }
  .hs-slide figcaption { font-size: 10px; padding: 24px 12px 10px; }
  .ms-creds > div { gap: 8px; font-size: 13px; padding: 10px 12px; }
  .ms-creds b { min-width: 0; overflow-wrap: anywhere; }
  .filters { display: flex; flex-wrap: wrap; gap: 8px; }
  .filters button { min-height: 44px; padding: 10px 16px; }
  .port-grid, .work-grid { grid-template-columns: minmax(0, 1fr); }
  .works-band .pi-shot { flex: 0 0 auto; }
  .works-band .port-item h3 { font-size: 23px; }
  .work-item .wi-body { gap: 12px; }
  .need-inner { gap: 30px; }
  .need-card { min-height: 76px; padding: 17px; gap: 13px; }
  .need-body { min-width: 0; }
  .need-body strong { font-size: 17px; }
  .need-body em { font-size: 13px; }
  .footer { padding-bottom: 24px; }
  .footer-top { gap: 30px 18px; }
  .footer-top ul a { display: inline-flex; align-items: center; min-height: 38px; }
  .footer .f-social a { min-width: 44px; min-height: 44px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 9px; font-size: 12px; }
  .mobile-actions { position: fixed; z-index: 90; inset: auto 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: rgba(255, 255, 255, .98); box-shadow: 0 -6px 24px #10101008; }
  .mobile-actions a { min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; font-family: var(--font-display); font-size: 14px; font-weight: 600; }
  .mobile-actions svg { width: 19px; height: 19px; flex-shrink: 0; }
  .mobile-actions .mobile-project { background: var(--red); color: white; }
  .mobile-actions .mobile-whatsapp { background: #e8f7ef; color: #11683b; border: 1px solid #c6e7d6; }
  .ai-widget { right: 14px; bottom: var(--moko-chat-bottom, 86px); }
  .ai-panel { width: min(370px, calc(100vw - 28px)); max-height: calc(var(--moko-visual-height, 100dvh) - 110px); }
  body.keyboard-open .mobile-actions { display: none; }
  body.keyboard-open.form-editing #moko-live-host { display: none !important; }
  [data-reveal] { transition-duration: .35s; transition-delay: 0s; }
}

@media (max-width: 560px) {
  .header .nav-cta { display: none; }
  .hero-cta { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .hero-cta .btn { width: 100%; justify-content: center; white-space: normal; text-align: center; }
  .hero h1 { letter-spacing: -.05em; }
  .form-card, .sp-box, .sys-card, .ms-panel, .works-band .port-item { padding: 20px; }
  .hero-panels { margin-top: 22px; }
  .hp-chips { gap: 7px; }
  .hs-bar { flex-wrap: wrap; gap: 10px; }
  .hs-dots { justify-content: flex-start; }
  .hero-visual .hv-float { position: static; margin: 12px 0 0 auto; width: fit-content; max-width: 100%; }
  .hv-list li { gap: 8px; }
  .hv-job { min-width: 0; white-space: normal; }
  .svc-row { min-height: 76px; }
  .svc-row .title { font-size: clamp(20px, 5.5vw, 27px); }
  .svc-row .toggle { width: 36px; height: 36px; }
  .ms-panels .ms-panel .btn { padding-inline: 14px; font-size: 14px; }
  .ms-creds > div { flex-direction: column; gap: 3px; }
  .ms-creds b { text-align: left; }
  .lb-stage { width: calc(100vw - 24px); max-width: 100%; }
  .lb-thumbs { max-width: calc(100vw - 24px); }
}

@media (max-width: 360px) {
  .container { width: calc(100% - 28px); }
  .hero-badge { font-size: 9.5px; }
  .form-card, .sp-box, .sys-card, .ms-panel, .works-band .port-item { padding: 17px; }
  .hv-panel { padding: 16px; }
  .hv-kpis { gap: 8px; }
  .hv-kpi strong { font-size: 25px; }
  .mobile-actions { padding-inline: 12px; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu, .mobile-menu .mm-links a, .mobile-menu .mm-foot { transition: none; }
  .hero h1 .w-in { animation: none; transform: none; }
}
