/* ═══════════════════════════════════════════════════════════════
   Consultores Fiscales Valenzuela Uribe — main.css (v1)
   Brand: navy (#0E2540) + gold (#F2BD3B) on near-white.
   Tone: professional B2B, trust-first, deliberately NOT the
   warm-cream folk look we used for Olmos.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Brand */
  --navy: #0E2540;
  --navy-deep: #08172A;
  --navy-tint: #1B3958;
  --gold: #F2BD3B;
  --gold-glow: #FBD364;

  /* Surface */
  --bg: #ffffff;
  --bg-tint: #F6F8FB;
  --hairline: #E6EAF0;

  /* Ink */
  --ink: #1A1A1A;
  --ink-soft: #46505C;
  --ink-quiet: #6F7A87;

  /* Type */
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 16.5px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; font-family: var(--serif); font-weight: 500; color: var(--navy); }

.shell { width: min(1180px, 92vw); margin: 0 auto; }
.pad-y { padding: 96px 0; }
@media (max-width: 720px) { .pad-y { padding: 64px 0; } }

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-revealed { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ── Top nav ─────────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.top-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--navy); font-weight: 700; letter-spacing: -0.01em;
  font-size: 17px;
}
.brand-mark {
  width: 36px; height: 36px; border-radius: 6px;
  object-fit: cover; display: block;
  box-shadow: 0 1px 3px rgba(14, 37, 64, 0.18);
}
.brand-name em { font-size: 19px; }
.top-nav { display: flex; gap: 26px; font-size: 14.5px; font-weight: 500; color: var(--ink-soft); }
.top-nav a:hover { color: var(--navy); }
.top-wa {
  background: var(--navy); color: #fff;
  padding: 9px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.03em;
  transition: background .2s ease, transform .2s ease;
}
.top-wa:hover { background: var(--navy-tint); transform: translateY(-1px); }
@media (max-width: 880px) {
  .top-nav { display: none; }
}

/* ── Hero (dark navy + animated logo-reveal video bg) ───────── */
.hero {
  position: relative;
  padding: 140px 0 110px;
  background: var(--navy-deep);
  color: #fff;
  overflow: hidden;
  border-bottom: 1px solid var(--navy-tint);
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  z-index: 0;
  opacity: 0.85;
}
.hero-veil {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(8, 23, 42, 0.20) 0%, rgba(8, 23, 42, 0.62) 60%, rgba(8, 23, 42, 0.88) 100%);
  pointer-events: none;
}
.hero .shell { position: relative; z-index: 2; }
.hero-inner { max-width: 820px; }
.hero-eyebrow {
  display: inline-block; font: 600 12px/1 var(--mono);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold);
  padding: 7px 12px; border: 1px solid rgba(242, 189, 59, 0.4); border-radius: 999px;
  background: rgba(242, 189, 59, 0.06);
  margin-bottom: 22px;
}
.hero h1 {
  font: 700 clamp(38px, 6vw, 64px)/1.05 var(--sans);
  letter-spacing: -0.02em; color: #fff;
  margin: 0 0 22px;
  text-shadow: 0 2px 22px rgba(0,0,0,0.45);
}
.hero h1 em { font-size: inherit; color: var(--gold); font-style: italic; font-family: var(--serif); }
.hero-lead {
  font: 400 19px/1.55 var(--sans); color: rgba(255,255,255,0.86);
  max-width: 620px; margin: 0 0 30px;
}
.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.btn-ghost-dark {
  color: #fff; border: 1.5px solid rgba(255,255,255,0.75);
  background: rgba(8, 23, 42, 0.35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.btn-ghost-dark:hover { background: #fff; color: var(--navy); border-color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; border-radius: 10px;
  font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  cursor: pointer; border: 0;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn-primary {
  background: var(--navy); color: #fff;
  box-shadow: 0 6px 18px rgba(14, 37, 64, 0.25);
}
.btn-primary:hover { background: var(--navy-deep); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(14, 37, 64, 0.35); }
.btn-ghost {
  background: transparent; color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.hero-stats {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px; max-width: 580px;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 28px;
}
.hero-stats li { display: flex; flex-direction: column; gap: 4px; }
.hero-stats strong {
  font: 700 32px/1 var(--sans); color: #fff;
  letter-spacing: -0.02em;
}
.hero-stats span {
  font: 500 12px/1.3 var(--mono);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.62);
}
@media (max-width: 600px) {
  .hero { padding: 96px 0 72px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .hero-stats strong { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }

/* ── Section heads ──────────────────────────────────────────── */
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-num {
  display: inline-block; font: 600 12px/1 var(--mono);
  letter-spacing: 0.14em; color: var(--gold);
  background: rgba(242, 189, 59, 0.12);
  padding: 6px 10px; border-radius: 6px;
  margin-bottom: 18px;
}
.section-head h2 {
  font: 700 clamp(30px, 4.5vw, 44px)/1.1 var(--sans);
  letter-spacing: -0.02em; color: var(--navy);
  margin: 0 0 16px;
}
.section-head p { font-size: 17.5px; color: var(--ink-soft); margin: 0; max-width: 600px; }

/* ── §01 Services grid ──────────────────────────────────────── */
.svc-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.svc-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 26px 24px;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  color: var(--ink);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative; overflow: hidden;
}
.svc-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--gold);
  transform: translateX(-100%); transition: transform .3s ease;
}
.svc-card:hover { transform: translateY(-3px); border-color: var(--navy-tint); box-shadow: 0 10px 28px rgba(14, 37, 64, 0.08); }
.svc-card:hover::before { transform: translateX(0); }
.svc-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.svc-num {
  font: 600 11px/1 var(--mono); letter-spacing: 0.14em; color: var(--ink-quiet);
}
.svc-card h3 { font: 600 19px/1.25 var(--sans); color: var(--navy); margin: 0; letter-spacing: -0.01em; }
.svc-card p { font-size: 14.5px; color: var(--ink-soft); margin: 0; line-height: 1.55; }
.svc-card-accent {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-color: var(--navy);
  color: #fff;
}
.svc-card-accent .svc-num { color: var(--gold); }
.svc-card-accent h3 { color: #fff; }
.svc-card-accent p { color: rgba(255,255,255,0.78); }
.svc-card-accent::before { background: var(--gold); transform: translateX(0); width: 5px; }

/* ── §02 Trust ──────────────────────────────────────────────── */
.trust { background: var(--bg-tint); }
.trust-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.trust-card {
  background: #fff;
  padding: 28px 26px;
  border-radius: 14px;
  border: 1px solid var(--hairline);
}
.trust-icon {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(242, 189, 59, 0.15);
  border-radius: 12px;
  margin-bottom: 18px;
}
.trust-card h3 { font: 600 19px/1.3 var(--sans); color: var(--navy); margin: 0 0 10px; letter-spacing: -0.01em; }
.trust-card p { font-size: 15px; color: var(--ink-soft); margin: 0; line-height: 1.6; }

/* ── §03 Locate (Maps zoom video) ────────────────────────────── */
.locate-grid {
  display: grid; gap: 56px;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
}
@media (max-width: 880px) { .locate-grid { grid-template-columns: 1fr; gap: 40px; } }
.locate-text h2 {
  font: 700 clamp(28px, 4vw, 40px)/1.1 var(--sans);
  letter-spacing: -0.02em; color: var(--navy);
  margin: 0 0 20px;
}
.locate-text address {
  font: 500 17px/1.55 var(--sans);
  font-style: normal; color: var(--ink); margin: 0 0 18px;
}
.locate-note { font-size: 15px; color: var(--ink-soft); margin: 0 0 24px; max-width: 460px; }
.locate-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

.locate-photo {
  position: relative; margin: 0;
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--hairline);
  box-shadow: 0 14px 38px rgba(14, 37, 64, 0.12);
  background: var(--navy-deep);
}
.locate-photo video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }

.locate-skip-btn {
  position: absolute; bottom: 38px; right: 14px;
  border: 0; border-radius: 999px;
  padding: 9px 14px;
  font: 600 12px/1 var(--mono);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--navy-deep);
  background: var(--gold);
  box-shadow: 0 4px 14px rgba(0,0,0,0.32);
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.locate-skip-btn:hover, .locate-skip-btn:focus-visible {
  transform: translateY(-1px);
  background: var(--gold-glow);
  outline: 2px solid var(--navy-deep); outline-offset: 2px;
}
.locate-skip-btn span { margin-right: 4px; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .locate-skip-btn { display: none; } }

.locate-photo-cap {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 8px 14px;
  font: 500 11.5px/1.3 var(--mono); letter-spacing: 0.05em;
  color: rgba(255,255,255,0.78);
  background: linear-gradient(transparent, rgba(8, 23, 42, 0.75));
}

/* ── §04 Contact ────────────────────────────────────────────── */
.contact-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.contact-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 24px 22px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.contact-card:hover { transform: translateY(-2px); border-color: var(--navy-tint); box-shadow: 0 10px 22px rgba(14, 37, 64, 0.08); }
.contact-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.contact-label {
  font: 600 11px/1 var(--mono); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-quiet);
}
.contact-card strong {
  font: 600 21px/1.2 var(--sans); color: var(--navy);
  letter-spacing: -0.01em;
}
.contact-cta {
  font-size: 14px; color: var(--ink-soft); font-weight: 500;
  margin-top: 6px;
}
.contact-card-primary {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-color: var(--navy);
}
.contact-card-primary .contact-label { color: var(--gold); }
.contact-card-primary strong { color: #fff; }
.contact-card-primary .contact-cta { color: rgba(255,255,255,0.82); }

/* ── MILO floating chat button + panel ─────────────────────────
   v3 (2026-05-22): icon-only collapsed pill. Expands on hover to
   show "Pregunta a MILO" text. Pulsing gold dot draws the eye.
   ──────────────────────────────────────────────────────────── */
.milo-fab {
  position: fixed; bottom: 20px; right: 20px; z-index: 90;
  display: inline-flex; align-items: center; gap: 0;
  padding: 10px;
  background: rgba(8, 23, 42, 0.72);
  color: rgba(255,255,255,0.94);
  border: 1px solid rgba(242, 189, 59, 0.28);
  border-radius: 999px;
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(14, 37, 64, 0.22), 0 1px 0 rgba(255,255,255,0.04) inset;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  overflow: hidden;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease, border-color .25s ease, gap .25s ease, padding-right .25s ease;
}
.milo-fab .milo-fab-text {
  display: inline-block;
  max-width: 0;
  opacity: 0;
  white-space: nowrap;
  overflow: hidden;
  transition: max-width .3s ease, opacity .2s ease;
}
.milo-fab:hover,
.milo-fab:focus-visible,
.milo-fab.is-expanded {
  background: rgba(8, 23, 42, 0.92);
  border-color: rgba(242, 189, 59, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(14, 37, 64, 0.36);
  gap: 8px;
  padding-right: 16px;
}
.milo-fab:hover .milo-fab-text,
.milo-fab:focus-visible .milo-fab-text,
.milo-fab.is-expanded .milo-fab-text {
  max-width: 200px;
  opacity: 1;
}
.milo-fab:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px;
}
.milo-fab strong {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.milo-fab-icon {
  position: relative;
  display: inline-flex;
  width: 22px; height: 22px;
  align-items: center; justify-content: center;
  color: rgba(255,255,255,0.78);
}
/* Live "active" dot — pulses softly to signal MILO is listening */
.milo-fab-icon::after {
  content: "";
  position: absolute; top: -1px; right: -1px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 1.5px rgba(8, 23, 42, 0.78);
  animation: milo-fab-pulse 2.4s ease-in-out infinite;
}
@keyframes milo-fab-pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); box-shadow: 0 0 0 1.5px rgba(8, 23, 42, 0.78), 0 0 0 0 rgba(242, 189, 59, 0.5); }
  50%      { opacity: 1.00; transform: scale(1.15); box-shadow: 0 0 0 1.5px rgba(8, 23, 42, 0.78), 0 0 0 5px rgba(242, 189, 59, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .milo-fab-icon::after { animation: none; opacity: 0.85; }
}

/* ═══════════════════════════════════════════════════════════════
   MILO panel v3 — seamless CVU chat surface (2026-05-22)
   Navy+gold; same structured layout as Olmos with different skin.
   ═══════════════════════════════════════════════════════════════ */
.milo-panel {
  position: fixed; bottom: 84px; right: 22px; z-index: 91;
  width: min(380px, calc(100vw - 44px));
  max-height: calc(100vh - 110px);
  display: flex; flex-direction: column;
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--hairline);
  box-shadow:
    0 24px 70px rgba(14, 37, 64, 0.30),
    0 4px 12px rgba(14, 37, 64, 0.10),
    0 0 0 1px rgba(255, 255, 255, 0.50) inset;
  overflow: hidden;
  opacity: 0; pointer-events: none; transform: translateY(8px) scale(0.98);
  transition: opacity .25s ease, transform .25s ease;
}
.milo-panel.is-open { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }

/* ── Header ───────────────────────────────────────────────── */
.milo-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 16px;
  background:
    linear-gradient(135deg, rgba(242, 189, 59, 0.08) 0%, rgba(27, 57, 88, 0.05) 60%, rgba(255, 255, 255, 0) 100%),
    #fff;
  border-bottom: 1px solid var(--hairline);
}
.milo-brand-row { display: flex; align-items: center; gap: 12px; }
.milo-avatar {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--gold);
  font: 700 16px/1 var(--serif);
  font-style: italic;
  box-shadow: 0 2px 8px rgba(14, 37, 64, 0.22), 0 0 0 1px rgba(242, 189, 59, 0.20) inset;
}
.milo-avatar-letter { transform: translateX(0.5px) translateY(-1px); }
.milo-avatar-dot {
  position: absolute; bottom: 1px; right: 1px;
  width: 9px; height: 9px; border-radius: 50%;
  background: #2bb673; /* fresh green "online" — different from Olmos moss */
  box-shadow: 0 0 0 2px #fff;
  animation: milo-status-pulse 2.4s ease-in-out infinite;
}
@keyframes milo-status-pulse {
  0%, 100% { box-shadow: 0 0 0 2px #fff, 0 0 0 0 rgba(43, 182, 115, 0.45); }
  50%      { box-shadow: 0 0 0 2px #fff, 0 0 0 5px rgba(43, 182, 115, 0); }
}
.milo-brand-text { display: flex; flex-direction: column; gap: 2px; }
.milo-brand-name {
  font: 700 14.5px/1 var(--sans); color: var(--navy);
  letter-spacing: 0.04em;
}
.milo-brand-status {
  font: 500 11px/1.2 var(--mono); color: var(--ink-quiet);
  letter-spacing: 0.04em;
}
.milo-brand-status strong { color: #2bb673; font-weight: 600; }
.milo-panel-close {
  border: 0; background: transparent; cursor: pointer;
  font-size: 22px; line-height: 1; color: var(--ink-quiet);
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .18s ease, color .18s ease;
}
.milo-panel-close:hover, .milo-panel-close:focus-visible {
  background: var(--bg-tint); color: var(--navy);
}

/* ── Body ─────────────────────────────────────────────────── */
.milo-panel-body {
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto; overscroll-behavior: contain;
  padding: 16px;
  display: flex; flex-direction: column;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(242, 189, 59, 0.05), transparent 60%),
    #fff;
}
.milo-suggestions { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.milo-suggestions.is-hidden { display: none; }
.milo-suggestions-lead {
  font: 400 13.5px/1.5 var(--sans); color: var(--ink-soft);
  margin: 0 0 6px;
}
.milo-chip {
  display: inline-flex; align-items: center;
  padding: 8px 13px;
  font: 500 13px/1.3 var(--sans); color: var(--navy);
  background: var(--bg-tint);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  text-align: left;
}
.milo-chip:hover, .milo-chip:focus-visible {
  background: var(--navy); color: #fff;
  border-color: var(--navy);
  transform: translateY(-1px);
  outline: none;
}

/* ── Message list ─────────────────────────────────────────── */
.milo-msg-list {
  display: flex; flex-direction: column; gap: 12px;
  padding: 0;
  min-height: 0;
}
.milo-msg-list:empty { display: none; }
.milo-msg-row {
  display: flex; align-items: flex-end; gap: 8px;
  animation: milo-msg-in .35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes milo-msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.milo-msg-row-ai .milo-msg-mini-avatar {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--gold);
  font: 700 12px/1 var(--serif); font-style: italic;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(14, 37, 64, 0.22);
}
.milo-msg-row-user { justify-content: flex-end; }
.milo-msg {
  font-size: 13.5px; line-height: 1.55;
  padding: 10px 14px; border-radius: 16px;
  max-width: 78%;
  word-break: break-word;
}
.milo-msg-user {
  background: var(--navy); color: #fff;
  border-bottom-right-radius: 6px;
}
.milo-msg-ai {
  background: var(--bg-tint); color: var(--ink);
  border: 1px solid var(--hairline);
  border-bottom-left-radius: 6px;
  white-space: pre-wrap;
}
.milo-msg-ai strong { color: var(--navy); }
.milo-msg-typing {
  background: var(--bg-tint); color: var(--ink-quiet);
  border: 1px solid var(--hairline);
  font-style: italic;
  border-bottom-left-radius: 6px;
}
.milo-msg-typing-dots { display: inline-flex; gap: 4px; margin-left: 2px; vertical-align: middle; }
.milo-msg-typing-dots span {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold);
  animation: milo-typing 1.2s ease-in-out infinite;
}
.milo-msg-typing-dots span:nth-child(2) { animation-delay: 0.18s; }
.milo-msg-typing-dots span:nth-child(3) { animation-delay: 0.36s; }
@keyframes milo-typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2px); }
}
.milo-msg-error {
  align-self: stretch;
  background: rgba(220, 60, 50, 0.06);
  color: #8a2520;
  border: 1px solid rgba(220, 60, 50, 0.20);
  font-size: 12.5px; line-height: 1.4;
  padding: 9px 11px; border-radius: 10px;
}

/* ── Compose row ──────────────────────────────────────────── */
.milo-panel-compose {
  display: flex; align-items: flex-end; gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--hairline);
  background: #fff;
}
.milo-panel-compose textarea {
  flex: 1 1 auto;
  padding: 10px 14px;
  min-height: 42px; max-height: 140px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  font: 400 14px/1.45 var(--sans);
  color: var(--ink); background: var(--bg-tint);
  resize: none; overflow-y: auto;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.milo-panel-compose textarea:focus-visible {
  outline: none; border-color: var(--navy); background: #fff;
  box-shadow: 0 0 0 3px rgba(14, 37, 64, 0.12);
}
.milo-send-btn {
  flex: 0 0 auto;
  width: 42px; height: 42px; border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--gold);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
  box-shadow: 0 4px 12px rgba(14, 37, 64, 0.22);
}
.milo-send-btn:hover, .milo-send-btn:focus-visible {
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  box-shadow: 0 6px 16px rgba(14, 37, 64, 0.32);
  outline: none;
}
.milo-send-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }
.milo-send-btn svg { transform: translateX(-1px); }

/* ── Footer ───────────────────────────────────────────────── */
.milo-panel-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding: 9px 14px 11px;
  background: #fff;
  border-top: 1px solid var(--hairline);
}
.milo-panel-hint {
  font: 500 10.5px/1.3 var(--mono); letter-spacing: 0.04em;
  color: var(--ink-quiet);
}
.milo-panel-human {
  font: 600 11.5px/1.3 var(--sans); color: var(--navy);
  text-decoration: underline; text-decoration-color: var(--gold);
  text-underline-offset: 3px;
  white-space: nowrap;
}
.milo-panel-human:hover { color: var(--navy-deep); }
@media (max-width: 500px) {
  .milo-fab-text { display: none; }
  .milo-fab { padding: 14px; }
}

/* ── Footer ─────────────────────────────────────────────────── */
.bottom {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.72);
  padding: 36px 0;
}
.bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.bottom-meta { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.bottom-meta span:first-child { color: rgba(255,255,255,0.92); font-weight: 500; }
.bottom-credit {
  font-size: 12px; color: rgba(255,255,255,0.62);
  letter-spacing: 0.05em;
}
.bottom-credit strong { color: var(--gold); }
.bottom-credit:hover { color: rgba(255,255,255,0.95); }
