/**
 * Shared page header chrome for Mia Website tool pages.
 * Same layout language everywhere: title → subtitle → lead → optional stats.
 */

:root {
  --mia-hero-bg: #1a1c24;
  --mia-hero-border: rgba(255, 255, 255, 0.08);
  --mia-hero-accent: #56b0da;
  --mia-hero-muted: #9ca3af;
  --mia-hero-title: #f8fafc;
  --mia-hero-radius: 1rem;
}

.mia-page-hero,
.alertas-hero,
.cmd-hero,
.faq-hero,
.taxi-hero,
.premium-hero,
.ml-hero,
.checker-hero,
.admin-panel-hero,
.legal-hero,
.api-hero-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin-bottom: 1.5rem;
  padding: 1.35rem 1.25rem 1.2rem;
  border-radius: var(--mia-hero-radius);
  border: 1px solid var(--mia-hero-border);
  background: var(--mia-hero-bg);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.28);
}

.mia-page-hero::before,
.alertas-hero::before,
.cmd-hero::before,
.faq-hero::before,
.taxi-hero::before,
.premium-hero::before,
.ml-hero::before,
.checker-hero::before,
.admin-panel-hero::before,
.espiritus-hero::before,
.legal-hero::before,
.api-hero-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--mia-hero-accent) 20%,
    #93c5fd 50%,
    var(--mia-hero-accent) 80%,
    transparent 100%
  );
  opacity: 0.85;
  pointer-events: none;
  z-index: 1;
}

/* Kill heavier decorative overlays from legacy heroes */
.alertas-hero::after,
.cmd-hero::after,
.faq-hero::after,
.taxi-hero::after {
  display: none !important;
}

.mia-page-hero__kicker,
.faq-hero-kicker,
.cmd-hero-kicker,
.taxi-hero-kicker,
.ml-hero-kicker,
.checker-hero-kicker,
.premium-hero-kicker,
.api-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.55rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mia-hero-accent);
}

.mia-page-hero h1,
.mia-page-hero__title,
.alertas-hero h1,
.alertas-hero-copy h1,
.cmd-hero h1,
.cmd-hero-copy h1,
.faq-hero h1,
.taxi-hero h1,
.taxi-hero-copy h1,
.premium-hero h1,
.ml-hero h1,
.ml-hero-copy h1,
.checker-hero h1,
.checker-hero-copy h1,
.admin-panel-hero h1,
.admin-panel-hero__top h1,
.legal-hero h1,
.api-hero-card h1,
.api-hero h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.45rem, 3.2vw, 1.9rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--mia-hero-title);
  background: none;
  -webkit-text-fill-color: currentColor;
  background-clip: unset;
  -webkit-background-clip: unset;
}

.mia-page-hero h2,
.mia-page-hero__subtitle,
.alertas-hero h2,
.alertas-hero-copy h2,
.cmd-hero h2,
.cmd-hero-copy h2,
.taxi-hero h2,
.taxi-hero-copy h2,
.ml-hero h2,
.ml-hero-copy h2,
.checker-hero h2,
.checker-hero-copy h2 {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.35;
  color: var(--mia-hero-accent);
}

.mia-page-hero__lead,
.alertas-hero-lead,
.cmd-hero-lead,
.faq-hero-lead,
.taxi-hero-lead,
.premium-hero-lead,
.ml-hero-lead,
.checker-hero-lead,
.api-hero-lead {
  margin: 0;
  max-width: 42rem;
  color: var(--mia-hero-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.mia-page-hero__lead strong,
.faq-hero-lead strong,
.premium-hero-lead strong {
  color: #e5e7eb;
  font-weight: 700;
}

.mia-page-hero__lead code,
.faq-hero-lead code {
  font-size: 0.8em;
  padding: 0.1em 0.35em;
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.06);
  color: #dbeafe;
}

/* Stats strip — one ordered row, not nested heavy cards */
.mia-page-hero__stats,
.alertas-stat-cards,
.cmd-stat-cards,
.taxi-stat-cards,
.ml-hero-stats,
.checker-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--mia-hero-border);
  background: transparent;
}

@media (min-width: 640px) {
  .mia-page-hero__stats,
  .alertas-stat-cards,
  .cmd-stat-cards,
  .taxi-stat-cards,
  .ml-hero-stats,
  .checker-hero-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.mia-page-hero__stat,
.alertas-stat-card,
.cmd-stat-card,
.taxi-stat-card,
.ml-hero-stat,
.checker-hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  padding: 0.15rem 0.85rem;
  border: none;
  border-radius: 0;
  border-left: 1px solid var(--mia-hero-border);
  background: transparent !important;
  box-shadow: none;
  text-align: left;
}

.mia-page-hero__stats > :first-child,
.alertas-stat-cards > :first-child,
.cmd-stat-cards > :first-child,
.taxi-stat-cards > :first-child,
.ml-hero-stats > :first-child,
.checker-hero-stats > :first-child {
  border-left: none;
  padding-left: 0;
}

.mia-page-hero__stat strong,
.alertas-stat-card strong,
.cmd-stat-card strong,
.taxi-stat-card strong,
.ml-hero-stat strong,
.checker-hero-stat strong {
  font-size: 1.15rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  color: #fff;
}

.mia-page-hero__stat span,
.alertas-stat-card span,
.cmd-stat-card span,
.taxi-stat-card span,
.ml-hero-stat span:not(strong),
.checker-hero-stat span:not(strong) {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mia-hero-muted);
}

.alertas-stat-card--alerts strong,
.taxi-stat-card--online strong,
.cmd-stat-card--slash strong {
  color: var(--mia-hero-accent);
}

.alertas-stat-card--vbucks strong,
.cmd-stat-card--premium strong {
  color: #fbbf24;
}

.alertas-stat-card--updated strong,
.cmd-stat-card--prefix strong {
  color: #c4b5fd;
}

/* Admin compact meta rows */
.admin-panel-hero__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.admin-panel-meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.1rem;
  margin-top: 0.15rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--mia-hero-border);
  width: 100%;
  color: var(--mia-hero-muted);
  font-size: 0.8rem;
  text-align: center;
}

.admin-panel-meta-row strong {
  color: #fff;
  font-weight: 800;
}

/* Taxi / checker / launcher: keep optional visual, tighten grid */
.taxi-hero-grid,
.ml-hero-grid,
.checker-hero-grid {
  display: grid;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 768px) {
  .taxi-hero-grid,
  .ml-hero-grid,
  .checker-hero-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
    gap: 1.25rem;
  }
}

.api-hero {
  margin-bottom: 1.5rem;
}

.api-hero-card {
  padding: 1.35rem 1.25rem 1.2rem;
}

/* Text-only heroes: center copy (pages with side visuals stay left) */
.alertas-hero,
.cmd-hero,
.faq-hero,
.premium-hero,
.admin-panel-hero,
.api-hero-card,
.legal-hero {
  text-align: center;
}

.alertas-hero-copy,
.cmd-hero-copy,
.faq-hero,
.premium-hero,
.admin-panel-hero__top,
.api-hero-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.alertas-hero .mia-page-hero__kicker,
.alertas-hero-copy .mia-page-hero__kicker,
.cmd-hero-kicker,
.faq-hero-kicker,
.premium-hero-kicker,
.api-hero-kicker,
.legal-eyebrow {
  justify-content: center;
}

.alertas-hero-lead,
.cmd-hero-lead,
.faq-hero-lead,
.premium-hero-lead,
.api-hero-lead,
.legal-lead {
  margin-left: auto;
  margin-right: auto;
  max-width: 40rem;
}

.alertas-hero .alertas-stat-cards,
.cmd-hero .cmd-stat-cards {
  justify-items: center;
}

.alertas-hero .alertas-stat-card,
.cmd-hero .cmd-stat-card {
  align-items: center;
  text-align: center;
  border-left: none;
  padding: 0.15rem 0.5rem;
}

.alertas-hero .alertas-stat-cards > :first-child,
.cmd-hero .cmd-stat-cards > :first-child {
  padding-left: 0.5rem;
}

.admin-panel-hero__top {
  align-items: center;
}

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

.legal-eyebrow {
  display: inline-flex;
  margin: 0 0 0.55rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mia-hero-accent);
}

.legal-lead {
  margin: 0.45rem auto 0;
  max-width: 40rem;
  color: var(--mia-hero-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.legal-updated {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.75rem;
  color: #6b7280;
}

.legal-hero--terms h1,
.legal-hero--privacy h1,
.legal-hero--checker h1 {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--mia-hero-title);
}
