/* ==========================================================================
   BELA IA — components.css
   ========================================================================== */

/* — Botones — */
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.btn-primary {
  background: var(--color-accent);
  color: #000000;
  box-shadow: 0 0 0 rgba(0, 212, 255, 0);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

.btn-ghost {
  border: 1px solid var(--color-border-strong);
  color: var(--color-text);
  background: transparent;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--color-accent);
  color: var(--color-accent-light);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 13.5px;
}

.btn-block {
  width: 100%;
}

/* — Formularios — */
.field-row {
  display: flex;
  gap: 10px;
}

.field-row input {
  flex: 1;
}

.field {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: rgba(11, 22, 32, 0.35);
  color: var(--color-text);
  font-size: 14.5px;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.field::placeholder {
  color: var(--color-text-faint);
}

.field:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(11, 22, 32, 0.6);
}

.field.has-error {
  border-color: var(--color-warn);
  animation: shake 0.4s var(--ease);
}

.form-note {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--color-text-faint);
}

/* — Kicker sobre fondo claro (no aplica aquí, tema único oscuro) — */

/* — Tarjetas de servicio — */
.service-card {
  padding: 32px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(11, 22, 32, 0.5), rgba(6, 12, 18, 0.2));
  transition: border-color var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}

.service-card:hover {
  border-color: var(--color-border-strong);
  transform: translateY(-3px);
}

.service-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(0, 212, 255, 0.12);
  margin-bottom: 22px;
}

.service-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-accent-light);
}

.service-card h3 {
  font-size: 18.5px;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14.5px;
  color: var(--color-text-dim);
}

/* — Diagrama de flujo (método) — */
.flow-diagram {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.flow-node {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
}

.flow-index {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-accent-light);
  background: var(--color-bg);
  z-index: 2;
}

.flow-node.is-active .flow-index {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.15);
}

.flow-body h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.flow-body p {
  font-size: 14px;
  color: var(--color-text-faint);
}

.flow-connector {
  position: absolute;
  left: 19px;
  top: 60px;
  width: 2px;
  height: calc(100% - 20px);
  background: var(--color-border);
  overflow: hidden;
}

.flow-connector::after {
  content: '';
  position: absolute;
  left: 0;
  top: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--color-accent) 50%, transparent);
  animation: flow-pulse-y 2.4s var(--ease) infinite;
}

.flow-node:last-child .flow-connector {
  display: none;
}

/* — Mock panel (soporte / monitoreo) — */
.mock-panel {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, var(--color-panel), var(--color-panel-soft));
  box-shadow: var(--shadow-panel);
  overflow: hidden;
}

.mock-panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
}

.mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border-strong);
}

.mock-panel-head span {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-faint);
}

.mock-panel-body {
  padding: 20px;
  display: grid;
  gap: 14px;
}

.mock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.35);
}

.mock-row-name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.mock-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent);
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

.mock-status.is-idle {
  background: var(--color-text-faint);
  box-shadow: none;
  animation: none;
}

.mock-row-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-faint);
}

/* — Mock chat (antes / después) — */
.mock-chat-pair {
  display: grid;
  gap: 18px;
}

.mock-chat {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  background: rgba(6, 12, 18, 0.4);
}

.mock-chat-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: 14px;
}

.mock-chat.is-before .mock-chat-label {
  color: var(--color-warn-light);
}

.mock-chat.is-after .mock-chat-label {
  color: var(--color-accent-light);
}

.bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
  margin-bottom: 10px;
  line-height: 1.5;
}

.bubble:last-child {
  margin-bottom: 0;
}

.bubble.is-client {
  background: rgba(234, 246, 251, 0.06);
  color: var(--color-text-dim);
  border-bottom-left-radius: 4px;
}

.bubble.is-reply {
  background: var(--color-panel);
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.mock-chat.is-before .bubble.is-reply {
  color: var(--color-text-faint);
  border: 1px dashed var(--color-border-strong);
}

.mock-chat.is-after .bubble.is-reply {
  color: var(--color-text);
  border: 1px solid var(--color-accent-dim);
}

/* — Casos — */
.caso-card {
  padding: 36px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(11, 22, 32, 0.45), rgba(1, 2, 4, 0.25));
}

.caso-featured {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.caso-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(0, 212, 255, 0.14);
  color: var(--color-accent-light);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.caso-featured h3 {
  font-size: 24px;
  margin-bottom: 14px;
}

.caso-featured p {
  color: var(--color-text-dim);
  font-size: 15px;
  margin-bottom: 24px;
}

.caso-metrics {
  display: flex;
  gap: 32px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.caso-metrics b {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--color-text);
}

.caso-metrics span {
  font-size: 12.5px;
  color: var(--color-text-faint);
}

.caso-mini {
  padding: 24px;
}

.caso-mini h4 {
  font-size: 15.5px;
  margin-bottom: 8px;
}

.caso-mini p {
  font-size: 13.5px;
  color: var(--color-text-faint);
}

/* — Lead magnet / libro 3D — */
.lead-magnet {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 60px;
  align-items: center;
  padding: 56px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: radial-gradient(ellipse at top left, rgba(0, 212, 255, 0.1), transparent 60%), var(--color-panel-soft);
}

.book-stage {
  perspective: 1200px;
  display: flex;
  justify-content: center;
}

.book-3d {
  position: relative;
  width: 160px;
  height: 220px;
  transform-style: preserve-3d;
  transform: rotateY(-24deg) rotateX(4deg);
  transition: transform var(--dur-slow) var(--ease);
}

.lead-magnet:hover .book-3d {
  transform: rotateY(-32deg) rotateX(4deg);
}

.book-cover,
.book-spine {
  position: absolute;
  inset: 0;
}

.book-cover {
  background: linear-gradient(160deg, var(--color-accent-dim), var(--color-panel));
  border: 1px solid var(--color-border-strong);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.2);
}

.book-cover .kicker {
  font-size: 10px;
  margin-bottom: 0;
}

.book-cover h5 {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.25;
  color: var(--color-text);
}

.book-spine {
  width: 24px;
  transform: rotateY(-90deg) translateZ(-12px);
  transform-origin: left;
  background: var(--color-accent-dim);
  border-radius: 4px 0 0 4px;
}

.lead-copy h3 {
  font-size: 26px;
  margin-bottom: 14px;
}

.lead-copy p {
  color: var(--color-text-dim);
  font-size: 15px;
  margin-bottom: 28px;
  max-width: 46ch;
}

/* — Diferenciador — */
.inline-quote {
  margin-top: 28px;
  padding-left: 20px;
  border-left: 2px solid var(--color-accent-dim);
  font-style: italic;
  color: var(--color-text-dim);
  font-size: 15px;
}

.inline-quote cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-faint);
}

/* — Testimonios — */
.testimonial-card {
  padding: 30px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(11, 22, 32, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
}

.testimonial-card p {
  font-size: 15px;
  color: var(--color-text-dim);
  margin-bottom: 24px;
}

.testimonial-who {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--color-accent-light);
  flex-shrink: 0;
}

.testimonial-who b {
  display: block;
  font-size: 14px;
}

.testimonial-who span {
  font-size: 12.5px;
  color: var(--color-text-faint);
}

/* — Precios — */
.price-card {
  padding: 40px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-card.is-featured {
  border-color: var(--color-accent-dim);
  background: linear-gradient(160deg, rgba(0, 212, 255, 0.1), rgba(11, 22, 32, 0.3));
  box-shadow: var(--shadow-glow);
}

.price-badge {
  position: absolute;
  top: -13px;
  left: 40px;
  padding: 5px 14px;
  border-radius: 100px;
  background: var(--color-accent);
  color: var(--color-bg);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.price-card h3 {
  font-size: 19px;
  margin-bottom: 6px;
}

.price-card .price-desc {
  font-size: 13.5px;
  color: var(--color-text-faint);
  margin-bottom: 26px;
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 30px;
}

.price-amount b {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 600;
}

.pricing-unit {
  font-size: 13.5px;
  color: var(--color-text-faint);
}

.price-features {
  display: grid;
  gap: 14px;
  margin-bottom: 32px;
  flex-grow: 1;
}

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--color-text-dim);
}

.price-features svg {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  stroke: var(--color-accent-light);
  flex-shrink: 0;
}

/* — FAQ — */
.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 4px;
  text-align: left;
  font-size: 16.5px;
  font-weight: 600;
  font-family: var(--font-display);
}

.faq-question svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  stroke: var(--color-text-dim);
  transition: transform var(--dur-base) var(--ease);
}

.faq-item.is-open .faq-question svg {
  transform: rotate(180deg);
  stroke: var(--color-accent-light);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-base) var(--ease);
}

.faq-answer p {
  padding: 0 4px 24px;
  font-size: 14.5px;
  color: var(--color-text-dim);
  max-width: 66ch;
}

/* — Toast — */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 20px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  border-radius: var(--radius-sm);
  background: var(--color-panel);
  border: 1px solid var(--color-border-strong);
  box-shadow: var(--shadow-panel);
  font-size: 14px;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent);
  flex-shrink: 0;
}


/* ==========================================================================
   V2 — Cinta de integraciones
   ========================================================================== */
.integrations-band {
  padding: 34px 0 38px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: rgba(6, 12, 18, 0.5);
  overflow: hidden;
}

.integrations-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: 22px;
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee-x 36s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.int-chip {
  flex-shrink: 0;
  padding: 9px 18px;
  border: 1px solid var(--color-border-strong);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-text-dim);
  background: rgba(11, 22, 32, 0.5);
  white-space: nowrap;
}

/* ==========================================================================
   V2 — Demo interactiva (teléfono WhatsApp)
   ========================================================================== */
.accent-em {
  font-style: italic;
  color: var(--color-accent-light);
}

.demo-wrap {
  max-width: 480px;
  margin: 0 auto;
}

.demo-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.demo-tab {
  padding: 10px 20px;
  border: 1px solid var(--color-border-strong);
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-text-dim);
  transition: all var(--dur-fast) var(--ease);
}

.demo-tab:hover {
  color: var(--color-text);
  border-color: var(--color-accent-dim);
}

.demo-tab.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #001018;
}

.wa-phone {
  border: 1px solid var(--color-border-strong);
  border-radius: 22px;
  overflow: hidden;
  background: #0a1014;
  box-shadow: var(--shadow-panel), 0 0 80px rgba(0, 212, 255, 0.07);
}

.wa-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #12271f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.wa-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wa-head-name {
  display: block;
  font-size: 14.5px;
  color: #eafff5;
}

.wa-head-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #8fb3a6;
}

.wa-online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 0 6px #25d366;
}

.wa-body {
  min-height: 320px;
  max-height: 380px;
  overflow-y: auto;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(0, 212, 255, 0.04), transparent 50%),
    #0a1014;
  scroll-behavior: smooth;
}

.wa-msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
  animation: msg-pop 0.3s var(--ease) both;
  white-space: pre-line;
}

.wa-msg.from-user {
  align-self: flex-end;
  background: #1f4d40;
  color: #eafff5;
  border-bottom-right-radius: 4px;
}

.wa-msg.from-bot {
  align-self: flex-start;
  background: #16222b;
  color: var(--color-text);
  border-bottom-left-radius: 4px;
}

.wa-typing {
  align-self: flex-start;
  display: flex;
  gap: 5px;
  padding: 14px 16px;
  background: #16222b;
  border-radius: 12px;
  border-bottom-left-radius: 4px;
}

.wa-typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-text-faint);
  animation: typing-dot 1.1s ease-in-out infinite;
}

.wa-typing i:nth-child(2) { animation-delay: 0.15s; }
.wa-typing i:nth-child(3) { animation-delay: 0.3s; }

.wa-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #0d1519;
  min-height: 64px;
}

.wa-reply {
  padding: 9px 16px;
  border: 1px solid var(--color-accent-dim);
  border-radius: 100px;
  font-size: 13px;
  color: var(--color-accent-light);
  background: rgba(0, 212, 255, 0.06);
  transition: all var(--dur-fast) var(--ease);
  animation: msg-pop 0.3s var(--ease) both;
}

.wa-reply:hover {
  background: rgba(0, 212, 255, 0.16);
  border-color: var(--color-accent);
}

.wa-end {
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #0d1519;
  text-align: center;
}

.wa-end p {
  font-size: 14px;
  color: var(--color-text-dim);
  margin-bottom: 14px;
}

.wa-end-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.demo-note {
  text-align: center;
  margin-top: 16px;
}

/* ==========================================================================
   V2 — Calculadora de ahorro
   ========================================================================== */
.calc-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  max-width: 1020px;
  margin: 0 auto;
  padding: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(11, 22, 32, 0.55), rgba(1, 2, 4, 0.3));
}

.calc-controls {
  display: grid;
  gap: 30px;
  align-content: start;
}

.calc-field label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 14.5px;
  color: var(--color-text-dim);
  margin-bottom: 12px;
}

.calc-field output {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-accent-light);
  white-space: nowrap;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--color-accent) var(--fill, 30%), rgba(234, 246, 251, 0.14) var(--fill, 30%));
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid #001018;
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.5);
  transition: transform var(--dur-fast) var(--ease);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid #001018;
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.5);
}

.calc-results {
  display: grid;
  gap: 14px;
  align-content: start;
}

.calc-card {
  padding: 20px 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.35);
}

.calc-card b {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

.calc-card.is-money {
  border-color: var(--color-accent-dim);
  background: linear-gradient(160deg, rgba(0, 212, 255, 0.1), rgba(0, 0, 0, 0.3));
}

.calc-card.is-money b {
  color: var(--color-accent-light);
}

.calc-card span {
  font-size: 13px;
  color: var(--color-text-faint);
}

.calc-verdict {
  padding: 16px 20px;
  border-left: 2px solid var(--color-accent);
  font-size: 14.5px;
  color: var(--color-text-dim);
  background: rgba(0, 212, 255, 0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.calc-verdict b {
  color: var(--color-accent-light);
}

.calc-note {
  text-align: center;
  margin-top: 22px;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   V2 — Comparador
   ========================================================================== */
.compare-wrap {
  max-width: 880px;
  margin: 0 auto;
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 14.5px;
}

.compare-table th,
.compare-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.compare-table thead th {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  background: rgba(11, 22, 32, 0.6);
}

.compare-table thead th.is-ia {
  color: var(--color-accent-light);
}

.compare-table tbody th {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text);
  width: 26%;
}

.compare-table td {
  color: var(--color-text-dim);
}

.compare-table td.is-ia {
  color: var(--color-accent-light);
  background: rgba(0, 212, 255, 0.05);
  font-weight: 600;
}

.compare-table td.is-human {
  color: var(--color-text);
  font-weight: 600;
}

.compare-footnote {
  margin-top: 24px;
  text-align: center;
  font-size: 14.5px;
  color: var(--color-text-dim);
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
}

.compare-footnote b {
  color: var(--color-accent-light);
}

/* ==========================================================================
   V2 — Contacto completo
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  max-width: 980px;
  margin: 0 auto;
  text-align: left;
}

.contact-info {
  display: grid;
  gap: 14px;
  align-content: start;
}

.contact-card {
  display: block;
  padding: 20px 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(11, 22, 32, 0.35);
  transition: border-color var(--dur-fast) var(--ease);
}

a.contact-card:hover {
  border-color: var(--color-accent-dim);
}

.contact-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: 6px;
}

.contact-card b {
  font-size: 15.5px;
  color: var(--color-text);
}

.contact-form {
  padding: 34px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(11, 22, 32, 0.5), rgba(1, 2, 4, 0.25));
  display: grid;
  gap: 18px;
}

.form-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-dim);
}

select.field {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2363808f' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  cursor: pointer;
}

select.field:invalid {
  color: var(--color-text-faint);
}

select.field option {
  background: var(--color-panel);
  color: var(--color-text);
}

textarea.field {
  resize: vertical;
  min-height: 100px;
}

/* ==========================================================================
   V2 — Hero acciones + precios WhatsApp
   ========================================================================== */
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.price-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--color-text-faint);
  transition: color var(--dur-fast) var(--ease);
}

.price-wa:hover {
  color: #25d366;
}

.price-wa svg {
  width: 15px;
  height: 15px;
}

/* ==========================================================================
   V2 — Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .calc-wrap {
    grid-template-columns: 1fr;
    padding: 28px 22px;
    gap: 30px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-info {
    grid-template-columns: 1fr 1fr;
  }

  .form-2col {
    grid-template-columns: 1fr;
  }

  .compare-table th,
  .compare-table td {
    padding: 12px 12px;
    font-size: 13px;
  }
}

@media (max-width: 500px) {
  .contact-info {
    grid-template-columns: 1fr;
  }

  .wa-body {
    min-height: 300px;
  }

  .demo-tab {
    padding: 8px 14px;
    font-size: 12.5px;
  }
}


/* ==========================================================================
   V3 — Correcciones y mejoras de la demo
   ========================================================================== */
[hidden] {
  display: none !important;
}

.wa-body {
  background:
    radial-gradient(circle at 18% 22%, rgba(0, 212, 255, 0.035) 0 22px, transparent 23px),
    radial-gradient(circle at 72% 64%, rgba(0, 212, 255, 0.03) 0 18px, transparent 19px),
    radial-gradient(circle at 45% 88%, rgba(0, 212, 255, 0.028) 0 14px, transparent 15px),
    #0a1014;
}

.wa-msg {
  display: flex;
  flex-direction: column;
}

.wa-msg-text {
  white-space: pre-line;
}

.wa-msg-meta {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 10.5px;
  opacity: 0.55;
  white-space: nowrap;
}

.wa-ticks {
  font-style: normal;
  font-size: 11px;
  letter-spacing: -0.08em;
  transition: color 0.3s ease;
}

.wa-ticks.is-read {
  color: #53bdeb;
  opacity: 1;
}

.wa-head-status.is-typing {
  color: var(--color-accent-light);
  font-style: italic;
}

.wa-inputbar {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #0d1519;
}

.wa-input {
  flex: 1;
  padding: 11px 16px;
  border-radius: 100px;
  background: #16222b;
  border: 1px solid transparent;
  color: var(--color-text);
  font-size: 14px;
  transition: border-color var(--dur-fast) var(--ease);
}

.wa-input::placeholder {
  color: var(--color-text-faint);
}

.wa-input:focus {
  outline: none;
  border-color: var(--color-accent-dim);
}

.wa-send {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #25d366;
  color: #06130b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.wa-send:hover {
  transform: scale(1.08);
  box-shadow: 0 0 16px rgba(37, 211, 102, 0.4);
}

.wa-send svg {
  margin-left: 2px;
}

.wa-replies:empty {
  display: none;
}
