/* ===================================================
   GABRIEL BENCOMPTE — design tokens (del cartell GabGabGab)
   ink    #141018  gris quasi negre — fons principal
   paper  #F5F3EF  blanc trencat — seccions clares
   blue   #2F4BFF  neó blau
   green  #39D659  neó verd
   red    #FF3B3B  neó vermell
   =================================================== */

:root{
  --ink: #141018;
  --ink-2: #1C1720;
  --paper: #F5F3EF;
  --blue: #2F4BFF;
  --green: #39D659;
  --red: #FF3B3B;

  --display: 'Anton', system-ui, sans-serif;
  --body: 'Work Sans', system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; overflow-x: hidden; }

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a{ color: inherit; }

:focus-visible{
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html{ scroll-behavior: auto; }
}

.grain{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===================== HERO ===================== */

.hero{
  position: relative;
  min-height: 100svh;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 1.5rem clamp(1.25rem, 5vw, 4rem) 4rem;
}

.spotlight{
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.28;
  pointer-events: none;
}
.spotlight--a{
  width: 42vw; height: 42vw; max-width: 560px; max-height: 560px;
  background: var(--blue);
  top: -10%; right: -8%;
  animation: drift-a 14s ease-in-out infinite;
}
.spotlight--b{
  width: 30vw; height: 30vw; max-width: 420px; max-height: 420px;
  background: var(--red);
  bottom: -8%; left: 2%;
  opacity: 0.22;
  animation: drift-b 18s ease-in-out infinite;
}
@keyframes drift-a{
  0%,100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(-4%, 6%) scale(1.08); }
}
@keyframes drift-b{
  0%,100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(5%, -6%) scale(1.1); }
}

.topnav{
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  row-gap: 0.5rem;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.25rem);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-top: 0.5rem;
}
.topnav__brand{
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.2rem;
  margin-right: auto;
  letter-spacing: 0.03em;
}
.topnav a{
  text-decoration: none;
  opacity: 0.8;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: opacity .2s, border-color .2s, color .2s;
}
.topnav a:hover{ opacity: 1; border-color: var(--green); color: var(--green); }

.hero__content{
  position: relative;
  z-index: 2;
  margin: auto 0 0;
}

.hero__photo{
  width: 68px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  border-radius: 16px;
  display: block;
  margin: 0 auto 1.5rem;
  filter: grayscale(0.1) contrast(1.05);
  box-shadow: 0 8px 24px rgba(47,75,255,0.35);
  -webkit-mask-image: radial-gradient(circle at 50% 42%, #000 55%, transparent 100%);
  mask-image: radial-gradient(circle at 50% 42%, #000 55%, transparent 100%);
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  z-index: 0;
  filter: grayscale(0.35) brightness(0.6) contrast(1.15);
}

@media (min-width: 901px){
  .hero__photo{
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 60%;
    height: auto;
    aspect-ratio: auto;
    margin: 0;
    z-index: 0;
    border-radius: 0;
    object-fit: cover;
    object-position: center 20%;
    filter: grayscale(0.35) brightness(0.55) contrast(1.15);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 18%, #000 42%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 18%, #000 42%);
    box-shadow: none;
  }
  .hero__content{
    max-width: 640px;
    padding-right: 0;
  }
}

/* layered neon title, inspirat en el cartell GabGabGab */
.hero__title{
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.82;
  flex: 1;
  min-width: 0;
}
.stack{
  position: relative;
  display: block;
  height: clamp(3.6rem, 15vw, 9.5rem);
}
.stack--sub{ height: clamp(1.9rem, 8vw, 5rem); margin-top: 0.35em; }
.stack__layer{
  position: absolute;
  inset: 0;
  font-size: clamp(3.6rem, 15vw, 9.5rem);
  white-space: nowrap;
  mix-blend-mode: screen;
}
.stack--sub .stack__layer{ font-size: clamp(1.9rem, 8vw, 5rem); }
.stack__layer--blue{ color: var(--blue); transform: translate(0, 0); }
.stack__layer--green{ color: var(--green); transform: translate(0.05em, 0.16em); }
.stack__layer--red{ color: var(--red); transform: translate(0.1em, 0.32em); }

.hero__cta{
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.4rem;
}

.btn{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn--solid{
  background: var(--green);
  color: var(--ink);
}
.btn--solid:hover{ transform: translateY(-2px); box-shadow: 0 10px 24px rgba(57,214,89,0.3); }

.btn--ghost{
  background: transparent;
  color: var(--paper);
  border: 1.5px solid rgba(245,243,239,0.35);
}
.btn--ghost:hover{ border-color: var(--blue); color: var(--blue); }

.btn--outline-light{
  background: transparent;
  color: var(--paper);
  border: 1.5px solid var(--red);
}
.btn--outline-light:hover{ background: var(--red); color: var(--paper); }

/* ===================== SECTIONS ===================== */

.section{
  padding: clamp(3.5rem, 9vw, 7rem) clamp(1.25rem, 5vw, 4rem);
}
.section--paper{ background: var(--paper); }
.section--ink{ background: var(--ink-2); color: var(--paper); }
.section--blue{ background: var(--blue); color: var(--paper); }

.barri{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.2rem, 4vw, 2.2rem);
  flex-wrap: wrap;
}
.barri__logo{
  width: clamp(84px, 12vw, 130px);
  height: clamp(84px, 12vw, 130px);
  border-radius: 50%;
  background: var(--paper);
  padding: 8px;
  flex: none;
  box-shadow: 0 10px 24px rgba(0,0,0,0.2);
}
.barri .section__title{ margin-bottom: 1rem; }

.section__title{
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin: 0 0 1.4rem;
  letter-spacing: 0.01em;
}
.section__title--light{ color: var(--paper); }

/* ===================== SPECIAL (GabGabGab) ===================== */

.special{
  display: grid;
  grid-template-columns: minmax(240px, 380px) 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  max-width: 1000px;
}
.special__poster-col{
  display: grid;
  gap: 1.4rem;
}
.special__poster{
  width: 100%;
  border-radius: 10px;
  display: block;
}
.special__links{
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.reviews{
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

@media (max-width: 760px){
  .special{ grid-template-columns: 1fr; }
}
.reviews blockquote{
  margin: 0;
  padding: 1.1rem 1.3rem;
  border-left: 3px solid var(--green);
  background: rgba(245,243,239,0.05);
  border-radius: 0 8px 8px 0;
}
.reviews blockquote strong{
  display: block;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}
.reviews blockquote p{
  margin: 0;
  font-style: italic;
  font-size: 0.92rem;
  opacity: 0.9;
  line-height: 1.5;
}
.reviews blockquote cite{
  display: block;
  margin-top: 0.6rem;
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.76rem;
  opacity: 0.6;
}

/* ===================== VIDEO CARD ===================== */

.watch-card{
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: #FF0000;
  color: #fff;
  border-radius: 22px;
  padding: 1.6rem 1.8rem;
  text-decoration: none;
  max-width: 720px;
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.watch-card:hover{ transform: translateY(-3px) rotate(-0.3deg); box-shadow: 0 16px 34px rgba(255,0,0,0.4); }
.watch-card__play{
  flex: none;
  width: 66px; height: 48px;
  border-radius: 12px;
  background: #fff;
  color: #FF0000;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.watch-card__text{
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.watch-card__brand{
  font-family: var(--display);
  color: #fff;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
}
.watch-card__channel{
  font-family: var(--mono);
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  font-weight: 700;
}
.watch-card__arrow{
  margin-left: auto;
  font-size: 1.6rem;
  color: #fff;
  flex: none;
}

/* ===================== TICKETS (Sheet-driven agenda) ===================== */

.tickets{
  display: grid;
  gap: 1.1rem;
  max-width: 760px;
}

.tickets__loading, .tickets__empty, .tickets__error{
  font-family: var(--mono);
  font-size: 0.9rem;
  color: #8a8290;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.tickets__error a{ color: var(--blue); }

.dot{
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red);
  display: inline-block;
  animation: pulse 1.2s ease-in-out infinite;
}
.dot:nth-child(2){ animation-delay: .15s; }
.dot:nth-child(3){ animation-delay: .3s; }
@keyframes pulse{
  0%,100%{ opacity: .25; transform: scale(0.8); }
  50%{ opacity: 1; transform: scale(1); }
}

.ticket{
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  background: #fff;
  border: 1.5px solid #E4E1DA;
  border-radius: 16px;
  padding: 1.3rem 1.5rem;
  box-shadow: 0 1px 0 rgba(20,16,24,0.04);
}
.ticket::before, .ticket::after{
  content: "";
  position: absolute;
  width: 22px; height: 22px;
  background: var(--paper);
  border: 1.5px solid #E4E1DA;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}
.ticket::before{ left: -11px; }
.ticket::after{ right: -11px; }

.ticket__date{
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1rem;
  color: var(--paper);
  background: var(--ink);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  text-align: center;
  line-height: 1.15;
  min-width: 3.6rem;
}
.ticket__info{ min-width: 0; }
.ticket__place{
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.15rem;
  margin: 0 0 0.25rem;
  overflow-wrap: break-word;
}
.ticket__meta{
  font-family: var(--body);
  font-size: 0.88rem;
  color: #6f6876;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}
.ticket__badge{
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: var(--blue);
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
  text-decoration: none;
  justify-self: end;
}
.ticket__badge:hover{ background: var(--red); }

@media (max-width: 560px){
  .ticket{ grid-template-columns: auto 1fr; }
  .ticket__badge{ grid-column: 1 / -1; justify-self: start; margin-top: 0.4rem; }
}

/* ===================== GABTOK ===================== */

.hero--tok{
  min-height: auto;
  padding-bottom: 5rem;
}

.tok__content{
  position: relative;
  z-index: 2;
  margin: 3rem auto 0;
  max-width: 620px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}

.tok__title{
  margin: 0;
}
.tok__title .stack{
  position: relative;
  height: clamp(3rem, 12vw, 6.5rem);
}
.tok__title .stack__layer{
  position: absolute;
  inset: 0;
  font-family: var(--display);
  font-size: clamp(2.6rem, 12vw, 6.5rem);
  white-space: nowrap;
  mix-blend-mode: screen;
}

.tok__slot{
  width: 100%;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tok__loading, .tok__empty{
  font-family: var(--mono);
  font-size: 0.9rem;
  color: rgba(245,243,239,0.7);
  line-height: 1.6;
}
.tok__empty a{ color: var(--green); }

.tok__shuffle{
  font-size: 1.05rem;
}

.tok__profile{
  font-family: var(--mono);
  font-size: 0.85rem;
  color: rgba(245,243,239,0.7);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.tok__profile:hover{ color: var(--green); border-color: var(--green); }

/* ===================== FOOTER ===================== */

.footer{
  background: var(--ink);
  color: var(--paper);
  padding: 2.2rem clamp(1.25rem, 5vw, 4rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem;
  font-family: var(--mono);
  font-size: 0.82rem;
}
.footer__brand{
  font-family: var(--display);
  font-weight: 400;
  margin-right: auto;
  letter-spacing: 0.02em;
}
.footer a{ text-decoration: none; opacity: 0.85; }
.footer a:hover{ opacity: 1; color: var(--green); }
