/* =============================================
   AGENTIZA — Visuals & Illustrations
   ============================================= */

/* ---- Hero Layout — dos columnas, alineadas al tope ---- */
.hero__inner {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  text-align: left !important;
}

.hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 20px;
}

.hero__badge  { align-self: flex-start; }
.hero__props  { justify-content: flex-start; }

.hero__actions {
  justify-content: flex-start;
  flex-direction: row !important;
}
.hero__actions .btn { width: auto !important; }

.hero__stats {
  margin: 0 !important;
  max-width: 100% !important;
}

.hero__stats--fullwidth {
  grid-column: 1 / -1;
  width: 100%;
}

/* ---- Dashboard Mockup ---- */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.hero__visual > div {
  width: 100%;
  padding: 0 0 40px 0 !important;
}

.dashboard {
  max-width: 100% !important;
}

.dashboard__metrics {
  grid-template-columns: repeat(4, 1fr) !important;
}

.dashboard__badge-saved {
  bottom: 0;
  left: 0;
}

.dashboard__badge-live {
  top: 0;
  right: 0;
}

.dashboard {
  background: rgba(13, 20, 36, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 20px;
  overflow: hidden;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04), inset 0 1px 0 rgba(255,255,255,0.06);
  animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

.dashboard__bar {
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.dashboard__dots {
  display: flex;
  gap: 6px;
}
.dashboard__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.dashboard__dot:nth-child(1) { background: #ff5f57; }
.dashboard__dot:nth-child(2) { background: #ffbd2e; }
.dashboard__dot:nth-child(3) { background: #28ca41; }
.dashboard__title {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  margin: 0 auto;
  padding-right: 40px;
}

.dashboard__body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }

/* Metric cards row */
.dashboard__metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.d-metric {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
}
.d-metric::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
}
.d-metric--purple::before { background: linear-gradient(90deg, #6366f1, #818cf8); }
.d-metric--cyan::before   { background: linear-gradient(90deg, #06b6d4, #22d3ee); }
.d-metric--green::before  { background: linear-gradient(90deg, #10b981, #34d399); }
.d-metric--amber::before  { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

.d-metric__icon { font-size: 1.2rem; }
.d-metric__number {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.d-metric__label {
  font-size: 0.65rem;
  color: rgba(148,163,184,0.7);
  font-weight: 500;
}
.d-metric__change {
  font-size: 0.65rem;
  font-weight: 600;
  color: #10b981;
  margin-top: 2px;
}

/* Flow diagram */
.dashboard__flow {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 14px 16px;
}
.dashboard__flow-title {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(148,163,184,0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.flow {
  display: flex;
  align-items: center;
  gap: 0;
}
.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}
.flow-node__icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  flex-shrink: 0;
}
.flow-node__icon--purple { background: rgba(99,102,241,0.2); }
.flow-node__icon--cyan   { background: rgba(6,182,212,0.2); }
.flow-node__icon--green  { background: rgba(16,185,129,0.2); }
.flow-node__icon--amber  { background: rgba(245,158,11,0.2); }
.flow-node__icon--sheets { background: rgba(15,157,88,0.15); }
.flow-node__label {
  font-size: 0.6rem;
  color: rgba(148,163,184,0.6);
  text-align: center;
  line-height: 1.3;
}

.flow-arrow {
  color: rgba(148,163,184,0.25);
  font-size: 1rem;
  flex-shrink: 0;
  margin: 0 2px;
  padding-bottom: 18px;
}

/* Active processes list */
.dashboard__processes { display: flex; flex-direction: column; gap: 8px; }

.d-process {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 8px;
}
.d-process__status {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.d-process__status--active {
  background: #10b981;
  box-shadow: 0 0 6px rgba(16,185,129,0.5);
  animation: blink 2s ease-in-out infinite;
}
.d-process__status--queued { background: #f59e0b; }
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
.d-process__name {
  font-size: 0.75rem;
  color: rgba(226,232,240,0.85);
  font-weight: 500;
  flex: 1;
}
.d-process__count {
  font-size: 0.7rem;
  color: rgba(148,163,184,0.5);
  font-weight: 600;
}

/* Floating badges */
.dashboard__badge-saved {
  position: absolute;
  bottom: -20px;
  left: -24px;
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.3);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  animation: floatBadge1 5s ease-in-out infinite;
}
@keyframes floatBadge1 {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.dashboard__badge-saved .badge__icon { font-size: 1.4rem; }
.dashboard__badge-saved .badge__text { display: flex; flex-direction: column; }
.dashboard__badge-saved .badge__number {
  font-size: 1.1rem;
  font-weight: 800;
  color: #10b981;
  line-height: 1;
}
.dashboard__badge-saved .badge__label {
  font-size: 0.65rem;
  color: rgba(148,163,184,0.7);
}

.dashboard__badge-live {
  position: absolute;
  top: 20px;
  right: -20px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.3);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #818cf8;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  animation: floatBadge2 4s ease-in-out infinite;
  white-space: nowrap;
}
@keyframes floatBadge2 {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

/* ---- Section visuals ---- */

/* Problem cards — gradient top accent */
.problem-card {
  border-top: 3px solid transparent;
  background-clip: padding-box;
  position: relative;
}
.problem-card::before {
  content: '';
  position: absolute;
  top: -3px; left: 0; right: 0;
  height: 3px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.problem-card:nth-child(1)::before { background: linear-gradient(90deg, #f87171, #fb923c); }
.problem-card:nth-child(2)::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.problem-card:nth-child(3)::before { background: linear-gradient(90deg, #818cf8, #06b6d4); }

.problem-card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

/* Services — illustration strip */
.service-card__visual {
  height: 80px;
  border-radius: 10px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 16px;
  gap: 12px;
  overflow: hidden;
  position: relative;
}
.service-card:nth-child(1) .service-card__visual { background: linear-gradient(135deg, rgba(99,102,241,0.15) 0%, rgba(6,182,212,0.1) 100%); }
.service-card:nth-child(2) .service-card__visual { background: linear-gradient(135deg, rgba(16,185,129,0.12) 0%, rgba(5,150,105,0.08) 100%); }
.service-card:nth-child(3) .service-card__visual { background: linear-gradient(135deg, rgba(245,158,11,0.12) 0%, rgba(217,119,6,0.08) 100%); }
.service-card:nth-child(4) .service-card__visual { background: linear-gradient(135deg, rgba(236,72,153,0.1) 0%, rgba(168,85,247,0.1) 100%); }

/* ---- Phone frame (WhatsApp page) ---- */
.phone-wrap {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.phone-frame {
  background: #1a1a2e;
  border-radius: 44px;
  padding: 14px 10px;
  border: 2px solid rgba(255,255,255,0.1);
  box-shadow:
    0 0 0 6px rgba(255,255,255,0.03),
    0 40px 80px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.07);
  position: relative;
  width: 300px;
  animation: floatPhone 5s ease-in-out infinite;
}
@keyframes floatPhone {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%       { transform: translateY(-10px) rotate(1deg); }
}

.phone-frame__notch {
  width: 90px; height: 28px;
  background: #0d0d1a;
  border-radius: 14px;
  margin: 0 auto 10px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.phone-frame__notch::after {
  content: '';
  width: 8px; height: 8px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
}

.phone-frame__screen {
  background: var(--wa-bg, #0b141a);
  border-radius: 30px;
  overflow: hidden;
}

.phone-frame__home {
  width: 100px; height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  margin: 10px auto 0;
}

/* Floating notification bubble */
.phone-notification {
  position: absolute;
  top: 40px;
  right: -48px;
  background: rgba(37,211,102,0.12);
  border: 1px solid rgba(37,211,102,0.3);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #25d366;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  white-space: nowrap;
  animation: floatBadge2 4s ease-in-out infinite;
}

.phone-revenue {
  position: absolute;
  bottom: 60px;
  left: -56px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.3);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  animation: floatBadge1 5s ease-in-out infinite;
}
.phone-revenue__data { display: flex; flex-direction: column; gap: 2px; }
.phone-revenue__number {
  font-size: 1rem;
  font-weight: 800;
  color: #818cf8;
  line-height: 1;
}
.phone-revenue__label {
  font-size: 0.62rem;
  color: rgba(148,163,184,0.6);
}

/* ---- WhatsApp hero split ---- */
.wa-hero__inner {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  text-align: left !important;
}
.wa-hero__text { display: flex; flex-direction: column; }
.wa-hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.wa-hero__actions {
  justify-content: flex-start !important;
}

/* ---- Section background blobs ---- */
.section-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.25;
}

/* ---- Animated counter ---- */
.count-up { font-variant-numeric: tabular-nums; }

/* ---- Results section — visual chart bars ---- */
.result-card__bar {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 8px;
}
.result-card__bar-fill {
  height: 100%;
  border-radius: 2px;
  width: 0;
  transition: width 1.2s ease;
}
.result-card__bar-fill--before { background: #f87171; }
.result-card__bar-fill--after  { background: #10b981; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr !important;
    text-align: center !important;
  }
  .hero__badge  { align-self: center; }
  .hero__props  { justify-content: center; }
  .hero__actions { justify-content: center; }
  .hero__stats  { margin: 0 auto !important; }
  .hero__visual { display: none; }

  .wa-hero__inner {
    grid-template-columns: 1fr !important;
    text-align: center !important;
  }
  .wa-hero__visual { display: none; }
  .wa-hero__actions { justify-content: center !important; }
}

@media (max-width: 768px) {
  .dashboard__badge-saved,
  .dashboard__badge-live,
  .phone-notification,
  .phone-revenue { display: none; }
}
