:root {
  --bg: #0a0a0d;
  --surface: #131318;
  --surface-2: #1a1a21;
  --border: #26262f;
  --text: #f2f0f5;
  --muted: #9a97a6;
  --red: #ef233c;
  --purple: #8b5cf6;
  --grad: linear-gradient(120deg, var(--red), var(--purple));
  --radius: 20px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

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

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
p a, .steps a { color: var(--text); border-bottom: 1px solid var(--purple); }

h1, h2, h3 { font-family: "Space Grotesk", sans-serif; line-height: 1.15; }

code, kbd {
  font-family: ui-monospace, monospace;
  font-size: .85em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
}

.grad {
  background: linear-gradient(120deg, var(--red), var(--purple), var(--red));
  background-size: 200% auto;
  animation: shine 6s linear infinite;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Fondo animado */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }

.bg__blob {
  position: absolute;
  width: 55vmax;
  height: 55vmax;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .22;
  animation: float 22s var(--ease) infinite alternate;
}

.bg__blob--red { background: var(--red); top: -25vmax; left: -15vmax; }
.bg__blob--purple { background: var(--purple); bottom: -30vmax; right: -15vmax; animation-delay: -11s; }

@keyframes float {
  to { transform: translate(10vmax, 8vmax) scale(1.15); }
}

/* Navegación */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, calc(100% - 32px));
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 10px 18px;
  background: rgba(19, 19, 24, .55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: background .3s, box-shadow .3s, top .3s var(--ease);
}

.nav--scrolled { top: 10px; background: rgba(19, 19, 24, .85); box-shadow: 0 10px 40px -10px rgba(0, 0, 0, .6); }

.nav__brand { display: flex; align-items: center; gap: 10px; font-family: "Space Grotesk", sans-serif; font-weight: 700; }
.nav__brand img { border-radius: 8px; image-rendering: pixelated; }

.nav__links { display: flex; align-items: center; gap: 6px; }

.nav__links a {
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 500;
  font-size: 15px;
  transition: color .2s, background .2s;
}

.nav__links a:hover, .nav__links a.is-active { color: var(--text); background: var(--surface-2); }
.nav__links .nav__cta { color: var(--text); background: var(--grad); }
.nav__links .nav__cta:hover { background: var(--grad); filter: brightness(1.15); }

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--surface-2);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.nav__toggle span { width: 16px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease); }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s;
}

.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--grad); box-shadow: 0 8px 30px -8px rgba(239, 35, 60, .6); }
.btn--primary:hover { box-shadow: 0 12px 40px -8px rgba(139, 92, 246, .7); }
.btn--ghost { border: 1px solid var(--border); background: rgba(255, 255, 255, .03); }
.btn--ghost:hover { border-color: var(--purple); }
.btn--big { padding: 18px 34px; font-size: 17px; }
.btn--small { padding: 9px 18px; font-size: 14px; }
.card__watch { flex-basis: 100%; }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* Portada */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 16px 60px;
}

.eyebrow {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero__title {
  font-size: clamp(56px, 13vw, 150px);
  letter-spacing: -.04em;
  margin-bottom: 20px;
}

.hero__text { max-width: 520px; color: var(--muted); font-size: 18px; margin-bottom: 36px; }
.hero__text strong { color: var(--text); }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.hero__live {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(239, 35, 60, .4);
  background: rgba(239, 35, 60, .08);
  font-weight: 500;
  font-size: 14px;
}

/* Entrada escalonada de la portada */
.hero > * { animation: rise .9s var(--ease) both; }
.hero > :nth-child(2) { animation-delay: .1s; }
.hero > :nth-child(3) { animation-delay: .2s; }
.hero > :nth-child(4) { animation-delay: .3s; }
.hero > :nth-child(5) { animation-delay: .4s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
}

/* Punto de directo */
.live-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(239, 35, 60, .6);
  animation: pulse 1.8s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(239, 35, 60, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 35, 60, 0); }
}

/* Secciones */
.section { max-width: 1100px; margin: 0 auto; padding: 100px 16px; }
.section__head { margin-bottom: 40px; }

.section__title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(30px, 5vw, 44px);
  letter-spacing: -.02em;
  margin-bottom: 8px;
}

.section__text { color: var(--muted); }

.grid { display: grid; gap: 16px; }
.grid--live { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.grid--creators { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.grid--streamers { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* Tarjetas */
.card {
  position: relative;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, .5);
  box-shadow: 0 20px 50px -20px rgba(139, 92, 246, .35);
}

.card--live { border-color: rgba(239, 35, 60, .45); }
.card--live:hover { border-color: var(--red); box-shadow: 0 20px 50px -20px rgba(239, 35, 60, .4); }

.card__top { display: flex; align-items: center; gap: 14px; }
.card__name { font-size: 18px; }
.card__role { color: var(--muted); font-size: 14px; }

.card__title {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.avatar {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 16px;
  background: var(--grad);
  display: grid;
  place-items: center;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 20px;
  overflow: hidden;
}

.avatar img { width: 100%; height: 100%; object-fit: cover; }

.badge-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(239, 35, 60, .12);
  color: #ff6b7d;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Creadores: tarjetas grandes */
.grid--creators .card { padding: 32px; }
.grid--creators .avatar { width: 84px; height: 84px; border-radius: 24px; font-size: 32px; }
.grid--creators .card__name { font-size: 26px; }

.grid--creators .card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .35s;
}

.grid--creators .card:hover::before { opacity: 1; }

/* Enlaces de plataforma */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 500;
  transition: border-color .2s, background .2s;
}

.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--muted)); }
.chip:hover { border-color: var(--c, var(--purple)); background: color-mix(in srgb, var(--c, var(--purple)) 12%, transparent); }

.chip--twitch { --c: #9146ff; }
.chip--kick { --c: #53fc18; }
.chip--youtube { --c: #ff0033; }
.chip--starvios { --c: #f5b301; }
.chip--discord { --c: #5865f2; }

/* Filtros */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }

.filter {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all .25s var(--ease);
}

.filter:hover { color: var(--text); border-color: var(--purple); }
.filter--active { color: var(--text); background: var(--grad); border-color: transparent; }

/* Estado vacío */
.empty {
  padding: 48px 24px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
}

.empty p { color: var(--text); font-weight: 500; margin-bottom: 4px; }
.empty span { font-size: 14px; }

/* Launcher */
.launcher {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
}

.launcher__info, .launcher__manual {
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.launcher__info {
  background:
    radial-gradient(circle at 0% 0%, rgba(239, 35, 60, .14), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(139, 92, 246, .16), transparent 55%),
    var(--surface);
}

.launcher__info > p { color: var(--muted); margin: 8px 0 20px; }

.notice {
  padding: 16px 18px;
  margin-bottom: 28px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--red);
  background: rgba(239, 35, 60, .07);
  font-size: 15px;
}

.launcher__meta { margin-top: 12px; font-size: 13px; color: var(--muted); }

.launcher__manual h3 { font-size: 22px; margin-bottom: 6px; }
.launcher__manual > p { color: var(--muted); margin-bottom: 20px; }

.steps { list-style: none; display: grid; gap: 14px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; }

.steps li > span {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 13px;
}

/* Pie */
.footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.footer__brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-family: "Space Grotesk", sans-serif; font-weight: 700; }
.footer__brand img { border-radius: 6px; image-rendering: pixelated; }

/* Aparición al hacer scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal--visible { opacity: 1; transform: none; }

/* Móvil */
@media (max-width: 820px) {
  .launcher { grid-template-columns: 1fr; }
  .launcher__info, .launcher__manual { padding: 28px 22px; }
}

@media (max-width: 960px) {
  .nav__toggle { display: flex; }

  .nav__links {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .25s, transform .25s var(--ease);
  }

  .nav__links--open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { padding: 12px 16px; }
  .section { padding: 70px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Mejoras v7 ---------- */
@keyframes shine { to { background-position: 200% center; } }

/* Accesibilidad */
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 50;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--grad);
  font-weight: 600;
  transition: top .2s;
}
.skip:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 8px; }
.btn:focus-visible, .filter:focus-visible, .chip:focus-visible { border-radius: 999px; }
section[id] { scroll-margin-top: 90px; }

/* Rejilla sutil de fondo */
.bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 70%);
}

/* Portada */
.hero { position: relative; }
.hero__live { transition: background .25s, border-color .25s; }
.hero__live:hover { background: rgba(239, 35, 60, .16); border-color: var(--red); }

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 2px solid var(--border);
  border-radius: 999px;
  opacity: .8;
  transition: border-color .25s;
}
.hero__scroll:hover { border-color: var(--purple); }
.hero__scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--grad);
  animation: scroll-dot 1.8s var(--ease) infinite;
}
@keyframes scroll-dot {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}
@media (max-height: 640px) { .hero__scroll { display: none; } }

/* Tarjetas: brillo que sigue al ratón */
.card { overflow: hidden; }
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 92, 246, .12), transparent 45%);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}
.card:hover::after { opacity: 1; }
.card--live::after { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(239, 35, 60, .12), transparent 45%); }
.card > * { position: relative; z-index: 1; }

.card__who { min-width: 0; }
.card__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__soon { color: var(--muted); font-size: 13px; }

/* Esqueletos de carga */
.card--skeleton {
  min-height: 132px;
  background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%);
  background-size: 300% 100%;
  animation: skeleton 1.4s ease-in-out infinite;
}
.grid--creators .card--skeleton { min-height: 190px; }
.card--skeleton:hover { transform: none; border-color: var(--border); box-shadow: none; }
@keyframes skeleton { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* Estados vacíos */
.empty__icon { font-size: 30px; margin-bottom: 10px; }

/* Preguntas frecuentes */
.section--narrow { max-width: 820px; }
.faq { display: grid; gap: 10px; }

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color .25s, background .25s;
}
.faq details[open] { border-color: rgba(139, 92, 246, .45); background: var(--surface-2); }

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 18px;
  transition: transform .3s var(--ease), background .3s, color .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--grad); color: var(--text); }
.faq details p { padding: 0 22px 20px; color: var(--muted); animation: rise .4s var(--ease) both; }

/* Pie */
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer__links a { transition: color .2s; }
.footer__links a:hover { color: var(--text); }

.noscript { text-align: center; padding: 16px; color: var(--muted); }

@media (max-width: 720px) {
  .footer { flex-direction: column; text-align: center; }
  .hero__scroll { display: none; }
}

/* ---------- Accesos (v8) ---------- */
.nav__links .nav__zone { color: var(--text); border: 1px solid var(--border); }
.nav__links .nav__zone:hover { border-color: var(--purple); }

.access { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }

.access__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}

.access__card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .5;
  transition: opacity .35s;
  pointer-events: none;
}

.access__card--streamer::before { background: radial-gradient(circle at 0% 0%, rgba(239, 35, 60, .16), transparent 60%); }
.access__card--staff::before { background: radial-gradient(circle at 100% 0%, rgba(139, 92, 246, .2), transparent 60%); }
.access__card > * { position: relative; }

.access__card:hover { transform: translateY(-4px); }
.access__card:hover::before { opacity: 1; }
.access__card--streamer:hover { border-color: rgba(239, 35, 60, .5); box-shadow: 0 20px 50px -20px rgba(239, 35, 60, .35); }
.access__card--staff:hover { border-color: rgba(139, 92, 246, .5); box-shadow: 0 20px 50px -20px rgba(139, 92, 246, .35); }

.access__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  margin-bottom: 6px;
}
.access__card--streamer .access__icon { background: rgba(239, 35, 60, .14); color: #ff6b7d; }
.access__card--staff .access__icon { background: rgba(139, 92, 246, .16); color: #c4b5fd; }

.access__card h3 { font-size: 24px; }
.access__card p { color: var(--muted); flex: 1; }
.access__card p strong { color: var(--text); }

.access__go { font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.access__go span { transition: transform .3s var(--ease); }
.access__card:hover .access__go span { transform: translateX(5px); }

@media (max-width: 560px) {
  .nav__hide-sm { display: none; }
  .access__card { padding: 26px 22px; }
}

/* Vista previa del directo en las tarjetas de "En directo" */
.preview {
  position: relative;
  margin: -22px -22px 18px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, rgba(239, 35, 60, .25), transparent 60%), #000;
  border-bottom: 1px solid var(--border);
}
.preview img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .preview img { transform: scale(1.04); }
.preview img.preview__blur { filter: blur(18px) brightness(.55); transform: scale(1.25); }
.preview iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.preview__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(10, 10, 13, .72);
  backdrop-filter: blur(6px);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  pointer-events: none;
}

.preview__play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 10, 13, .65));
  color: var(--text);
  cursor: pointer;
  border: 0;
  font: inherit;
}
.preview__icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 10px 34px -6px rgba(239, 35, 60, .7);
  display: grid;
  place-items: center;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.preview__icon::before {
  content: "";
  margin-left: 5px;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff;
}
.preview__label { font-size: 14px; font-weight: 600; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
.preview__play:hover .preview__icon,
.preview__play:focus-visible .preview__icon { transform: scale(1.1); box-shadow: 0 14px 44px -6px rgba(139, 92, 246, .8); }
.preview__play:focus-visible { outline: 2px solid var(--purple); outline-offset: -4px; }

.preview__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(10, 10, 13, .8);
  color: var(--text);
  cursor: pointer;
  transition: background .25s, border-color .25s;
}
.preview__close:hover { background: var(--red); border-color: var(--red); }

/* Con el reproductor abierto la tarjeta ocupa toda la fila: pantalla grande */
.card[data-playing] { grid-column: 1 / -1; }
.card[data-playing]:hover { transform: none; }
.card[data-playing] .preview { max-height: 75vh; }

/* Contacto */
.contact {
  display: grid;
  gap: 18px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  animation: rise .6s var(--ease) both;
}
.contact[hidden] { display: none; }

.contact__types { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.contact__legend { font-weight: 600; margin-bottom: 12px; padding: 0; }
.contact__type { position: relative; cursor: pointer; }
.contact__type input { position: absolute; opacity: 0; pointer-events: none; }
.contact__type span {
  display: grid;
  gap: 4px;
  height: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  transition: border-color .25s, background .25s, transform .25s var(--ease);
}
.contact__type small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.contact__type:hover span { border-color: rgba(139, 92, 246, .5); transform: translateY(-2px); }
.contact__type input:checked + span {
  border-color: transparent;
  background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--grad) border-box;
  border: 1px solid transparent;
  box-shadow: 0 10px 30px -14px rgba(239, 35, 60, .6);
}
.contact__type input:focus-visible + span { outline: 2px solid var(--purple); outline-offset: 2px; }

.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact__grid .field[hidden] { display: none; }
#canal-field { grid-column: 1 / -1; }

.field { display: grid; gap: 6px; position: relative; }
.field__label { font-size: 14px; font-weight: 600; }
.field input,
.field textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.field input:focus,
.field textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(139, 92, 246, .18); }
.field--error input,
.field--error textarea { border-color: var(--red); box-shadow: 0 0 0 3px rgba(239, 35, 60, .15); }
.field__count { justify-self: end; color: var(--muted); font-size: 12px; }

.contact__hint { margin-top: -8px; color: var(--muted); font-size: 13px; }
.contact__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.contact__privacy { color: var(--muted); font-size: 13px; max-width: 420px; }
.contact button.btn { font: inherit; font-weight: 600; border: 0; color: var(--text); cursor: pointer; }
.contact button.btn--ghost { border: 1px solid var(--border); }
.contact button.btn:disabled { opacity: .6; cursor: wait; transform: none; }

.contact__status { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; }
.contact__status--error { color: #ff8a98; background: rgba(239, 35, 60, .1); border: 1px solid rgba(239, 35, 60, .35); }

.contact--done { justify-items: center; text-align: center; padding: 48px 28px; }
.contact--done p { color: var(--muted); max-width: 440px; }
.contact__done-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 700;
  background: var(--grad);
  box-shadow: 0 12px 40px -10px rgba(239, 35, 60, .7);
  animation: pop .5s var(--ease) both;
}
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

@media (max-width: 700px) {
  .contact { padding: 20px; }
  .contact__types, .contact__grid { grid-template-columns: 1fr; }
  .contact__foot .btn { width: 100%; }
}
