/* ===== GAMA · AgentesCasos ===== */
.ag {
  --morado: #80358a;
  --morado-700: #5f2568;
  --morado-300: #c79bce;
  --morado-100: #f4eaf6;
  --menta: #95e6c1;
  --ink: #15111a;
  --ink6: #57505e;
  --ink5: #6e6776;
  --ink3: #a9a1b0;
  --ln: #e8e3ec;
  --line: rgba(255, 255, 255, 0.09);
  --tx2: rgba(255, 255, 255, 0.62);
  --tx3: rgba(255, 255, 255, 0.4);
  --f: "Inter", system-ui, -apple-system, sans-serif;
  --e: cubic-bezier(0.16, 1, 0.3, 1);
  container-type: inline-size;
  width: 100%;
  font-family: var(--f);
  color: #fff;
  line-height: 1.5;
}
.ag * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.ag button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}
.ag :focus-visible {
  outline: 2px solid var(--menta);
  outline-offset: 3px;
  border-radius: 10px;
}

.ag-scene {
  display: flex;
  justify-content: center;
}
.ag-phonewrap {
  flex: 0 0 auto;
  width: 344px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* tira mínima bajo el teléfono */
.ag-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin-top: 16px;
  padding: 0 2px;
}
.ag-nowchip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 0 1 auto;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  padding: 6px 13px;
  border-radius: 999px;
  overflow: hidden;
}
.ag-nowchip b {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ag-nowchip .ag-lg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}
.ag-c-tel {
  stroke: var(--morado-300);
}
.ag-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

/* ---------- teléfono, tamaño nativo, nunca escalado ---------- */
.ag-phone {
  position: relative;
  width: 344px;
  padding: 11px;
  border-radius: 52px;
  background: linear-gradient(160deg, #3b3342, #141018 42%, #3b3342);
  box-shadow:
    0 2px 3px rgba(0, 0, 0, 0.4),
    0 40px 80px -26px rgba(0, 0, 0, 0.9);
}
.ag-glow {
  position: absolute;
  inset: -24px;
  border-radius: 74px;
  background: rgba(128, 53, 138, 0.5);
  filter: blur(44px);
  z-index: -1;
}
.ag-screen {
  position: relative;
  width: 322px;
  height: 664px;
  border-radius: 42px;
  overflow: hidden;
  background: #fff;
}
.ag-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 26px;
  border-radius: 20px;
  background: #0d0a11;
  z-index: 40;
}
.ag-sbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px 0;
  font-size: 12.5px;
  font-weight: 650;
  z-index: 35;
  color: #15111a;
}
.ag-sbar.ag-lightbar,
.ag-sbar.ag-lightbar svg {
  color: #fff;
}
.ag-ico {
  display: flex;
  gap: 5px;
  align-items: center;
  opacity: 0.9;
}
.ag-sbar svg {
  width: 15px;
  height: 10px;
  display: block;
}
.ag-view {
  position: absolute;
  inset: 0;
  padding-top: 46px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: ag-swap 0.42s var(--e) both;
}
@keyframes ag-swap {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* cabecera de chat */
.ag-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
}
.ag-av {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  flex: 0 0 31px;
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 800;
  color: #fff;
}
.ag-who {
  min-width: 0;
  flex: 1;
}
.ag-who b {
  display: block;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.25;
}
.ag-who i {
  font-style: normal;
  font-size: 11px;
}
.ag-chan {
  flex: 0 0 auto;
}
.ag-lg {
  width: 17px;
  height: 17px;
  display: block;
}
.ag-c-wa {
  fill: #25d366;
}
.ag-c-ig {
  fill: url(#agIg);
}
.ag-c-web {
  stroke: #5c7699;
}

.ag-body {
  flex: 1;
  overflow: hidden;
  padding: 12px 11px 8px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
}
.ag-b {
  max-width: 82%;
  padding: 8px 11px 7px;
  font-size: 13.2px;
  line-height: 1.38;
  position: relative;
}
.ag-t {
  display: block;
  font-size: 9.5px;
  text-align: right;
  margin-top: 2px;
  opacity: 0.55;
}
.ag-t b {
  font-weight: 400;
  color: #4fc3f7;
}
.ag-pop {
  animation: ag-pop 0.34s var(--e) both;
}
@keyframes ag-pop {
  from {
    opacity: 0;
    transform: translateY(9px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.ag-typ {
  display: flex;
  gap: 4px;
  padding: 11px 13px;
  max-width: none;
  width: 52px;
}
.ag-typ i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: ag-bo 1.1s infinite;
}
.ag-typ i:nth-child(2) {
  animation-delay: 0.15s;
}
.ag-typ i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes ag-bo {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}
.ag-opts {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-self: flex-start;
  width: 78%;
}
.ag-opt {
  border-radius: 10px;
  padding: 9px;
  text-align: center;
  font-size: 12.8px;
  font-weight: 600;
  transition:
    background 0.22s var(--e),
    transform 0.18s var(--e);
}
.ag-opt.ag-tap {
  transform: scale(0.97);
}
.ag-sys {
  align-self: center;
  margin: 3px 0;
}
.ag-sys span {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
}
.ag-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px 11px;
}
.ag-bar span {
  flex: 1;
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 12.5px;
}
.ag-bar i {
  width: 29px;
  height: 29px;
  border-radius: 50%;
  flex: 0 0 29px;
}

/* piel WhatsApp */
.ag-sk-wa {
  background: #efe7de;
  background-image: radial-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 15px 15px;
}
.ag-sk-wa .ag-head {
  background: #f6f5f3;
  border-bottom: 1px solid #e0dcd7;
}
.ag-sk-wa .ag-av {
  background: linear-gradient(150deg, #8e3e99, #66276f);
}
.ag-sk-wa .ag-who b {
  color: #111b21;
}
.ag-sk-wa .ag-who i {
  color: #25d366;
  font-weight: 600;
}
.ag-sk-wa .ag-b {
  border-radius: 9px;
  color: #111b21;
  box-shadow: 0 1px 0.6px rgba(11, 20, 26, 0.13);
}
.ag-sk-wa .ag-in {
  align-self: flex-start;
  background: #fff;
  border-top-left-radius: 2px;
}
.ag-sk-wa .ag-out {
  align-self: flex-end;
  background: #d9fdd3;
  border-top-right-radius: 2px;
}
.ag-sk-wa .ag-typ {
  background: #fff;
}
.ag-sk-wa .ag-typ i {
  background: #9aa5ac;
}
.ag-sk-wa .ag-opt {
  background: #fff;
  color: #0a7cff;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.09);
}
.ag-sk-wa .ag-opt.ag-tap {
  background: #e8f2ff;
}
.ag-sk-wa .ag-sys span {
  background: #fff3c4;
  color: #6b5a16;
}
.ag-sk-wa .ag-bar {
  background: #f6f5f3;
  border-top: 1px solid #e0dcd7;
}
.ag-sk-wa .ag-bar span {
  background: #fff;
  border: 1px solid #e0dcd7;
  color: #8696a0;
}
.ag-sk-wa .ag-bar i {
  background: #25d366;
}

/* piel Instagram */
.ag-sk-ig {
  background: #000;
}
.ag-sk-ig .ag-head {
  border-bottom: 1px solid #1c1c1c;
}
.ag-sk-ig .ag-av {
  background: linear-gradient(135deg, #f58529, #dd2a7b 55%, #8134af);
}
.ag-sk-ig .ag-who b {
  color: #fff;
}
.ag-sk-ig .ag-who i {
  color: #a8a8a8;
}
.ag-sk-ig .ag-b {
  border-radius: 17px;
  color: #fff;
}
.ag-sk-ig .ag-in {
  align-self: flex-start;
  background: #262626;
  border-bottom-left-radius: 5px;
}
.ag-sk-ig .ag-out {
  align-self: flex-end;
  border-bottom-right-radius: 5px;
  background: linear-gradient(120deg, #5b51d8, #c13584 72%, #e1306c);
}
.ag-sk-ig .ag-typ {
  background: #262626;
}
.ag-sk-ig .ag-typ i {
  background: #9a9a9a;
}
.ag-sk-ig .ag-bar span {
  background: #121212;
  border: 1px solid #262626;
  color: #7a7a7a;
}
.ag-sk-ig .ag-bar i {
  background: #0095f6;
}

/* piel chat del sitio */
.ag-sk-web {
  background: #f7f6f8;
}
.ag-sk-web .ag-head {
  background: linear-gradient(135deg, #80358a, #5f2568);
}
.ag-sk-web .ag-av {
  background: rgba(255, 255, 255, 0.22);
}
.ag-sk-web .ag-who b {
  color: #fff;
}
.ag-sk-web .ag-who i {
  color: rgba(255, 255, 255, 0.75);
}
.ag-sk-web .ag-c-web {
  stroke: rgba(255, 255, 255, 0.8);
}
.ag-sk-web .ag-b {
  border-radius: 11px;
}
.ag-sk-web .ag-in {
  align-self: flex-start;
  background: #edeaf0;
  color: #2a2430;
  border-bottom-left-radius: 3px;
}
.ag-sk-web .ag-out {
  align-self: flex-end;
  background: #80358a;
  color: #fff;
  border-bottom-right-radius: 3px;
}
.ag-sk-web .ag-typ {
  background: #edeaf0;
}
.ag-sk-web .ag-typ i {
  background: #9a90a5;
}
.ag-sk-web .ag-opt {
  background: #fff;
  color: #80358a;
  border: 1px solid #e5dfea;
}
.ag-sk-web .ag-opt.ag-tap {
  background: var(--morado-100);
}
.ag-sk-web .ag-bar {
  background: #fff;
  border-top: 1px solid #ece9ef;
}
.ag-sk-web .ag-bar span {
  background: #f4f2f6;
  color: #a9a1b0;
}
.ag-sk-web .ag-bar i {
  background: #80358a;
}

/* piel llamada */
.ag-sk-call {
  background: linear-gradient(170deg, #241c2c, #120e18 55%, #241c2c);
}
.ag-call {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 15px 14px;
  min-height: 0;
}
.ag-callhead {
  text-align: center;
  flex: 0 0 auto;
  margin-bottom: 12px;
}
.ag-callav {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  font-size: 21px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(150deg, #8e3e99, #5a2263);
  box-shadow: 0 0 0 8px rgba(128, 53, 138, 0.16);
}
.ag-callhead b {
  display: block;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.ag-callhead i {
  font-style: normal;
  font-size: 11.5px;
  color: var(--morado-300);
  font-variant-numeric: tabular-nums;
}
.ag-wave {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5px;
  height: 34px;
  margin-bottom: 14px;
}
.ag-wave i {
  width: 2.5px;
  border-radius: 2px;
  background: var(--morado-300);
  display: block;
  opacity: 0.85;
  animation: ag-wv 1.1s ease-in-out infinite alternate;
}
@keyframes ag-wv {
  from {
    transform: scaleY(0.45);
  }
  to {
    transform: scaleY(1);
  }
}
.ag-tlabel {
  flex: 0 0 auto;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.34);
  margin-bottom: 8px;
}
.ag-tbody {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  min-height: 0;
}
.ag-tline {
  font-size: 12.4px;
  line-height: 1.42;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  padding: 8px 11px;
}
.ag-tline b {
  display: block;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 3px;
  font-weight: 700;
}
.ag-tline.ag-in b {
  color: var(--menta);
}
.ag-tline.ag-out b {
  color: var(--morado-300);
}
.ag-callend {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  padding-top: 14px;
  animation: ag-pop 0.3s var(--e) both;
}
.ag-callend span {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e5484d;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 17px;
}

/* remate */
.ag-ok {
  align-self: center;
  flex: 0 0 auto;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 750;
  color: #0b2e20;
  background: var(--menta);
  padding: 8px 15px;
  border-radius: 999px;
  box-shadow: 0 10px 24px -12px rgba(149, 230, 193, 0.85);
}
.ag-ok.ag-ok-go {
  animation: ag-okin 0.5s var(--e) both;
}
@keyframes ag-okin {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.ag-check {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #0b2e20;
  color: var(--menta);
}
.ag-check svg {
  width: 10px;
  height: 10px;
}

/* ---------- controles mínimos ---------- */
.ag-play {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--morado);
  color: #fff;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  transition:
    background 0.2s,
    transform 0.15s;
}
.ag-play:hover {
  background: #93409e;
}
.ag-play:active {
  transform: scale(0.94);
}
.ag-play svg {
  width: 12px;
  height: 12px;
}
.ag-dots {
  display: flex;
  gap: 5px;
}
.ag-dots button {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  padding: 0;
}
.ag-dots button i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  transition: all 0.3s var(--e);
}
.ag-dots button.ag-seen i {
  background: rgba(149, 230, 193, 0.6);
}
.ag-dots button[aria-current="true"] i {
  background: var(--morado-300);
  width: 22px;
  border-radius: 5px;
}

/* ---------- apilado en contenedores angostos ---------- */
@container (max-width: 392px) {
  .ag-phonewrap {
    width: 316px;
  }
  .ag-phone {
    width: 316px;
    padding: 9px;
    border-radius: 44px;
  }
  .ag-screen {
    width: 294px;
    height: 612px;
    border-radius: 36px;
  }
}
@container (max-width: 340px) {
  .ag-phonewrap {
    width: 288px;
  }
  .ag-phone {
    width: 288px;
    padding: 8px;
    border-radius: 40px;
  }
  .ag-screen {
    width: 268px;
    height: 560px;
    border-radius: 33px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ag *,
  .ag *::before,
  .ag *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .ag-ok {
    opacity: 1;
    transform: translateX(-50%);
  }
}

/* en la llamada el remate ocupa el lugar del botón de colgar */
.ag-call .ag-ok {
  margin-top: 14px;
}

/* ── banda de credibilidad (agentes-ia) ── */
.logo-band-section {
  padding: 44px 0;
  background: var(--ink950);
  border-bottom: 1px solid var(--ink700);
  text-align: center;
}
.logo-band-section .eyebrow {
  justify-content: center;
  margin-bottom: 22px;
  color: var(--ink300);
}
.logo-static {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  justify-items: center;
  align-items: center;
}
.logo-band-section .logo-chip {
  width: 100%;
  max-width: 180px;
}
.logo-band-section .logo-chip img {
  opacity: 0.9;
  max-height: 44px;
  max-width: 100%;
  object-fit: contain;
}
@media (max-width: 1024px) {
  .logo-static {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}
@media (max-width: 760px) {
  .logo-static {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .logo-band-section .logo-chip {
    max-width: none;
  }
}

/* ── fit / no-fit ── */
.fit-sec {
  padding: 90px 0;
  background: var(--ink950);
  border-top: 1px solid var(--ink700);
  border-bottom: 1px solid var(--ink700);
}
.fit-sec h2 {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.fit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 42px;
}
.fit-col {
  padding: 32px;
}
.fit-yes {
  border-left: 3px solid var(--mint);
}
.fit-no {
  border-left: 3px solid var(--purple-lt);
}
.fit-col h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.fit-col ul {
  margin-top: 20px;
  display: grid;
  gap: 14px;
  list-style: none;
}
.fit-col li {
  font-size: 14.5px;
  color: var(--ink300);
  line-height: 1.5;
  position: relative;
  padding-left: 22px;
}
.fit-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.fit-yes li::before {
  background: var(--mint);
}
.fit-no li::before {
  background: var(--purple-lt);
}
.fit-close {
  text-align: center;
  margin-top: 44px;
  color: var(--ink300);
  font-size: 15px;
}
.fit-close a {
  color: var(--mint);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 760px) {
  .fit-grid {
    grid-template-columns: 1fr;
  }
  .fit-sec {
    padding: 70px 0;
  }
}

/* ── stat-strip ajuste para texto largo ── */
.stat-strip .s.stat-long b {
  font-size: clamp(17px, 1.9vw, 22px);
  line-height: 1.05;
}
