/* v3 styles: Orion buttons (purple primary + WA-green final), transcript box, footer, hero center on mobile */

/* === Orion buttons — standard width, slightly rounded, centered === */
.btn-orion {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  font-family: var(--font-display);
  letter-spacing: 0.005em;
  border: 1px solid rgba(255,255,255,0.12);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  min-width: 260px;
  min-height: 54px;
  color: #ffffff;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.btn-orion:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

/* Primary (purple — matches "fecha contratos" gradient) */
.btn-orion-primary {
  background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 50%, #6d28d9 100%);
  box-shadow:
    0 14px 32px -10px rgba(139,92,246,0.55),
    inset 0 1px 0 rgba(255,255,255,0.25),
    inset 0 -1px 0 rgba(0,0,0,0.18);
}
.btn-orion-primary:hover {
  box-shadow:
    0 20px 44px -10px rgba(139,92,246,0.75),
    inset 0 1px 0 rgba(255,255,255,0.3),
    inset 0 -1px 0 rgba(0,0,0,0.18);
}

/* Final CTA (green WhatsApp) */
.btn-orion-final {
  background: linear-gradient(180deg, #1faa4c 0%, #128c34 100%);
  box-shadow:
    0 14px 32px -10px rgba(31,170,76,0.6),
    inset 0 1px 0 rgba(255,255,255,0.25),
    inset 0 -1px 0 rgba(0,0,0,0.18);
}
.btn-orion-final:hover {
  box-shadow:
    0 20px 44px -10px rgba(31,170,76,0.78),
    inset 0 1px 0 rgba(255,255,255,0.3),
    inset 0 -1px 0 rgba(0,0,0,0.18);
}

.btn-orion .btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .2s ease;
}
.btn-orion:hover .btn-arrow { transform: translateX(3px); }

.btn-orion.btn-lg {
  padding: 18px 34px;
  font-size: 17px;
  min-width: 280px;
  min-height: 60px;
}

/* Shine */
.btn-orion .shine {
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  left: -120px;
  background: linear-gradient(110deg,
    transparent 0%,
    rgba(255,255,255,0.0) 30%,
    rgba(255,255,255,0.5) 50%,
    rgba(255,255,255,0.0) 70%,
    transparent 100%);
  filter: blur(1px);
  pointer-events: none;
  animation: btn-shine 3.8s ease-in-out infinite;
  transform: skewX(-22deg);
}
@keyframes btn-shine {
  0%   { left: -120px; }
  60%  { left: 120%; }
  100% { left: 120%; }
}

/* Center button wrappers everywhere */
.hero-cta { justify-content: center; }

/* === Transcript box === */
.audio-group { display: flex; flex-direction: column; gap: 4px; max-width: 82%; }
.audio-group.in  { align-self: flex-start; }
.audio-group.out { align-self: flex-end; align-items: flex-end; }

.transcript-box {
  background: rgba(255,255,255,0.045);
  border: 1px dashed rgba(167,139,250,0.35);
  border-radius: 10px;
  padding: 7px 9px 8px;
  font-size: 11.5px;
  color: #cfcce0;
  line-height: 1.4;
  max-width: 100%;
  animation: bubble-in 0.4s 0.4s ease backwards;
}
.transcript-label {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-bright);
  margin-bottom: 3px;
}
.transcript-text { font-style: italic; color: #d8d6e8; }

.wa-avatar {
  background: linear-gradient(135deg, #a78bfa, #6d28d9);
  color: white;
  display: grid; place-items: center;
}

.foot-bottom-center {
  text-align: center;
  padding: 28px 0;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

footer { padding: 40px 0 0; border-top: none; }

/* === Hero centered on mobile === */
@media (max-width: 980px) {
  .hero-grid > div:first-child { text-align: center; }
  .hero-grid > div:first-child .eyebrow { margin-left: auto; margin-right: auto; }
  .hero-grid > div:first-child .lead { margin-left: auto; margin-right: auto; }
  .hero-meta { justify-content: center; }
}

/* Center all CTAs everywhere */
.hero-cta,
#cta .actions,
#como-funciona .container > div[style*="justify-content"],
#crm .container > div[style*="justify-content"],
#voz .voice-card + *,
section > .container > div[style*="justifyContent"] { justify-content: center !important; }

/* === Fixed top notification bar === */
.nav-fixed {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 4, 24, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(139,92,246,0.15);
}
.nav-fixed .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}
.nav-inner-center { justify-content: center !important; }
.nav-inner-center .ticker { max-width: 720px; flex: 0 1 auto; }

/* Allow the hero eyebrow to wrap and only show its <br> on mobile */
.hero-eyebrow { white-space: normal; text-align: center; line-height: 1.4; max-width: 540px; }
.mob-br { display: none; }
@media (max-width: 640px) {
  .mob-br { display: inline; }
  .hero-eyebrow { padding: 8px 14px; }
}
.page { padding-top: 80px; }

.ticker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(52,211,153,0.10);
  border: 1px solid rgba(52,211,153,0.35);
  font-size: 13px;
  color: #d8f8e6;
  font-family: var(--font-display);
  font-weight: 500;
  max-width: 60vw;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ticker b { font-weight: 700; color: var(--mint); }
.ticker-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
  flex-shrink: 0;
  animation: ticker-pulse 1.5s ease-in-out infinite;
}
@keyframes ticker-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.ticker-text {
  animation: ticker-in 0.5s ease;
  overflow: hidden;
  text-overflow: ellipsis;
}
@keyframes ticker-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .btn-orion, .btn-orion.btn-lg { min-width: 240px; width: 100%; max-width: 320px; }
  .ticker {
    max-width: none;
    flex: 1;
    font-size: 11px;
    padding: 6px 10px;
  }
  .nav-fixed .nav-inner { gap: 10px; }
  .page { padding-top: 70px; }
}
