/* =========================================================
   SALÓN DE LA FAMA — estilos propios de esta página
   (usa los colores y tipografías de styles.css)
   ========================================================= */

.hof-hero { position: relative; padding: clamp(3rem, 8vw, 5.5rem) clamp(1.25rem, 6vw, 4rem) clamp(2rem, 5vw, 3rem); }
.hof-hero h1 {
  margin: 0; font-size: clamp(2.8rem, 10vw, 6.5rem); line-height: 0.92; letter-spacing: -0.01em; color: var(--ink);
  text-shadow: 0.06em 0.06em 0 color-mix(in srgb, var(--gold) 55%, transparent);
}
.hof-lead { margin: 1.4rem 0 0; max-width: 52ch; font-size: clamp(1rem, 1.8vw, 1.15rem); color: var(--ink-dim); }
.hof-lead strong { color: var(--ink); }
.hof-count { margin: 1rem 0 0; font-weight: 700; color: var(--gold); }

/* filtros por temporada */
.hof-tabs {
  position: sticky; top: 4.3rem; z-index: 30;
  display: flex; gap: 0.5rem; overflow-x: auto;
  padding: 0.8rem clamp(1.25rem, 6vw, 4rem);
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 560px) { .hof-tabs { position: static; } }
nav .btn-ghost { white-space: nowrap; }

.hof-tab {
  flex: none; cursor: pointer; border: 1px solid var(--line); background: var(--surface); color: var(--ink-dim);
  font-family: 'Barlow', sans-serif; font-weight: 700; font-size: 0.9rem;
  padding: 0.45rem 1rem; border-radius: 999px; transition: border-color 0.15s ease, color 0.15s ease;
}
.hof-tab:hover { border-color: var(--blue); color: var(--blue); }
.hof-tab.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.hof-tab:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* temporadas */
.hof-season { padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 6vw, 4rem) 0; }
.hof-season:last-child { padding-bottom: clamp(3rem, 7vw, 5rem); }
.hof-season-head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.6rem; }
.hof-season-head h2 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 4.5vw, 2.6rem); color: var(--blue); }
.hof-season-head span { color: var(--muted); font-size: 0.95rem; }
.hof-season-head::after { content: ""; flex: 1; height: 1px; background: var(--line); align-self: center; }

/* campeón del torneo anual */
.hof-annual {
  display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: clamp(1.2rem, 3vw, 2rem); align-items: center;
  margin-bottom: 1.6rem; padding: 1.2rem; border-radius: 1rem;
  border: 2px solid var(--gold);
  background: color-mix(in srgb, var(--gold) 9%, var(--surface));
}
@media (max-width: 560px) { .hof-annual { grid-template-columns: 1fr; } }
.hof-annual img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 0.6rem; display: block; }
.hof-annual-kicker { margin: 0; font-weight: 700; color: var(--gold); }
.hof-annual h3 { margin: 0.2rem 0 0.6rem; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1; }
.hof-annual p:last-child { margin: 0; color: var(--ink-dim); max-width: 56ch; }

/* tarjetas */
.hof-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 1.3rem; }
.hof-card {
  display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 0.9rem;
  background: var(--surface); overflow: hidden;
  animation: hof-in 0.5s ease backwards; animation-delay: calc(var(--i) * 40ms);
  position: relative; transition: transform 0.3s ease, box-shadow 0.3s ease;
}
@keyframes hof-in { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { .hof-card { animation: none; } }

.hof-photo { position: relative; aspect-ratio: 4/5; background: var(--surface-2); overflow: hidden; }
.hof-photo.has-photo { cursor: zoom-in; }
.hof-photo-bg {
  position: absolute; inset: -20px; background-size: cover; background-position: center;
  filter: blur(18px) brightness(0.45); opacity: 0; transition: opacity 0.3s ease;
}
.hof-photo-main { position: relative; width: 100%; height: 100%; object-fit: cover; display: block; }
.hof-photo-empty {
  height: 100%; display: flex; align-items: center; justify-content: center; padding: 1.5rem; text-align: center;
  background: linear-gradient(160deg, var(--blue), #0c1520 80%);
}
.hof-photo-empty { flex-direction: column; gap: 0.6rem; }
.hof-photo-empty span { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 4vw, 2rem); color: #fff; line-height: 1.05; }
.hof-photo-empty small { color: #cfe0f2; font-size: 0.85rem; }
.hof-format {
  position: absolute; top: 0.7rem; left: 0.7rem;
  font-weight: 700; font-size: 0.78rem; color: #1a1200; background: var(--gold);
  padding: 0.25rem 0.6rem; border-radius: 0.3rem;
}

.hof-body { padding: 1rem 1.15rem 1.3rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.hof-meta { margin: 0; display: flex; justify-content: space-between; gap: 0.6rem; font-size: 0.88rem; color: var(--muted); }
.hof-meta span { font-weight: 700; color: var(--ink-dim); }
.hof-name { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.25rem, 2.6vw, 1.5rem); line-height: 1.1; color: var(--ink); }
.hof-facts { margin: 0; }
.hof-row { display: flex; gap: 0.5rem; font-size: 0.9rem; padding: 0.15rem 0; }
.hof-row dt { flex: none; min-width: 6.6rem; color: var(--muted); }
.hof-row dd { margin: 0; font-weight: 600; color: var(--ink-dim); }
.hof-text { margin: 0.35rem 0 0; font-size: 0.94rem; line-height: 1.55; color: var(--ink-dim); }

/* ---------- DEM'S RANKING ---------- */
.hof-ranking { padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 6vw, 4rem); }
.rk-wrap {
  background: linear-gradient(160deg, #1E6FB8 0%, #134a7d 55%, #0b2c4b 100%);
  border-radius: 1.1rem; padding: clamp(1.4rem, 4vw, 2.6rem); color: #fff;
}
.rk-title { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1; color: #fff; }
.rk-sub { margin: 0.8rem 0 1.6rem; max-width: 58ch; color: #d6e6f7; }
.rk-scroll { border-radius: 0.7rem; }
.rk-table { width: 100%; max-width: 760px; min-width: 300px; border-collapse: separate; border-spacing: 0 6px; }
.rk-table thead th {
  text-align: left; font-weight: 700; font-size: 0.85rem; color: #d6e6f7;
  padding: 0.3rem 1rem;
}
.rk-table tbody td { background: #ffffff; color: #0f2438; padding: 0.8rem 1rem; vertical-align: middle; }
.rk-table tbody td:first-child { border-radius: 0.5rem 0 0 0.5rem; }
.rk-table tbody td:last-child { border-radius: 0 0.5rem 0.5rem 0; }
.rk-pos { width: 3rem; font-family: var(--font-display); font-weight: 800; color: #1E6FB8 !important; }
.rk-name { font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; white-space: nowrap; }
.rk-stars { white-space: nowrap; font-size: 1.15rem; letter-spacing: 0.08em; color: #F5B700 !important; text-shadow: 0 1px 0 rgba(0,0,0,0.15); }
.rk-table tr.is-top td { background: #fff8e1; }
.rk-table tr.is-top .rk-name { font-size: 1.2rem; }

/* ---------- MENCIONES HONORÍFICAS ---------- */
.hof-menciones { padding: 0 clamp(1.25rem, 6vw, 4rem) clamp(3.5rem, 8vw, 6rem); }
.hm-title { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 5vw, 2.8rem); color: var(--ink); }
.hm-sub { margin: 0.7rem 0 1.8rem; max-width: 60ch; color: var(--ink-dim); }
.hm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 1.1rem; }
.hm-card {
  display: grid; grid-template-columns: 96px 1fr; gap: 1rem; align-items: start;
  border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 0.7rem;
  background: var(--surface); padding: 1rem;
}
.hm-photo {
  position: relative; width: 96px; height: 96px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(140deg, var(--blue), #0b2c4b);
}
.hm-photo::before {
  content: attr(data-ini); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: #fff;
}
.hm-photo img { position: relative; width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-body h3 { margin: 0.1rem 0 0.4rem; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; }
.hm-body p { margin: 0; font-size: 0.92rem; line-height: 1.55; color: var(--ink-dim); }

/* ranking: burbuja con las fechas */
.rk-row { cursor: pointer; }
.rk-row:focus-visible td { outline: none; background: #e3efff; }
.rk-stars { position: relative; }
.rk-anchor { display: inline-block; }
.rk-tip {
  position: absolute; z-index: 20; left: calc(100% + 14px); top: 50%;
  width: max-content; max-width: 280px;
  background: #0b2c4b; color: #fff; border: 2px solid #F5B700; border-radius: 0.6rem;
  padding: 0.65rem 0.9rem; font-size: 0.86rem; letter-spacing: 0; text-shadow: none; white-space: normal;
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
  opacity: 0; visibility: hidden; transform: translate(-4px, -50%);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  pointer-events: none;
}
.rk-tip::after {
  content: ""; position: absolute; right: 100%; top: 50%; transform: translateY(-50%);
  border: 8px solid transparent; border-right-color: #F5B700;
}
.rk-tip strong { display: block; color: #F5B700; margin-bottom: 0.3rem; }
.rk-list { display: block; }
.rk-list span { display: block; padding: 0.12rem 0; }
.rk-list span::before { content: "• "; color: #F5B700; }
.rk-row:hover .rk-tip, .rk-row:focus-visible .rk-tip, .rk-row.is-open .rk-tip { opacity: 1; visibility: visible; transform: translate(0, -50%); }
@media (hover: none) {
  .rk-row:hover .rk-tip { opacity: 0; visibility: hidden; }
  .rk-row.is-open .rk-tip { opacity: 1; visibility: visible; }
}

/* en pantallas angostas la burbuja aparece debajo de la fila */
@media (max-width: 1100px) {
  .rk-tip { left: auto; right: 0.5rem; top: calc(100% + 8px); transform: translateY(-4px); max-width: min(280px, 80vw); }
  .rk-tip::after { right: 1.2rem; top: auto; bottom: 100%; transform: none; border-right-color: transparent; border-bottom-color: #F5B700; }
  .rk-row:hover .rk-tip, .rk-row:focus-visible .rk-tip, .rk-row.is-open .rk-tip { transform: none; }
}

@media (max-width: 560px) {
  .hof-ranking { padding-left: 0.75rem; padding-right: 0.75rem; }
  .rk-wrap { padding: 1.3rem 0.9rem; }
  .rk-table { min-width: 0; }
  .rk-table thead th, .rk-table tbody td { padding: 0.7rem 0.55rem; }
  .rk-pos { width: 2rem; }
  .rk-name { white-space: normal; font-size: 0.95rem; }
  .rk-stars { font-size: 0.95rem; letter-spacing: 0.02em; }
}

/* ---------- tarjeta expandida (hover en compu, toque en celular) ---------- */
@media (hover: hover) {
  .hof-card:has(.has-photo):hover { transform: scale(1.07); z-index: 5; box-shadow: 0 28px 60px -20px rgba(0,0,0,0.55); border-color: var(--blue); }
  .hof-card:hover .hof-photo-main { object-fit: contain; }
  .hof-card:hover .hof-photo-bg { opacity: 1; }
}
.hof-card.is-open { z-index: 5; box-shadow: 0 28px 60px -20px rgba(0,0,0,0.55); border-color: var(--blue); }
.hof-card.is-open .hof-photo-main { object-fit: contain; }
.hof-card.is-open .hof-photo-bg { opacity: 1; }
.hof-card.is-open .hof-photo { cursor: zoom-out; }
@media (prefers-reduced-motion: reduce) { .hof-card, .hof-card:hover { transition: none; transform: none !important; } }

/* flechas para ver más fotos */
.hof-nav {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 2px solid rgba(255,255,255,0.85);
  background: rgba(11, 44, 75, 0.7); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0 0 0.15rem;
  backdrop-filter: blur(4px); transition: background 0.15s ease, transform 0.15s ease;
}
.hof-prev { left: 0.6rem; }
.hof-next { right: 0.6rem; }
.hof-nav:hover { background: var(--gold); border-color: var(--gold); color: #1a1200; transform: translateY(-50%) scale(1.08); }
.hof-nav:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.hof-dots { position: absolute; left: 0; right: 0; bottom: 0.7rem; z-index: 2; display: flex; justify-content: center; gap: 0.35rem; pointer-events: none; }
.hof-dots span { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: rgba(255,255,255,0.5); box-shadow: 0 0 0 1px rgba(0,0,0,0.25); }
.hof-dots span.is-on { background: var(--gold); width: 1.2rem; border-radius: 999px; }

/* el campeón del torneo va al final de su temporada */
.hof-annual { margin: 1.6rem 0 0; }

/* frase del hero y botón al ranking */
.hof-dare {
  margin: 1.4rem 0 0; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.1rem, 2.6vw, 1.5rem); line-height: 1.2; color: var(--blue); max-width: 30ch;
}
.hof-to-rank { margin-top: 1.4rem; }

/* pestaña especial de menciones */
.hof-tab-special { border-color: var(--gold); color: var(--gold); }
.hof-tab-special:hover { border-color: var(--gold); color: var(--ink); background: color-mix(in srgb, var(--gold) 18%, var(--surface)); }
.hof-tab-special.is-active { background: var(--gold); border-color: var(--gold); color: #1a1200; }
.hof-menciones { padding-top: clamp(2.5rem, 6vw, 4rem); }

/* fotos de perfil circulares en menciones */
.hm-photo { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--gold); }

/* página del ranking */
.page-ranking .hof-ranking { padding-top: clamp(2rem, 6vw, 4rem); }
.page-ranking .rk-wrap { max-width: 1000px; margin: 0 auto; }
.page-ranking .rk-table { max-width: 580px; }
.page-ranking .rk-title { font-size: clamp(2.4rem, 8vw, 4.4rem); }
.rk-count { margin: -0.6rem 0 1.6rem; font-weight: 700; color: #F5B700; }
.rk-navbtns { display: flex; gap: 0.5rem; }
@media (max-width: 560px) { .rk-navbtns .btn { padding: 0.5rem 0.7rem !important; font-size: 0.75rem !important; } }
