/* ============================================
   HeyMark × Zernio — Theme
   Dark, premium. Gradiente oficial HeyMark (amber → magenta).
   Deck centrado en video: 5 piezas, 3 plataformas.
   ============================================ */

:root {
  /* base.css espera estas variables */
  --bg-primary: #09090b;
  --bg-secondary: #0d0d11;
  --text-primary: #f4f4f6;
  --text-secondary: #9a9aa4;
  --accent: #ff0173;
  --accent-dim: rgba(255, 1, 115, 0.14);
  --font: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --section-pad: clamp(90px, 12vh, 150px);

  /* marca */
  --amber: #ffa916;
  --magenta: #ff0173;
  --gradient: linear-gradient(90deg, #ffa916, #ff0173);
  --ink-3: #5c5c66;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --card: rgba(255, 255, 255, 0.035);
  --card-hover: rgba(255, 255, 255, 0.06);

  /* plataformas */
  --ig: #e1306c;
  --tiktok: #25f4ee;
  --youtube: #ff0000;
}

body { background: var(--bg-primary); }

/* desactivar el alternado automático de base.css — controlamos el fondo a mano */
.section:nth-child(even) { background: var(--bg-primary); }
.section--alt { background: var(--bg-secondary); }

/* utilidades */
.grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.reveal { opacity: 0; transform: translateY(26px); }

/* back button — pill en tema oscuro */
.back-btn { border-radius: 100px; }

/* ============================================
   HERO
   ============================================ */
.hero {
  background:
    radial-gradient(ellipse 70% 55% at 50% -5%, rgba(255, 1, 115, 0.16) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 10%, rgba(255, 169, 22, 0.10) 0%, transparent 55%);
  text-align: center;
  overflow: hidden;
}
.cobrand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 2.2rem;
  backdrop-filter: blur(8px);
}
.cobrand__x { color: var(--ink-3); font-weight: 400; }
.cobrand__zernio { color: #fff; }

.hero__title {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
}
.hero__subtitle {
  color: var(--text-secondary);
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  max-width: 42ch;
  margin: 0 auto;
  line-height: 1.5;
}
.hero__meta {
  margin-top: 2.6rem;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.4rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.hero__meta b { color: var(--text-primary); font-weight: 700; }
.scroll-hint {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--ink-3);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ============================================
   CONTEXTO
   ============================================ */
.lede {
  max-width: 56ch;
  margin: 0 auto 3.2rem;
  text-align: center;
  font-size: clamp(1.15rem, 2.3vw, 1.55rem);
  line-height: 1.55;
  color: var(--text-secondary);
}
.lede b { color: var(--text-primary); font-weight: 600; }

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  max-width: 760px;
  margin: 0 auto;
}
.mini-stat {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 18px;
  padding: 2rem 1rem;
  text-align: center;
}
.mini-stat__value {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.mini-stat__label {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
}

/* ============================================
   PIEZAS — video + contenido
   ============================================ */
.piece .container {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
}
.piece--right .container { direction: rtl; }
.piece--right .piece__content { direction: ltr; }

/* columna del teléfono */
.piece__phone {
  display: flex;
  justify-content: center;
  direction: ltr;
}
.piece .phone__frame {
  width: clamp(240px, 27vw, 310px);
  border-radius: 36px;
}
.piece .phone__screen { border-radius: 33px; }
.phone-glow { position: relative; }
.phone-glow::before {
  content: '';
  position: absolute;
  inset: -14% -10%;
  background: radial-gradient(ellipse at center, rgba(255, 1, 115, 0.22), rgba(255, 169, 22, 0.10) 45%, transparent 70%);
  filter: blur(36px);
  z-index: -1;
}

/* columna de contenido */
.piece__num {
  font-size: clamp(3.4rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line-2);
  margin-bottom: 0.4rem;
}
.piece__date {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.9rem;
}
.piece__title {
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1.4rem;
}
.piece__quote {
  border-left: 2px solid;
  border-image: var(--gradient) 1;
  padding: 0.2rem 0 0.2rem 1.2rem;
  margin-bottom: 1.8rem;
  font-size: clamp(1rem, 1.9vw, 1.2rem);
  line-height: 1.5;
  color: var(--text-primary);
}
.piece__quote span { color: var(--text-secondary); }

/* stats por plataforma */
.piece__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}
.piece__stats--two { grid-template-columns: repeat(2, 1fr); }
.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 1rem 1rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.stat:hover {
  transform: translateY(-4px);
  background: var(--card-hover);
  border-color: var(--line-2);
  color: var(--text-primary);
}
.stat--empty {
  opacity: 0.38;
  pointer-events: none;
}
.stat--empty .stat__value { color: var(--text-secondary); }
.stat__icon { width: 22px; height: 22px; }
.stat--ig .stat__icon { color: var(--ig); }
.stat--tiktok .stat__icon { color: var(--tiktok); }
.stat--youtube .stat__icon { color: var(--youtube); }
.stat__value {
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.stat__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}
.piece__total {
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.piece__total b {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.15rem;
}

/* ============================================
   TOTALES
   ============================================ */
.totals { text-align: center; }
.totals__big {
  font-size: clamp(4rem, 14vw, 9rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: 0.4rem 0 0.2rem;
}
.totals__caption {
  color: var(--text-secondary);
  font-size: clamp(1rem, 2vw, 1.25rem);
  letter-spacing: 0.04em;
  margin-bottom: 3.4rem;
}
.bars {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
}
.bar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}
.bar__name {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 1rem;
}
.bar__name svg { width: 20px; height: 20px; }
.bar--ig svg { color: var(--ig); }
.bar--tiktok svg { color: var(--tiktok); }
.bar--youtube svg { color: var(--youtube); }
.bar__value { font-weight: 700; font-size: 1.05rem; }
.bar__track {
  height: 12px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.bar__fill {
  height: 100%;
  width: 0;
  border-radius: 100px;
  background: var(--gradient);
}

/* ============================================
   CIERRE
   ============================================ */
.closing {
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 110%, rgba(255, 1, 115, 0.16) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 15% 90%, rgba(255, 169, 22, 0.10) 0%, transparent 55%);
}
.closing__title {
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 1.6rem;
}
.closing__text {
  max-width: 48ch;
  margin: 0 auto 2.6rem;
  color: var(--text-secondary);
  font-size: clamp(1.05rem, 2.1vw, 1.35rem);
  line-height: 1.55;
}
.closing__contact {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
  font-size: 1.1rem;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  padding: 0.7rem 1.5rem;
}
.closing__contact:hover { background: rgba(255, 255, 255, 0.05); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 860px) {
  .piece .container {
    grid-template-columns: 1fr;
    gap: 2.6rem;
    text-align: center;
  }
  .piece--right .container { direction: ltr; }
  .piece__phone { order: -1; }
  .piece__num { margin-left: auto; margin-right: auto; }
  .piece__quote {
    border-left: none;
    border-top: 2px solid;
    border-image: var(--gradient) 1;
    padding: 1rem 0 0;
    text-align: center;
  }
  .piece__stats { max-width: 460px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 560px) {
  .mini-stats { grid-template-columns: 1fr; gap: 0.9rem; }
  .stat { align-items: center; text-align: center; }
}
