/* Variables y paleta exacta brutalista-editorial oscura */
:root {
  --bg: #0d0d10;
  --panel: #18181d;
  --red: #fa484f;
  --cream: #f3ede5;
  --dim: #a9a5a6;
  --edge: #383037;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow-x: hidden;
}

/* Textura sutil de ruido en el fondo */
body:before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 10;
  opacity: .12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.wrap {
  max-width: 1050px;
  margin: auto;
  padding: 0 26px;
}

/* Header superior */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 23px 0;
  border-bottom: 1px solid #ffffff22;
  gap: 12px;
}

.brand-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.brand {
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .16em;
}

.edition {
  font-size: 10px;
  color: var(--dim);
  letter-spacing: .12em;
  margin-top: 2px;
}

.chip {
  color: #fff;
  border: 1px solid #ffffff33;
  padding: 8px 12px;
  border-radius: 40px;
  font-size: 10px;
  letter-spacing: .1em;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.chip i {
  display: inline-block;
  background: #fc5f63;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 7px;
  box-shadow: 0 0 15px #ff4242;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* Sección Hero: ocupa el 100% del ancho; el contenido va dentro de .wrap */
.hero {
  position: relative;
  min-height: 550px;
  padding: 65px 0 55px;
  overflow: hidden;
}

/* Degradado: misma posición respecto al contenido (130px fuera del borde
   derecho de la columna), pero ya no se recorta en la columna de 1050px */
.hero:before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  right: calc(max(0px, (100% - 1050px) / 2) + 26px - 130px);
  top: 0;
  border-radius: 50%;
  background: #a41c32;
  filter: blur(100px);
  opacity: .45;
  pointer-events: none;
}

.stamp {
  display: inline-block;
  color: var(--red);
  border: 1px solid #fa484f7c;
  padding: 9px 14px;
  font-weight: 900;
  letter-spacing: .17em;
  font-size: 11px;
  transform: rotate(-3deg);
  margin-bottom: 27px;
}

h1 {
  font-size: clamp(72px, 12vw, 156px);
  line-height: .79;
  letter-spacing: -.085em;
  margin: 0;
  font-weight: 1000;
  font-stretch: condensed;
  position: relative;
}

h1 span {
  display: block;
  color: var(--red);
  transform: translateX(-4px);
}

.hsub {
  margin: 32px 0 15px;
  font-size: clamp(18px, 2.3vw, 24px);
  font-weight: 850;
}

.desc {
  font-size: 15px;
  max-width: 520px;
  line-height: 1.65;
  color: #c6bfc0;
}

.actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  border: 0;
  border-radius: 4px;
  background: var(--red);
  color: #140709;
  padding: 15px 22px;
  text-transform: uppercase;
  letter-spacing: .065em;
  font-size: 12px;
  font-weight: 950;
  transition: transform .18s, background .18s, opacity .18s;
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

.btn:hover:not(:disabled) {
  transform: translateY(-2px);
  background: #ff6c72;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn.secondary {
  color: var(--cream);
  background: transparent;
  border: 1px solid #ffffff55;
}

/* Botón a todo el ancho (formulario y entrada) */
.btn-full {
  width: 100%;
}

.mini {
  color: var(--dim);
  font-size: 11px;
  letter-spacing: .04em;
}

/* Barra de estadísticas (4 columnas) */
.stats {
  border-top: 1px solid #fff2;
  border-bottom: 1px solid #fff2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 23px 0;
  gap: 12px;
}

.stat {
  border-right: 1px solid #fff2;
  padding: 3px 17px;
}

.stat:first-child {
  padding-left: 0;
}

.stat:last-child {
  border: 0;
}

.stat label {
  display: block;
  color: #a9a2a5;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-weight: 750;
  font-size: 10px;
  margin-bottom: 9px;
}

.stat strong {
  font-size: clamp(17px, 2.3vw, 26px);
  letter-spacing: -.035em;
}

/* Secciones generales */
.section {
  padding: 72px 0 0;
}

.eyebrow {
  font-size: 11px;
  color: var(--red);
  font-weight: 950;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 11px;
}

.h2 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -.055em;
  margin: 0 0 14px;
  font-weight: 900;
}

.intro {
  font-size: 14px;
  color: var(--dim);
  line-height: 1.6;
  margin: 0 0 25px;
  max-width: 650px;
}

/* Grid 2 columnas */
.two {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
  align-items: start;
}

.panel {
  background: #1a191e;
  border: 1px solid #403138;
  border-radius: 7px;
  padding: 28px;
}

.panel h3 {
  font-size: 20px;
  letter-spacing: -.04em;
  margin: 0 0 18px;
}

/* Títulos pequeños del panel en vivo */
.panel .list-title,
.panel .playlist-title {
  margin-bottom: 12px;
}

.panel .list-title {
  font-size: 15px;
}

.panel .playlist-title {
  font-size: 19px;
}

/* Formulario */
.field {
  margin-bottom: 20px;
}

label.field-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 850;
  letter-spacing: .1em;
  margin: 0 0 9px;
}

.field-hint {
  color: #b9aeb2;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

input[type=text], input[type=email], input[type=tel], textarea, select {
  border: 1px solid #5c4449;
  border-radius: 3px;
  background: #0e0d10;
  color: #fff;
  width: 100%;
  padding: 13px 12px;
  outline: 0;
  transition: border-color .18s;
}

input:focus, textarea:focus, select:focus {
  border-color: #fa6268;
}

textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

/* Opciones: radios ocultos + etiquetas con aspecto de botón (sin JS) */
.choices {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.choice-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.choice {
  border: 1px solid #534044;
  background: #111014;
  color: #eee4e2;
  border-radius: 3px;
  padding: 10px 13px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}

.choice:hover {
  border-color: #8a565d;
}

.choice-input:checked + .choice {
  border-color: var(--red);
  background: #5e242c;
  color: #fff;
}

.choice-input:focus-visible + .choice {
  outline: 2px solid #fa6268;
  outline-offset: 2px;
}

.note {
  color: var(--dim);
  font-size: 12px;
  line-height: 1.5;
  margin: 8px 0 0;
}

/* Variantes de márgenes de las notas */
.form-note {
  margin-top: 18px;
}

.live-status {
  margin-top: 0;
}

.soundtrack-note {
  margin-top: 24px;
}

.error {
  color: #ff9c9c;
  font-size: 12px;
  min-height: 16px;
  margin-top: 9px;
  font-weight: 600;
}

/* Marcador en vivo */
.counter {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 19px;
}

.big-number {
  font-size: 75px;
  font-weight: 1000;
  line-height: 1;
  letter-spacing: -.08em;
  color: var(--red);
}

.count-label {
  margin-top: 4px;
  font-weight: 700;
}

.count-emoji {
  font-size: 40px;
  line-height: 1;
}

/* Segundo número del marcador, alineado a la derecha */
.counter-side {
  text-align: right;
}

/* Botones "ver todos" y "volver" debajo de las listas */
.btn-more {
  margin-top: 20px;
}

/* Campo trampa antispam: fuera de la vista de las personas */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.soundtrack {
  border-top: 1px solid #ffffff22;
  margin-top: 28px;
  padding-top: 24px;
}

.people {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.people li {
  font-size: 12px;
  background: #32242a;
  padding: 8px 11px;
  border: 1px solid #5a373d;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.people li.empty {
  background: transparent;
  border: 0;
  padding: 0;
  color: #999095;
  font-size: 13px;
  font-weight: 400;
}

/* Colores del amigo invisible: 🎁 de la portada y etiqueta de la lista completa */
.secret-badge,
.tag-yes {
  background: #fa484f26;
  border: 1px solid #fa484f66;
  color: #ffb8bc;
}

.secret-badge {
  font-size: 11px;
  padding: 1px 5px;
  border-radius: 3px;
  line-height: 1.2;
}

.empty {
  color: #999095;
  font-size: 13px;
}

.song {
  padding: 12px 0;
  border-bottom: 1px solid #ffffff1a;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.song:last-child {
  border-bottom: 0;
}

.song span {
  word-break: break-word;
}

.song small {
  color: var(--dim);
}

.song small,
.tag {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Etiqueta "sin amigo invisible" en la lista completa */
.tag-no {
  background: transparent;
  border: 1px solid #ffffff22;
  color: var(--dim);
}

/* Reglas */
.rule {
  display: flex;
  gap: 13px;
  padding: 16px 0;
  border-bottom: 1px solid #fff2;
}

.rule:first-child {
  padding-top: 4px;
}

.rule:last-child {
  border-bottom: 0;
  padding-bottom: 4px;
}

.rule b {
  color: var(--red);
  font-weight: 1000;
}

.rule p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.rule p b {
  color: var(--cream);
  font-weight: 800;
}

/* Countdown */
.countdown {
  display: flex;
  gap: 8px;
  margin-top: 26px;
}

/* Cajas del contador y aviso final comparten el mismo aspecto */
.timebox,
.countdown-done {
  background: #2c1a21;
  border: 1px solid #5f3039;
  padding: 14px 10px;
  text-align: center;
  min-width: 76px;
  border-radius: 4px;
}

.timebox strong,
.countdown-done strong {
  font-size: 29px;
  letter-spacing: -.05em;
  display: block;
  font-weight: 900;
}

.timebox small,
.countdown-done small {
  font-size: 9px;
  letter-spacing: .1em;
  color: var(--dim);
  margin-top: 4px;
  display: block;
}

/* Aviso cuando la cuenta atrás llega a cero */
.countdown-done {
  display: inline-block;
  margin-top: 26px;
  padding: 14px 22px;
}

.countdown-done strong {
  color: var(--red);
}

.is-hidden {
  display: none;
}

/* Footer */
.footer {
  margin-top: 90px;
  padding: 26px 0 35px;
  border-top: 1px solid #fff2;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--dim);
}

/* Modal Ticket Perforado */
.ticketview {
  position: fixed;
  inset: 0;
  background: #070709ef;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  overflow-y: auto;
}

.ticketview.show {
  display: flex;
}

.ticket {
  max-width: 440px;
  width: 100%;
  background: #1f161b;
  border: 1px solid #9a3d46;
  position: relative;
  padding: 30px 30px 24px;
  box-shadow: 0 20px 100px #000;
  border-radius: 4px;
}

.ticket:before, .ticket:after {
  content: "";
  width: 24px;
  height: 24px;
  position: absolute;
  border-radius: 50%;
  background: #09090b;
  top: 66%;
  border: 1px solid #9a3d46;
}

.ticket:before {
  left: -14px;
}

.ticket:after {
  right: -14px;
}

.ticket-kicker {
  font-size: 11px;
  letter-spacing: .17em;
  color: #ffa0a6;
  font-weight: 900;
}

.ticket-title {
  font-size: 49px;
  line-height: .9;
  letter-spacing: -.065em;
  font-weight: 1000;
  margin: 24px 0 5px;
}

.ticket-title span {
  color: var(--red);
  display: block;
}

.ticket-sub {
  letter-spacing: .16em;
  font-size: 10px;
  color: #aaa;
  margin: 4px 0 0;
}

.person {
  font-size: 24px;
  font-weight: 900;
  overflow-wrap: anywhere;
  margin-top: 4px;
}

.ticket-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.t-badge,
.tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 3px;
}

.t-badge {
  background: #352127;
  border: 1px solid #743940;
  color: #ffd7d9;
}

.ticket hr {
  border: 0;
  border-top: 2px dashed #955057;
  margin: 26px 0 20px;
}

.ticketbottom {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 12px;
  gap: 10px;
}

.ticket-action {
  margin-top: 16px;
}

.ticket-note {
  text-align: center;
  margin-top: 10px;
}

.close {
  position: absolute;
  right: 15px;
  top: 12px;
  background: transparent;
  color: white;
  border: 0;
  font-size: 26px;
  line-height: 1;
  padding: 4px 8px;
  text-decoration: none;
}

.ticket-msg {
  color: #d5b8bc;
  font-size: 13px;
  line-height: 1.5;
  margin: 12px 0 0;
}

/* Responsive */
@media (max-width: 750px) {
  .wrap {
    padding: 0 18px;
  }
  .hero {
    min-height: auto;
    padding: 48px 0 45px;
  }
  /* 18px de margen lateral - 130px = misma posición que antes */
  .hero:before {
    right: -112px;
  }
  h1 {
    font-size: clamp(66px, 16vw, 105px);
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat {
    border: 0;
    padding: 8px 0;
  }
  .two {
    grid-template-columns: 1fr;
  }
  .section {
    padding-top: 52px;
  }
  .panel {
    padding: 22px;
  }
  .chip {
    font-size: 9px;
    padding: 6px 10px;
  }
  .countdown {
    flex-wrap: wrap;
  }
  .timebox {
    flex: 1 1 70px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}
