:root {
  --azul: rgb(0, 77, 152);
  --grana: rgb(168, 19, 62);
  --rojo: rgb(219, 0, 8);
  --amarillo: rgb(255, 237, 2);
  --brand-gradient: linear-gradient(100deg, var(--azul) 0%, var(--grana) 100%);
  --brand-gradient-vertical: linear-gradient(180deg, var(--azul) 0%, var(--grana) 100%);

  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d8d8dc;
  --surface: #ffffff;
  --surface-2: #f0f0f3;
  --bg: #f5f5f7;
  --on-brand: #ffffff;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --fs-display: clamp(2.5rem, 1.1rem + 4.2vw, 4rem);
  --fs-title: clamp(1.75rem, 1.15rem + 1.9vw, 2.5rem);
  --fs-heading: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  --fs-subhead: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
  --fs-body: 1rem;
  --fs-caption: 0.875rem;
  --lh-display: 1.05;
  --lh-title: 1.15;
  --lh-body: 1.6;
  --tracking-display: -0.02em;
  --tracking-title: -0.018em;
  --tracking-heading: -0.01em;
  --tracking-caption: 0.01em;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.5rem;
  --space-8: 3rem;
  --space-9: 4rem;
  --content-max: 1200px;
  --section-gap: clamp(3rem, 2rem + 3vw, 4.5rem);
  --header-h: 150px;
  --header-h-small: 80px;
  --footer-h: 100px;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 20px rgba(0, 0, 0, 0.06);
  --shadow-2: 0 2px 8px rgba(0, 0, 0, 0.06), 0 16px 40px rgba(0, 0, 0, 0.1);
  --shadow-3: 0 4px 12px rgba(0, 0, 0, 0.08), 0 28px 60px rgba(0, 0, 0, 0.14);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-press: 100ms;
  --dur-fast: 220ms;
  --dur-base: 380ms;
  --dur-slow: 640ms;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  padding-bottom: var(--footer-h);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul {
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--azul);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

main {
  display: block;
  width: 100%;
  max-width: var(--content-max);
  margin: var(--header-h) auto 0;
  padding: var(--space-6) var(--space-5) var(--space-9);
  min-height: calc(100vh - var(--header-h) - var(--footer-h));
  color: var(--ink);
}

main > section,
main > article {
  margin-bottom: var(--section-gap);
}

.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
}

main h1,
main h2,
main h3,
main h4 {
  color: var(--grana);
  font-weight: 700;
  line-height: var(--lh-title);
  text-wrap: balance;
}

main h1 {
  font-size: var(--fs-title);
  letter-spacing: var(--tracking-title);
  text-align: center;
}

main h2 {
  font-size: var(--fs-title);
  letter-spacing: var(--tracking-title);
  text-align: center;
  margin-bottom: var(--space-7);
}

main h1:where(:not(.section-title):not(.no-rule))::after,
main h2:where(:not(.section-title):not(.no-rule))::after {
  content: "";
  display: block;
  width: 96px;
  height: 4px;
  margin: var(--space-4) auto 0;
  border-radius: var(--radius-pill);
  background: var(--brand-gradient);
}

main h3 {
  font-size: var(--fs-subhead);
  letter-spacing: var(--tracking-heading);
  line-height: 1.3;
}

main h4 {
  font-size: var(--fs-body);
  letter-spacing: var(--tracking-caption);
  line-height: 1.4;
}

main p {
  line-height: var(--lh-body);
}

main ul,
main ol {
  padding-left: 1.4em;
  list-style: disc;
}

main li {
  line-height: var(--lh-body);
}

main li::marker {
  color: var(--grana);
}

main strong {
  font-weight: 600;
}

main p + p {
  margin-top: var(--space-4);
}

main li + li {
  margin-top: var(--space-2);
}

.motto {
  font-size: var(--fs-subhead);
  font-style: italic;
  letter-spacing: var(--tracking-caption);
  opacity: 0.92;
}

.caption,
.last-update {
  color: var(--muted);
  font-size: var(--fs-caption);
  letter-spacing: var(--tracking-caption);
  line-height: 1.5;
}

.last-update {
  margin-bottom: var(--space-6);
}

.caption {
  font-style: italic;
  text-align: center;
  margin-top: var(--space-3);
}

.section-title {
  color: var(--grana);
  font-size: var(--fs-title);
  font-weight: 700;
  letter-spacing: var(--tracking-title);
  line-height: var(--lh-title);
  text-align: center;
  margin-bottom: var(--space-7);
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(300px, 32vw, 420px);
  padding: var(--space-7) var(--space-5);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background-color: var(--azul);
  background-image: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.6));
  background-size: cover;
  background-position: center;
  text-align: center;
  color: var(--on-brand);
  box-shadow: var(--shadow-1);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  max-width: 800px;
}

.hero h1,
.hero h2 {
  color: var(--on-brand);
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: var(--lh-display);
  letter-spacing: var(--tracking-display);
  margin-bottom: 0;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.hero h1::after,
.hero h2::after,
.player-banner h1::after,
.player-banner h2::after {
  display: none;
}

.hero .motto {
  font-size: var(--fs-heading);
}

.hero .cta-button {
  margin-top: var(--space-3);
}

.cta-button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: var(--tracking-caption);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transform: translateZ(0);
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
}

.cta-button:hover,
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

.cta-button:active,
.btn:active {
  transform: scale(0.97);
  box-shadow: var(--shadow-1);
  transition-duration: var(--dur-press);
}

.cta-button--gold,
.btn--gold {
  background: var(--amarillo);
  border-color: var(--amarillo);
  color: var(--ink);
}

.cta-button--gold:hover,
.btn--gold:hover {
  background: #ffe602;
  border-color: #ffe602;
}

.cta-button--ghost,
.btn--ghost {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--on-brand);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
}

.cta-button--ghost:hover,
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.26);
  border-color: #ffffff;
  color: var(--on-brand);
}

.cta-button--brand,
.btn--brand {
  background: var(--grana);
  border-color: var(--grana);
  color: var(--on-brand);
}

.cta-button--brand:hover,
.btn--brand:hover {
  background: var(--azul);
  border-color: var(--azul);
}

.cta-button--outline,
.btn--outline {
  background: transparent;
  border-color: var(--grana);
  color: var(--grana);
}

.cta-button--outline:hover,
.btn--outline:hover {
  background: var(--grana);
  color: var(--on-brand);
}

.cta-button--block,
.btn--block {
  width: 100%;
}

.card,
.player-card,
.legend-card,
  .news-card,
  .highlight-card,
  .benefit-card,
.membership-card,
.testimonial-card,
.president-card,
.value-item,
.match-card,
.result-card,
.timeline-content,
.trophy-item,
.fact-card,
.record-card,
.future-card,
.video-card,
.standing-card {
  display: block;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition:
    transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

.card:hover,
.player-card:hover,
.legend-card:hover,
.news-card:hover,
.highlight-card:hover,
.benefit-card:hover,
.membership-card:hover,
.testimonial-card:hover,
.president-card:hover,
.value-item:hover,
.match-card:hover,
.result-card:hover,
.timeline-content:hover,
.trophy-item:hover,
.fact-card:hover,
.record-card:hover,
.future-card:hover,
.video-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2);
}

.card:active,
.player-card:active,
.legend-card:active,
.news-card:active,
.match-card:active,
.result-card:active {
  transform: translateY(-2px) scale(0.99);
  transition-duration: var(--dur-press);
}

.player-card a,
.legend-card a,
.news-card a,
.president-card a,
.match-card a,
.result-card a,
.highlight-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.card img,
.player-card > img,
.player-card a > img,
.legend-card img,
.news-card img,
.president-card img,
.match-card img,
.result-card img,
.trophy-item img {
  width: 100%;
  object-fit: cover;
  background: var(--surface-2);
}

.card h3,
.player-card h3,
.legend-card h3,
.news-card h3,
.benefit-card h3,
.membership-card h3,
.testimonial-card h3,
.president-card h3,
.match-card h3,
.result-card h3,
.highlight-card h3,
.value-item h3,
.trophy-item h3,
.future-card h3,
.record-card h3,
.fact-card h3 {
  color: var(--grana);
}

:where(.player-card, .legend-card, .president-card)
  > :where(h3, h4) {
  padding: var(--space-5) var(--space-5) var(--space-2);
}

:where(.player-card, .legend-card, .president-card)
  > :where(p) {
  padding: 0 var(--space-5) var(--space-5);
  color: var(--muted);
  font-size: var(--fs-caption);
}

:where(.player-card, .legend-card, .president-card)
  > :where(a)
  > :where(h3, h4) {
  padding: var(--space-5) var(--space-5) var(--space-2);
}

:where(.player-card, .legend-card, .president-card)
  > :where(a)
  > :where(p) {
  padding: 0 var(--space-5) var(--space-5);
  color: var(--muted);
  font-size: var(--fs-caption);
}

.grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.players-grid,
.legends-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.history-section {
  padding-bottom: var(--space-7);
  margin-bottom: var(--space-7);
  border-bottom: 1px solid var(--line);
}

.history-section:last-child {
  margin-bottom: 0;
}

.content-wrapper {
  display: flex;
  gap: var(--space-7);
  align-items: center;
}

.content-wrapper.reverse {
  flex-direction: row-reverse;
}

.history-image {
  flex: 1;
  width: 50%;
  max-width: 500px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
}

.text-content {
  flex: 1;
  min-width: 0;
}

.text-content p,
.text-content ul,
.text-content ol {
  margin-bottom: var(--space-4);
}

.text-content p:last-child,
.text-content ul:last-child,
.text-content ol:last-child {
  margin-bottom: 0;
}

.text-content li + li {
  margin-top: var(--space-2);
}

.tab-btn,
.tab-button {
  padding: var(--space-3) var(--space-5);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: var(--tracking-caption);
  cursor: pointer;
  white-space: nowrap;
  transition:
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out),
    transform var(--dur-press) var(--ease-out);
}

.tab-btn:hover,
.tab-button:hover {
  color: var(--azul);
}

.tab-btn:active,
.tab-button:active {
  transform: scale(0.97);
}

.tab-btn.active,
.tab-button.active {
  color: var(--grana);
  border-bottom-color: var(--grana);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fade-in var(--dur-base) var(--ease-out);
}

.faq-item {
  margin-bottom: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--dur-base) var(--ease-out);
}

.faq-item.active {
  box-shadow: var(--shadow-1);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  padding: var(--space-5);
  background: var(--surface);
  color: var(--azul);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: var(--tracking-heading);
  text-align: left;
  cursor: pointer;
  transition:
    background-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
}

.faq-question:hover {
  background: var(--surface-2);
}

.faq-question:active {
  background: var(--surface-2);
}

.toggle-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--radius-pill);
  background: rgba(168, 19, 62, 0.1);
  color: var(--grana);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  transition:
    transform var(--dur-base) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out);
}

.faq-item.active .toggle-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  background: var(--surface-2);
  transition: max-height var(--dur-base) var(--ease-in-out);
}

.faq-item.active .faq-answer {
  max-height: 600px;
}

.faq-answer p,
.faq-answer ul {
  padding: var(--space-5);
  color: var(--ink);
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: var(--header-h);
  padding: 0 var(--space-5);
  background: linear-gradient(to right, rgba(0, 77, 152, 0.92), rgba(168, 19, 62, 0.92));
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition:
    height var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

header.small {
  height: var(--header-h-small);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    var(--shadow-2);
}

.header-content {
  position: relative;
  display: flex;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}

.logo-container {
  position: absolute;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  transition: transform var(--dur-base) var(--ease-out);
}

header.small .logo-container {
  transform: translateX(-50%) scale(0.7);
}

.logo {
  height: 100px;
  width: auto;
  transition: height var(--dur-base) var(--ease-out);
}

header.small .logo {
  height: 70px;
}

nav {
  display: flex;
  flex: 1;
  justify-content: flex-start;
  gap: var(--space-5);
  padding-left: var(--space-5);
  margin-right: auto;
  transition:
    opacity var(--dur-fast) var(--ease-out),
    transform var(--dur-base) var(--ease-out),
    visibility 0s linear var(--dur-fast);
}

header.small nav {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
}

.nav-item {
  position: relative;
  padding: var(--space-3) 0;
  color: var(--on-brand);
  font-size: clamp(14px, 1.5vw, 20px);
  font-weight: 600;
  letter-spacing: var(--tracking-caption);
  white-space: nowrap;
  cursor: pointer;
  transition: opacity var(--dur-fast) var(--ease-out);
}

.nav-item::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--amarillo);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--dur-base) var(--ease-out);
}

.nav-item:hover::after,
.nav-item:focus-within::after {
  transform: scaleX(1);
}

.dropdown {
  position: absolute;
  top: calc(100% + var(--space-2));
  left: 0;
  z-index: 5;
  min-width: 220px;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: var(--shadow-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top left;
  transition:
    opacity var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out),
    visibility 0s linear var(--dur-fast);
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown,
.nav-item.active .dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.dropdown a {
  display: flex;
  align-items: center;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: var(--fs-caption);
  font-weight: 500;
  letter-spacing: var(--tracking-caption);
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    transform var(--dur-press) var(--ease-out);
}

.dropdown a:hover {
  background: rgba(0, 77, 152, 0.1);
  color: var(--azul);
}

.dropdown a:active {
  transform: scale(0.98);
}

.header-right-container {
  display: flex;
  flex: 1;
  justify-content: flex-end;
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.menu-toggle {
  display: none;
  padding: var(--space-3);
  z-index: 3;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  border-radius: var(--radius-pill);
  background: var(--on-brand);
  margin: 5px 0;
  transition:
    transform var(--dur-base) var(--ease-out),
    opacity var(--dur-fast) var(--ease-out);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--footer-h);
  padding: var(--space-5) 0;
  background: var(--brand-gradient);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: translateY(100%);
  transition: transform var(--dur-slow) var(--ease-out);
  will-change: transform;
}

footer.show {
  transform: translateY(0);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-4);
  width: 100%;
  max-width: var(--content-max);
  padding: 0 var(--space-5);
  color: var(--on-brand);
}

.footer-section {
  padding: var(--space-1);
  text-align: center;
}

.footer-section h3 {
  margin-bottom: var(--space-2);
  color: var(--on-brand);
  font-size: clamp(14px, 2vw, 18px);
  letter-spacing: var(--tracking-caption);
}

.footer-section p {
  margin-bottom: var(--space-1);
  font-size: clamp(12px, 1.5vw, 14px);
}

.footer-section a {
  color: var(--on-brand);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

.footer-section a:hover {
  color: var(--amarillo);
}

@media (max-width: 992px) {
  nav {
    gap: var(--space-4);
    padding-left: var(--space-3);
  }

  .nav-item {
    font-size: 16px;
  }

  .cta-button,
  .btn {
    padding: 0.65rem 1.15rem;
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 120px;
    --header-h-small: 80px;
  }

  main {
    padding: var(--space-5) var(--space-4) var(--space-8);
  }

  .menu-toggle {
    display: block;
  }

  .header-right {
    display: none;
  }

  header.small nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  nav {
    position: fixed;
    top: 0;
    left: 0;
    flex-direction: column;
    justify-content: flex-start;
    gap: var(--space-2);
    width: min(82vw, 320px);
    height: 100vh;
    height: 100dvh;
    padding: calc(var(--header-h) + var(--space-5)) var(--space-5) var(--space-6);
    background: linear-gradient(to bottom, rgba(0, 77, 152, 0.96), rgba(168, 19, 62, 0.96));
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
    box-shadow: var(--shadow-3);
    opacity: 1;
    visibility: visible;
    transform: translateX(-105%);
    transition: transform var(--dur-base) var(--ease-out);
    z-index: 1;
  }

  nav.active {
    transform: translateX(0);
  }

  nav::after {
    content: "";
    position: fixed;
    top: 0;
    left: 100%;
    width: 100vw;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur-base) var(--ease-out);
  }

  nav.active::after {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-item {
    padding: var(--space-4) 0;
    font-size: 18px;
  }

  .nav-item::after {
    display: none;
  }

  .dropdown {
    position: static;
    min-width: 0;
    width: 100%;
    margin-top: var(--space-2);
    padding: var(--space-1);
    background: rgba(255, 255, 255, 0.14);
    box-shadow: none;
    transform: none;
  }

  .nav-item:hover .dropdown {
    opacity: 0;
    visibility: hidden;
  }

  .nav-item.active .dropdown {
    opacity: 1;
    visibility: visible;
  }

  .dropdown a {
    color: var(--on-brand);
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: var(--space-1);
  }

  .dropdown a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--on-brand);
  }

  .content-wrapper,
  .content-wrapper.reverse {
    flex-direction: column;
    gap: var(--space-5);
  }

  .history-image {
    width: 100%;
    max-width: none;
  }

  main h1 {
    font-size: clamp(1.6rem, 6vw, 2rem);
  }

  .section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }
}

@media (max-width: 480px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .logo {
    height: 80px;
  }

  header.small .logo {
    height: 60px;
  }

  .players-grid,
  .legends-grid,
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--space-4);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 120ms !important;
    transition-delay: 0ms !important;
  }

  .cta-button:hover,
  .btn:hover,
  .card:hover,
  .player-card:hover,
  .legend-card:hover,
  .news-card:hover,
  .highlight-card:hover,
  .benefit-card:hover,
  .membership-card:hover,
  .testimonial-card:hover,
  .president-card:hover,
  .value-item:hover,
  .match-card:hover,
  .result-card:hover,
  .timeline-content:hover,
  .trophy-item:hover,
  .fact-card:hover,
  .record-card:hover,
  .future-card:hover,
  .video-card:hover {
    transform: none;
  }

  .cta-button:active,
  .btn:active {
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  header,
  nav,
  .dropdown {
    background-image: none;
    background-color: var(--azul);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  footer {
    background-image: none;
    background-color: var(--grana);
  }

  .dropdown {
    background-color: var(--surface);
  }
}

@media (prefers-contrast: more) {
  header,
  footer {
    background-image: none;
    background-color: var(--azul);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: inset 0 0 0 1px var(--ink);
  }

  .dropdown,
  .card,
  .player-card,
  .legend-card,
  .news-card,
  .membership-card,
  .benefit-card,
  .testimonial-card,
  .faq-item {
    background: var(--surface);
    border: 1px solid var(--ink);
  }

  .faq-answer {
    background: var(--surface);
  }
}
