/* -------------------------------------------------------------
   DESIGN SYSTEM & VARIABLES
------------------------------------------------------------- */
:root {
  --bg-primary: #0a1628;
  --bg-secondary: #0f1f3d;
  --accent-blue: #3b82f6;
  --accent-blue-hover: #2563eb;
  --whatsapp-green: #25d366;
  --whatsapp-green-hover: #20ba5a;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-dark-primary: #0f172a;
  --text-dark-secondary: #475569;
  
  --bg-light: #ffffff;
  --bg-light-alt: #f8fafc;
  
  /* Funnel Colors */
  --funnel-1: #0f1f3d;
  --funnel-2: #1d4ed8;
  --funnel-3: #c2410c;
  --funnel-4: #047857;

  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
}

/* -------------------------------------------------------------
   BASE & RESET
------------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
}

p {
  color: var(--text-secondary);
}

a {
  text-decoration: none;
  color: inherit;
}

/* -------------------------------------------------------------
   UTILITIES
------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center {
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  gap: 0.75rem;
}

.btn-whatsapp {
  background-color: var(--whatsapp-green);
  color: #ffffff;
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-green-hover);
  transform: translateY(-2px);
}

.btn-whatsapp svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* -------------------------------------------------------------
   1. HERO SECTION
------------------------------------------------------------- */
.hero {
  background-color: var(--bg-primary);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.badge {
  background-color: rgba(59, 130, 246, 0.15);
  color: var(--accent-blue);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
  border: 1px solid rgba(59, 130, 246, 0.3);
  display: inline-block;
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4rem;
  }
}

.typewriter-word {
  color: var(--accent-blue);
  position: relative;
  white-space: nowrap;
  display: inline-block;
  min-height: 1em;
  vertical-align: bottom;
}

.typewriter-word::after {
  content: '|';
  position: absolute;
  right: -8px;
  color: var(--accent-blue);
  animation: blink 0.75s step-end infinite;
}

@keyframes blink {
  from, to { color: transparent }
  50% { color: var(--accent-blue); }
}

.hero-subtitle {
  font-size: 1.125rem;
  max-width: 700px;
  margin-bottom: 2.5rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.25rem;
  }
}

/* -------------------------------------------------------------
   2. TRUST BAR SECTION
------------------------------------------------------------- */
.trust-bar {
  background-color: var(--bg-secondary);
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.trust-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .trust-items {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.trust-item {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.trust-item svg {
  color: var(--accent-blue);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* -------------------------------------------------------------
   3. REAL METRICS SECTION
------------------------------------------------------------- */
.metrics {
  background-color: var(--bg-light);
  color: var(--text-dark-primary);
  padding: 5rem 0;
}

.section-header {
  margin-bottom: 3.5rem;
  text-align: center;
}

.section-title-dark {
  font-size: 2rem;
  color: var(--text-dark-primary);
  margin-bottom: 1rem;
}

.section-subtitle-dark {
  font-size: 1.125rem;
  color: var(--text-dark-secondary);
  max-width: 600px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .section-title-dark {
    font-size: 2.75rem;
  }
}

.funnel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 576px) {
  .funnel-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .funnel-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.funnel-card {
  padding: 2.5rem 1.5rem;
  border-radius: var(--border-radius-md);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  min-height: 220px;
  position: relative;
  transition: var(--transition-smooth);
}

.funnel-card:hover {
  transform: translateY(-5px);
}

/* Funnel card color progression (degradado visual del embudo) */
.card-impressions {
  background-color: var(--funnel-1);
}

.card-clicks {
  background-color: var(--funnel-2);
}

.card-cost {
  background-color: var(--funnel-3);
}

.card-conversions {
  background-color: var(--funnel-4);
}

.funnel-num {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  display: block;
}

.funnel-label {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
  margin-bottom: 1rem;
  display: block;
}

.funnel-desc {
  font-size: 0.9rem;
  opacity: 0.85;
  line-height: 1.4;
  margin-top: auto;
}

/* Arrow indicators for the funnel process on desktop */
@media (min-width: 992px) {
  .funnel-card:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dark-secondary);
    font-size: 1.5rem;
    font-weight: bold;
    z-index: 10;
    pointer-events: none;
    opacity: 0.3;
  }
}

.metrics-footer {
  font-size: 0.875rem;
  color: var(--text-dark-secondary);
  font-weight: 500;
  margin-top: 2rem;
}

/* -------------------------------------------------------------
   4. COMPARISON SECTION
------------------------------------------------------------- */
.comparison {
  background-color: var(--bg-light-alt);
  color: var(--text-dark-primary);
  padding: 5rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .comparison-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.comp-column {
  background: var(--bg-light);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.comp-column-bad {
  border-top: 4px solid #ef4444;
}

.comp-column-good {
  border-top: 4px solid var(--accent-blue);
}

.comp-header {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.comp-header-bad {
  color: #ef4444;
}

.comp-header-good {
  color: var(--accent-blue);
}

.comp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.comp-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 1.05rem;
  line-height: 1.5;
  color: #334155;
}

.comp-icon {
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.comp-icon-bad {
  color: #ef4444;
}

.comp-icon-good {
  color: var(--whatsapp-green);
}

/* -------------------------------------------------------------
   5. PROCESS SECTION
------------------------------------------------------------- */
.process {
  background-color: var(--bg-light);
  color: var(--text-dark-primary);
  padding: 5rem 0;
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3.5rem;
}

@media (min-width: 576px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .process-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.process-step {
  background: var(--bg-light-alt);
  border-radius: var(--border-radius-md);
  padding: 2.5rem 2rem;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.step-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(59, 130, 246, 0.15);
  line-height: 1;
  margin-bottom: 1.25rem;
}

.step-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark-primary);
  margin-bottom: 0.75rem;
}

.step-desc {
  font-size: 0.95rem;
  color: var(--text-dark-secondary);
  line-height: 1.6;
}

/* -------------------------------------------------------------
   6. PRICING SECTION
------------------------------------------------------------- */
.pricing {
  background-color: var(--bg-primary);
  padding: 5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-title-light {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-subtitle-light {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .section-title-light {
    font-size: 2.75rem;
  }
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3.5rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 850px;
    margin: 3.5rem auto 0;
  }
}

.price-card {
  background-color: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-lg);
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-smooth);
}

.price-card:hover {
  transform: translateY(-5px);
}

.price-card.featured {
  border: 2px solid var(--accent-blue);
}

.featured-tag {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent-blue);
  color: #ffffff;
  padding: 0.35rem 1.25rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: baseline;
}

.price-period {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-left: 0.25rem;
}

.price-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
  margin-top: 1rem;
}

.price-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.price-feature svg {
  color: var(--accent-blue);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.price-card .btn {
  margin-top: auto;
  width: 100%;
}

.pricing-note {
  text-align: center;
  max-width: 800px;
  margin: 3rem auto 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* -------------------------------------------------------------
   7. FINAL CTA SECTION
------------------------------------------------------------- */
.cta-final {
  background-color: var(--bg-primary);
  padding: 6rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-title {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

@media (min-width: 768px) {
  .cta-title {
    font-size: 3rem;
  }
}

.cta-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.cta-final .btn-whatsapp {
  padding: 1.25rem 3rem;
  font-size: 1.2rem;
}

/* -------------------------------------------------------------
   8. FLOATING WHATSAPP BUTTON
------------------------------------------------------------- */
.floating-whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--whatsapp-green);
  color: #ffffff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  z-index: 999;
  transition: var(--transition-smooth);
}

.floating-whatsapp:hover {
  background-color: var(--whatsapp-green-hover);
  transform: scale(1.1);
}

.floating-whatsapp svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.floating-whatsapp::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--whatsapp-green);
  opacity: 0.6;
  z-index: -1;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* -------------------------------------------------------------
   FOOTER (Extra for clean semantics)
------------------------------------------------------------- */
footer {
  background-color: #050b14;
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.875rem;
  color: rgba(148, 163, 184, 0.6);
}
