/* ==========================================================================
   Agente IA · demo interactiva
   Identidad del producto (barra, chat, panel): tinta azul, cobalto, resaltador ámbar.
   Identidad de Casa Bruma (pestaña 1): niebla, musgo y arena. Propia y distinta.
   ========================================================================== */

:root {
  --ink: #0e1630;
  --ink-2: #2d3659;
  --mute: #566080;
  --paper: #f1f3f9;
  --card: #ffffff;
  --line: #dbe0ee;
  --line-2: #e8ebf5;
  --brand: #2748f5;
  --brand-deep: #1b33c4;
  --brand-soft: #e3e8ff;
  --fill: #ffc933;
  --fill-soft: #fff1c2;
  --fill-ink: #4a3600;
  --ok: #0e7c57;
  --ok-deep: #07623f;
  --ok-soft: #d8f3e7;
  --warn: #b8420a;
  --warn-deep: #8f2f00;
  --warn-soft: #ffe6d6;
  --violet-deep: #4527b5;
  --violet-soft: #ece6ff;

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --tab-h: 66px;
  --chrome: 120px;
  --r-lg: 18px;
  --r-md: 12px;
  --shadow-1: 0 1px 2px rgba(14, 22, 48, .06), 0 6px 20px -8px rgba(14, 22, 48, .14);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: clip;
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px));
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, figure, blockquote, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: not-allowed; }
a { color: inherit; }
[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: -.2em; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ---------- Barra superior ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: #fff;
}

.top__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  padding-top: max(10px, env(safe-area-inset-top, 0px));
  max-width: 1480px;
  margin: 0 auto;
}

.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }

.mark {
  display: grid;
  grid-template-columns: repeat(3, 11px);
  grid-template-rows: repeat(2, 11px);
  gap: 3px;
  flex: none;
}
.mark i {
  display: block;
  border-radius: 3.5px;
  background: rgba(255, 255, 255, .2);
  transition: background-color .5s ease, transform .5s ease;
}
.mark i.on { background: var(--fill); }
.mark i.pop { animation: pop .7s ease; }

.brand__txt { min-width: 0; }
.brand strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.brand small {
  display: block;
  font-size: 11.5px;
  line-height: 1.3;
  color: #b9c1de;
}

.reset {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 12px;
  background: transparent;
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease;
}
.reset:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .5); }
.reset:focus-visible { outline-color: var(--fill); }

/* Pestañas: barra inferior en móvil, píldoras en la barra superior en escritorio */
.tabs {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--card);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px -10px rgba(14, 22, 48, .25);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.tab {
  position: relative;
  min-height: var(--tab-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: var(--mute);
  font-size: 12.5px;
  font-weight: 700;
}
.tab__n {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--line-2);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
  transition: background-color .2s ease, color .2s ease;
}
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 22%;
  right: 22%;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--brand);
}
.tab[aria-selected="true"] .tab__n { background: var(--brand); color: #fff; }
.tab__dot {
  position: absolute;
  top: 9px;
  left: calc(50% + 14px);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--warn);
  border: 2px solid var(--card);
  animation: ping 1.8s ease-out 2;
}

.guide {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 14px 16px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 650;
  color: var(--ink);
}
.guide::before {
  content: "";
  flex: none;
  width: 4px;
  border-radius: 4px;
  background: var(--fill);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tab-h) + 14px + env(safe-area-inset-bottom, 0px));
  z-index: 120;
  max-width: min(92vw, 420px);
  padding: 11px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 10px 30px -8px rgba(14, 22, 48, .5);
  opacity: 0;
  translate: -50% 10px;
  pointer-events: none;
  transition: opacity .25s ease, translate .25s ease;
}
.toast.show { opacity: 1; translate: -50% 0; }

@media (min-width: 900px) {
  body { padding-bottom: 0; }

  .top__in { padding: 12px 28px; gap: 20px; display: grid; grid-template-columns: 1fr auto 1fr; }
  .brand small { font-size: 12px; }
  .reset { justify-self: end; }

  .tabs {
    position: static;
    display: flex;
    gap: 4px;
    padding: 5px;
    background: rgba(255, 255, 255, .09);
    border: 0;
    border-radius: 16px;
    box-shadow: none;
  }
  .tab {
    flex-direction: row;
    min-height: 44px;
    gap: 10px;
    padding: 0 18px 0 10px;
    border-radius: 12px;
    color: #cdd4ee;
    font-size: 14.5px;
    transition: background-color .2s ease, color .2s ease;
  }
  .tab:hover { background: rgba(255, 255, 255, .08); color: #fff; }
  .tab__n { background: rgba(255, 255, 255, .14); color: #fff; }
  .tab[aria-selected="true"] { background: var(--fill); color: var(--ink); }
  .tab[aria-selected="true"]::before { display: none; }
  .tab[aria-selected="true"] .tab__n { background: var(--ink); color: var(--fill); }
  .tab:focus-visible { outline-color: var(--fill); }
  .tab__dot { top: 8px; left: auto; right: 8px; border-color: var(--ink); }

  .guide { justify-content: center; padding: 16px 28px; font-size: 17px; }
  .guide::before { display: none; }
  .guide span { max-width: 780px; text-align: center; text-wrap: balance; }

  .toast { bottom: 28px; }
}

/* ==========================================================================
   1. PÁGINA WEB · Casa Bruma
   ========================================================================== */

.view { outline: none; }

.view--web { padding: 0; }

.frame { max-width: 1180px; margin: 0 auto; }

.frame__bar { display: none; }

.site {
  --bg: #edf0ec;
  --bg-2: #e1e8e2;
  --moss: #1f3b33;
  --moss-2: #2f5246;
  --sage: #5b8070;
  --mist: #b9cbbf;
  --sand: #e8c9b6;
  --txt: #1b2924;
  --txt-2: #42524b;
  --deep-green: #3f6657;
  position: relative;
  background: var(--bg);
  color: var(--txt);
  scroll-behavior: smooth;
}
.site h1, .site h2, .site h3 {
  font-family: var(--serif);
  font-weight: 450;
  letter-spacing: -.012em;
  color: var(--moss);
}
.site :focus-visible { outline-color: var(--moss); }
.site [id] { scroll-margin-top: calc(var(--chrome) + 8px); }

.s-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--moss);
  color: #fff;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: .005em;
  transition: background-color .2s ease, transform .2s ease;
}
.s-btn:hover { background: var(--moss-2); }
.s-btn:active { transform: translateY(1px); }
.s-btn--sm { min-height: 44px; padding: 0 16px; font-size: 14px; gap: 8px; }
.s-btn--ghost {
  background: transparent;
  color: var(--moss);
  box-shadow: inset 0 0 0 1.5px var(--moss);
}
.s-btn--ghost:hover { background: var(--moss); color: #fff; }
.s-btn--sand { background: var(--sand); color: var(--moss); }
.s-btn--sand:hover { background: #f0d6c6; }

.s-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
}
.s-logo { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
.s-logo strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -.01em;
  color: var(--moss);
  line-height: 1.1;
}
.s-logo small { display: block; font-size: 12px; color: var(--txt-2); letter-spacing: .04em; }
.s-logo__mark {
  width: 30px;
  height: 34px;
  border-radius: 15px 15px 5px 5px;
  background:
    radial-gradient(circle at 62% 34%, #fbe9dc 0 18%, transparent 19%),
    linear-gradient(180deg, #b9cbbf 0 46%, #5b8070 46% 72%, #1f3b33 72%);
  flex: none;
}
.s-nav { display: none; }
.s-head .s-btn { display: none; }

.s-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--deep-green);
}

.s-hero {
  display: grid;
  gap: 28px;
  padding: 10px 18px 40px;
}
.s-hero__copy { display: grid; gap: 18px; align-content: center; }
.s-hero h1 {
  font-size: clamp(2.5rem, 11vw, 4.6rem);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.s-hero h1 em { font-style: italic; color: var(--deep-green); }
.s-lead { font-size: 17.5px; line-height: 1.55; color: var(--txt-2); max-width: 34em; }
.s-hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.s-hero__cta .s-btn { width: 100%; }
.s-link {
  color: var(--moss);
  font-weight: 650;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.s-facts { display: grid; gap: 8px; font-size: 14.5px; color: var(--txt-2); }
.s-facts li { display: flex; align-items: center; gap: 9px; }
.s-facts .ico { color: var(--sage); }

.s-hero__art {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / .92;
  border-radius: 999px 999px 26px 26px;
  box-shadow: 0 30px 60px -30px rgba(31, 59, 51, .55);
  background: var(--mist);
}
.s-hero__art svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.s-sec { padding: 52px 18px; }
.s-sec--tint { background: var(--bg-2); }
.s-sec__head { display: grid; gap: 8px; margin-bottom: 28px; max-width: 40em; }
.s-sec__head h2 { font-size: clamp(1.9rem, 6vw, 2.7rem); line-height: 1.08; text-wrap: balance; }
.s-sub { color: var(--txt-2); font-size: 16px; }
.s-center { display: flex; justify-content: center; margin-top: 30px; }

/* Servicios */
.svc-grid { display: grid; gap: 16px; }
.svc {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(31, 59, 51, .06), 0 14px 30px -20px rgba(31, 59, 51, .4);
}
.svc__art {
  position: relative;
  height: 112px;
  overflow: hidden;
}
.svc__dur {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  color: var(--moss);
  font-size: 12.5px;
  font-weight: 650;
}
.svc__body { display: grid; gap: 8px; padding: 18px 18px 18px; align-content: start; }
.svc__body h3 { font-size: 23px; line-height: 1.15; }
.svc__sub { font-size: 14px; color: var(--txt-2); line-height: 1.45; }
.svc__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}
.svc__price { font-family: var(--serif); font-size: 26px; color: var(--moss); letter-spacing: -.01em; }
.svc__price small { display: block; font-family: var(--sans); font-size: 12.5px; color: var(--txt-2); letter-spacing: 0; }

.svc--feat { background: var(--moss); color: #eef2ee; }
.svc--feat h3, .svc--feat .svc__price { color: #fff; }
.svc--feat .svc__sub, .svc--feat .svc__price small { color: #cddbd2; }
.svc--feat .s-btn--ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
.svc--feat .s-btn--ghost:hover { background: #fff; color: var(--moss); }
.svc--feat :focus-visible { outline-color: var(--sand); }
.svc__save {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--moss);
  font-size: 12.5px;
  font-weight: 700;
}

.art-relax {
  background:
    radial-gradient(130% 100% at 12% 128%, #5b8070 0 44%, transparent 45%),
    radial-gradient(120% 100% at 88% 136%, #8fae9e 0 50%, transparent 51%),
    radial-gradient(circle at 78% 30%, #fbe9dc 0 11%, transparent 12%),
    linear-gradient(#d7e3db, #f1e4d9);
}
.art-deep {
  background:
    repeating-radial-gradient(circle at 74% 56%, rgba(168, 98, 72, .55) 0 2px, transparent 2px 15px),
    linear-gradient(135deg, #ecd0be, #f6e8dd);
}
.art-face {
  background:
    radial-gradient(circle at 26% 34%, rgba(255, 255, 255, .85) 0 9%, transparent 10%),
    radial-gradient(circle at 40% 62%, rgba(255, 255, 255, .6) 0 5%, transparent 6%),
    radial-gradient(circle at 70% 40%, rgba(255, 255, 255, .5) 0 12%, transparent 13%),
    linear-gradient(160deg, #a9c3b6, #e5eee7);
}
.art-pair {
  background:
    radial-gradient(circle at 42% 58%, rgba(232, 201, 182, .95) 0 26%, transparent 27%),
    radial-gradient(circle at 60% 58%, rgba(143, 174, 158, .9) 0 26%, transparent 27%),
    linear-gradient(#f4ebe2, #e3ebe4);
}
.art-plan {
  background:
    radial-gradient(circle at 18% 70%, #e8c9b6 0 7%, transparent 8%),
    radial-gradient(circle at 38% 58%, #e8c9b6 0 9%, transparent 10%),
    radial-gradient(circle at 60% 44%, #e8c9b6 0 11%, transparent 12%),
    radial-gradient(circle at 84% 30%, #e8c9b6 0 13%, transparent 14%),
    linear-gradient(135deg, #2f5246, #1f3b33);
}

/* Cómo agendar */
.how { display: grid; gap: 14px; counter-reset: none; }
.how li {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 20px 20px 20px 78px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .7);
}
.how__n {
  position: absolute;
  left: 18px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--moss);
  color: var(--sand);
  font-family: var(--serif);
  font-size: 24px;
}
.how h3 { font-size: 21px; line-height: 1.2; }
.how p { color: var(--txt-2); font-size: 15px; }

/* Opiniones */
.quotes { display: grid; gap: 14px; }
.quote {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 30px -22px rgba(31, 59, 51, .5);
}
.quote__stars { display: flex; gap: 2px; color: #c98a5e; }
.quote__stars .ico { width: 18px; height: 18px; }
.quote blockquote { font-family: var(--serif); font-size: 18.5px; line-height: 1.45; color: var(--moss); }
.quote figcaption { display: flex; flex-direction: column; font-size: 14px; color: var(--txt-2); }
.quote figcaption strong { color: var(--txt); font-weight: 700; }

/* Preguntas */
.faq { display: grid; gap: 10px; max-width: 780px; }
.faq details {
  border-radius: 18px;
  background: rgba(255, 255, 255, .78);
  overflow: hidden;
}
.faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  min-height: 56px;
  display: flex;
  align-items: center;
  padding: 12px 56px 12px 18px;
  font-weight: 650;
  font-size: 16px;
  color: var(--moss);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 14px;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
  background: var(--moss);
  transition: transform .25s ease;
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { padding: 0 18px 18px; color: var(--txt-2); font-size: 15.5px; line-height: 1.55; }
.faq summary:focus-visible { outline-offset: -3px; }

/* Ubicación */
.where { display: grid; gap: 18px; }
.where__map {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 22px;
  background: #e3eae4;
}
.where__map svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.where__info { display: grid; gap: 14px; align-content: center; }
.where__info h3 { font-size: 28px; }
.where__addr { font-size: 17px; color: var(--txt); }
.hours { display: grid; gap: 0; border-top: 1px solid rgba(31, 59, 51, .16); }
.hours div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(31, 59, 51, .16);
  font-size: 15.5px;
}
.hours dt { color: var(--txt-2); }
.hours dd { font-weight: 650; text-align: right; }
.where__info .s-btn { justify-self: start; width: 100%; }

.s-foot {
  display: grid;
  gap: 14px;
  padding: 36px 18px 42px;
  background: var(--moss);
  color: #d5e0d9;
  font-size: 14.5px;
}
.s-foot strong { display: block; font-family: var(--serif); font-weight: 450; font-size: 26px; color: #fff; }
.s-foot span { color: var(--mist); font-size: 13px; letter-spacing: .06em; }
.s-foot small { color: #aebfb5; font-size: 12.5px; }

/* Botón flotante de WhatsApp dentro del sitio */
.wa-float-wrap {
  position: sticky;
  bottom: calc(var(--tab-h) + 14px + env(safe-area-inset-bottom, 0px));
  height: 0;
  z-index: 40;
  display: flex;
  justify-content: flex-end;
  padding-right: 14px;
  pointer-events: none;
}
.wa-float {
  pointer-events: auto;
  translate: 0 -100%;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 56px;
  padding: 0 20px 0 16px;
  border: 0;
  border-radius: 999px;
  background: #12794a;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 14px 30px -10px rgba(10, 80, 45, .7), 0 0 0 4px rgba(255, 255, 255, .6);
  transition: background-color .2s ease, transform .2s ease;
}
.wa-float .ico { width: 26px; height: 26px; }
.wa-float:hover { background: #0e6a41; }
.wa-float:focus-visible { outline: 3px solid var(--moss); outline-offset: 3px; }

@media (min-width: 640px) {
  .s-head .s-btn { display: inline-flex; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .svc--feat { grid-column: 1 / -1; }
  .quotes { grid-template-columns: repeat(3, 1fr); }
  .how { grid-template-columns: repeat(3, 1fr); }
  .how li { padding: 76px 20px 22px; }
  .how__n { left: 20px; top: 20px; }
  .hero-cta .s-btn, .s-hero__cta .s-btn { width: auto; }
  .where__info .s-btn { width: auto; }
}

@media (min-width: 900px) {
  .view--web { padding: 28px 28px 56px; }

  .frame {
    border-radius: 20px;
    overflow: clip;
    background: var(--card);
    box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px rgba(14, 22, 48, .45);
  }
  .frame__bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 11px 16px;
    background: #e9ecf5;
    border-bottom: 1px solid var(--line);
  }
  .frame__dots { display: inline-flex; gap: 6px; }
  .frame__dots i { width: 11px; height: 11px; border-radius: 50%; background: #c3c9dd; }
  .frame__url {
    flex: 1;
    max-width: 420px;
    margin: 0 auto;
    padding: 5px 14px;
    border-radius: 8px;
    background: #fff;
    color: var(--mute);
    font-family: var(--mono);
    font-size: 12.5px;
    text-align: center;
  }

  .wa-float-wrap { bottom: 24px; padding-right: 22px; }

  .s-head { padding: 22px 44px; }
  .s-nav { display: flex; gap: 30px; font-size: 15px; font-weight: 600; }
  .s-nav a { color: var(--txt-2); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
  .s-nav a:hover { color: var(--moss); text-decoration: underline; text-underline-offset: 6px; }
  .s-btn--sm { font-size: 15px; padding: 0 20px; }

  .s-hero {
    grid-template-columns: 1.05fr .95fr;
    gap: 56px;
    align-items: center;
    padding: 28px 44px 72px;
  }
  .s-hero__copy { gap: 24px; }
  .s-hero__art { aspect-ratio: 4 / 5; max-height: 600px; width: 100%; justify-self: end; }
  .s-lead { font-size: 19px; }

  .s-sec { padding: 84px 44px; }
  .s-sec__head { margin-bottom: 40px; }

  .svc-grid { grid-template-columns: repeat(6, 1fr); gap: 20px; }
  .svc { grid-column: span 2; }
  .svc--feat, .svc--pair { grid-column: span 3; }
  .svc--pair, .svc--feat { grid-template-rows: auto 1fr; }
  .svc__art { height: 148px; }
  .svc--pair .svc__art, .svc--feat .svc__art { height: 128px; }

  .how { gap: 20px; }
  .quote { padding: 26px; }
  #preguntas { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
  #preguntas .s-sec__head { margin-bottom: 0; position: sticky; top: calc(var(--chrome) + 24px); }
  #preguntas .faq { max-width: none; }
  .where { grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: stretch; }
  .where__map { aspect-ratio: auto; min-height: 320px; }
  .s-foot { grid-template-columns: 1fr 1fr; padding: 44px; align-items: end; }
  .s-foot small { grid-column: 1 / -1; }
}

/* ==========================================================================
   2. WHATSAPP
   ========================================================================== */

.view--chat { padding: 0; }

.chatwrap {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--chrome) - var(--tab-h));
  height: calc(100dvh - var(--chrome) - var(--tab-h) - env(safe-area-inset-bottom, 0px));
  min-height: 420px;
}

.phone { flex: 1; min-height: 0; position: relative; }
.phone__notch { display: none; }

.wa {
  --wa-head: #0d5c4f;
  --wa-bg: #ebe6dc;
  --wa-out: #dcf7c6;
  --wa-meta: #5b6b64;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--wa-bg);
  overflow: hidden;
}

.wa__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--wa-head);
  color: #fff;
  flex: none;
}
.wa__back { width: 24px; height: 24px; opacity: .95; }
.wa__avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #cfe0d6;
  color: #1f3b33;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .02em;
  flex: none;
}
.wa__who { min-width: 0; flex: 1; line-height: 1.2; }
.wa__who strong { display: block; font-size: 16.5px; font-weight: 650; }
.wa__who small { display: block; font-size: 12.5px; color: #cfe8df; }
.wa__tools { display: flex; gap: 16px; color: #e5f3ee; }
.wa__tools .ico { width: 22px; height: 22px; }

.wa__log {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 12px 10px;
  background-color: var(--wa-bg);
  background-image:
    radial-gradient(rgba(31, 59, 51, .055) 1.2px, transparent 1.4px),
    radial-gradient(rgba(31, 59, 51, .04) 1px, transparent 1.2px);
  background-size: 26px 26px, 26px 26px;
  background-position: 0 0, 13px 13px;
  scroll-behavior: smooth;
}

.msg { display: flex; flex-direction: column; max-width: 84%; animation: rise .28s ease both; }
.msg--in { align-self: flex-start; }
.msg--out { align-self: flex-end; align-items: flex-end; }
.msg--wide { max-width: 92%; }

.bubble {
  position: relative;
  padding: 7px 10px 5px;
  border-radius: 10px;
  background: #fff;
  color: #17211d;
  font-size: 15px;
  line-height: 1.38;
  box-shadow: 0 1px 1px rgba(20, 30, 25, .12);
  overflow-wrap: anywhere;
}
.msg--in .bubble { border-top-left-radius: 2px; }
.msg--out .bubble { background: var(--wa-out); border-top-right-radius: 2px; }
.bubble__t {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  margin-top: 1px;
  font-size: 11px;
  line-height: 1;
  color: var(--wa-meta);
}
.bubble__t .ico { width: 17px; height: 17px; color: #2a8fd6; }

.sep {
  align-self: center;
  margin: 8px 0 4px;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .85);
  color: var(--wa-meta);
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 1px 1px rgba(20, 30, 25, .1);
  animation: rise .28s ease both;
}

.typing { padding: 12px 14px; display: inline-flex; gap: 4px; align-items: center; }
.typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8a968f;
  animation: blink 1.1s infinite ease-in-out;
}
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }

/* Tarjetas dentro del chat */
.ccard { display: grid; gap: 8px; min-width: 232px; padding: 2px 0 4px; }
.ccard__h {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--ok-deep);
}
.ccard__h .ico { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--ok); color: #fff; }
.ccard dl { display: grid; gap: 0; margin: 0; }
.ccard dl div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 0;
  border-top: 1px solid #e3e8e5;
  font-size: 14px;
}
.ccard dt { color: #5b6b64; flex: none; }
.ccard dd { font-weight: 650; text-align: right; }

.svc-card { display: grid; gap: 4px; min-width: 232px; padding: 2px 0 4px; }
.svc-card__n { font-weight: 700; font-size: 15.5px; }
.svc-card__m { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.svc-card__d { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; color: #5b6b64; }
.svc-card__p { font-family: var(--serif); font-size: 21px; color: #0d5c4f; font-weight: 600; }

.tpl-actions { display: grid; gap: 3px; margin-top: 3px; }
.tpl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #1b6fc0;
  font-size: 14.5px;
  font-weight: 650;
  box-shadow: 0 1px 1px rgba(20, 30, 25, .12);
}
.tpl-btn:hover:not(:disabled) { background: #f1f7fc; }
.tpl-btn:disabled { color: #8a97a0; }
.tpl-btn .ico { width: 18px; height: 18px; }

/* Bandeja de respuestas */
.wa__tray {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-content: center;
  gap: 8px;
  min-height: 74px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px) * 0);
  background: #f3f4f6;
  border-top: 1px solid #d9dde1;
  flex: none;
}
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 1.5px solid #b6c6be;
  border-radius: 999px;
  background: #fff;
  color: #0d5c4f;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.15;
  animation: rise .25s ease both;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.chip:hover { background: #eef6f2; border-color: #0d5c4f; }
.chip:active { transform: scale(.97); }
.chip:focus-visible { outline-color: #0d5c4f; }
.chip--demo {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}
.chip--demo:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.chip--time { font-variant-numeric: tabular-nums; }
.tray-hint { align-self: center; margin-right: auto; font-size: 13px; color: #5b6b64; }

/* Columna lateral (escritorio) */
.side { display: grid; gap: 12px; padding: 12px 14px 14px; flex: none; }
.side__card--steps { display: none; }
.act {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  background: var(--card);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.act:hover:not(:disabled) { background: var(--ink); color: #fff; }
.act:disabled { border-color: var(--line); color: #5f6988; background: var(--line-2); }
.act__hint { margin-top: 6px; font-size: 12.5px; color: var(--mute); text-align: center; line-height: 1.3; }

@media (max-width: 899px) {
  .side { padding: 10px 14px 12px; gap: 0; background: var(--card); border-top: 1px solid var(--line); }
}

@media (min-width: 900px) {
  .chatwrap {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 44px;
    height: auto;
    min-height: calc(100vh - var(--chrome));
    min-height: calc(100dvh - var(--chrome));
    padding: 24px 28px 32px;
  }

  .phone {
    flex: none;
    width: 392px;
    height: min(792px, calc(100vh - var(--chrome) - 56px));
    height: min(792px, calc(100dvh - var(--chrome) - 56px));
    min-height: 560px;
    padding: 11px;
    border-radius: 50px;
    background: #101a38;
    box-shadow: 0 0 0 2px #2b3a6b, 0 40px 70px -30px rgba(14, 22, 48, .7);
  }
  .phone__notch {
    display: block;
    position: absolute;
    top: 18px;
    left: 50%;
    z-index: 3;
    width: 86px;
    height: 22px;
    translate: -50% 0;
    border-radius: 14px;
    background: #101a38;
  }
  .wa { border-radius: 40px; }
  .wa__head { padding-top: 30px; }

  .side { width: 360px; padding: 8px 0 0; gap: 14px; }
  .side__card {
    padding: 20px;
    border-radius: var(--r-lg);
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-1);
  }
  .side__card--steps { display: block; }
  .side__card h2 { font-size: 18px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; }
}

.steps { display: grid; gap: 4px; position: relative; }
.steps li {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  padding: 8px 8px 8px 0;
  border-radius: 12px;
  color: var(--mute);
  transition: background-color .3s ease, color .3s ease;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 40px;
  bottom: -6px;
  width: 2px;
  background: var(--line);
}
.steps__n {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--line-2);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  z-index: 1;
  transition: background-color .3s ease, color .3s ease;
}
.steps strong { display: block; font-size: 14.5px; line-height: 1.3; color: var(--ink-2); }
.steps small { display: block; font-size: 12.5px; line-height: 1.35; color: var(--mute); }
.steps li.is-done .steps__n { background: var(--ok); color: #fff; font-size: 0; }
.steps li.is-done .steps__n::after { content: "✓"; font-size: 15px; font-family: var(--sans); }
.steps li.is-done strong { color: var(--ink); }
.steps li.is-now { background: var(--fill-soft); }
.steps li.is-now .steps__n { background: var(--fill); color: var(--fill-ink); }
.steps li.is-now strong { color: var(--ink); }
.steps li.is-now small { color: #5d4a12; }
.steps__human {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 11px 12px;
  border-radius: 12px;
  background: var(--paper);
  color: var(--mute);
  font-size: 13px;
  line-height: 1.35;
  transition: background-color .3s ease, color .3s ease;
}
.steps__human .ico { margin-top: 1px; }
.steps__human.is-on { background: var(--warn-soft); color: var(--warn-deep); font-weight: 650; }

/* ==========================================================================
   3. PANEL
   ========================================================================== */

.panel {
  display: grid;
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 14px 28px;
}

.panel__head { display: grid; gap: 4px; }
.panel__eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mute);
}
.panel h1 { font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.panel__range { font-size: 14px; color: var(--mute); }

.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kpi {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 14px;
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  position: relative;
  overflow: hidden;
}
.kpi__l { font-size: 12.5px; font-weight: 650; color: var(--mute); line-height: 1.25; min-height: 2.5em; }
.kpi__v { display: flex; align-items: baseline; gap: 2px; }
.kpi__n {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.kpi__u { font-size: 22px; font-weight: 800; color: var(--ink-2); }
.kpi__s { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--mute); line-height: 1.3; }
.kpi__d {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--fill);
  color: var(--fill-ink);
  font-size: 12px;
  font-weight: 800;
  animation: pop .7s ease;
}
.kpi.is-up { border-color: #f2d37a; }
.kpi.is-up::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 201, 51, .35) 50%, transparent 80%);
  animation: sweep 1.3s ease both;
  pointer-events: none;
}

.pcard {
  padding: 16px 14px;
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  min-width: 0;
}
.pcard__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.pcard__head h2 { font-size: 18px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.pcard__head p { margin-top: 2px; font-size: 13.5px; color: var(--mute); line-height: 1.35; }

.duo { display: grid; gap: 16px; min-width: 0; }

/* Embudo */
.funnel {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 0 -14px;
  padding: 0 14px 6px;
  scroll-padding-left: 14px;
  -webkit-overflow-scrolling: touch;
}
.col {
  flex: 0 0 min(78vw, 300px);
  scroll-snap-align: start;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 10px;
  border-radius: 14px;
  background: #eaedf7;
  min-height: 120px;
}
.col__h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 4px;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.col__c {
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border-radius: 8px;
  background: var(--card);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
}
.lead {
  display: grid;
  gap: 8px;
  padding: 11px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--line);
}
.lead__top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.av {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .02em;
  flex: none;
}
.av--0 { background: #dfe6ff; color: #1b33c4; }
.av--1 { background: #ffe3d2; color: #8f2f00; }
.av--2 { background: #d6f1e4; color: #07623f; }
.av--3 { background: #f2e1f7; color: #7a2a93; }
.av--4 { background: #fdf0c6; color: #6a4a00; }
.av--5 { background: #d9eef5; color: #0b5870; }
.lead__who { min-width: 0; line-height: 1.25; }
.lead__who strong { display: block; font-size: 14.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead__who span { display: block; font-size: 13px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead__bot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--mute); }
.lead.is-me { border-color: #f2d37a; background: #fffaf0; }
.lead.is-flash { animation: flash 2.8s ease both; }

.ch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 3px 7px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.ch .ico { width: 14px; height: 14px; }
.ch--web { background: var(--brand-soft); color: var(--brand-deep); }
.ch--insta { background: #fde6f1; color: #9b1b63; }
.ch--wa { background: var(--ok-soft); color: var(--ok-deep); }

/* Agenda */
.weeknav { display: flex; gap: 6px; }
.weeknav button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  transition: background-color .2s ease;
}
.weeknav button:hover:not(:disabled) { background: var(--paper); }
.weeknav button:disabled { opacity: .4; }

.dayseg {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 12px;
}
.dayseg button {
  position: relative;
  display: grid;
  gap: 1px;
  place-items: center;
  min-height: 56px;
  padding: 6px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.dayseg button b { font-size: 18px; font-weight: 800; letter-spacing: -.02em; text-transform: none; color: var(--ink); }
.dayseg button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #cdd4ee; }
.dayseg button[aria-pressed="true"] b { color: #fff; }
.dayseg button.has-me::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fill);
  box-shadow: 0 0 0 2px var(--card);
}
.dayseg button[aria-pressed="true"].has-me::after { box-shadow: 0 0 0 2px var(--ink); }

.ag {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  border-top: 1px solid var(--line-2);
  border-left: 1px solid var(--line-2);
  border-radius: 4px;
}
.ag__h { display: none; }
.ag > * { border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); min-width: 0; }
.ag__t {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 8px 8px 0 0;
  background: #f8f9fd;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mute);
  white-space: nowrap;
}
.ag__c { min-height: 58px; padding: 4px; position: relative; background: var(--card); }
@media (max-width: 899px) {
  .ag[data-sel="0"] .ag__c:not([data-d="0"]),
  .ag[data-sel="1"] .ag__c:not([data-d="1"]),
  .ag[data-sel="2"] .ag__c:not([data-d="2"]),
  .ag[data-sel="3"] .ag__c:not([data-d="3"]),
  .ag[data-sel="4"] .ag__c:not([data-d="4"]),
  .ag[data-sel="5"] .ag__c:not([data-d="5"]) { display: none; }
}

.ag__free {
  display: flex;
  align-items: center;
  height: 100%;
  min-height: 48px;
  padding: 0 10px;
  border: 1px dashed var(--line);
  border-radius: 9px;
  font-size: 12.5px;
  color: var(--mute);
}
.ag__c.is-past { background: repeating-linear-gradient(135deg, #f5f6fb 0 6px, #f0f2f9 6px 12px); }
.ag__c.is-past .ag__free { border-color: transparent; color: transparent; }

.apt {
  display: grid;
  align-content: center;
  gap: 1px;
  height: 100%;
  min-height: 48px;
  padding: 5px 9px;
  border-radius: 9px;
  border-left: 4px solid var(--brand);
  background: var(--brand-soft);
  color: var(--ink);
  line-height: 1.2;
  overflow: hidden;
}
.apt b { font-size: 13px; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apt span { font-size: 12px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apt--conf { border-left-color: var(--ok); background: #e3f6ec; }
.apt--pend { border-left-color: #c28a00; background: #fff6d6; }
.apt--new {
  border-left-color: var(--ink);
  background: var(--fill);
  box-shadow: 0 6px 16px -6px rgba(180, 130, 0, .65);
}
.apt--new span { color: var(--fill-ink); }
.apt__s { font-style: normal; }
.apt--new.is-conf { background: #b8ecd3; border-left-color: var(--ok-deep); box-shadow: 0 6px 16px -6px rgba(10, 120, 80, .5); }
.apt--new.is-conf span { color: var(--ok-deep); }
.apt.is-flash { animation: flash 2.8s ease both; }
.ag__c.is-past .apt { opacity: .55; }

.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 12.5px; color: var(--mute); }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.lg { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.lg--conf { background: #e3f6ec; box-shadow: inset 3px 0 0 var(--ok); }
.lg--pend { background: #fff6d6; box-shadow: inset 3px 0 0 #c28a00; }
.lg--new { background: var(--fill); box-shadow: inset 3px 0 0 var(--ink); }

/* Conversaciones */
.inbox { display: grid; gap: 8px; }
.cv {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 4px 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
}
.cv .av { width: 38px; height: 38px; grid-row: span 2; }
.cv__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; }
.cv__top strong { font-size: 14.5px; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv__top time { flex: none; font-size: 12px; color: var(--mute); }
.cv__msg { font-size: 13.5px; color: var(--ink-2); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cv__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.cv.is-me { border-color: #f2d37a; background: #fffaf0; }
.cv.is-flash { animation: flash 2.8s ease both; }
.cv.is-need { border-color: #f4b996; }

.st {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
}
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st--agent { background: var(--brand-soft); color: var(--brand-deep); }
.st--need { background: var(--warn-soft); color: var(--warn-deep); }
.st--booked { background: var(--ok-soft); color: var(--ok-deep); }
.st--mine { background: var(--violet-soft); color: var(--violet-deep); }

.take {
  min-height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--ink);
  border-radius: 11px;
  background: var(--card);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  transition: background-color .2s ease, color .2s ease;
}
.take:hover { background: var(--ink); color: #fff; }
.cv.is-need .take { background: var(--ink); color: #fff; }
.cv.is-need .take:hover { background: var(--brand-deep); border-color: var(--brand-deep); }

@media (min-width: 640px) {
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .panel { padding: 28px 28px 48px; gap: 20px; }
  .panel__head { display: flex; align-items: flex-end; justify-content: space-between; }
  .panel h1 { font-size: 32px; }
  .kpis { gap: 16px; }
  .kpi { padding: 18px 20px; }
  .kpi__l { min-height: 0; font-size: 13.5px; }
  .kpi__n { font-size: 52px; }
  .kpi__u { font-size: 28px; }
  .kpi__s { font-size: 12.5px; }

  .pcard { padding: 22px; }
  .pcard__head h2 { font-size: 20px; }

  .funnel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; overflow: visible; margin: 0; padding: 0; }
  .col { flex: none; padding: 12px; }

  .duo { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 20px; align-items: start; }

  .dayseg { display: none; }
  .ag { grid-template-columns: 66px repeat(6, minmax(0, 1fr)); }
  .ag__h {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 9px 4px;
    background: #f8f9fd;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--mute);
  }
  .ag__h b { font-size: 17px; letter-spacing: -.02em; color: var(--ink); text-transform: none; }
  .ag__h.is-today { background: var(--ink); color: #c8cfea; }
  .ag__h.is-today b { color: #fff; }
  .ag__c { min-height: 54px; padding: 3px; }
  .ag__free { font-size: 0; border-color: transparent; padding: 0; }
  .ag__c:hover .ag__free:not(.ag__free--past) { border-color: var(--line); }
  .apt { padding: 4px 7px; border-left-width: 3px; }
  .apt b { font-size: 12px; }
  .apt span { font-size: 11px; }
  .apt__s { display: none; }
}

/* ---------- Animaciones ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
@keyframes pop { 0% { transform: scale(.7); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(184, 66, 10, .55); } 100% { box-shadow: 0 0 0 10px rgba(184, 66, 10, 0); } }
@keyframes sweep { from { transform: translateX(-100%); opacity: 1; } to { transform: translateX(100%); opacity: 0; } }
@keyframes flash {
  0% { box-shadow: 0 0 0 0 rgba(255, 201, 51, .95); background-color: var(--fill); }
  35% { box-shadow: 0 0 0 7px rgba(255, 201, 51, .35); background-color: var(--fill-soft); }
  100% { box-shadow: 0 0 0 0 rgba(255, 201, 51, 0); }
}

@media (prefers-reduced-motion: reduce) {
  html, .site, .wa__log { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .typing i { animation: none; opacity: .6; }
}

/* Detalles del chat */
.bubble__who { display: block; margin-bottom: 2px; font-size: 12.5px; font-weight: 700; color: #0d5c4f; }
.svc-card__note { font-size: 13px; font-weight: 650; line-height: 1.3; color: var(--ok-deep); }
