/* ════════════════════════════════════════
   COMPONENTS — Cards, Countdown, Chat,
   Botones, Badges
   AdonisIA Landing · Mayo 2026
   ════════════════════════════════════════ */

/* ── Animaciones pulsating dot ── */
@keyframes pulsedot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.65);
  }
}

/* ── Chat demo ── */
.cmsg {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.cmsg.on {
  opacity: 1;
  transform: translateY(0);
}

.ctdots {
  opacity: 0;
  transition: opacity 0.25s;
}

.ctdots.on {
  opacity: 1;
}

@keyframes dot {
  0%,
  60%,
  100% {
    transform: translateY(0);
  }

  30% {
    transform: translateY(-6px);
  }
}

.dot1 {
  animation: dot 1.3s infinite;
}

.dot2 {
  animation: dot 1.3s infinite 0.2s;
}

.dot3 {
  animation: dot 1.3s infinite 0.4s;
}

/* ── Plan card (plan único) ── */
.plan-card {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition:
    box-shadow 0.25s,
    transform 0.25s,
    border-color 0.25s;
}

.plan-card--featured {
  border: none;
  box-shadow:
    0 0 0 2px var(--mint),
    0 12px 40px rgba(58, 175, 169, 0.18);
}

/* ── Botón primario ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--mint);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 800;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s,
    box-shadow 0.2s;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--mint-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-cta);
}

.btn-primary:active {
  transform: translateY(0);
}

/* ── Botón outline ── */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--mint-dark);
  font-family: var(--font-body);
  font-weight: 700;
  border: 1.5px solid #d1d5db;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s,
    color 0.2s;
  text-decoration: none;
}

.btn-outline:hover {
  border-color: var(--mint);
  background: var(--mint-50);
  color: var(--mint-dark);
}

/* ── Bounce arrow ── */
@keyframes bounce-y {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(6px);
  }
}

.bounce-arrow {
  animation: bounce-y 1.6s ease-in-out infinite;
}

/* ── Spin (reservado) ── */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spin-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

/* ── Logo A ── */
.logo-a {
  background: linear-gradient(135deg, var(--mint), var(--emerald));
}

/* ── Botón Volver Arriba ── */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 55;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--mint);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 16px rgba(58, 175, 169, 0.4);
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    background 0.2s,
    box-shadow 0.2s;
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--mint-dark);
  box-shadow: 0 6px 22px rgba(58, 175, 169, 0.55);
  transform: translateY(-2px) scale(1);
}

.back-to-top:active {
  transform: translateY(0) scale(0.96);
}

/* ── Step connector (desktop) ── */
@media (min-width: 1024px) {
  .step-wrap {
    position: relative;
  }

  .step-wrap:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 22px;
    left: calc(100% - 0px);
    width: calc(100% - 52px);
    height: 2px;
    background: linear-gradient(90deg, var(--mint), var(--emerald));
    pointer-events: none;
  }
}

/* ── Componentes extraídos de inline HTML ── */
.cred-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.cred-stat__num {
  font-family: "Sora", sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #3aafa9;
}

.cred-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.12);
}

.cred-client-name {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.03em;
  white-space: nowrap;
  padding: 5px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  transition:
    border-color 0.2s,
    color 0.2s;
}

.cred-client-name:hover {
  border-color: rgba(58, 175, 169, 0.4);
  color: #5ecdc7;
}

.era-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  transition:
    border-color 0.25s,
    background 0.25s;
}

.era-card:hover {
  border-color: rgba(58, 175, 169, 0.35);
  background: rgba(58, 175, 169, 0.05);
}

.flow-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid #f1f5f9;
}

.flow-step:last-child {
  border-bottom: none;
}

.flow-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.modulo-card {
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 16px;
  padding: 24px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition:
    box-shadow 0.25s,
    border-color 0.25s,
    transform 0.25s;
}

.modulo-card:hover {
  box-shadow: 0 8px 32px rgba(45, 106, 143, 0.1);
  border-color: #3aafa9;
  transform: translateY(-3px);
}

.razon-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid #e8edf2;
}

.razon-item:last-child {
  border-bottom: none;
}

.price-tag {
  font-family: "Sora", sans-serif;
  font-size: 42px;
  font-weight: 800;
  color: #2d3142;
  line-height: 1;
}

.price-currency {
  font-size: 20px;
  font-weight: 700;
  vertical-align: super;
  margin-right: 2px;
}

.price-per {
  font-size: 14px;
  font-weight: 500;
  color: #94a3b8;
  margin-left: 4px;
}

.hero__badge--launch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(58, 175, 169, 0.12);
  border: 1px solid rgba(58, 175, 169, 0.3);
  color: #3aafa9;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}
