@font-face {
  font-family: 'Archivo Black';
  src: url('assets/fonts/ArchivoBlack-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Space Mono';
  src: url('assets/fonts/SpaceMono-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Space Mono';
  src: url('assets/fonts/SpaceMono-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('assets/fonts/IBMPlexSans-VariableFont_wdth,wght.ttf') format('truetype');
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Pirata One';
  src: url('assets/fonts/PirataOne-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #08080A;
  --surface: #101014;
  --surface-hover: #16161C;
  --stroke: rgba(255, 255, 255, 0.09);
  --stroke-strong: rgba(255, 255, 255, 0.18);
  --text: #F5F5F3;
  --text-muted: #9A9AA4;
  --flame: #F3903F;
  --gold: #FFD220;
  --font-display: 'Archivo Black', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-gothic: 'Pirata One', serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}

.ambient-glow {
  position: fixed;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 780px;
  height: 420px;
  background: radial-gradient(circle, rgba(243, 144, 63, 0.08) 0%, rgba(255, 210, 32, 0.03) 40%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.page-shell {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
  padding: 28px 28px 44px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* BARRA SUPERIOR */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--stroke);
  gap: 16px;
  flex-wrap: wrap;
}

.topbar__left,
.topbar__right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.domain-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--stroke-strong);
  padding: 5px 13px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--flame);
  box-shadow: 0 0 10px var(--flame);
}

.location-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.top-link {
  background: none;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-decoration: none;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 999px;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.top-link:hover {
  color: var(--text);
  border-color: var(--stroke-strong);
  background: var(--surface);
}

/* FICHA DE PERSONA */
.ficha-card {
  background: linear-gradient(180deg, rgba(22, 22, 28, 0.72) 0%, rgba(14, 14, 18, 0.92) 100%);
  border: 1px solid var(--stroke-strong);
  border-radius: 22px;
  padding: 32px 34px;
  position: relative;
}

.ficha-card__main {
  display: grid;
  grid-template-columns: 168px 1fr auto;
  align-items: center;
  gap: 32px;
}

/* AVATAR EN TRANSPARENCIA + CÍRCULO ORGÁNICO */
.avatar-wrap {
  position: relative;
  width: 168px;
  height: 196px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.avatar-organic-ring {
  position: absolute;
  inset: -6px;
  width: calc(100% + 12px);
  height: calc(100% + 12px);
  pointer-events: none;
}

.avatar-sticker {
  position: relative;
  z-index: 2;
  width: 142px;
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.65));
  transform: rotate(-2deg);
}

/* INFO DE LA FICHA */
.ficha-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ficha-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow-badge {
  color: var(--flame);
  font-weight: 700;
}

.eyebrow-sep {
  color: var(--text-muted);
}

.eyebrow-sub {
  color: var(--text-muted);
}

.ficha-name {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.6vw, 2.85rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--text);
}

.ficha-roles {
  font-family: var(--font-mono);
  font-size: 0.83rem;
  color: #D4D4DC;
  letter-spacing: 0.01em;
}

.ficha-roles span {
  color: var(--flame);
  margin: 0 4px;
}

.ficha-bio {
  font-size: 1.02rem;
  color: var(--text-muted);
  max-width: 590px;
  line-height: 1.65;
  margin-top: 2px;
}

/* STROKES Y CÍRCULOS ORGÁNICOS */
.organic-word {
  position: relative;
  display: inline-block;
  color: var(--text);
  font-weight: 600;
  padding: 0 6px;
  margin: 0 2px;
  white-space: nowrap;
}

.organic-circle-svg {
  position: absolute;
  left: -6px;
  top: -7px;
  width: calc(100% + 12px);
  height: calc(100% + 14px);
  pointer-events: none;
}

.organic-word--underline {
  padding: 0 2px 4px;
}

.organic-underline-svg {
  position: absolute;
  left: -2px;
  bottom: -4px;
  width: calc(100% + 4px);
  height: 12px;
  pointer-events: none;
}

/* BOTONES DE LA FICHA */
.ficha-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--text);
  color: #09090B;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--text);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn-primary:hover {
  background: var(--flame);
  border-color: var(--flame);
  transform: translateY(-1px);
}

.btn-arrow {
  font-size: 0.9rem;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--stroke-strong);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.btn-outline:hover {
  border-color: var(--flame);
  background: rgba(243, 144, 63, 0.08);
}

.copy-tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--flame);
  background: rgba(243, 144, 63, 0.14);
  padding: 2px 8px;
  border-radius: 999px;
}

/* STICKER AISLADO: NARRADOR VISUAL NORTEÑO */
.norteno-sticker-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}

.norteno-sticker {
  background: #0B0B0D;
  border: 2.5px solid #F5F5F3;
  padding: 4px;
  width: 118px;
  height: 124px;
  transform: rotate(2.5deg);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.6);
  user-select: none;
}

.norteno-sticker__inner {
  border: 1.5px solid #F5F5F3;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-gothic);
  color: #F5F5F3;
  text-align: center;
  line-height: 0.94;
  letter-spacing: 0.03em;
  padding: 6px 4px;
}

.norteno-sticker__inner span {
  font-size: 1.24rem;
  display: block;
}

.norteno-sticker__inner .norteno-sticker__lg {
  font-size: 1.62rem;
  margin: 2px 0;
}

/* SECCIÓN DE VIDEO REEL */
.reel-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.section-bar__left {
  display: flex;
  align-items: center;
  gap: 9px;
}

.section-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--flame);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.sound-pill {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--stroke-strong);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 5px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.sound-pill:hover {
  border-color: var(--flame);
  color: var(--flame);
}

.reel-frame {
  position: relative;
  background: #050507;
  border: 1px solid var(--stroke-strong);
  border-radius: 20px;
  overflow: visible;
  padding: 10px;
}

.reel-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: #000;
  object-fit: cover;
}

/* STICKER OBLIGATORIO: CÁMARA EN FUEGO AISLADO */
.camera-sticker-float {
  position: absolute;
  right: -12px;
  bottom: -22px;
  width: 176px;
  pointer-events: none;
  z-index: 4;
}

.camera-organic-stroke {
  position: absolute;
  inset: -14px;
  width: calc(100% + 28px);
  height: calc(100% + 28px);
}

.camera-sticker-img {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  transform: rotate(-4deg);
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.78));
}

/* COLABORADOR EN (SOLO LOS NOMBRES, SIN INVENTAR NADA) */
.collab-section {
  margin-top: 6px;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 20px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.collab-header {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.collab-stroke-svg {
  width: 118px;
  height: 8px;
}

.collab-grid {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.collab-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--stroke-strong);
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

a.collab-pill:hover {
  border-color: var(--flame);
  background: rgba(243, 144, 63, 0.08);
  transform: translateY(-1px);
}

.collab-ext {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--flame);
}

/* FOOTER MINIMALISTA */
.footer-ficha {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--stroke);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  gap: 12px;
  flex-wrap: wrap;
}

.footer-ficha__left,
.footer-ficha__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-brand {
  color: var(--text);
  font-weight: 700;
}

.footer-sep {
  opacity: 0.45;
}

.footer-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.18s ease;
}

.footer-link:hover {
  color: var(--flame);
}

/* TOAST DE COPIADO */
.copy-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: #09090B;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* RESPONSIVO MÓVIL */
@media (max-width: 820px) {
  .page-shell {
    padding: 18px 16px 36px;
    gap: 18px;
  }

  .ficha-card {
    padding: 24px 20px;
  }

  .ficha-card__main {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 18px;
  }

  .avatar-wrap {
    width: 132px;
    height: 154px;
  }

  .avatar-sticker {
    width: 112px;
  }

  .norteno-sticker-wrap {
    justify-content: flex-start;
  }

  .camera-sticker-float {
    width: 126px;
    right: -4px;
    bottom: -16px;
  }

  .collab-section {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 20px;
  }
}
