:root {
  color-scheme: light;
  --ink: #000000;
  --muted: #667587;
  --paper: #f6f8fb;
  --white: #ffffff;
  --line: #dce4ec;
  --yellow: #f4d300;
  --yellow-dark: #b48600;
  --blue: #0084ff;
  --green: #25d366;
  --shadow: 0 24px 70px rgba(17, 33, 51, 0.18);
  font-family: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
}
body.widget-only { min-height: 100dvh; background: transparent; }

a { color: inherit; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 28px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; letter-spacing: -0.02em; }
.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  border-radius: 10px 10px 10px 3px;
}
nav { display: flex; gap: 24px; color: var(--muted); font-size: 14px; }
nav a { text-decoration: none; }
nav a:hover, nav a:focus-visible { color: var(--ink); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 80px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 86px 28px 126px;
  align-items: center;
}
.hero-copy { max-width: 700px; }
.eyebrow {
  margin: 0 0 18px;
  color: var(--yellow-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 680px; margin-bottom: 24px; font-size: clamp(2.8rem, 6vw, 5.6rem); line-height: 0.98; letter-spacing: -0.065em; }
.hero-intro { max-width: 560px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.hero-link { display: inline-flex; gap: 8px; align-items: center; margin-top: 18px; color: var(--ink); font-weight: 700; text-decoration: none; }
.hero-link span { color: var(--yellow-dark); font-size: 20px; }
.hero-card { padding: 28px; color: var(--white); background: var(--ink); border-radius: 22px; box-shadow: 18px 18px 0 var(--yellow); }
.hero-card span { display: block; color: #b9c4cf; line-height: 1.45; }
.hero-card .card-label { margin-bottom: 38px; color: var(--yellow); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.hero-card strong { display: block; margin-bottom: 4px; font-size: 44px; line-height: 1; letter-spacing: -0.06em; }
.card-line { height: 1px; margin: 32px 0 20px; background: #405062; }
.card-note { font-size: 14px; }

.steps-section { max-width: 1180px; margin: 0 auto; padding: 0 28px 110px; }
h2 { max-width: 560px; margin-bottom: 42px; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.03; letter-spacing: -0.055em; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step-card { min-height: 220px; padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; }
.step-number { color: var(--yellow-dark); font-size: 13px; font-weight: 700; }
.step-card h3 { margin: 46px 0 10px; font-size: 20px; letter-spacing: -0.03em; }
.step-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.contact-strip { display: flex; justify-content: space-between; max-width: 1180px; margin: 0 auto; padding: 24px 28px 110px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.contact-strip span:first-child { color: var(--ink); font-weight: 700; }

#chat-root { position: relative; z-index: 10; }
.chat-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 15px;
  color: #171b1d;
  background: var(--yellow);
  border: 0;
  border-radius: 24px;
  box-shadow: 0 10px 24px rgba(17, 33, 51, 0.2);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.chat-launcher:hover, .chat-launcher:focus-visible { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(17, 33, 51, 0.24); }
.launcher-icon { display: grid; width: 22px; height: 22px; place-items: center; color: #111111; }
.launcher-icon svg { display: block; width: 22px; height: 22px; }
.launcher-dot { position: absolute; top: -1px; right: -1px; width: 14px; height: 14px; background: #f33e32; border: 2px solid var(--yellow); border-radius: 50%; }
@keyframes launcher-pulse {
  0%, 70%, 100% { transform: scale(1); box-shadow: 0 10px 24px rgba(17, 33, 51, 0.2); }
  78% { transform: scale(1.025); box-shadow: 0 12px 26px rgba(17, 33, 51, 0.24); }
  86% { transform: scale(1); box-shadow: 0 10px 24px rgba(17, 33, 51, 0.2); }
}
.launcher-attention { animation: launcher-pulse 3.6s ease-in-out infinite; }
.chat-panel {
  position: fixed;
  right: 24px;
  bottom: 78px;
  display: flex;
  flex-direction: column;
  width: min(360px, calc(100vw - 32px));
  max-height: min(650px, calc(100dvh - 96px));
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(17, 33, 51, 0.08);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.chat-panel-form { height: min(680px, calc(100dvh - 96px)); }
@keyframes chat-panel-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes chat-item-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-panel-intro {
  animation: chat-panel-enter 320ms ease-out both;
}
.chat-panel-intro [data-enter] {
  animation: chat-item-enter 480ms cubic-bezier(0.22, 1, 0.36, 1) var(--enter-delay, 0ms) both;
}
.chat-header { display: flex; align-items: center; gap: 12px; padding: 20px 20px 18px; background: #f7f7f8; border-bottom: 1px solid #dfe2e6; }
.chat-avatar { position: relative; display: grid; flex: 0 0 auto; place-items: center; overflow: visible; color: var(--white); background: var(--ink); border-radius: 50%; font-weight: 700; }
.chat-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.chat-avatar-large { width: 52px; height: 52px; }
.chat-avatar-small { width: 42px; height: 42px; margin-top: 4px; }
.presence-dot { position: absolute; right: -2px; bottom: -2px; z-index: 2; width: 14px; height: 14px; background: #39d514; border: 2px solid #f7f7f8; border-radius: 50%; }
.chat-header-copy { flex: 1; }
.chat-header-copy strong, .chat-header-copy span { display: block; }
.chat-header-copy strong { color: #111111; font-size: 18px; line-height: 1.05; }
.chat-header-copy span { margin-top: 6px; color: #111111; font-size: 14px; font-weight: 700; line-height: 1.1; }
.chat-close { width: 28px; height: 28px; color: #9aa2aa; background: transparent; border: 0; border-radius: 50%; font-size: 19px; line-height: 1; opacity: 0.72; cursor: pointer; }
.chat-close:hover, .chat-close:focus-visible { color: #68747f; background: #edf1f5; opacity: 1; }
.chat-body { display: flex; min-height: 0; flex: 1; flex-direction: column; overflow: hidden; padding: 16px 20px 20px; }
.chat-message-row { display: flex; align-items: flex-start; gap: 12px; }
.chat-message-row .message { flex: 1; }
.message { padding: 12px 14px; background: #f1f1f3; border-radius: 4px 17px 17px 17px; color: #171717; font-size: 15px; line-height: 1.35; }
.message p:last-child { margin-bottom: 0; }
.message p + p { margin-top: 12px; }
.lead-form-shell { display: flex; min-height: 0; flex: 1; flex-direction: column; margin-top: 14px; }
.lead-form { min-height: 0; overflow: auto; margin-top: 0; padding: 0 2px 8px; }
.name-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lead-form { display: grid; gap: 9px; }
.field { display: grid; gap: 4px; }
.field label { color: #3b4b5c; font-size: 13px; font-weight: 700; }
.field input, .field select { width: 100%; padding: 10px 12px; color: var(--ink); background: var(--white); border: 1px solid #cbd6e0; border-radius: 10px; font: inherit; font-size: 14px; outline: 0; }
.field input:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 132, 255, 0.14); }
.form-footer { flex: 0 0 auto; padding-top: 10px; background: var(--white); border-top: 1px solid #edf1f5; box-shadow: 0 -10px 18px rgba(255, 255, 255, 0.96); }
.consent { display: flex; gap: 9px; align-items: flex-start; color: var(--muted); font-size: 12px; line-height: 1.45; }
.consent input { margin-top: 3px; accent-color: var(--ink); }
.consent a { color: var(--ink); font-weight: 700; }
.primary-action { flex: 0 0 auto; width: 100%; margin-top: 8px; padding: 13px 16px; color: var(--white); background: var(--ink); border: 0; border-radius: 11px; font: inherit; font-weight: 700; cursor: pointer; }
.primary-action:hover, .primary-action:focus-visible { background: #171717; }
@keyframes primary-action-tease {
  0%, 72%, 100% { transform: translateY(0); box-shadow: none; }
  78% { transform: translateY(-1px); box-shadow: 0 5px 12px rgba(0, 0, 0, 0.14); }
  84% { transform: translateY(0); box-shadow: none; }
}
.primary-action { animation: primary-action-tease 4.8s ease-in-out 1.4s infinite; }
.error { min-height: 18px; margin: 0; color: #bf2d28; font-size: 12px; }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.success-message { margin-bottom: 16px; }
.lead-reference { display: inline-block; margin: 4px 0 16px; padding: 7px 9px; color: #526476; background: #f1f4f7; border-radius: 8px; font: 700 12px ui-monospace, SFMono-Regular, Menlo, monospace; }
.channel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.channel-button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 11px 12px; color: var(--white); border: 0; border-radius: 15px; font: inherit; font-size: 15px; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer; }
.channel-icon { display: grid; flex: 0 0 auto; width: 22px; height: 22px; place-items: center; }
.channel-icon svg { display: block; width: 22px; height: 22px; }
.channel-button.whatsapp { background: var(--green); }
.channel-button.messenger { background: var(--blue); }
.channel-button.disabled { color: var(--white); background: #0d8cf0; cursor: not-allowed; opacity: 0.72; }
.secondary-action { width: 100%; margin-top: 14px; padding: 10px; color: var(--muted); background: transparent; border: 0; font: inherit; font-size: 13px; cursor: pointer; }
.secondary-action:hover, .secondary-action:focus-visible { color: var(--ink); }
.status-note { margin: 15px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 760px) {
  .site-header { padding: 20px 18px; }
  nav { display: none; }
  .hero { display: block; padding: 58px 18px 92px; }
  .hero-card { max-width: 320px; margin: 54px 0 0 10px; }
  .steps-section { padding: 0 18px 80px; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card { min-height: auto; }
  .step-card h3 { margin-top: 30px; }
  .contact-strip { display: grid; gap: 5px; padding: 22px 18px 100px; }
  .chat-launcher { right: 16px; bottom: 16px; }
  .chat-panel { right: 16px; bottom: 70px; width: min(320px, calc(100vw - 32px)); max-height: min(560px, calc(100dvh - 88px)); border-radius: 16px; }
  .chat-panel-form { height: min(560px, calc(100dvh - 88px)); max-height: min(560px, calc(100dvh - 88px)); }
  .chat-header { gap: 10px; padding: 14px 14px 12px; }
  .chat-avatar-large { width: 44px; height: 44px; }
  .chat-header-copy strong { font-size: 16px; }
  .chat-header-copy span { margin-top: 4px; font-size: 13px; }
  .chat-body { padding: 14px 12px 12px; overflow: hidden; }
  .message { padding: 10px 12px; font-size: 14px; }
  .field input, .field select { padding: 9px 10px; font-size: 13px; }
  .channel-button { min-height: 44px; padding: 9px 10px; font-size: 14px; }
  .lead-form-shell { flex: 1 1 auto; }
  .lead-form { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .name-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .launcher-attention,
  .chat-panel-intro,
  .chat-panel-intro [data-enter],
  .primary-action { animation: none; }
}
