:root {
  --blue: #3b9bd8;
  --blue-dark: #1f6fa8;
  --pink: #f08cb8;
  --pink-dark: #c2407c;
  --ink: #111111;
  --paper: #f5eee2;
  --muted: #6b6b6b;
  --line: #e4e1db;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }

/* Intro */
.intro {
  position: fixed; inset: 0; z-index: 50;
  background: var(--paper);
  display: grid; place-items: center;
  transition: transform .8s cubic-bezier(.7, 0, .2, 1);
}
.intro.out { transform: translateY(-100%); }
.intro-logo {
  width: min(55vw, 300px);
  mix-blend-mode: multiply;
  animation: pop 1s cubic-bezier(.2, .9, .3, 1.2) both;
}
.intro-text {
  position: absolute; bottom: 18vh; margin: 0;
  font-family: Anton, Impact, sans-serif;
  font-size: clamp(22px, 5vw, 40px);
  letter-spacing: .08em;
  opacity: 0;
  animation: fadeUp .6s .7s forwards;
}
@keyframes pop {
  0% { transform: scale(.4) rotate(-8deg); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 20px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand img { width: 40px; height: 40px; object-fit: contain; mix-blend-mode: multiply; }
.brand span { font-family: Anton, Impact, sans-serif; letter-spacing: .06em; font-size: 18px; }
nav { display: flex; gap: 4px; }
nav a {
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px;
  padding: 8px 12px; border-radius: 999px;
}
nav a:hover { color: var(--ink); }
nav a.on { background: var(--ink); color: #fff; }

/* Views */
.view { display: none; max-width: 1100px; margin: 0 auto; padding: 40px 20px 60px; }
.view.on { display: block; animation: fadeUp .5s both; }

.title {
  font-family: Anton, Impact, sans-serif; font-weight: 400;
  text-transform: uppercase; font-size: clamp(40px, 7vw, 72px);
  line-height: 1; margin: 0 0 24px;
}
.title::after {
  content: ""; display: block; width: 64px; height: 6px;
  background: var(--pink); margin-top: 12px;
}

/* Inicio */
.hero { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 20px 0; }
.hero-logo { width: min(260px, 60vw); margin: 0 auto 10px; mix-blend-mode: multiply; }
h1 {
  font-family: Anton, Impact, sans-serif; font-weight: 400;
  font-size: clamp(56px, 11vw, 128px); line-height: .92; margin: 0;
  text-transform: uppercase;
}
.hero-sub {
  color: var(--blue-dark); font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; font-size: 13px; margin: 16px 0 28px;
}
.btn {
  display: inline-block; padding: 14px 22px; margin: 4px;
  border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none;
}
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); }
.btn-ghost { border: 2px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

.manifesto {
  max-width: 720px; margin: 40px auto; text-align: center;
  font-size: clamp(20px, 3vw, 28px); line-height: 1.35;
}
.manifesto .strong {
  font-family: Anton, Impact, sans-serif; text-transform: uppercase;
  letter-spacing: .02em; color: var(--pink-dark);
  font-size: clamp(26px, 4vw, 40px); margin-top: 18px;
}

.bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
.bars div {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 22px; font-size: 16px;
}
.bars span {
  display: block; font-family: Anton, Impact, sans-serif; text-transform: uppercase;
  font-size: 24px; letter-spacing: .02em; color: var(--blue-dark);
}

/* Equipo */
.split { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: center; margin-bottom: 64px; }
.badge-xl { width: 100%; max-width: 260px; mix-blend-mode: multiply; }
.split p { font-size: 18px; line-height: 1.6; margin: 0 0 14px; }
.promises { list-style: none; padding: 0; margin: 20px 0 0; }
.promises li { padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.promises li.yes { color: var(--ink); font-weight: 600; }
.promises li.yes::before { content: "✔ "; color: var(--blue); }

.kits { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.kit {
  border-radius: 20px; padding: 28px; min-height: 180px; color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.kit-blue { background: var(--blue); }
.kit-pink { background: var(--pink); color: var(--ink); }
.kit-tag { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; opacity: .9; }
.kit h3 {
  font-family: Anton, Impact, sans-serif; font-weight: 400;
  font-size: 44px; line-height: 1; margin: 6px 0 4px; text-transform: uppercase;
}
.kit p { margin: 0; }
.poster { width: 100%; border-radius: 20px; border: 1px solid var(--line); }

/* Galería */
.gallery { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.gallery-main img { width: 100%; border-radius: 20px; object-fit: cover; }
figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
.crests { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.crest-box {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  display: grid; place-items: center; padding: 24px;
}
.crest-box img { width: min(75%, 220px); mix-blend-mode: multiply; }

/* Partidos */
.lead { color: var(--muted); margin: -10px 0 24px; font-weight: 600; letter-spacing: .04em; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .25); }
.card-head {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 14px 18px; background: var(--ink); color: #fff;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
}
.card-head .jor { color: var(--pink); }
.card-body {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px;
  padding: 22px 18px; text-align: center;
}
.team { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.crest {
  width: 72px; height: 72px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; background: var(--paper);
  border: 2px solid var(--line);
  font-family: Anton, Impact, sans-serif; font-size: 24px; color: var(--ink);
}
.crest img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.team.me .crest { border-color: var(--pink); }
.team-name { font-weight: 700; font-size: 14px; line-height: 1.2; }
.team.me .team-name { color: var(--pink-dark); }
.score {
  font-family: Anton, Impact, sans-serif; font-size: 44px; letter-spacing: .04em;
  background: var(--ink); color: #fff; border-radius: 14px; padding: 6px 14px;
  white-space: nowrap;
}
.score.pending { background: var(--paper); color: var(--muted); font-size: 24px; }
.card-foot {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  padding: 14px 18px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.chip {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: 4px 10px; border-radius: 999px; background: var(--paper); color: var(--ink);
}
.chip.victoria { background: var(--blue); color: #fff; }
.chip.empate { background: var(--pink); color: var(--ink); }
.chip.derrota { background: var(--ink); color: #fff; }
.chip.anulado { background: #8a8a8a; color: #fff; }
.card.is-anulado { opacity: .6; }
.card.is-anulado .score { text-decoration: line-through; }
.card-nota { margin: 0; padding: 0 18px 16px; font-size: 14px; }
.note { margin-top: 28px; color: var(--muted); text-align: center; }

footer {
  text-align: center; padding: 30px 20px 40px;
  color: var(--muted); font-size: 14px; border-top: 1px solid var(--line);
}
footer p { margin: 4px 0; }
.small { font-size: 12px; }

/* Patrocinador */
.sponsor {
  max-width: 760px; margin: 0 auto 40px; background: #000; color: #f5eee2;
  border-radius: 24px; padding: 28px; display: grid; grid-template-columns: 160px 1fr; gap: 28px; align-items: center;
}
.sponsor-logo { width: 100%; border-radius: 50%; }
.sponsor-tag { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--pink); font-weight: 700; }
.sponsor-name { font-family: Anton, Impact, sans-serif; font-size: 40px; margin: 6px 0 8px; letter-spacing: .04em; color: #d4b06a; }
.sponsor-text { margin: 0 0 18px; line-height: 1.5; color: #d9d2c4; }
.sponsor .btn-blue { background: #d4b06a; color: #000; }
.sponsor .btn-blue:hover { background: #f0cf85; }
@media (max-width: 600px) {
  .sponsor { grid-template-columns: 1fr; text-align: center; padding: 22px; }
  .sponsor-logo { width: 130px; margin: 0 auto; }
}

/* Móvil */
@media (max-width: 700px) {
  .bars { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .badge-xl { max-width: 200px; margin: 0 auto; }
  .kits { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .brand span { display: none; }
  nav a { padding: 7px 9px; font-size: 13px; }
  .view { padding: 28px 16px 48px; }
  .score { font-size: 36px; }
  nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 11px; }
  .topbar { padding: 8px 14px; }
  .brand { min-height: 44px; }
  .brand img { width: 40px; height: 40px; }
  .card-head { font-size: 11px; letter-spacing: .06em; flex-wrap: wrap; }
  .card-body { padding: 18px 12px; gap: 6px; }
  .crest { width: 60px; height: 60px; }
  .team-name { font-size: 13px; overflow-wrap: anywhere; }
  .score { padding: 4px 10px; }
  .card-foot { font-size: 12px; }
  .card-nota { overflow-wrap: anywhere; }
  .kit h3 { font-size: 36px; }
  .btn { padding: 14px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .intro { display: none; }
}

/* Fotos añadidas desde el bot */
.extra-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.extra-photos img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); }
.extra-photos:empty { display: none; }
@media (max-width: 600px) { .extra-photos { grid-template-columns: repeat(2, 1fr); } }
