/* =========================================================
   Caramba Landing — styles
   ---------------------------------------------------------
   Designed around the real-product palette: royal blue
   primary, action green CTAs, WhatsApp emphasis throughout.
   ========================================================= */

@import url('./colors_and_type.css');

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--fg-1);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
.mono { font-family: var(--font-mono); }

.eyebrow {
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--caramba-blue-600);
  margin-bottom: 18px;
}
.eyebrow.center { display: flex; justify-content: center; }
.section-h {
  font-family: var(--font-sans); font-weight: 800;
  font-size: 48px; line-height: 1.04; letter-spacing: -0.025em; text-align: center;
  color: var(--fg-1);
}
.section-h .muted { color: var(--neutral-400); font-weight: 700; }
.section-sub { text-align: center; color: var(--fg-2); font-size: 17px; margin-top: 14px; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px;
  font-weight: 600; font-size: 14.5px;
  transition: all 0.18s var(--ease-out);
}
.btn i { width: 16px; height: 16px; stroke-width: 2.2; }
.btn-lg { padding: 14px 22px; font-size: 15.5px; border-radius: 12px; }
.btn-block { width: 100%; justify-content: center; }
.btn-primary {
  background: var(--caramba-green-500);
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(22, 163, 74, 0.50);
}
.btn-primary:hover { background: var(--caramba-green-600); transform: translateY(-1px); }
.btn-ghost {
  background: #fff; color: var(--fg-1);
  border: 1px solid var(--border-default);
}
.btn-ghost:hover { background: var(--neutral-50); }
.btn-ghost-dark {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-ghost-dark:hover { background: rgba(255,255,255,0.14); }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 48px;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.88);
  border-bottom: 1px solid var(--border-subtle);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 22px;
  color: var(--fg-1); letter-spacing: -0.02em;
}
.brand-mark { width: auto; height: 34px; }
.nav-links { display: flex; gap: 28px; font-size: 14px; font-weight: 500; color: var(--fg-2); }
.nav-links a:hover { color: var(--fg-1); }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-demo-mobile { display: none; }
.nav-cta .link { font-size: 14px; font-weight: 500; color: var(--fg-2); }
.nav-cta .link:hover { color: var(--fg-1); }

/* =========================================================
   HERO
   ========================================================= */
.hero { background: var(--caramba-blue-700); color: #fff; padding: 80px 48px 96px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -100px; right: -100px; width: 500px; height: 500px; border-radius: 999px; background: radial-gradient(circle, rgba(255,184,0,0.16), transparent 60%); pointer-events: none; }
.hero-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; position: relative; }
.hero-copy .eyebrow { color: var(--caramba-green-300); }
.hero-h1 { font-family: var(--font-display); font-weight: 800; font-size: 84px; line-height: 0.96; letter-spacing: -0.035em; }
.hero-h1 .hl { color: var(--caramba-green-500); }
.hero-sub { font-size: 19px; line-height: 1.5; color: rgba(255,255,255,0.78); margin-top: 24px; max-width: 520px; }
.hero-ctas { display: flex; gap: 14px; margin-top: 36px; }
.hero-meta { display: flex; gap: 22px; margin-top: 28px; font-size: 13.5px; color: rgba(255,255,255,0.65); }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta i { width: 14px; height: 14px; color: var(--caramba-green-500); }

/* Hero device */
.hero-visual { position: relative; }
.device { position: relative; }
.device-glow { position: absolute; inset: -40px; background: radial-gradient(circle at 50% 50%, rgba(255,184,0,0.20), transparent 60%); filter: blur(20px); }
.device-screen { position: relative; background: #fff; color: var(--fg-1); border-radius: 16px; padding: 16px; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5); }
.ds-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--border-subtle); }
.ds-logo { display: flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.ds-logo img { width: auto; height: 20px; }
.ds-pills { display: flex; gap: 4px; }
.ds-pill { padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 500; color: var(--fg-2); }
.ds-pill.active { background: var(--caramba-blue-700); color: #fff; }
.ds-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px 0; }
.ds-stat { padding: 10px; border-radius: 8px; background: var(--neutral-50); }
.ds-stat-l { font-size: 10px; color: var(--fg-3); font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; }
.ds-stat-v { font-family: var(--font-mono); font-size: 20px; font-weight: 600; margin-top: 4px; }
.ds-stat-d { font-size: 10px; font-weight: 600; margin-top: 2px; }
.ds-stat-d.up { color: var(--success); }
.ds-orders { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px solid var(--border-subtle); }
.ds-row { display: grid; grid-template-columns: 60px 80px 1fr auto; align-items: center; gap: 8px; padding: 8px; border-radius: 6px; font-size: 11px; }
.ds-row:hover { background: var(--neutral-50); }
.ds-id { font-family: var(--font-mono); color: var(--caramba-blue-500); font-weight: 600; }
.ds-plate { font-family: var(--font-mono); background: var(--caramba-blue-700); color: #fff; padding: 2px 6px; border-radius: 4px; font-size: 10px; letter-spacing: 0.06em; text-align: center; }
.ds-model { color: var(--fg-1); font-weight: 500; font-size: 11.5px; }
.ds-status { font-size: 10px; padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.ds-status.warn { background: var(--warning-bg); color: #a16207; }
.ds-status.yellow { background: var(--caramba-green-100); color: #8a6500; }
.ds-status.blue { background: var(--info-bg); color: var(--info); }

.device-wa { position: absolute; bottom: -30px; right: -40px; background: #ECE5DD; border-radius: 14px; padding: 10px; width: 220px; box-shadow: 0 20px 30px -10px rgba(0,0,0,0.4); }
.wa-head { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--caramba-green-600); margin-bottom: 8px; }
.wa-head i { width: 14px; height: 14px; }
.wa-bubble { background: #fff; color: var(--fg-1); padding: 6px 10px; border-radius: 8px; font-size: 12px; margin-bottom: 4px; line-height: 1.35; }
.wa-bubble.me { background: #DCF8C6; align-self: flex-end; margin-left: 30px; }

/* =========================================================
   FEATURES
   ========================================================= */
.features { padding: 96px 48px; background: var(--neutral-50); }
.features-inner { max-width: 1280px; margin: 0 auto; }
.feat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 56px;
}
.feat-card {
  padding: 28px; border-radius: 16px;
  background: #fff; border: 1px solid var(--border-subtle);
  transition: all 0.2s var(--ease-out);
}
.feat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feat-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feat-icon i { width: 24px; height: 24px; stroke-width: 2; }
.tone-whatsapp .feat-icon { background: var(--caramba-green-50); color: var(--caramba-green-600); }
.tone-yellow .feat-icon { background: var(--icon-bg-yellow); color: var(--icon-fg-yellow); }
.tone-navy .feat-icon { background: var(--caramba-blue-tint); color: var(--caramba-blue-600); }
.feat-title {
  font-size: 21px; font-weight: 700;
  letter-spacing: -0.015em; margin-bottom: 8px;
}
.feat-body { color: var(--fg-2); font-size: 15px; line-height: 1.5; }

/* =========================================================
   HOW IT WORKS — three flows
   ========================================================= */
.how { padding: 96px 48px; background: #fff; }
.how-inner { max-width: 1180px; margin: 0 auto; }
.how-head { margin-bottom: 64px; }

.flows {
  display: flex; flex-direction: column; gap: 96px;
}
.flow-card {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: 56px; align-items: center;
}
.flow-card.alt { grid-template-columns: 1fr 1.05fr; }
.flow-card.alt .flow-copy { order: 2; }
.flow-card.alt .flow-phone-wrap { order: 1; }

.flow-eyebrow {
  display: inline-block;
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--caramba-green-600);
  background: var(--caramba-green-50);
  padding: 5px 10px; border-radius: 999px;
}
.flow-title {
  font-size: 36px; font-weight: 800;
  letter-spacing: -0.025em;
  margin-top: 14px;
  line-height: 1.1;
}
.flow-lead {
  font-size: 17px; line-height: 1.55;
  color: var(--fg-2);
  margin-top: 14px; max-width: 460px;
}
.flow-steps {
  list-style: none;
  margin-top: 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.flow-steps li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 14.5px; line-height: 1.5; color: var(--fg-1);
}
.fs-n {
  width: 24px; height: 24px; border-radius: 999px;
  background: var(--caramba-blue-tint);
  color: var(--caramba-blue-600);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  flex: 0 0 auto;
  margin-top: 1px;
}
.flow-trigger {
  margin-top: 22px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: var(--caramba-green-50);
  color: var(--caramba-green-700);
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
}
.flow-trigger i { width: 15px; height: 15px; stroke-width: 2.5; }

/* Phone in how-it-works */
.flow-phone-wrap { display: flex; justify-content: center; }
.fphone {
  width: 320px;
  background: #1A2330;
  border-radius: 36px;
  padding: 10px;
  box-shadow: var(--shadow-lg), 0 40px 80px -30px rgba(20, 30, 50, 0.5);
}
.fp-screen {
  background: #ECE5DD;
  border-radius: 28px;
  overflow: hidden;
  height: 540px;
  display: flex; flex-direction: column;
}
.fp-head {
  background: #075E54; color: #fff;
  padding: 14px 14px 12px;
  display: flex; align-items: center; gap: 10px;
}
.fp-head i { width: 18px; height: 18px; }
.fp-contact { display: flex; align-items: center; gap: 10px; flex: 1; }
.fp-avatar {
  width: 36px; height: 36px; border-radius: 999px;
  background: var(--caramba-blue-600); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.fp-name { font-size: 14px; font-weight: 600; }
.fp-status { font-size: 11px; opacity: 0.7; margin-top: 1px; }
.fp-thread {
  flex: 1;
  padding: 16px 12px;
  display: flex; flex-direction: column; gap: 6px;
  overflow: hidden;
}
.fp-bubble {
  background: #fff;
  padding: 9px 12px;
  border-radius: 8px;
  border-top-left-radius: 2px;
  font-size: 13.5px; line-height: 1.4;
  max-width: 88%;
  box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
  align-self: flex-start;
}
.fp-bubble.them { /* default */ }
.fp-doc {
  display: flex; align-items: center; gap: 10px;
  padding: 10px;
}
.fp-doc-icon {
  width: 38px; height: 38px;
  background: var(--caramba-blue-tint);
  color: var(--caramba-blue-600);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.fp-doc-icon i { width: 19px; height: 19px; }
.fp-doc-name {
  font-size: 13px; font-weight: 600; color: var(--fg-1);
  word-break: break-word;
}
.fp-doc-meta { font-size: 11px; color: var(--fg-3); margin-top: 2px; }

/* =========================================================
   DYNAMIC WORKFLOW DEMO
   ========================================================= */
.flow-demo {
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 28px 54px -42px rgba(9, 42, 92, 0.52);
}
.flow-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 8px;
  background: var(--neutral-50);
  border-bottom: 1px solid var(--border-subtle);
}
.flow-tab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--fg-2);
  font-size: 14px;
  font-weight: 750;
  transition: color 180ms var(--ease-out), background-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out), transform 180ms var(--ease-out);
}
.flow-tab:hover { color: var(--caramba-blue-700); background: var(--caramba-blue-tint); }
.flow-tab.is-active { color: var(--caramba-blue-700); background: #fff; box-shadow: var(--shadow-sm); }
.flow-tab:active { transform: scale(0.98); }
.flow-tab:focus-visible { outline: 3px solid #ffb800; outline-offset: 2px; }
.flow-tab-index {
  color: var(--caramba-green-600);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.flow-demo-stage {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  min-height: 500px;
}
.flow-demo-copy {
  display: flex;
  align-items: center;
  padding: clamp(28px, 4vw, 56px);
  background: #fff;
}
.flow-panel { width: 100%; animation: flow-panel-enter 320ms var(--ease-out) both; }
.flow-panel[hidden] { display: none; }
.flow-demo-copy .flow-title { margin-top: 14px; }
.flow-demo-copy .flow-lead { max-width: 440px; }
.flow-demo-copy .flow-steps { max-width: 470px; }
.flow-demo-screen {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  background: var(--neutral-900);
  color: rgba(255,255,255,0.75);
}
.flow-demo-screen-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 0 18px;
  background: #12264b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.flow-demo-screen-bar span:last-child { color: var(--caramba-green-300); text-align: right; }
.flow-demo-image-wrap {
  position: relative;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
}
.flow-demo-image-wrap > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: top center;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 230ms var(--ease-out), transform 230ms var(--ease-out);
}
.flow-demo-image-wrap > img.is-changing { opacity: 0; transform: translateY(10px); }

/* Teléfono generado en CSS: acompaña cada captura con el mensaje real del flujo. */
.flow-chat-phone {
  position: absolute;
  z-index: 1;
  right: clamp(14px, 3vw, 30px);
  bottom: clamp(16px, 3vw, 30px);
  width: clamp(184px, 26vw, 250px);
  color: #132238;
  filter: drop-shadow(0 18px 18px rgba(7, 21, 42, 0.28));
  transform-origin: right bottom;
  animation: flow-chat-phone-enter 580ms 120ms var(--ease-out) both, flow-chat-phone-float 5s 800ms ease-in-out infinite;
}
.flow-chat-phone-frame {
  position: relative;
  padding: 7px;
  border: 2px solid #273246;
  border-radius: 28px;
  background: #172131;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}
.flow-chat-phone-speaker {
  position: absolute;
  z-index: 1;
  top: 10px;
  left: 50%;
  width: 44px;
  height: 7px;
  border-radius: 99px;
  background: #152031;
  transform: translateX(-50%);
}
.flow-chat-phone-screen { overflow: hidden; border-radius: 21px; background: #edf3f0; }
.flow-chat-phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 23px;
  padding: 7px 12px 0;
  color: #f8fbfd;
  background: #075f55;
  font-size: 8px;
  font-weight: 800;
}
.flow-chat-phone-status-icons { display: flex; align-items: flex-end; gap: 2px; }
.flow-chat-phone-status-icons b { display: block; width: 3px; border-radius: 1px; background: #f8fbfd; }
.flow-chat-phone-status-icons b:nth-child(1) { height: 3px; }
.flow-chat-phone-status-icons b:nth-child(2) { height: 5px; }
.flow-chat-phone-status-icons b:nth-child(3) { width: 6px; height: 6px; border-radius: 50%; }
.flow-chat-header { display: flex; align-items: center; gap: 7px; min-height: 45px; padding: 7px 10px; color: #fff; background: #075f55; }
.flow-chat-back { font-size: 23px; line-height: 1; font-weight: 300; }
.flow-chat-avatar { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #d5e7e3; color: #075f55; font-size: 11px; font-weight: 900; }
.flow-chat-contact { display: flex; flex: 1; min-width: 0; flex-direction: column; }
.flow-chat-contact strong { overflow: hidden; font-size: 10px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.flow-chat-contact small { overflow: hidden; color: rgba(255,255,255,0.76); font-size: 7px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.flow-chat-menu { display: flex; flex-direction: column; gap: 2px; padding: 4px; }
.flow-chat-menu i { width: 3px; height: 3px; border-radius: 50%; background: #fff; }
.flow-chat-thread { display: flex; min-height: 255px; flex-direction: column; gap: 5px; padding: 11px 8px; background-color: #edf3f0; background-image: radial-gradient(rgba(7,95,85,0.06) 0.7px, transparent 0.7px); background-size: 8px 8px; }
.flow-chat-date { align-self: center; padding: 3px 6px; border-radius: 4px; background: rgba(255,255,255,0.72); color: #738088; font-size: 6px; font-weight: 800; letter-spacing: .08em; }
.flow-chat-bubble, .flow-chat-document { position: relative; max-width: 90%; border-radius: 5px; box-shadow: 0 1px 1px rgba(18,35,56,0.12); font-size: 8px; line-height: 1.36; }
.flow-chat-bubble { padding: 7px 7px 12px; }
.flow-chat-bubble-in, .flow-chat-document { align-self: flex-start; background: #fff; }
.flow-chat-bubble-out { align-self: flex-end; background: #d9fdd3; }
.flow-chat-bubble time { position: absolute; right: 6px; bottom: 3px; color: #7e8a8f; font-size: 6px; }
.flow-chat-bubble-out time b { margin-left: 2px; color: #2c9ab7; letter-spacing: -2px; }
.flow-chat-document { display: flex; align-items: center; gap: 6px; padding: 7px; }
.flow-chat-document-mark { display: grid; place-items: center; width: 25px; height: 29px; border-radius: 3px; background: #e8f0ff; color: #1d55a3; font-size: 7px; font-weight: 900; }
.flow-chat-document > span:nth-child(2) { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; }
.flow-chat-document strong { overflow: hidden; color: #2a3645; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.flow-chat-document small { color: #849096; font-size: 6px; }
.flow-chat-download { width: 14px; height: 14px; border: 1px solid #8aa4a0; border-radius: 50%; }
.flow-chat-download::after { content: ''; display: block; width: 4px; height: 6px; margin: 2px auto 0; border-right: 1px solid #4d6b67; border-bottom: 1px solid #4d6b67; transform: rotate(45deg); }
.flow-chat-compose { display: flex; align-items: center; gap: 8px; margin: 5px; padding: 7px 9px; border-radius: 99px; background: #fff; color: #9ca6a8; font-size: 7px; }
.flow-chat-compose span { flex: 1; }
.flow-chat-compose b { width: 14px; height: 14px; border-radius: 50%; background: #0b806f; }
.flow-chat-notice { position: absolute; right: -5px; bottom: -13px; display: inline-flex; align-items: center; gap: 4px; padding: 5px 7px; border: 1px solid rgba(255,255,255,0.66); border-radius: 99px; background: rgba(255,255,255,0.94); color: #286554; box-shadow: 0 6px 14px rgba(11,38,51,0.16); font-size: 7px; font-weight: 800; white-space: nowrap; animation: flow-chat-notice-enter 400ms 620ms var(--ease-out) both; }
.flow-chat-notice b { width: 5px; height: 5px; border-radius: 50%; background: #24a36f; animation: flow-chat-pulse 1.8s ease-in-out infinite; }
.flow-chat-message-1 { animation: flow-chat-message-enter 340ms 220ms var(--ease-out) both; }
.flow-chat-message-2 { animation: flow-chat-message-enter 340ms 340ms var(--ease-out) both; }
.flow-chat-message-3 { animation: flow-chat-message-enter 340ms 460ms var(--ease-out) both; }
.flow-chat-message-4 { animation: flow-chat-message-enter 340ms 580ms var(--ease-out) both; }
@keyframes flow-chat-phone-enter { from { opacity: 0; transform: translate3d(20px, 28px, 0) rotate(3deg) scale(.9); } to { opacity: 1; transform: translate3d(0, 0, 0) rotate(0) scale(1); } }
@keyframes flow-chat-phone-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@keyframes flow-chat-message-enter { from { opacity: 0; transform: translate3d(0, 8px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes flow-chat-notice-enter { from { opacity: 0; transform: translate3d(0, 8px, 0) scale(.9); } to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); } }
@keyframes flow-chat-pulse { 50% { opacity: .38; transform: scale(.7); } }
.flow-demo-screen figcaption {
  padding: 12px 18px;
  color: rgba(255,255,255,0.72);
  font-size: 12px;
  font-weight: 650;
}
.flow-demo-hint {
  margin: 0;
  padding: 14px 20px;
  border-top: 1px solid var(--border-subtle);
  color: var(--fg-3);
  font-size: 13px;
  text-align: center;
}
@keyframes flow-panel-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 760px) {
  .flow-tabs {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    padding: 12px 16px;
    gap: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .flow-tabs::-webkit-scrollbar { display: none; }
  .flow-tab {
    flex: 0 0 max-content;
    scroll-snap-align: start;
    font-size: 14px;
    min-height: 48px;
    padding: 10px 18px;
    gap: 8px;
  }
  .flow-tab-index { display: inline-block; }
  .flow-demo-stage { grid-template-columns: 1fr; min-height: 0; }
  .flow-demo-copy { padding: 28px 24px 32px; }
  .flow-demo-screen { min-height: 310px; }
  .flow-chat-phone { right: 14px; bottom: 18px; width: clamp(170px, 55vw, 230px); }
  .flow-chat-thread { min-height: 225px; }
}
@media (prefers-reduced-motion: reduce) {
  .flow-tab, .flow-demo-image-wrap > img { transition: none; }
  .flow-panel, .flow-chat-phone, .flow-chat-notice, .flow-chat-notice b,
  .flow-chat-message-1, .flow-chat-message-2, .flow-chat-message-3, .flow-chat-message-4 { animation: none; }
}

/* Anclaje consistente del chat al borde inferior derecho de la captura. */
.flow-chat-phone {
  right: clamp(10px, 1.8vw, 20px);
  bottom: clamp(16px, 2.2vw, 24px);
}
@media (max-width: 760px) {
  .flow-chat-phone { right: 10px; bottom: 14px; }
}

/* =========================================================
   PRICING
   ========================================================= */
.pricing { padding: 96px 48px; background: var(--neutral-50); }
.pricing-inner { max-width: 1180px; margin: 0 auto; }
.plan-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 56px;
}
.plan {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 32px;
  position: relative;
  display: flex; flex-direction: column;
}
.plan.featured {
  border: 2px solid var(--caramba-blue-600);
  background: var(--caramba-blue-700);
  color: #fff;
  transform: scale(1.03);
}

/* Billing selector — centered payment cadence control */
.billing-control {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  margin: var(--space-6) auto 0;
  text-align: center;
}
.billing-caption {
  color: var(--fg-2);
  font-size: var(--text-sm);
  font-weight: 600;
}
.billing-note {
  color: var(--fg-3);
  font-size: var(--text-xs);
}
.billing-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 300px;
  max-width: 100%;
  padding: var(--space-1);
  background: var(--neutral-100);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-xs);
  position: relative;
}
.billing-toggle > span:not(.billing-switch) {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-pill);
  color: var(--fg-2);
  font-size: var(--text-sm);
  font-weight: 700;
  white-space: nowrap;
  transition: color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.billing-toggle > span.active {
  color: var(--caramba-blue-700);
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}
.billing-toggle strong {
  margin-left: var(--space-1);
  color: var(--caramba-green-600);
  font-size: var(--text-xs);
}
.billing-toggle input {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  margin: 0;
  cursor: pointer;
  border-radius: var(--radius-pill);
}
.billing-toggle input:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus-ring);
}
.billing-switch { display: none; }

.pricing-inner > .billing-control + .plan-grid { margin-top: var(--space-10); }

@media (max-width: 760px) {
  .billing-control { margin-top: var(--space-5); }
  .billing-toggle { width: min(100%, 340px); }
  .pricing-inner > .billing-control + .plan-grid { margin-top: var(--space-8); }
}

@media (prefers-reduced-motion: reduce) {
  .billing-toggle > span:not(.billing-switch) { transition: none; }
}
.plan-tag {
  position: absolute; top: -12px; left: 32px;
  background: var(--caramba-green-500); color: #fff;
  padding: 5px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
}
.plan-name { font-size: 24px; font-weight: 800; letter-spacing: -0.015em; }
.plan-sub { font-size: 13px; color: var(--fg-2); margin-top: 4px; }
.plan.featured .plan-sub { color: rgba(255,255,255,0.7); }
.plan-price { margin: 24px 0; display: flex; align-items: baseline; gap: 6px; }
.price-num {
  font-family: var(--font-mono); font-size: 38px; font-weight: 700;
  letter-spacing: -0.02em;
}
.price-unit { font-size: 13px; color: var(--fg-2); }
.plan.featured .price-unit { color: rgba(255,255,255,0.7); }
.plan-feats {
  list-style: none;
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 28px; flex: 1;
}
.plan-feats li {

.price-annual {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-1);
  width: 100%;
}
.price-annual[hidden] { display: none; }
.annual-kicker {
  color: var(--caramba-green-600);
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.annual-price-line {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}
.annual-price-line .price-num {
  font-variant-numeric: tabular-nums;
}
.annual-context {
  color: var(--fg-2);
  font-size: var(--text-sm);
  line-height: 1.4;
}
.annual-context strong { color: var(--caramba-green-700); }
.plan.featured .annual-kicker { color: var(--caramba-green-300); }
.plan.featured .annual-context { color: rgba(255,255,255,0.74); }
.plan.featured .annual-context strong { color: var(--caramba-green-200); }
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; line-height: 1.45;
}
.plan-feats i {
  width: 16px; height: 16px;
  color: var(--caramba-green-500); flex: 0 0 auto;
  margin-top: 2px; stroke-width: 2.5;
}
.plan.featured .plan-feats i { color: var(--caramba-green-300); }

/* =========================================================
   ALL PLANS INCLUDE — compact editorial feature field
   ========================================================= */
.plan-includes {
  position: relative;
  margin-top: clamp(64px, 7vw, 92px);
  padding: clamp(34px, 4.5vw, 52px) 0 8px;
  border-top: 1px solid var(--border-default);
}
.plan-includes::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 58px;
  height: 3px;
  background: var(--caramba-green-500);
}
.plan-includes-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.55fr);
  align-items: end;
  gap: clamp(20px, 4vw, 56px);
}
.plan-includes-title {
  max-width: 560px;
  color: var(--fg-1);
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-wrap: balance;
}
.plan-includes-heading p {
  max-width: 34ch;
  padding-bottom: 2px;
  color: var(--fg-2);
  font-size: 14px;
  line-height: 1.48;
}
.plan-includes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(24px, 3.5vw, 48px);
  row-gap: clamp(28px, 3.5vw, 40px);
  margin-top: clamp(34px, 4vw, 48px);
}
.plan-include-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-top: 16px;
  transition: transform 220ms var(--ease-out);
}
.plan-include-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--caramba-green-500);
  transition: width 220ms var(--ease-out);
}
.plan-include-item:hover { transform: translateY(-3px); }
.plan-include-item:hover::before { width: 46px; }
.plan-include-check {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--caramba-green-600);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}
.plan-include-item h4 {
  color: var(--fg-1);
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.018em;
  line-height: 1.25;
}
.plan-include-item p {
  max-width: 29ch;
  margin-top: 5px;
  color: var(--fg-2);
  font-size: 13px;
  line-height: 1.46;
}
@media (max-width: 900px) {
  .plan-includes-heading { grid-template-columns: 1fr; gap: 12px; }
  .plan-includes-heading p { max-width: 48ch; padding-bottom: 0; }
  .plan-includes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .plan-includes { margin-top: 48px; padding-top: 32px; }
  .plan-includes-title { font-size: clamp(30px, 9vw, 36px); }
  .plan-includes-grid { grid-template-columns: 1fr; row-gap: 26px; margin-top: 32px; }
  .plan-include-item h4 { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .plan-include-item, .plan-include-item::before { transition: none; }
}

/* =========================================================
   FINAL CTA
   ========================================================= */
.final-cta {
  background: var(--caramba-blue-700);
  color: #fff;
  padding: 96px 48px;
  text-align: center;
}
.final-cta-inner { max-width: 1120px; margin: 0 auto; }
.demo-form {
  position: relative;
  display: grid;
  gap: 24px;
  margin: 0 auto;
  max-width: 940px;
  padding: clamp(24px, 5vw, 40px);
  text-align: left;
  background: rgba(5, 34, 79, 0.32);
  border: 1px solid rgba(255,255,255,0.32);
  border-radius: 16px;
  box-shadow: 0 24px 48px -32px rgba(0, 12, 34, 0.85);
}
.demo-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: clamp(24px, 5vw, 40px);
  right: clamp(24px, 5vw, 40px);
  height: 3px;
  background: var(--caramba-green-500);
}
.demo-form-heading { max-width: 590px; }
.demo-form-kicker {
  display: block;
  color: var(--caramba-green-300);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.demo-form h3 { margin-top: 8px; font-size: clamp(26px, 4vw, 34px); letter-spacing: -0.02em; line-height: 1.1; }
.demo-form-heading p { margin-top: 8px; color: rgba(255,255,255,0.82); font-size: 14px; line-height: 1.5; }
.demo-form-fields { display: grid; grid-template-columns: 1fr; gap: 16px; }
.demo-field { display: grid; gap: 8px; }
.phone-input-group {
  display: grid;
  grid-template-columns: minmax(152px, 0.9fr) minmax(0, 1.35fr);
  gap: 8px;
}
.phone-prefix-select {
  color: var(--caramba-blue-700);
  font-weight: 700;
  white-space: nowrap;
}
.phone-input-group input { min-width: 0; }
@media (max-width: 460px) {
  .phone-input-group { grid-template-columns: 1fr; }
}
.demo-field label { color: #fff; font-size: 13px; font-weight: 700; }
.demo-field input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.54);
  border-radius: 8px;
  background: #fff;
  color: var(--fg-1);
  font: inherit;
  font-size: 16px;
  line-height: 1.2;
}
.demo-field select {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.54);
  border-radius: 8px;
  background: #fff;
  color: var(--fg-1);
  font: inherit;
  font-size: 16px;
  line-height: 1.2;
}
.demo-field select:hover { border-color: var(--caramba-green-500); }
.demo-field select[aria-invalid="true"] {
  border-color: #b42318;
  background: #fff7f6;
}
.demo-field select:focus-visible {
  outline: 3px solid #ffb800;
  outline-offset: 3px;
}
.demo-field input::placeholder { color: var(--neutral-500); opacity: 1; }
.demo-field input:hover { border-color: var(--caramba-green-500); }
.demo-field input[aria-invalid="true"] {
  border-color: #b42318;
  background: #fff7f6;
}
.demo-field input:focus-visible,
.btn:focus-visible,
.whatsapp-float:focus-visible {
  outline: 3px solid #ffb800;
  outline-offset: 3px;
}
.demo-field-error {
  color: #ffe2de;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}
.demo-schedule {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.32);
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
}
.demo-schedule[hidden],
.demo-field-error[hidden],
.demo-form-status[hidden] { display: none; }
.demo-schedule-note {
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.demo-schedule-fields { display: grid; grid-template-columns: 1fr; gap: 16px; }
.demo-form-status {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.demo-form-status[data-state="pending"] { background: rgba(255,255,255,0.12); }
.demo-form-status[data-state="success"] { background: rgba(14,102,51,0.42); }
.demo-form-status[data-state="error"] { background: rgba(142,34,24,0.5); }
.demo-submit { width: 100%; min-height: 54px; justify-content: center; }
.demo-submit:disabled {
  cursor: not-allowed;
  opacity: 0.64;
  transform: none;
}
.demo-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (min-width: 640px) {
  .demo-form-fields { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .demo-field-name, .demo-field-email, .demo-field-workshop, .demo-field-phone { grid-column: span 3; }
  .demo-schedule { grid-column: 1 / -1; }
  .demo-schedule-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-submit { width: auto; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .demo-field input { transition: none; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer { padding: 56px 48px 32px; background: var(--neutral-900); color: rgba(255,255,255,0.72); }
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 20px;
  color: #fff;
}
.footer-brand img { width: auto; height: 24px; }
.footer-cols {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  margin: 32px 0;
}
.footer-cols h5 { color: #fff; font-size: 13px; margin-bottom: 14px; font-weight: 600; }
.footer-cols a { display: block; padding: 4px 0; font-size: 13.5px; }
.footer-cols a:hover { color: #fff; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12.5px;
}

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 36px -14px rgba(18, 132, 64, 0.75), 0 0 0 1px rgba(255,255,255,0.2);
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out), background 0.18s var(--ease-out);
}

.whatsapp-float:hover {
  background: #1FB85A;
  transform: translateY(-2px);
  box-shadow: 0 22px 42px -16px rgba(18, 132, 64, 0.85), 0 0 0 1px rgba(255,255,255,0.28);
}

.whatsapp-float svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .nav {
    padding: 14px 28px;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .features,
  .how,
  .pricing,
  .final-cta,
  .footer {
    padding-left: 28px;
    padding-right: 28px;
  }

  .hero-inner,
  .flow-card,
  .flow-card.alt {
    grid-template-columns: 1fr;
  }

  .flow-card.alt .flow-copy,
  .flow-card.alt .flow-phone-wrap {
    order: initial;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-visual {
    max-width: 620px;
    width: 100%;
    margin: 0 auto;
  }

  .feat-grid,
  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plan.featured {
    transform: none;
  }
}

@media (max-width: 760px) {
  body {
    overflow-x: hidden;
  }

  .nav {
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
  }

  .brand-name {
    display: none;
  }

  .nav-cta .link,
  .nav-cta > .btn-primary:not(.nav-demo-mobile) {
    display: none;
  }

  .nav-demo-mobile {
    display: inline-flex;
  }

  .brand-mark {
    width: auto;
    height: 32px;
  }

  .nav-cta {
    gap: 10px;
  }

  .nav-cta .btn {
    min-height: 44px;
    padding: 10px 14px;
    white-space: nowrap;
  }

  .hero {
    padding-top: 52px;
    padding-bottom: 72px;
  }

  .features,
  .how,
  .pricing,
  .final-cta {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .hero,
  .features,
  .how,
  .pricing,
  .final-cta,
  .footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-inner {
    gap: 44px;
  }

  .hero-h1 {
    font-size: clamp(48px, 14vw, 64px);
    line-height: 0.98;
  }

  .hero-sub {
    font-size: 17px;
  }

  .section-h {
    font-size: clamp(34px, 10vw, 44px);
    line-height: 1.08;
  }

  .hero-ctas,
  .final-cta-actions {
    flex-direction: column;
  }

  .hero-ctas .btn,
  .final-cta-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 52px;
  }

  .hero-meta {
    gap: 12px 18px;
  }

  .device-screen {
    padding: 12px;
    border-radius: 14px;
  }

  .ds-top {
    align-items: flex-start;
  }

  .ds-pills {
    display: none;
  }

  .ds-stats,
  .feat-grid,
  .plan-grid,
  .footer-cols {
    grid-template-columns: 1fr;
  }

  .ds-row {
    grid-template-columns: 58px 78px minmax(0, 1fr);
    gap: 7px;
  }

  .ds-status {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .device-wa {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    margin-top: 14px;
  }

  .feat-grid,
  .plan-grid {
    margin-top: 40px;
  }

  .feat-card,
  .plan {
    border-radius: 14px;
    padding: 24px;
  }

  .flows {
    gap: 72px;
  }

  .flow-card,
  .flow-card.alt {
    gap: 34px;
  }

  .flow-title {
    font-size: 30px;
  }

  .flow-lead {
    font-size: 16px;
  }

  .flow-trigger {
    border-radius: 16px;
    align-items: flex-start;
  }

  .fphone {
    width: min(320px, 100%);
    border-radius: 30px;
  }

  .fp-screen {
    height: 500px;
    border-radius: 23px;
  }

  .fp-name {
    max-width: 170px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .plan-tag {
    left: 24px;
  }

  .price-num {
    font-size: clamp(30px, 9vw, 38px);
  }

  .final-cta h2 {
    font-size: clamp(36px, 11vw, 46px);
  }

  .final-cta p {
    font-size: 16px;
  }

  .footer {
    padding-top: 44px;
  }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 56px;
    height: 56px;
  }

  .whatsapp-float svg {
    width: 31px;
    height: 31px;
  }
}

@media (max-width: 380px) {
  .nav-cta .btn {
    font-size: 13px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .hero-h1 {
    font-size: 44px;
  }

  .ds-row {
    grid-template-columns: 1fr 1fr;
  }

  .ds-model,
  .ds-status {
    grid-column: 1 / -1;
  }

  .fp-head {
    gap: 8px;
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* =========================================================
   COMPACT CONVERSION NAVIGATION
   ========================================================= */
.nav-pricing-compact {
  display: none;
  align-items: center;
  min-height: 44px;
  color: var(--caramba-blue-700);
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}
.nav-pricing-compact:hover { color: var(--caramba-green-700); }
.nav-pricing-compact:focus-visible {
  outline: 3px solid #ffb800;
  outline-offset: 3px;
}
@media (max-width: 1100px) {
  .nav-cta .link,
  .nav-cta > .btn-primary:not(.nav-demo-mobile) { display: none; }
  .nav-demo-mobile { display: inline-flex; }
}
@media (max-width: 760px) {
  .nav-cta { gap: 8px; }
  .nav-pricing-compact { display: inline-flex; }
}
@media (max-width: 380px) {
  .nav-pricing-compact { font-size: 13px; }
}

/* =========================================================
   DEMO FORM — editorial redesign override
   ========================================================= */
.final-cta {
  position: relative;
  overflow: hidden;
  padding: 112px 48px;
  text-align: left;
}
.final-cta::before {
  content: '';
  position: absolute;
  width: 560px;
  height: 560px;
  right: -260px;
  top: -310px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(88, 196, 113, 0.18), transparent 67%);
  pointer-events: none;
}
.final-cta-inner { position: relative; max-width: 1180px; }
.demo-form {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr);
  grid-template-areas: 'intro fields' 'intro status' 'intro submit';
  column-gap: clamp(36px, 6vw, 84px);
  row-gap: 24px;
  margin: 0;
  padding: clamp(28px, 5vw, 56px);
  color: var(--fg-1);
  background: #fff;
  border: 1px solid rgba(255,255,255,0.52);
  border-top: 4px solid var(--caramba-green-500);
  border-radius: 20px;
  box-shadow: 0 30px 70px -42px rgba(0, 16, 48, 0.84);
}
.demo-form::before { display: none; }
.demo-form-heading { grid-area: intro; align-self: start; max-width: 370px; padding-top: 4px; }
.demo-form-kicker { color: var(--caramba-blue-600); font-size: 11px; letter-spacing: 0.13em; }
.demo-form h3 {
  margin-top: 12px;
  color: var(--fg-1);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: balance;
}
.demo-form-heading p { margin-top: 18px; color: var(--fg-2); font-size: 15px; line-height: 1.55; }
.demo-form-fields { grid-area: fields; gap: 18px; }
.demo-field { gap: 7px; }
.phone-input-group { grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1.35fr); }
.phone-prefix-select { font-weight: 750; }
.demo-field label { color: var(--fg-1); font-size: 13px; }
.demo-field input,
.demo-field select {
  min-height: 52px;
  border-color: #d5dfeb;
  border-radius: 10px;
  background: #f8fafc;
  transition: border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out), background-color 180ms var(--ease-out);
}
.demo-field input:hover,
.demo-field select:hover { border-color: #9db5cf; background: #fff; }
.demo-field input:focus-visible,
.demo-field select:focus-visible {
  outline: none;
  border-color: var(--caramba-green-600);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.16);
}
.demo-field input[aria-invalid="true"],
.demo-field select[aria-invalid="true"] {
  border-color: #b42318;
  background: #fff7f6;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.1);
}
.demo-field-error { color: #b42318; font-size: 12.5px; font-weight: 650; }
.demo-schedule {
  gap: 14px;
  padding: 20px;
  border: 0;
  border-left: 3px solid var(--caramba-green-500);
  border-radius: 0 12px 12px 0;
  background: #f0f8f2;
}
.demo-schedule-note { color: #185c35; font-weight: 750; }
.demo-schedule-fields { gap: 14px; }
.demo-schedule .demo-field input,
.demo-schedule .demo-field select { background: #fff; }
.demo-form-status {
  grid-area: status;
  padding: 12px 14px;
  border: 0;
  color: var(--fg-1);
  font-weight: 650;
}
.demo-form-status[data-state="pending"] { color: var(--caramba-blue-700); background: #eef5ff; }
.demo-form-status[data-state="success"] { color: #14532d; background: #eaf8ee; }
.demo-form-status[data-state="error"] { color: #8a1c14; background: #fff0ee; }
.demo-submit { grid-area: submit; width: 100%; justify-self: stretch; }
.demo-submit:disabled { opacity: 0.58; }
@media (max-width: 820px) {
  .final-cta { padding-top: 84px; padding-bottom: 84px; }
  .demo-form {
    grid-template-columns: 1fr;
    grid-template-areas: 'intro' 'fields' 'status' 'submit';
    gap: 24px;
  }
  .demo-form-heading { max-width: 590px; padding-top: 0; }
}
@media (max-width: 460px) {
  .phone-input-group { grid-template-columns: 1fr; }
  .demo-form { padding: 24px 20px; border-radius: 16px; }
  .demo-form h3 { font-size: clamp(30px, 10vw, 38px); }
}
@media (prefers-reduced-motion: reduce) {
  .demo-field input, .demo-field select { transition: none; }
}

@media (max-width: 820px) {
  .final-cta { padding: 84px 28px; }
}
@media (max-width: 760px) {
  .final-cta { padding: 72px 18px; }
}

/* =========================================================
   DEMO FORM — ethereal glass / z-axis cascade override
   ========================================================= */
.final-cta {
  background: #071a38;
  padding: 128px 48px;
}
.final-cta::before {
  width: 760px;
  height: 760px;
  right: -290px;
  top: -440px;
  background: radial-gradient(circle, rgba(66, 187, 112, 0.22), rgba(14, 52, 98, 0.08) 42%, transparent 68%);
}
.final-cta-inner { max-width: 1180px; }
.demo-form-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 7px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 30px;
  background: rgba(255,255,255,0.075);
  box-shadow: 0 38px 90px -54px rgba(0, 7, 25, 0.9), inset 0 1px 0 rgba(255,255,255,0.14);
  transform: translate3d(0, -10px, 0);
  animation: demo-form-shell-enter 760ms cubic-bezier(0.32, 0.72, 0, 1) both;
}
.demo-form {
  position: relative;
  overflow: hidden;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  column-gap: clamp(38px, 6.5vw, 88px);
  row-gap: 26px;
  padding: clamp(30px, 5.5vw, 62px);
  color: #fff;
  background: #0a2345;
  background-image: radial-gradient(circle at 95% 0%, rgba(70, 186, 113, 0.11), transparent 31%);
  border: 1px solid rgba(255,255,255,0.1);
  border-top: 0;
  border-radius: 23px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.09), inset 0 -1px 0 rgba(0,0,0,0.2);
}
.demo-form::before {
  display: block;
  top: 44px;
  right: auto;
  bottom: 44px;
  left: 0;
  width: 3px;
  height: auto;
  border-radius: 0 4px 4px 0;
  background: var(--caramba-green-500);
}
.demo-form-heading { max-width: 345px; padding-top: 8px; transform: translate3d(0, -7px, 0); }
.demo-form-kicker { color: var(--caramba-green-300); letter-spacing: 0.16em; }
.demo-form h3 {
  color: #fff;
  font-size: clamp(36px, 4.5vw, 52px);
  letter-spacing: -0.052em;
  line-height: 0.94;
}
.demo-form-heading p { color: rgba(255,255,255,0.7); font-size: 15px; line-height: 1.58; }
.demo-form-fields { gap: 18px; }
.demo-field label { color: rgba(255,255,255,0.87); font-size: 12.5px; font-weight: 650; }
.demo-field input,
.demo-field select {
  color: #fff;
  border-color: rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  transition: transform 240ms cubic-bezier(0.32, 0.72, 0, 1), border-color 240ms cubic-bezier(0.32, 0.72, 0, 1), background-color 240ms cubic-bezier(0.32, 0.72, 0, 1), box-shadow 240ms cubic-bezier(0.32, 0.72, 0, 1);
}
.demo-field input::placeholder { color: rgba(255,255,255,0.42); }
.demo-field select { color: rgba(255,255,255,0.94); }
.demo-field select option { color: #fff; background: #0a2345; }
.phone-prefix-select { color: #fff; }
.demo-field input:hover,
.demo-field select:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.1); }
.demo-field input:focus-visible,
.demo-field select:focus-visible {
  border-color: var(--caramba-green-400);
  background: rgba(255,255,255,0.11);
  box-shadow: 0 0 0 3px rgba(74, 191, 112, 0.16), inset 0 1px 0 rgba(255,255,255,0.08);
}
.demo-field input[aria-invalid="true"],
.demo-field select[aria-invalid="true"] {
  color: #fff;
  border-color: #ff9e97;
  background: rgba(180, 35, 24, 0.18);
  box-shadow: 0 0 0 3px rgba(255, 158, 151, 0.12);
}
.demo-field-error { color: #ffb4ae; }
.demo-schedule {
  gap: 14px;
  border: 1px solid rgba(98, 201, 130, 0.22);
  border-left: 3px solid var(--caramba-green-400);
  border-radius: 14px;
  background: rgba(70, 177, 103, 0.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.055);
}
.demo-schedule-note { color: #c8f3d2; }
.demo-schedule .demo-field input,
.demo-schedule .demo-field select { background: rgba(2, 22, 48, 0.2); }
.demo-form-status { color: rgba(255,255,255,0.9); border: 1px solid rgba(255,255,255,0.1); }
.demo-form-status[data-state="pending"] { color: #d6e8ff; background: rgba(111, 168, 255, 0.13); }
.demo-form-status[data-state="success"] { color: #c8f3d2; background: rgba(60, 167, 91, 0.16); }
.demo-form-status[data-state="error"] { color: #ffc3be; background: rgba(180, 35, 24, 0.2); }
.demo-submit.btn-primary {
  min-height: 58px;
  padding: 11px 14px 11px 24px;
  border-radius: 999px;
  background: var(--caramba-green-500);
  box-shadow: 0 16px 30px -16px rgba(18, 144, 66, 0.72), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: transform 240ms cubic-bezier(0.32, 0.72, 0, 1), background-color 240ms cubic-bezier(0.32, 0.72, 0, 1), box-shadow 240ms cubic-bezier(0.32, 0.72, 0, 1);
}
.demo-submit.btn-primary::after {
  content: '→';
  display: inline-grid;
  width: 30px;
  height: 30px;
  margin-left: 4px;
  place-items: center;
  border-radius: 50%;
  background: rgba(4, 43, 25, 0.16);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  transition: transform 240ms cubic-bezier(0.32, 0.72, 0, 1), background-color 240ms cubic-bezier(0.32, 0.72, 0, 1);
}
.demo-submit.btn-primary:hover:not(:disabled) { background: var(--caramba-green-600); box-shadow: 0 22px 36px -18px rgba(18, 144, 66, 0.9), inset 0 1px 0 rgba(255,255,255,0.2); transform: translate3d(0, -2px, 0); }
.demo-submit.btn-primary:hover:not(:disabled)::after { background: rgba(4, 43, 25, 0.28); transform: translate3d(3px, -1px, 0) scale(1.04); }
.demo-submit.btn-primary:active:not(:disabled) { transform: scale(0.98); }
.demo-submit:disabled { box-shadow: none; }
@keyframes demo-form-shell-enter {
  from { opacity: 0; transform: translate3d(0, 18px, 0) scale(0.985); }
  to { opacity: 1; transform: translate3d(0, -10px, 0) scale(1); }
}
@media (max-width: 820px) {
  .final-cta { padding: 96px 28px; }
  .demo-form-shell { transform: none; }
  .demo-form { grid-template-columns: 1fr; padding: 34px 28px; }
  .demo-form-heading { max-width: 570px; transform: none; }
  .demo-form::before { top: 30px; bottom: 30px; }
}
@media (max-width: 760px) {
  .final-cta { padding: 76px 18px; }
}
@media (max-width: 460px) {
  .demo-form-shell { padding: 5px; border-radius: 22px; }
  .demo-form { padding: 28px 20px; border-radius: 17px; }
  .demo-form h3 { font-size: clamp(34px, 11vw, 42px); }
  .demo-submit.btn-primary { min-height: 54px; padding-left: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-form-shell { animation: none; transform: none; }
  .demo-field input, .demo-field select, .demo-submit.btn-primary, .demo-submit.btn-primary::after { transition: none; }
}

/* =========================================================
   FAQ
   ========================================================= */
.faq {
  padding: 112px 48px 120px;
  background: #fff;
}
.faq-inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.68fr) minmax(0, 1.32fr);
  gap: clamp(48px, 9vw, 132px);
  max-width: 1180px;
  margin: 0 auto;
}
.faq-intro { align-self: start; padding-top: 8px; }
.faq-intro .eyebrow { margin-bottom: 16px; }
.faq-intro h2 {
  max-width: 390px;
  color: var(--fg-1);
  font-size: clamp(38px, 4.5vw, 54px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: balance;
}
.faq-intro p {
  max-width: 34ch;
  margin-top: 18px;
  color: var(--fg-2);
  font-size: 15px;
  line-height: 1.58;
}
.faq-list { border-top: 1px solid var(--border-default); }
.faq-item { border-bottom: 1px solid var(--border-default); }
.faq-question {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-height: 92px;
  gap: 20px;
  padding: 20px 0;
  color: var(--fg-1);
  text-align: left;
  transition: color 220ms var(--ease-out);
}
.faq-question:hover { color: var(--caramba-blue-600); }
.faq-question:focus-visible {
  outline: 3px solid #ffb800;
  outline-offset: -3px;
}
.faq-index {
  color: var(--caramba-green-600);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.faq-question-text {
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 720;
  letter-spacing: -0.022em;
  line-height: 1.25;
}
.faq-toggle {
  position: relative;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border-default);
  border-radius: 50%;
  transition: transform 280ms var(--ease-out), background-color 220ms var(--ease-out), border-color 220ms var(--ease-out);
}
.faq-toggle::before,
.faq-toggle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.faq-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.is-open .faq-toggle {
  border-color: var(--caramba-green-500);
  background: var(--caramba-green-500);
  color: #fff;
  transform: rotate(45deg);
}
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 360ms var(--ease-out), opacity 240ms var(--ease-out);
}
.faq-answer > div { overflow: hidden; }
.faq-answer p {
  max-width: 58ch;
  padding: 0 54px 0 31px;
  color: var(--fg-2);
  font-size: 15px;
  line-height: 1.58;
  transform: translateY(-8px);
  transition: transform 320ms var(--ease-out);
}
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; opacity: 1; }
.faq-item.is-open .faq-answer p { padding-bottom: 28px; transform: translateY(0); }
@media (max-width: 820px) {
  .faq { padding: 88px 28px 96px; }
  .faq-inner { grid-template-columns: 1fr; gap: 42px; }
  .faq-intro { max-width: 610px; }
}
@media (max-width: 760px) {
  .faq { padding: 72px 18px 76px; }
  .faq-question { min-height: 78px; gap: 14px; }
  .faq-question-text { font-size: 17px; }
  .faq-answer p { padding-left: 0; padding-right: 6px; font-size: 14px; }
  .faq-item.is-open .faq-answer p { padding-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-question, .faq-toggle, .faq-answer, .faq-answer p { transition: none; }
}

/* Scroll-driven animations */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes scroll-fade-up {
      from {
        opacity: 0;
        transform: translateY(60px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .scroll-animate {
      animation: scroll-fade-up linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 25%;
    }
  }
}

/* Fallback for browsers without scroll-driven animation support */
@supports not ((animation-timeline: view()) and (animation-range: entry)) {
  .scroll-animate {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .scroll-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

