/* ==========================================================
   Cunit Music Festival 2027 — landing
   ========================================================== */

@font-face { font-family: "Blauer Nue"; src: url("../fonts/BlauerNue-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Blauer Nue"; src: url("../fonts/BlauerNue-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Blauer Nue"; src: url("../fonts/BlauerNue-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --violet: #703df9;
  --coral: #fe5733;
  --black: #000;
  --white: #fff;
  --gutter: clamp(16px, 2.1vw, 26px);
  --inner: clamp(20px, 4.8vw, 62px);
  --h-xl: clamp(44px, 7.8vw, 100px);
  --h-md: clamp(22px, 4.3vw, 55px);
  --body: clamp(16px, 1.72vw, 22px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Blauer Nue", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300;
  font-size: var(--body);
  line-height: 1.35;
  color: var(--white);
  background: var(--violet) linear-gradient(180deg, var(--violet) 0%, var(--coral) 50%, var(--violet) 100%);
  -webkit-font-smoothing: antialiased;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: var(--gutter); z-index: 10; background: #000; padding: 8px 12px; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  margin: var(--gutter) var(--gutter) 0;
  height: min(60vw, calc(100svh - 2 * var(--gutter)));
  min-height: 520px;
  overflow: hidden;
  background: #000;
  isolation: isolate;
}
.hero__media {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.hero::after { /* legibilidad de los textos */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 28%),
    linear-gradient(0deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,0) 38%);
}
.hero__top, .hero__bottom {
  position: absolute; left: var(--inner); right: var(--inner);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.hero__top { top: clamp(20px, 3vw, 36px); }
.hero__bottom { bottom: clamp(24px, 3.4vw, 44px); align-items: flex-end; }
.hero__logo { width: clamp(140px, 15vw, 196px); height: auto; }
.hero__year, .hero__dates, .hero__cta {
  font-size: var(--h-md); font-weight: 300; line-height: 1; letter-spacing: .01em; margin: 0;
}
.hero__cta {
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .14em;
  text-transform: uppercase; white-space: nowrap;
  transition: opacity .2s;
}
.hero__cta:hover { opacity: .8; }

/* ---------- ARTISTA ---------- */
.artist {
  display: grid; grid-template-columns: 1fr 1fr;
  margin: var(--gutter) var(--gutter) 0;
}
.artist__info {
  background: rgba(255, 255, 255, .2);
  padding: clamp(28px, 4.4vw, 56px) var(--inner) clamp(28px, 4vw, 48px);
}
.artist__name { font-size: var(--h-xl); font-weight: 300; line-height: .9; text-transform: uppercase; margin: 0 0 6px; }
.artist__tag { font-size: clamp(16px, 2.35vw, 30px); font-weight: 300; text-transform: uppercase; margin: 0 0 clamp(32px, 5.5vw, 70px); line-height: 1.1; }
.artist__bio p { margin: 0 0 1.35em; text-align: justify; hyphens: auto; }
.artist__bio p:last-child { margin-bottom: 0; }
.artist__bio strong { font-weight: 500; }
.artist { min-height: clamp(520px, 46vw, 720px); }
.artist__poster { margin: 0; overflow: hidden; position: relative; }
.artist__poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }

/* ---------- SECCIONES ---------- */
.section { padding: clamp(72px, 10vw, 140px) var(--inner); max-width: 1280px; margin: 0 auto; }
.h-xl {
  font-size: var(--h-xl); font-weight: 300; line-height: .92; letter-spacing: .005em;
  text-transform: uppercase; margin: 0 0 clamp(28px, 4vw, 52px);
}
.prose p { margin: 0; text-align: justify; hyphens: auto; }

/* ---------- ENTRADAS ---------- */
.tickets { text-align: center; }
.tickets .h-xl { margin-bottom: clamp(28px, 4vw, 48px); }
.tickets__box {
  background: var(--black); text-align: left;
  padding: clamp(24px, 3.4vw, 44px) clamp(20px, 3.4vw, 44px);
  font-size: clamp(15px, 1.6vw, 20px); font-weight: 500;
}
.tickets__table { width: 100%; border-collapse: collapse; }
.tickets__table th { font-weight: 500; text-align: left; padding: 0 0 18px; }
.tickets__table td { padding: 14px 0; border-top: 1px solid rgba(255,255,255,.12); vertical-align: middle; }
.tickets__table tbody tr:first-child td { border-top: 0; }
.tickets__table .price small { font-size: .7em; font-weight: 300; }
.tickets__table .col-buy { width: 1%; text-align: right; }
.btn {
  display: inline-block; padding: 10px 22px;
  background: #ebeaf0; color: #222; border-radius: 3px;
  font: 500 clamp(15px, 1.6vw, 20px)/1.2 "Blauer Nue", system-ui, sans-serif;
  text-decoration: none; white-space: nowrap; transition: background .2s;
}
.btn:hover { background: var(--white); }
.btn-xl {
  display: inline-block;
  padding: clamp(18px, 2.4vw, 30px) clamp(36px, 6vw, 84px);
  background: var(--white); color: var(--black);
  border-radius: 999px;
  font: 400 var(--h-md)/1 "Blauer Nue", system-ui, sans-serif;
  text-transform: uppercase; text-decoration: none; letter-spacing: .01em;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .18);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn-xl:hover { background: var(--black); color: var(--white); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .btn-xl, .btn-xl:hover { transition: none; transform: none; } }

/* ---------- GALERÍA ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); }
.gallery img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- FOOTER ---------- */
.footer {
  min-height: clamp(380px, 52vw, 674px);
  padding: clamp(40px, 5vw, 54px) var(--inner) clamp(28px, 3vw, 40px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
}
.footer__cu { width: clamp(110px, 12vw, 152px); height: auto; }

.sponsors {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  gap: clamp(32px, 4.5vw, 72px) clamp(40px, 6vw, 96px);
  padding-bottom: clamp(28px, 3vw, 40px);
  border-bottom: 1px solid rgba(255, 255, 255, .25);
}
.sponsor { display: block; height: auto; }
.sponsor img { display: block; width: 100%; height: auto; }
.sponsor--lineup   { width: clamp(130px, 13vw, 180px); }
.sponsor--cunit    { width: clamp(105px, 10vw, 140px); }
.sponsor--estrella { width: clamp(66px, 6vw, 84px); }
.sponsor--negrita  { width: clamp(110px, 10.5vw, 145px); margin-bottom: 8px; }
.sponsor--icec     { width: clamp(220px, 24vw, 340px); }
.sponsor-group__label { margin: 0 0 14px; font-size: 14px; font-weight: 400; letter-spacing: .02em; opacity: .9; }
.sponsor-group__logos { display: flex; flex-wrap: wrap; align-items: center; gap: 24px clamp(32px, 4vw, 56px); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 32px; font-size: 15px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { text-decoration: underline; }
.footer__copy { margin: 0; opacity: .85; }

/* ---------- PÁGINAS LEGALES ---------- */
.legal-header { padding: var(--gutter) var(--inner); }
.legal-header a { display: inline-block; }
.legal { max-width: 860px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--inner) clamp(80px, 10vw, 140px); font-size: 17px; line-height: 1.6; }
.legal h1 { font-size: clamp(36px, 6vw, 72px); font-weight: 300; line-height: .95; text-transform: uppercase; margin: 0 0 40px; }
.legal h2 { font-size: 22px; font-weight: 500; margin: 40px 0 12px; }
.legal p, .legal li { font-weight: 300; }
.legal strong { font-weight: 500; }

/* ---------- MÓVIL ---------- */
@media (max-width: 720px) {
  .hero { height: calc(100svh - 2 * var(--gutter)); min-height: 520px; max-height: 760px; }
  .hero__bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero__dates, .hero__year { font-size: 26px; }
  .hero__cta { font-size: 25px; }
  .prose p, .artist__bio p { text-align: left; }
  .artist { grid-template-columns: 1fr; }
  .artist__poster { order: -1; }
  .artist { min-height: 0; }
  .artist__poster img { position: static; height: auto; aspect-ratio: 4 / 5; }
  .tickets__table thead { display: none; }
  .tickets__table tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.12); }
  .tickets__table tbody tr:first-child { border-top: 0; }
  .tickets__table td { border: 0; padding: 0; }
  .tickets__table td:first-child { grid-column: 1 / -1; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .sponsors { gap: 36px 40px; }
}
