/*
  CB Recovery Hero Banner + Marquee
  Standalone styles — no Tailwind dependency
  All classes prefixed with cb- to avoid conflicts with main site
*/

/* ── Animations ── */
@keyframes cb-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes cb-ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}
@keyframes cb-pulse {
  50% { opacity: .5; }
}
@keyframes cb-bounce {
  0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(.8,0,1,1); }
  50% { transform: none; animation-timing-function: cubic-bezier(0,0,.2,1); }
}

/* ── Hero Banner ── */
.cb-hero-banner {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #060e1a;
}

.cb-hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cb-hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
}

.cb-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(6,14,26,.88), rgba(6,14,26,.75), #060e1a),
    linear-gradient(to right, rgba(6,14,26,.5), transparent, rgba(6,14,26,.3));
}

.cb-hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .035;
  background-image:
    linear-gradient(rgba(245,158,11,1px), transparent 1px),
    linear-gradient(90deg, rgba(245,158,11,1px), transparent 1px);
  background-size: 55px 55px;
}

.cb-hero-edge-line {
  position: absolute;
  top: 0;
  height: 100%;
  width: 4px;
  z-index: 2;
  background: linear-gradient(to bottom, transparent, #2563eb, transparent);
}
.cb-hero-edge-left  { left: 0; opacity: .4; }
.cb-hero-edge-right { right: 0; opacity: .6; }

/* ── Hero Content ── */
.cb-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 5rem 1rem 5rem;
  text-align: center;
}

/* Badge */
.cb-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .375rem .75rem;
  border-radius: 9999px;
  background: rgba(245,158,11,.15);
  border: 1px solid rgba(245,158,11,.4);
  color: #2563eb;
  font-weight: 700;
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1.5rem;
}
.cb-hero-badge-dot-wrap {
  position: relative;
  display: inline-flex;
  height: 8px;
  width: 8px;
  flex-shrink: 0;
}
.cb-hero-badge-dot-ping {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: #2563eb;
  opacity: .7;
  animation: cb-ping 1s cubic-bezier(0,0,.2,1) infinite;
}
.cb-hero-badge-dot {
  position: relative;
  display: inline-flex;
  height: 8px;
  width: 8px;
  border-radius: 9999px;
  background: #2563eb;
}
.cb-hero-badge-text-desktop { display: none; }

/* Title */
.cb-hero-title {
  margin: 0 0 1rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -.02em;
  color: #fff;
  font-size: clamp(2.6rem, 11vw, 6.5rem);
}
.cb-hero-title-accent {
  display: block;
  color: #2563eb;
  text-shadow: 0 0 40px rgba(245,158,11,.55);
}
.cb-hero-title span { display: block; }
.cb-hero-title span + .cb-hero-title-accent { margin-top: 0; }
.cb-hero-title span:last-child { margin-top: .25rem; }

/* Subtitle */
.cb-hero-subtitle {
  color: #d1d5db;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.625;
  max-width: 640px;
  margin: 0 auto 1.75rem;
  padding: 0 .5rem;
}

/* CTA Row */
.cb-hero-cta-row {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  align-items: stretch;
  margin-bottom: .75rem;
  padding: 0 .5rem;
}
.cb-hero-cta-secondary {
  display: flex;
  gap: .75rem;
}

/* Call Button */
.cb-hero-cta-call {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  width: 100%;
  background: #2563eb;
  color: #000;
  font-weight: 900;
  font-size: 1rem;
  padding: 1rem 2rem;
  border-radius: .75rem;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(245,158,11,.45);
  transition: transform .15s;
}
.cb-hero-cta-call:active { transform: scale(.95); }
.cb-hero-cta-call:hover { color: #000; text-decoration: none; }
.cb-hero-cta-call .cb-hero-cta-shine {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.2);
  transform: translateY(100%);
  transition: transform .3s;
}
.cb-hero-cta-call:hover .cb-hero-cta-shine { transform: translateY(0); }
.cb-hero-cta-call svg {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  animation: cb-pulse 2s cubic-bezier(.4,0,.6,1) infinite;
}
.cb-hero-cta-call span {
  position: relative;
  z-index: 1;
  letter-spacing: .05em;
}

/* WhatsApp Button */
.cb-hero-cta-whatsapp {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: #25d366;
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
  padding: 1rem 1.5rem;
  border-radius: .75rem;
  text-decoration: none;
  box-shadow: 0 0 20px rgba(37,211,102,.25);
  transition: background .2s, transform .15s;
}
.cb-hero-cta-whatsapp:hover { background: #20bd5a; color: #fff; text-decoration: none; }
.cb-hero-cta-whatsapp:active { transform: scale(.95); }
.cb-hero-cta-whatsapp svg { width: 22px; height: 22px; flex-shrink: 0; }

/* Location Button */
.cb-hero-cta-location {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-weight: 900;
  font-size: .875rem;
  padding: 1rem 1rem;
  border-radius: .75rem;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background .2s, border-color .2s, transform .15s;
}
.cb-hero-cta-location:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(245,158,11,.4);
}
.cb-hero-cta-location:active { transform: scale(.95); }
.cb-hero-cta-location:disabled { opacity: .7; }
.cb-hero-cta-location svg { width: 20px; height: 20px; color: #2563eb; flex-shrink: 0; }
.cb-hero-cta-location-label-desktop { display: none; }

/* Stats Grid */
.cb-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .5rem;
  max-width: 768px;
  margin: 2rem auto 0;
  padding: 0 .5rem;
}
.cb-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(4px);
  border-radius: .75rem;
  padding: .75rem;
  transition: border-color .2s;
}
.cb-hero-stat:hover { border-color: rgba(245,158,11,.3); }
.cb-hero-stat-value {
  font-size: 1.25rem;
  font-weight: 900;
  color: #2563eb;
  font-variant-numeric: tabular-nums;
}
.cb-hero-stat-label {
  font-size: .55rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
}

/* Scroll Hint */
.cb-hero-scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  color: #6b7280;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  pointer-events: none;
}
.cb-hero-scroll-hint svg {
  width: 16px;
  height: 16px;
  animation: cb-bounce 1s infinite;
}

/* ── Marquee ── */
.cb-marquee {
  background: #2563eb;
  padding: .75rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(245,158,11,.4);
  border-bottom: 1px solid rgba(245,158,11,.4);
}
.cb-marquee-track {
  display: flex;
  white-space: nowrap;
  animation: cb-marquee 20s linear infinite;
}
.cb-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: 0 1.5rem;
  color: #ffffff;
  font-weight: 900;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  flex-shrink: 0;
}
.cb-marquee-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: .5;
}

/* ── Responsive ── */
@media (min-width: 640px) {
  .cb-hero-content { padding: 4rem 1rem 5rem; }
  .cb-hero-badge { font-size: .75rem; padding: .375rem 1rem; }
  .cb-hero-badge-dot-wrap { height: 10px; width: 10px; }
  .cb-hero-badge-dot { height: 10px; width: 10px; }
  .cb-hero-subtitle { font-size: 1.125rem; }
  .cb-hero-cta-row { align-items: center; }
  .cb-hero-cta-call { width: auto; font-size: 1.125rem; padding: 1.25rem 2.5rem; }
  .cb-hero-cta-whatsapp { font-size: 1.125rem; padding: 1.25rem 2.5rem; }
  .cb-hero-cta-location-label-mobile { display: none; }
  .cb-hero-cta-location-label-desktop { display: inline; }
  .cb-hero-stats { gap: .75rem; }
  .cb-hero-stat { border-radius: 1rem; padding: 1rem; }
  .cb-hero-stat-value { font-size: 1.5rem; }
  .cb-hero-stat-label { font-size: .7rem; }
}

@media (min-width: 768px) {
  .cb-hero-badge-text-mobile { display: none; }
  .cb-hero-badge-text-desktop { display: inline; }
  .cb-hero-subtitle { font-size: 1.25rem; }
  .cb-hero-stats { grid-template-columns: repeat(4, 1fr); }
  .cb-hero-stat-value { font-size: 1.875rem; }
  .cb-hero-stat-label { font-size: .75rem; }
  .cb-hero-cta-call svg { width: 24px; height: 24px; }
  .cb-hero-cta-whatsapp svg { width: 24px; height: 24px; }
}
