.hero {
  position: relative;
  padding: 2rem 0 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 1.25rem 0 1rem;
}

.hero p.lead {
  font-size: 1.0625rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.75rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 1.75rem;
}

.hero-stats {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-blue);
}

.stat span {
  font-size: 12px;
  color: hsl(var(--muted-foreground));
}

.hero-card {
  padding: 1.5rem;
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.hero-card-header strong {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
}

.preview-chart {
  height: 260px;
  border-radius: var(--radius-lg);
  background: hsl(var(--surface) / 0.5);
  border: 1px solid hsl(var(--border) / 0.5);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.preview-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 1rem;
  position: relative;
  z-index: 1;
}

.preview-pill {
  font-size: 10px;
  font-weight: 600;
  font-family: var(--font-display);
  padding: 6px 12px;
  border-radius: 999px;
  background: hsl(var(--surface));
  color: hsl(var(--muted-foreground));
  border: 1px solid hsl(var(--border) / 0.5);
  cursor: pointer;
  transition: all 0.15s ease;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.preview-pill:hover {
  background: hsl(var(--primary) / 0.08);
  color: var(--brand-blue);
  border-color: hsl(var(--primary) / 0.3);
}

.preview-pill.active {
  background: var(--brand-blue);
  color: var(--brand-black);
  border-color: var(--brand-blue-hover);
}

.preview-pill:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  border-block: 1px solid hsl(var(--border) / 0.4);
  background: hsl(var(--card) / 0.4);
}

.section-head {
  text-align: center;
  margin-bottom: 3rem;
}

.section-head .section-subtitle {
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-card {
  padding: 1.75rem;
  transition: transform 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  background: hsl(var(--primary) / 0.1);
  color: var(--brand-blue);
  display: grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.feature-card p {
  color: hsl(var(--muted-foreground));
  font-size: 14px;
  margin: 0;
  position: relative;
  z-index: 1;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.step-card {
  padding: 1.5rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--brand-blue);
  color: var(--brand-black);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.step-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.step-card p {
  color: hsl(var(--muted-foreground));
  font-size: 14px;
  margin: 0;
  position: relative;
  z-index: 1;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.price-card {
  padding: 1.75rem 1.25rem;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: hsl(var(--primary) / 0.5);
  box-shadow: 0 0 0 1px hsl(var(--primary) / 0.3), 0 8px 32px hsl(var(--primary) / 0.12);
}

/* Plan Pro — destacado dorado (paridad Encuestas PLN) */
.price-card-pro {
  border-color: rgba(212, 160, 23, 0.55);
  box-shadow:
    0 0 0 1px rgba(245, 200, 66, 0.32),
    0 8px 40px rgba(212, 160, 23, 0.2),
    0 0 56px rgba(212, 160, 23, 0.1);
  position: relative;
  overflow: hidden;
}

.price-card-pro::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(245, 200, 66, 0.09) 0%, transparent 42%);
  pointer-events: none;
}

.price-card-pro .price-tier {
  color: #e8c547;
  display: flex;
  align-items: center;
  gap: 6px;
}

.price-card-pro .price-tier::after {
  content: '👑';
  font-size: 14px;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.price-card-pro .price-amount {
  color: #f5c842;
  text-shadow: 0 0 24px rgba(245, 200, 66, 0.25);
}

html.light .price-card-pro {
  border-color: rgba(184, 134, 11, 0.45);
  box-shadow:
    0 0 0 1px rgba(201, 162, 39, 0.28),
    0 8px 32px rgba(184, 134, 11, 0.12);
}

html.light .price-card-pro .price-tier {
  color: #a67c00;
}

html.light .price-card-pro .price-amount {
  color: #b8860b;
  text-shadow: none;
}

.price-card-pro .price-card-pro-cta {
  width: 100%;
  min-height: 38px;
}

#plan-pro:target {
  border-color: rgba(245, 200, 66, 0.65);
  box-shadow:
    0 0 0 2px rgba(245, 200, 66, 0.45),
    0 8px 40px rgba(212, 160, 23, 0.22);
  scroll-margin-top: 7rem;
}

.price-tier {
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--brand-blue);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  z-index: 1;
}

.price-card h3 {
  font-size: 1.25rem;
  margin: 8px 0 12px;
  position: relative;
  z-index: 1;
}

.price-amount {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand-blue);
  position: relative;
  z-index: 1;
}

.price-amount span {
  font-size: 0.95rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex: 1;
  position: relative;
  z-index: 1;
}

.price-card li {
  font-size: 13px;
  color: hsl(var(--muted-foreground));
  padding: 8px 0;
  border-bottom: 1px solid hsl(var(--border) / 0.4);
}

.price-card li::before {
  content: '✓ ';
  color: hsl(var(--success));
  font-weight: 600;
}

.price-card .btn {
  width: 100%;
  position: relative;
  z-index: 1;
}

.cta-band {
  padding: 3.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.cta-band p {
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.75rem;
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.site-footer-links {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding: 3rem 0 2rem;
  border-top: 1px solid hsl(var(--border) / 0.4);
}

.site-footer-links p,
.site-footer-links a {
  color: hsl(var(--muted-foreground));
  font-size: 14px;
}

.site-footer-links a:hover {
  color: var(--brand-blue);
}

.site-footer-links h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

@media (max-width: 1024px) {
  .hero-grid,
  .features-grid,
  .steps,
  .pricing-grid,
  .site-footer-links {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .hero-grid,
  .features-grid,
  .steps,
  .pricing-grid,
  .site-footer-links {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 1rem;
  }

  .cta-band {
    padding: 2.5rem 1.25rem;
  }
}
