:root {
  --red: #d71920;
  --red-dark: #a80f15;
  --black: #111111;
  --ink: #1d1d1f;
  --muted: #5f6368;
  --white: #ffffff;
  --paper: #f6f4f1;
  --line: #e4e1dc;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
  --display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .02em; line-height: 1; margin: 0 0 .4em; }
h2 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h3 { font-size: 1.7rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 700; margin: 0 0 .8em; opacity: .85; }
.eyebrow--red { color: var(--red); opacity: 1; }

/* Buttons */
.btn { display: inline-block; background: var(--red); color: var(--white); text-decoration: none; font-weight: 600; padding: .85em 1.6em; border-radius: 999px; border: 2px solid var(--red); cursor: pointer; font: 600 1rem var(--body); transition: transform .15s, background .15s, color .15s; }
.btn:hover { transform: translateY(-2px); background: var(--red-dark); border-color: var(--red-dark); }
.btn--ghost { background: transparent; border-color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--red); border-color: var(--white); }
.btn--white { background: var(--white); color: var(--red); border-color: var(--white); }
.btn--white:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.btn--small { padding: .5em 1.1em; font-size: .9rem; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .25s, box-shadow .25s; }
.nav.is-scrolled, .nav.is-open { background: rgba(17, 17, 17, .96); box-shadow: 0 2px 20px rgba(0,0,0,.25); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--white); }
.brand__crest { width: 32px; height: auto; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
.brand__text { font-family: var(--display); font-size: 1.6rem; letter-spacing: .04em; line-height: 1; }
.brand__text b { color: var(--red); font-weight: 400; }
.nav__links { display: flex; align-items: center; gap: 1.6rem; }
.nav__links a:not(.btn) { color: var(--white); text-decoration: none; font-weight: 500; font-size: .95rem; opacity: .9; }
.nav__links a:not(.btn):hover { opacity: 1; color: #ff6b70; }
.nav__toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: .2s; }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; color: var(--white); background: var(--black); overflow: hidden; }
.hero__stripes { position: absolute; inset: -20%; background: repeating-linear-gradient(90deg, var(--red) 0 80px, #f2f2f2 80px 160px); transform: rotate(-12deg); opacity: .95; }
.hero__stripes::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10,10,10,.96) 0%, rgba(10,10,10,.85) 40%, rgba(10,10,10,.25) 100%); }
.hero__content { position: relative; padding-top: 90px; padding-bottom: 60px; }
.hero h1.eyebrow { font-family: var(--body); font-size: .78rem; font-weight: 700; letter-spacing: .18em; line-height: 1.5; margin: 0 0 .8em; max-width: 34em; }
.hero__title { font-family: var(--display); font-size: clamp(4.5rem, 16vw, 10rem); line-height: .85; letter-spacing: .02em; margin: 0 0 .25em; }
.hero__title span { color: var(--red); -webkit-text-stroke: 0; text-shadow: 0 4px 30px rgba(215, 25, 32, .35); }
.hero__lead { max-width: 520px; font-size: 1.15rem; opacity: .92; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero__crest { position: absolute; right: max(4vw, calc((100vw - 1140px) / 2 + 20px)); top: 50%; transform: translateY(-45%) rotate(4deg); width: clamp(220px, 26vw, 340px); height: auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,.5)); }
.hero__scroll { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); color: var(--white); text-decoration: none; font-size: 1.4rem; animation: bob 2s infinite; }
@keyframes bob { 50% { transform: translate(-50%, 8px); } }

/* Stats */
.stats { background: var(--red); color: var(--white); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.stat { padding: 2rem 1rem; border-right: 1px solid rgba(255,255,255,.25); }
.stat:last-child { border-right: 0; }
.stat__num { display: block; font-family: var(--display); font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; }
.stat__label { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; opacity: .9; }

/* 60 aniversario */
.anniv { display: block; text-decoration: none; background: var(--black); color: var(--white); border-bottom: 4px solid var(--red); transition: background .2s; }
.anniv:hover { background: #1c1c1c; }
.anniv__inner { display: flex; align-items: center; gap: 1.4rem; padding-top: 1.6rem; padding-bottom: 1.6rem; }
.anniv__num { font-family: var(--display); font-size: 4.5rem; line-height: .8; color: var(--red); flex: none; }
.anniv p { margin: 0; max-width: 640px; }

/* Historia */
.history { display: grid; gap: 1rem; }
.history__photos { display: grid; grid-template-columns: 1.34fr 1fr; gap: 2rem; align-items: center; margin-top: clamp(2.5rem, 6vw, 4rem); }
.history__photo { margin: 0; background: var(--white); padding: 12px 12px 0; border-radius: 6px; box-shadow: 0 16px 40px rgba(0,0,0,.12); transform: rotate(-.6deg); border: 1px solid var(--line); }
.history__photo--alt { transform: rotate(1deg); }
.history__photo img { width: 100%; height: auto; border-radius: 3px; filter: sepia(.12); }
.history__photo figcaption { font-size: .9rem; color: var(--muted); text-align: center; padding: .7rem 0 .8rem; font-style: italic; }
.official { display: flex; align-items: center; gap: 1.1rem; text-decoration: none; background: var(--white); border: 2px solid var(--red); border-radius: var(--radius); padding: 1.1rem 1.3rem; transition: transform .2s, box-shadow .2s; }
.official:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.official img { width: 56px; height: auto; flex: none; }
.official > span { display: grid; gap: .1rem; }
.official__label { color: var(--red); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.official strong { font-family: var(--display); font-weight: 400; font-size: 1.7rem; line-height: 1.05; }
.official small { color: var(--muted); font-size: .85rem; }
.history .card--quote { display: flex; gap: 2rem; flex-wrap: wrap; padding: 1.4rem 1.6rem; }
.history .card--quote .card__meta { margin: 0; }

/* Programa aniversario */
.split--top { align-items: start; }
.program { list-style: none; padding: 0; margin: 1.8rem 0 1.5rem; counter-reset: acto; }
.program li { display: grid; grid-template-columns: 84px 1fr; gap: 1.2rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.program li:first-child { border-top: 1px solid var(--line); }
.program__time { font-family: var(--display); font-size: 2rem; line-height: 1; color: var(--white); background: var(--red); border-radius: 10px; display: grid; place-items: center; height: 56px; }
.program h3 { margin: 0 0 .2rem; font-size: 1.6rem; }
.program p { margin: 0; color: var(--muted); }
.anniv-card { position: relative; background: var(--black); color: var(--white); border-radius: var(--radius); padding: 2.5rem 2rem; text-align: center; overflow: hidden; display: grid; justify-items: center; gap: .3rem; }
.anniv-card::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, var(--red) 0 30px, transparent 30px 60px); opacity: .15; }
.anniv-card > * { position: relative; }
.anniv-card img { width: 150px; height: auto; filter: drop-shadow(0 10px 20px rgba(0,0,0,.5)); margin-bottom: .5rem; }
.anniv-card__num { font-family: var(--display); font-size: 9rem; line-height: .85; color: var(--red); }
.anniv-card__years { font-family: var(--display); font-size: 1.8rem; letter-spacing: .12em; }
.anniv-card__text { opacity: .8; }
.note--dark { opacity: 1; color: var(--muted); }
.note--dark a { color: var(--red); font-weight: 600; }

/* Sections */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section--dark { background: var(--black); color: var(--white); }
.section--light { background: var(--paper); }
.section--red { background: var(--red); color: var(--white); background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 60px, transparent 60px 120px); }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }

.checks { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.checks li { position: relative; padding-left: 1.9rem; margin-bottom: .6rem; font-weight: 500; }
.checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E") center/80% no-repeat; }
.checks--light li::before { background-color: var(--white); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23d71920' stroke-width='2'/%3E%3C/svg%3E"); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 2rem; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.5rem; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }
.card__icon { font-size: 2rem; margin-bottom: .8rem; }
.card--quote { position: relative; background: var(--black); color: var(--white); border: 0; padding: 3rem 2.2rem 2.2rem; overflow: hidden; }
.card--quote::before { content: ""; position: absolute; top: 0; right: 0; width: 45%; height: 100%; background: repeating-linear-gradient(90deg, var(--red) 0 22px, transparent 22px 44px); opacity: .18; }
.card--quote .card__meta { position: relative; color: rgba(255,255,255,.75); margin: 0 0 .8rem; font-size: .9rem; }
.card--quote .card__meta strong { color: var(--white); }

/* Matches */
.next-match { margin: 2rem 0 1.5rem; background: linear-gradient(120deg, var(--red) 0%, var(--red-dark) 100%); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; text-align: center; position: relative; overflow: hidden; }
.next-match::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 40px, transparent 40px 80px); pointer-events: none; }
.next-match__team { font-family: var(--display); font-size: clamp(1.8rem, 5vw, 3rem); line-height: 1; display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.next-match__team img { width: 64px; height: 64px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.3)); }
.next-match__vs { font-family: var(--display); font-size: 1.4rem; background: var(--white); color: var(--red); border-radius: 50%; width: 56px; height: 56px; display: grid; place-items: center; }
.next-match__info { grid-column: 1 / -1; font-size: .95rem; opacity: .95; }
.next-match__label { grid-column: 1 / -1; text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; font-weight: 700; }
.countdown { grid-column: 1 / -1; display: flex; justify-content: center; gap: .6rem; }
.countdown div { background: rgba(0,0,0,.25); border-radius: 10px; padding: .5rem .8rem; min-width: 64px; }
.countdown b { display: block; font-family: var(--display); font-size: 2rem; font-weight: 400; line-height: 1; }
.countdown small { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; opacity: .85; }

.matches { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; }
.matches__title { font-size: 1.6rem; margin-bottom: .6rem; }
.fixtures { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.12); }
.fixtures li { display: grid; grid-template-columns: 120px 1fr auto; gap: 1rem; align-items: center; padding: .9rem .2rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.fixtures__date { font-weight: 600; color: #ff6b70; font-size: .85rem; line-height: 1.3; }
.fixtures__date small { display: block; color: rgba(255,255,255,.6); font-weight: 500; }
.fixtures__teams { font-weight: 600; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.fixtures__teams img { width: 22px; height: 22px; object-fit: contain; }
.fixtures__comp { font-size: .8rem; opacity: .65; display: block; font-weight: 400; width: 100%; }
.fixtures__tags { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; }
.fixtures__tag--trip { background: var(--red); }
.fixtures__tag { font-size: .78rem; background: rgba(255,255,255,.1); padding: .25em .7em; border-radius: 999px; white-space: nowrap; }
.results li { grid-template-columns: 1fr auto; }
.result { font-family: var(--display); font-size: 1.5rem; letter-spacing: .04em; padding: .1em .5em; border-radius: 8px; background: rgba(255,255,255,.1); white-space: nowrap; }
.result--w { background: #1e8e3e; }
.result--l { background: var(--red); }
.result--d { background: #6b6b6b; }
.note { font-size: .85rem; opacity: .6; margin-top: 1.2rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 12px; margin-top: 2rem; }
.gallery__item { display: block; margin: 0; border-radius: var(--radius); overflow: hidden; background: #ddd; cursor: zoom-in; }
.gallery__item--big { grid-column: span 2; grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery__item:hover img { transform: scale(1.05); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.92); display: grid; place-items: center; padding: 60px 64px; user-select: none; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 120px); border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); border: 0; color: #fff; cursor: pointer; border-radius: 50%; display: grid; place-items: center; transition: background .15s; }
.lightbox button:hover { background: var(--red); }
.lightbox__close { top: 14px; right: 14px; width: 44px; height: 44px; font-size: 2rem; line-height: 1; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 2.2rem; line-height: 1; padding-bottom: 4px; }
.lightbox__nav--prev { left: 10px; }
.lightbox__nav--next { right: 10px; }
.lightbox__count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.7); font-size: .9rem; }
@media (max-width: 520px) {
  .lightbox { padding: 60px 8px; }
  .lightbox__nav { top: auto; bottom: 8px; transform: none; }
  .lightbox__nav--prev { left: 20%; }
  .lightbox__nav--next { right: 20%; }
}

/* Form */
.form { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.2rem); box-shadow: 0 20px 50px rgba(0,0,0,.25); display: grid; gap: 1rem; }
.form label { display: grid; gap: .35rem; font-weight: 600; font-size: .85rem; }
.form input, .form textarea { font: 400 1rem var(--body); padding: .75em .9em; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); transition: border-color .15s, background .15s; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--red); background: var(--white); }
.form .btn--white { background: var(--red); color: var(--white); border-color: var(--red); }
.form .btn--white:hover { background: var(--black); border-color: var(--black); }
.form__msg { margin: 0; font-size: .9rem; font-weight: 600; color: var(--red); min-height: 1.2em; }

/* Contact */
.socials { display: flex; gap: .6rem; margin-top: 1.5rem; flex-wrap: wrap; }
.socials a { text-decoration: none; font-weight: 600; font-size: .9rem; border: 1.5px solid var(--ink); padding: .45em 1.1em; border-radius: 999px; transition: .15s; }
.socials a.socials__wa { background: #25d366; border-color: #25d366; color: #fff; }
.socials a:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Footer */
.footer { background: var(--black); color: var(--white); }
.footer__stripes { height: 10px; background: repeating-linear-gradient(90deg, var(--red) 0 40px, var(--white) 40px 80px); }
.footer__inner { padding: 2rem 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.footer p { margin: 0; }
.footer__small { opacity: .6; font-size: .85rem; }
.footer__small a { color: inherit; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll { animation: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .history__photos { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero__crest { width: 150px; top: auto; bottom: 70px; right: 16px; transform: rotate(4deg); opacity: .95; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
}
@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__links { position: fixed; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: rgba(17,17,17,.98); padding: .5rem 20px 1.5rem; transform: translateY(-120%); transition: transform .3s; z-index: -1; }
  .nav.is-open .nav__links { transform: none; }
  .nav__links a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav__links .btn { margin-top: 1rem; text-align: center; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.25); }
  .matches { grid-template-columns: 1fr; }
  .fixtures li { grid-template-columns: 1fr auto; gap: .3rem 1rem; }
  .fixtures__date { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .hero__crest { width: 96px; top: 84px; bottom: auto; }
  .program li { grid-template-columns: 70px 1fr; gap: .9rem; }
  .program__time { font-size: 1.6rem; height: 48px; }
  .container { padding: 0 16px; }
  .cards { grid-template-columns: 1fr; }
  .hero__stripes { background: repeating-linear-gradient(90deg, var(--red) 0 50px, #f2f2f2 50px 100px); }
  .hero__stripes::after { background: linear-gradient(180deg, rgba(10,10,10,.9) 0%, rgba(10,10,10,.8) 60%, rgba(10,10,10,.55) 100%); }
  .next-match { grid-template-columns: 1fr; }
  .next-match__vs { margin: 0 auto; }
  .countdown div { min-width: 56px; padding: .4rem .5rem; }
}
