/* ----------------------------------------------------------
   MES DEL CUARTETO · Almenara × Museo del Cuarteto
   Identity: cálida, festiva, terrosa — guiño al cuarteto cordobés
   ---------------------------------------------------------- */

:root {
  --bg:        #0E0A08;
  --bg-soft:   #18110D;
  --bg-elev:   #1F1612;
  --paper:     #F4ECDD;
  --paper-2:   #E8DEC9;
  --ink:       #0E0A08;
  --ink-soft:  rgba(14, 10, 8, 0.72);
  --line:      rgba(244, 236, 221, 0.12);
  --line-ink:  rgba(14, 10, 8, 0.12);

  --red:       #C8102E;
  --red-deep:  #7A0B1E;
  --gold:      #E8B547;
  --gold-deep: #B68423;
  --hot:       #FF3D6E;
  --cream:     #F4ECDD;

  --radius:    14px;
  --radius-lg: 22px;
  --shadow-1:  0 1px 2px rgba(0,0,0,.18), 0 8px 24px -6px rgba(0,0,0,.35);
  --shadow-2:  0 2px 4px rgba(0,0,0,.22), 0 24px 48px -12px rgba(0,0,0,.55);

  --font-display: "Bebas Neue", "Inter", system-ui, sans-serif;
  --font-serif:   "Fraunces", Georgia, serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --max:       1180px;
  --max-narrow: 820px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--paper);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: var(--max-narrow); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 20px;
  padding: 6px 12px;
  border: 1px solid rgba(232, 181, 71, 0.35);
  border-radius: 999px;
  background: rgba(232, 181, 71, 0.06);
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 32px;
  color: var(--paper);
  max-width: 22ch;
}
.section-title em {
  font-style: italic;
  color: var(--gold);
}

/* ============================ NAV ============================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(14, 10, 8, 0.65);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.06em;
  color: var(--paper);
}
.nav__brand:hover { text-decoration: none; }
.nav__brand-mark {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--gold), var(--red) 60%, var(--red-deep));
  box-shadow: 0 0 0 2px rgba(232,181,71,0.18);
}
.nav__brand-text { line-height: 1; padding-top: 2px; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  color: rgba(244, 236, 221, 0.72);
}
.nav__links a:hover { color: var(--paper); text-decoration: none; }
.nav__cta {
  background: var(--gold);
  color: var(--ink) !important;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform .15s ease, background .15s ease;
}
.nav__cta:hover { background: #f3c660; transform: translateY(-1px); text-decoration: none; }

@media (max-width: 720px) {
  .nav__links a:not(.nav__cta) { display: none; }
}

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

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(80px, 14vw, 160px) 0 clamp(60px, 10vw, 120px);
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg-gradient {
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(200, 16, 46, 0.32), transparent 60%),
    radial-gradient(900px 600px at 90% 0%, rgba(232, 181, 71, 0.18), transparent 60%),
    linear-gradient(180deg, #1A0F0B 0%, #0E0A08 70%);
}
.hero__bg-spot {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .4;
}
.hero__bg-spot--1 { width: 420px; height: 420px; top: -80px; right: -80px; background: var(--red); }
.hero__bg-spot--2 { width: 380px; height: 380px; bottom: -120px; left: -80px; background: var(--gold-deep); opacity: .25; }
.hero__bg-grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.96  0 0 0 0 0.93  0 0 0 0 0.87  0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.18'/></svg>");
  mix-blend-mode: overlay;
  opacity: .35;
}

.hero__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.hero__copartners {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(244, 236, 221, 0.05);
  font-size: 13px;
  letter-spacing: 0.02em;
  margin-bottom: 36px;
  color: rgba(244, 236, 221, 0.85);
}
.copartner { font-weight: 600; }
.copartner-x { color: var(--gold); opacity: 0.6; }
.copartner--logo { display: inline-flex; align-items: center; padding: 0 2px; }
.copartner--logo img {
  height: 18px;
  width: auto;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25));
}

.hero__title {
  font-family: var(--font-display);
  margin: 0 0 32px;
  line-height: 0.92;
  color: var(--paper);
}
.hero__title-line { display: block; }
.hero__title-line--small {
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-weight: 500;
}
.hero__title-line--big {
  font-size: clamp(64px, 11vw, 140px);
  letter-spacing: 0.005em;
}
.hero__title-line--huge {
  font-size: clamp(80px, 16vw, 220px);
  letter-spacing: -0.01em;
  background: linear-gradient(180deg, #FFE7AA 0%, var(--gold) 40%, var(--red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--font-serif);
  font-weight: 800;
  font-style: italic;
}

.hero__lead {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.45;
  color: rgba(244, 236, 221, 0.85);
  max-width: 60ch;
  margin: 0 0 28px;
}

.hero__pills {
  display: flex; flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}
.pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(244, 236, 221, 0.04);
  font-size: 13px;
  color: rgba(244, 236, 221, 0.85);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 56px;
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero__meta-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 236, 221, 0.5);
  margin-bottom: 6px;
}
.hero__meta-value {
  display: block;
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--paper);
}

/* ============================ BUTTONS ============================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn--primary {
  background: var(--red);
  color: var(--paper);
  box-shadow: 0 8px 24px -8px rgba(200, 16, 46, 0.55);
}
.btn--primary:hover { background: #e02743; }

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: rgba(244,236,221,0.4); background: rgba(244,236,221,0.04); }

.btn--block { width: 100%; padding: 18px 22px; font-size: 16px; }

/* ============================ INTRO ============================ */

.intro {
  background: var(--bg);
  padding: clamp(60px, 8vw, 100px) 0;
  border-top: 1px solid var(--line);
}
.intro__text {
  font-family: var(--font-serif);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.55;
  color: rgba(244, 236, 221, 0.78);
  max-width: 70ch;
  margin: 0;
}

/* ============================ MARQUEE ============================ */

.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 14px 0;
  background: var(--gold);
  color: var(--ink);
  border-top: 1px solid rgba(14,10,8,0.18);
  border-bottom: 1px solid rgba(14,10,8,0.18);
  z-index: 10;
}
.marquee--alt {
  background: var(--red);
  color: var(--paper);
  border-color: rgba(244,236,221,0.18);
}
.marquee__track {
  display: inline-flex;
  white-space: nowrap;
  animation: marqueeScroll 28s linear infinite;
  will-change: transform;
}
.marquee__track--reverse { animation-direction: reverse; }
.marquee__item {
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ============================ STICKERS ============================ */

.sticker {
  position: absolute;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--gold);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 50%;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  line-height: 1;
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
  z-index: 5;
}
.sticker--hero {
  width: 168px;
  height: 168px;
  right: -10px;
  top: 90px;
  transform: rotate(-12deg);
  padding: 14px;
  animation: stickerWobble 4s ease-in-out infinite;
}
.sticker__top, .sticker__bottom {
  font-size: 14px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sticker__big {
  font-size: 48px;
  margin: 4px 0;
  letter-spacing: 0;
}
@keyframes stickerWobble {
  0%, 100% { transform: rotate(-12deg) translateY(0); }
  50%      { transform: rotate(-9deg)  translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  .sticker { animation: none; }
}
@media (max-width: 900px) {
  .sticker--hero { width: 130px; height: 130px; right: -20px; top: 50px; }
  .sticker__big  { font-size: 42px; }
  .sticker__top, .sticker__bottom { font-size: 11px; }
}
@media (max-width: 640px) {
  .sticker--hero { width: 110px; height: 110px; right: 10px; top: -10px; }
  .sticker__big  { font-size: 34px; }
}

/* ============================ PREMIOS FEATURE ============================ */

.premios-feature {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, #1A0E13 0%, #14080E 50%, var(--bg) 100%);
  padding: clamp(80px, 12vw, 140px) 0 clamp(70px, 10vw, 120px);
}
.premios-feature__bg { position: absolute; inset: 0; z-index: -1; }
.spotlight {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}
.spotlight--a {
  width: 520px; height: 520px;
  background: var(--hot);
  top: -120px; left: -80px;
  opacity: 0.28;
}
.spotlight--b {
  width: 420px; height: 420px;
  background: var(--gold);
  bottom: -100px; right: -80px;
  opacity: 0.20;
}
.halftone {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(244,236,221,0.06) 1.2px, transparent 1.5px);
  background-size: 18px 18px;
  mask-image: linear-gradient(180deg, transparent 0%, black 35%, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 35%, black 70%, transparent 100%);
  opacity: 0.7;
}
.eyebrow--light {
  background: rgba(244, 236, 221, 0.05);
  border-color: rgba(244, 236, 221, 0.2);
  color: var(--paper);
}
.premios-feature__head {
  max-width: 760px;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.premios-feature__title {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.94;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--paper);
}
.premios-feature__title-line1 { display: block; }
.premios-feature__title-line2 {
  display: block;
  font-style: italic;
  background: linear-gradient(90deg, var(--gold) 0%, var(--hot) 50%, var(--red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.premios-feature__lead {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
  color: rgba(244, 236, 221, 0.82);
  margin: 0;
  max-width: 60ch;
}

/* Premios deck — 3 al mismo nivel */
.premios-deck {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 960px) {
  .premios-deck { grid-template-columns: 1fr; gap: 14px; }
}

.premio {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 38px) clamp(24px, 2.6vw, 34px) clamp(28px, 3vw, 36px);
  background: linear-gradient(180deg, rgba(244,236,221,0.04) 0%, rgba(244,236,221,0.02) 100%);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.premio::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(420px 220px at 80% -10%, var(--premio-accent, var(--gold)), transparent 65%);
  opacity: 0.18;
}
.premio::after {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 3px;
  background: var(--premio-accent, var(--gold));
  border-radius: 0 0 6px 6px;
  opacity: 0.85;
}
.premio:hover {
  transform: translateY(-4px);
  border-color: var(--premio-accent, rgba(232,181,71,0.4));
  box-shadow: 0 28px 60px -28px rgba(0,0,0,0.6),
              0 0 0 1px var(--premio-accent, rgba(232,181,71,0.2)) inset;
}

.premio--museo    { --premio-accent: var(--gold); }
.premio--almenara { --premio-accent: var(--hot); }
.premio--difusion { --premio-accent: #FFC04D; }

.premio__icon {
  width: 76px;
  height: 76px;
  margin-bottom: 22px;
  color: var(--premio-accent, var(--gold));
}
.premio__icon svg { width: 100%; height: 100%; display: block; }

.premio__kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--premio-accent, var(--gold));
  margin-bottom: 12px;
  padding: 5px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: color-mix(in srgb, var(--premio-accent, var(--gold)) 8%, transparent);
}
.premio__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.15;
  color: var(--paper);
  margin: 0 0 14px;
  letter-spacing: -0.005em;
}
.premio__title em {
  font-style: italic;
  color: var(--premio-accent, var(--gold));
  font-weight: 700;
}
.premio__text {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(244, 236, 221, 0.74);
  margin: 0;
}

/* ============================ ORGANIZAN ============================ */

.organizan {
  background: var(--paper);
  color: var(--ink);
  padding: 36px 0;
  border-top: 1px solid rgba(14,10,8,0.06);
  border-bottom: 1px solid rgba(14,10,8,0.06);
}
.organizan__label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(14,10,8,0.5);
  margin: 0 0 18px;
  text-align: center;
}
.organizan__row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px 32px;
}
.organizan__partner { display: flex; align-items: center; }
.organizan__cordoba {
  height: 58px;
  width: auto;
  display: block;
}
.organizan__museo {
  height: 78px;
  width: auto;
  display: block;
}
.organizan__almenara {
  height: 84px;
  width: auto;
  display: block;
}
.organizan__divider {
  width: 1px;
  height: 50px;
  background: rgba(14,10,8,0.18);
}

@media (max-width: 720px) {
  .organizan__row { gap: 18px; }
  .organizan__divider { display: none; }
  .organizan__cordoba { height: 44px; }
  .organizan__museo { height: 60px; }
  .organizan__almenara { height: 68px; }
}

/* ============================ WALL SPEC ============================ */

.wall-spec {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  gap: 22px;
  align-items: start;
  margin-top: 14px;
  padding: 18px;
  background: rgba(232, 181, 71, 0.04);
  border: 1px solid rgba(232, 181, 71, 0.22);
  border-radius: 14px;
}
.wall-spec__diagram {
  padding: 16px 22px;
  background: rgba(14,10,8,0.4);
  border-radius: 10px;
}
.wall-spec__diagram svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.wall-spec__text {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(244,236,221,0.78);
}
.wall-spec__text p { margin: 0 0 10px; }
.wall-spec__text p:last-child { margin-bottom: 0; }
.wall-spec__text strong { color: var(--paper); font-weight: 600; }

@media (max-width: 720px) {
  .wall-spec { grid-template-columns: 1fr; gap: 16px; }
}

/* ============================ CARD PLAN LINK ============================ */

.card__plan-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--gold);
  border: 1px solid rgba(232,181,71,0.35);
  border-radius: 8px;
  background: rgba(232,181,71,0.06);
  transition: background .15s ease, border-color .15s ease;
}
.card__plan-link:hover {
  background: rgba(232,181,71,0.12);
  border-color: rgba(232,181,71,0.6);
  text-decoration: none;
}

/* ============================ HINT LINK ============================ */

.hint a {
  color: var(--gold);
  border-bottom: 1px dashed rgba(232,181,71,0.4);
}
.hint a:hover { text-decoration: none; border-bottom-color: var(--gold); }

/* ============================ CATEGORÍAS ============================ */

.categorias {
  background: var(--bg-soft);
  padding: clamp(60px, 9vw, 110px) 0;
  position: relative;
  overflow: hidden;
}
.categorias::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(800px 400px at 100% 0%, rgba(232,181,71,0.08), transparent 60%);
  pointer-events: none;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  position: relative;
}
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px 32px;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(232,181,71,0.35);
}
.card__index {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 16px;
}
.card__title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--paper);
}
.card__desc {
  color: rgba(244,236,221,0.72);
  margin: 0 0 18px;
  font-size: 15px;
}
.card__specs {
  list-style: none;
  margin: 0; padding: 0;
  font-size: 13.5px;
  color: rgba(244,236,221,0.72);
  border-top: 1px dashed var(--line);
  padding-top: 16px;
}
.card__specs li { padding: 4px 0; }
.card__specs strong { color: var(--paper); }

.card--mural::after, .card--foto::after, .card--film::after, .card--graf::after {
  content: "";
  position: absolute;
  width: 140px; height: 140px;
  border-radius: 50%;
  filter: blur(50px);
  opacity: .35;
  top: -40px; right: -40px;
  pointer-events: none;
}
.card--mural::after { background: var(--red); }
.card--foto::after  { background: var(--gold); opacity: .25; }
.card--film::after  { background: #6e3a86; }
.card--graf::after  { background: #2e7a6b; }

/* ============================ FECHAS ============================ */

.fechas {
  background: var(--bg);
  padding: clamp(60px, 9vw, 110px) 0;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
  position: relative;
}
.timeline__item {
  padding: 32px 24px;
  border: 1px solid var(--line);
  border-right: 0;
  position: relative;
  background: var(--bg-soft);
}
.timeline__item:first-child { border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.timeline__item:last-child  { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; border-right: 1px solid var(--line); }
@media (max-width: 800px) {
  .timeline__item { border-right: 1px solid var(--line); border-radius: 0; }
  .timeline__item:first-child { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .timeline__item:last-child  { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
}
.timeline__dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(232,181,71,0.15);
  margin-bottom: 18px;
}
.timeline__date {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 10px;
}
.timeline__title {
  font-family: var(--font-serif);
  font-size: 22px;
  margin: 0 0 8px;
  color: var(--paper);
  font-weight: 600;
}
.timeline__text {
  font-size: 14.5px;
  color: rgba(244,236,221,0.7);
  margin: 0;
}

/* ============================ PREMIOS ============================ */

.premios {
  background: var(--bg-soft);
  padding: clamp(60px, 9vw, 110px) 0;
}
.prize-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.prize {
  background: linear-gradient(180deg, rgba(232,181,71,0.06), rgba(232,181,71,0.0));
  border: 1px solid rgba(232,181,71,0.22);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: left;
}
.prize__icon { font-size: 36px; margin-bottom: 16px; }
.prize__title {
  font-family: var(--font-serif);
  font-size: 22px;
  margin: 0 0 8px;
  color: var(--paper);
  font-weight: 600;
}
.prize__text {
  margin: 0;
  font-size: 15px;
  color: rgba(244,236,221,0.72);
}

/* ============================ JURADO ============================ */

.jurado {
  background: var(--bg);
  padding: clamp(60px, 9vw, 110px) 0;
}
.jurors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.juror {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.juror--featured {
  background: linear-gradient(135deg, rgba(200,16,46,0.18), rgba(232,181,71,0.10));
  border-color: rgba(232,181,71,0.4);
}
.juror__avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--gold);
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.juror--featured .juror__avatar {
  background: var(--gold);
  color: var(--ink);
  border-color: transparent;
}
.juror__name {
  font-family: var(--font-serif);
  font-size: 18px;
  margin: 0 0 2px;
  color: var(--paper);
  font-weight: 600;
}
.juror__role {
  margin: 0;
  font-size: 13.5px;
  color: rgba(244,236,221,0.65);
}

/* ============================ BASES ============================ */

.bases {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(60px, 9vw, 110px) 0;
}
.bases .eyebrow {
  color: var(--red-deep);
  border-color: rgba(122,11,30,0.28);
  background: rgba(200,16,46,0.06);
}
.bases .section-title {
  color: var(--ink);
}
.bases .section-title em { color: var(--red); }
.bases__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-ink);
  border-left: 1px solid var(--line-ink);
}
.bases__item {
  padding: 28px 24px;
  border-right: 1px solid var(--line-ink);
  border-bottom: 1px solid var(--line-ink);
}
.bases__item h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  margin: 0 0 10px;
  font-weight: 600;
  color: var(--red-deep);
}
.bases__item p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ============================ FORM ============================ */

.form-section {
  background: var(--bg);
  padding: clamp(60px, 9vw, 110px) 0;
  border-top: 1px solid var(--line);
}
.form-section__lead {
  color: rgba(244,236,221,0.72);
  font-size: 15.5px;
  margin: -12px 0 36px;
}
.form {
  display: grid;
  gap: 24px;
}
.form__group {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 0;
}
.form__legend {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.14em;
  color: var(--gold);
  padding: 0 8px;
  margin-left: -8px;
  margin-bottom: 18px;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 640px) {
  .form__row { grid-template-columns: 1fr; }
}
.field {
  display: block;
  margin-bottom: 14px;
}
.field__label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(244,236,221,0.78);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--paper);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .15s ease, background .15s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(244,236,221,0.35); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: #211814;
  box-shadow: 0 0 0 3px rgba(232,181,71,0.18);
}
.field textarea { resize: vertical; min-height: 100px; }

.cond { display: none; padding-top: 4px; border-top: 1px dashed var(--line); margin-top: 12px; }
.cond.is-active { display: block; }
.hint {
  font-size: 13px;
  color: rgba(244,236,221,0.55);
  margin: 6px 0 4px;
}
.hint a { color: var(--gold); }

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: rgba(244,236,221,0.82);
  margin-bottom: 12px;
  cursor: pointer;
}
.check input {
  margin-top: 4px;
  accent-color: var(--gold);
  width: 16px; height: 16px;
}
.check a { color: var(--gold); text-decoration: underline; }

.form__feedback {
  margin: 16px 0 0;
  font-size: 14px;
  min-height: 22px;
}
.form__feedback.is-error { color: #ff7a8c; }
.form__feedback.is-success { color: #87e2a3; }

/* ============================ JURADO LEAD ============================ */

.jurado__lead {
  color: rgba(244,236,221,0.72);
  font-size: 15.5px;
  margin: -16px 0 32px;
  max-width: 60ch;
}

/* ============================ BASES DOWNLOADS ============================ */

.bases__downloads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.download-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: white;
  border: 1px solid rgba(14,10,8,0.12);
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.download-card:hover {
  transform: translateY(-2px);
  border-color: var(--red);
  background: #fff8ee;
  text-decoration: none;
}
.download-card__icon { font-size: 26px; line-height: 1; flex-shrink: 0; }
.download-card__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.download-card__body strong { font-weight: 600; font-size: 15px; }
.download-card__body span { font-size: 13px; color: var(--ink-soft); }

/* ============================ FORM SUBLEGEND ============================ */

.form__sublegend {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244,236,221,0.55);
  margin: 18px 0 10px;
}

/* ============================ BASES ACCEPT BUTTON ============================ */

.bases-accept {
  margin: 8px 0 14px;
}
.bases-accept__btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(232, 181, 71, 0.05);
  border: 1px dashed rgba(232, 181, 71, 0.45);
  color: var(--paper);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.bases-accept__btn:hover {
  background: rgba(232, 181, 71, 0.10);
  border-color: rgba(232, 181, 71, 0.7);
}
.bases-accept__icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}
.bases-accept__body { flex: 1; min-width: 0; }
.bases-accept__title {
  display: block;
  font-weight: 600;
  font-size: 15px;
  color: var(--paper);
  margin-bottom: 2px;
}
.bases-accept__hint {
  display: block;
  font-size: 13px;
  color: rgba(244,236,221,0.6);
  line-height: 1.4;
}
.bases-accept__state {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(255, 122, 140, 0.12);
  color: #ff7a8c;
  border: 1px solid rgba(255, 122, 140, 0.4);
}

.bases-accept.is-accepted .bases-accept__btn {
  background: rgba(135, 226, 163, 0.06);
  border-style: solid;
  border-color: rgba(135, 226, 163, 0.4);
}
.bases-accept.is-accepted .bases-accept__state {
  background: rgba(135, 226, 163, 0.14);
  color: #87e2a3;
  border-color: rgba(135, 226, 163, 0.4);
}
.bases-accept.is-accepted .bases-accept__hint {
  color: rgba(135, 226, 163, 0.85);
}

/* ============================ LINK HELP ============================ */

.link-help-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 6px 10px;
  background: rgba(232, 181, 71, 0.06);
  color: var(--gold);
  border: 1px solid rgba(232, 181, 71, 0.35);
  border-radius: 999px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.link-help-btn:hover {
  background: rgba(232, 181, 71, 0.14);
  border-color: rgba(232, 181, 71, 0.6);
}
.link-help-btn--inline {
  display: inline;
  margin: 0;
  margin-left: 4px;
  padding: 0;
  background: transparent;
  border: 0;
  text-decoration: underline;
  font-size: inherit;
}
.link-help-btn--inline:hover { background: transparent; color: var(--gold); }

.link-confirm {
  margin-top: 18px;
  padding: 18px 18px 14px;
  background: rgba(255, 122, 140, 0.06);
  border: 1px solid rgba(255, 122, 140, 0.32);
  border-radius: 14px;
}
.link-confirm[hidden] { display: none; }

.check--alert span { color: rgba(244,236,221,0.92); }
.check--alert strong { color: var(--paper); }

.howto {
  margin: 0 0 18px;
  padding-left: 22px;
  counter-reset: howto;
  list-style: none;
}
.howto li {
  position: relative;
  padding: 6px 0 6px 28px;
  margin-bottom: 4px;
  counter-increment: howto;
}
.howto li::before {
  content: counter(howto);
  position: absolute;
  left: -22px;
  top: 8px;
  width: 22px;
  height: 22px;
  background: var(--gold);
  color: var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
}
.howto a { color: var(--gold); text-decoration: underline; }

/* ============================ MODAL ============================ */

.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: modalFade .2s ease;
}
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 10, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal__panel {
  position: relative;
  width: 100%;
  max-width: 760px;
  max-height: min(86vh, 760px);
  display: flex;
  flex-direction: column;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-2);
  overflow: hidden;
  animation: modalIn .22s cubic-bezier(.2,.7,.3,1.1);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

.modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px 16px;
  border-bottom: 1px solid var(--line);
}
.modal__eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 6px;
}
.modal__title {
  font-family: var(--font-serif);
  font-size: 26px;
  margin: 0;
  color: var(--paper);
  font-weight: 600;
}
.modal__close {
  background: transparent;
  border: 1px solid var(--line);
  color: rgba(244,236,221,0.7);
  width: 36px; height: 36px;
  border-radius: 10px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s ease, color .15s ease;
}
.modal__close:hover { background: rgba(244,236,221,0.06); color: var(--paper); }

.modal__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 22px 26px 28px;
  scroll-behavior: smooth;
  scrollbar-color: rgba(244,236,221,0.25) transparent;
}
.modal__body::-webkit-scrollbar { width: 10px; }
.modal__body::-webkit-scrollbar-thumb {
  background: rgba(244,236,221,0.18);
  border-radius: 6px;
}
.modal__body::-webkit-scrollbar-thumb:hover { background: rgba(244,236,221,0.32); }

.legal {
  color: rgba(244,236,221,0.82);
  font-size: 14.5px;
  line-height: 1.65;
}
.legal__intro {
  font-family: var(--font-serif);
  font-size: 16px;
  color: rgba(244,236,221,0.92);
  border-left: 3px solid var(--gold);
  padding: 4px 0 4px 16px;
  margin: 0 0 22px;
}
.legal h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 18px;
  color: var(--paper);
  margin: 24px 0 8px;
}
.legal h3:first-of-type { margin-top: 0; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--paper); font-weight: 600; }
.legal__footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  text-align: center;
  font-style: italic;
  color: rgba(244,236,221,0.5);
  font-size: 13px;
}

.modal__footer {
  padding: 18px 26px 22px;
  border-top: 1px solid var(--line);
  background: rgba(8, 6, 10, 0.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.modal__status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  color: rgba(244,236,221,0.65);
  transition: color .2s ease;
}
.modal__status-icon {
  display: inline-flex;
  width: 22px; height: 22px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(232,181,71,0.18);
  color: var(--gold);
  font-size: 13px;
  transition: background .2s ease, color .2s ease;
}
.modal__status.is-ready { color: #87e2a3; }
.modal__status.is-ready .modal__status-icon {
  background: rgba(135, 226, 163, 0.18);
  color: #87e2a3;
}

.modal__actions {
  display: flex;
  gap: 10px;
}
.modal__actions .btn { padding: 12px 18px; font-size: 14.5px; }
.modal__actions .btn--primary:disabled {
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
  background: rgba(200, 16, 46, 0.4);
}
.modal__actions .btn--primary:disabled:hover { transform: none; background: rgba(200, 16, 46, 0.4); }

.modal-open { overflow: hidden; }

@media (max-width: 640px) {
  .modal { padding: 12px; }
  .modal__header, .modal__body, .modal__footer { padding-left: 18px; padding-right: 18px; }
  .modal__footer { flex-direction: column; align-items: stretch; }
  .modal__actions { width: 100%; }
  .modal__actions .btn { flex: 1; }
}

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

.footer {
  background: #08060A;
  color: rgba(244,236,221,0.65);
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
}
.footer__main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.footer__title {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.06em;
  color: var(--paper);
  margin-bottom: 2px;
}
.footer__sub { font-size: 13px; color: rgba(244,236,221,0.55); }
.footer__partners {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(244,236,221,0.85);
}
.footer__partner { font-weight: 500; }
.footer__sep { color: var(--gold); opacity: .6; }
.footer__partner--logo img {
  height: 36px;
  width: auto;
  display: block;
}
.footer__docs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.footer__doc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(244,236,221,0.04);
  font-size: 13.5px;
  color: var(--paper);
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.footer__doc:hover {
  background: rgba(232, 181, 71, 0.08);
  border-color: rgba(232, 181, 71, 0.4);
  text-decoration: none;
  transform: translateY(-1px);
}
.footer__bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.footer__bottom a { color: var(--gold); }
.footer__legal { font-size: 12px; opacity: 0.7; margin: 0; }
.footer__bottom p { margin: 0; }

@media (max-width: 640px) {
  .footer__main, .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================ ANIM ============================ */

@media (prefers-reduced-motion: no-preference) {
  .card, .juror, .timeline__item, .prize {
    opacity: 0;
    transform: translateY(12px);
    animation: rise 0.6s ease forwards;
  }
  .cards .card:nth-child(1) { animation-delay: .05s; }
  .cards .card:nth-child(2) { animation-delay: .12s; }
  .cards .card:nth-child(3) { animation-delay: .18s; }
  .cards .card:nth-child(4) { animation-delay: .24s; }
}
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}
