/* hamburgueserias.net — cancha nocturna: azul profundo, líneas blancas, acentos rojos, botones verde y amarillo */

:root {
  --p-azul: #0a1f4d;
  --p-azul-2: #0e2864;
  --p-azul-3: #13337c;
  --p-azul-4: #1a4196;
  --p-rojo: #e0322b;
  --p-rojo-hi: #ff4a40;
  --p-rojo-tenue: rgba(224, 50, 43, 0.16);
  --p-linea: rgba(255, 255, 255, 0.16);
  --p-linea-2: rgba(255, 255, 255, 0.32);
  --p-texto: #eaf0ff;
  --p-tenue: #aebbe0;
  --p-blanco: #ffffff;

  --p-verde: #22b85a;
  --p-verde-hi: #2fd06b;
  --p-verde-lo: #178a42;
  --p-amarillo: #ffd23c;
  --p-amarillo-hi: #ffdf6b;
  --p-amarillo-lo: #d9ab0f;
  --p-tinta: #071331;

  --p-titulo: "Barlow Condensed", "Arial Narrow", "Segoe UI", Arial, sans-serif;
  --p-cuerpo: "Barlow", "Segoe UI", Roboto, Arial, sans-serif;

  --p-ancho: 1200px;
  --p-pad: clamp(1rem, 4vw, 2.4rem);
  --p-alto: 68px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--p-alto) + 20px);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}

body {
  margin: 0;
  background:
    linear-gradient(115deg, transparent 0 62%, rgba(224, 50, 43, 0.1) 62% 64%, transparent 64%),
    radial-gradient(900px 520px at 85% 0, rgba(26, 65, 150, 0.9), transparent 70%),
    linear-gradient(180deg, var(--p-azul-2), var(--p-azul) 600px);
  background-color: var(--p-azul);
  color: var(--p-texto);
  font-family: var(--p-cuerpo);
  font-size: 1.06rem;
  line-height: 1.72;
}

body.hb-quieto { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--p-amarillo); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }

.hb-salto {
  position: absolute;
  top: -80px;
  left: 12px;
  z-index: 900;
  padding: 0.7rem 1rem;
  border-radius: 6px;
  background: var(--p-amarillo);
  color: var(--p-tinta);
  font-weight: 700;
  text-decoration: none;
}
.hb-salto:focus { top: 12px; }

.hb-marco { width: min(100% - 2 * var(--p-pad), var(--p-ancho)); margin-inline: auto; }

/* ---------- botones ---------- */

.hb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1.6rem;
  border: 0;
  border-radius: 4px;
  font-family: var(--p-titulo);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: background-color 0.2s ease, transform 0.15s ease, filter 0.2s ease;
}
.hb-btn:hover { transform: translateY(-2px); }
.hb-btn:active { transform: translateY(1px); filter: brightness(0.95); }

.hb-btn--verde { background: var(--p-verde); color: var(--p-blanco); }
.hb-btn--verde:hover { background: var(--p-verde-hi); }
.hb-btn--verde:active { background: var(--p-verde-lo); }

.hb-btn--amarillo { background: var(--p-amarillo); color: var(--p-tinta); }
.hb-btn--amarillo:hover { background: var(--p-amarillo-hi); }
.hb-btn--amarillo:active { background: var(--p-amarillo-lo); }

.hb-btn--xl { min-height: 56px; padding: 0.85rem 2.1rem; font-size: 1.2rem; }

/* ---------- cabecera ---------- */

.hb-tribuna {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(10, 31, 77, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--p-linea);
}
.hb-tribuna::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 100%; height: 3px; background: linear-gradient(90deg, var(--p-rojo) 0 33%, var(--p-blanco) 33% 66%, var(--p-azul-4) 66%); }
.hb-tribuna__in {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--p-alto);
  width: min(100% - 2 * var(--p-pad), var(--p-ancho));
  margin-inline: auto;
}

.hb-logo { display: inline-flex; align-items: center; gap: 0.5rem; flex-shrink: 0; color: var(--p-blanco); text-decoration: none; }
.hb-logo__a { font-family: var(--p-titulo); font-size: 1.9rem; font-weight: 800; font-style: italic; letter-spacing: -0.01em; }
.hb-logo__b {
  padding: 0.1rem 0.5rem;
  background: var(--p-rojo);
  color: var(--p-blanco);
  font-family: var(--p-titulo);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

.hb-nav { margin-left: auto; }
.hb-nav ul { display: flex; gap: 0.1rem; margin: 0; padding: 0; list-style: none; }
.hb-pase {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.6rem;
  color: var(--p-tenue);
  font-family: var(--p-titulo);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s ease;
}
.hb-pase::after { content: ""; position: absolute; left: 0.6rem; right: 0.6rem; bottom: 6px; height: 3px; background: var(--p-rojo); transform: scaleX(0); transform-origin: left; transition: transform 0.2s ease; }
.hb-pase:hover,
.hb-pase[aria-current="true"] { color: var(--p-blanco); }
.hb-pase:hover::after,
.hb-pase[aria-current="true"]::after { transform: scaleX(1); }

.hb-tribuna__cta { min-height: 44px; padding: 0.45rem 1.25rem; font-size: 1rem; white-space: nowrap; }

.hb-raqueta {
  display: none;
  align-items: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0 0.95rem;
  border: 2px solid var(--p-linea-2);
  border-radius: 6px;
  background: var(--p-azul-3);
  color: var(--p-blanco);
  font-family: var(--p-titulo);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.hb-raqueta__ico { position: relative; width: 18px; height: 2px; background: var(--p-blanco); }
.hb-raqueta__ico::before,
.hb-raqueta__ico::after { content: ""; position: absolute; left: 0; height: 2px; }
.hb-raqueta__ico::before { top: -6px; width: 18px; background: var(--p-rojo-hi); }
.hb-raqueta__ico::after { top: 6px; width: 12px; background: var(--p-amarillo); }

/* menú móvil desplegable */

.hb-red { position: fixed; inset: 0; z-index: 400; background: rgba(4, 10, 28, 0.72); }
.hb-red[hidden] { display: none; }
.hb-red__in {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: 100dvh;
  padding: 1rem var(--p-pad) 1.5rem;
  overflow-y: auto;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 22px),
    var(--p-azul-2);
  border-bottom: 5px solid var(--p-rojo);
  animation: hb-cae 0.24s ease;
}
@keyframes hb-cae { from { transform: translateY(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
.hb-red__top { display: flex; align-items: center; justify-content: space-between; min-height: 52px; margin-bottom: 0.8rem; }
.hb-red__x {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 6px;
  background: var(--p-rojo);
  color: var(--p-blanco);
  cursor: pointer;
}
.hb-red__l { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.hb-red__a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 0.9rem;
  border: 2px solid var(--p-linea-2);
  border-radius: 4px;
  color: var(--p-blanco);
  font-family: var(--p-titulo);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}
.hb-red__a:hover { border-color: var(--p-amarillo); color: var(--p-amarillo); }
.hb-red__ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; margin-top: 1.2rem; }

/* ---------- portada ---------- */

.hb-inicio { position: relative; padding: clamp(2.2rem, 5vw, 4rem) 0 clamp(2.6rem, 5vw, 4rem); overflow: hidden; }
.hb-inicio__rej { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.6rem, 4vw, 3.2rem); align-items: center; }

.hb-h1 {
  margin: 0 0 1rem;
  color: var(--p-blanco);
  font-family: var(--p-titulo);
  font-size: clamp(3rem, 2rem + 4vw, 5.4rem);
  font-weight: 800;
  font-style: italic;
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.hb-h1::after { content: ""; display: block; width: 120px; height: 6px; margin-top: 0.9rem; background: linear-gradient(90deg, var(--p-rojo) 0 33%, var(--p-blanco) 33% 66%, var(--p-azul-4) 66%); }
.hb-inicio__texto p { color: var(--p-texto); font-size: 1.1rem; }
.hb-inicio__btns { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.4rem; }

.hb-inicio__foto { position: relative; margin: 0; }
.hb-inicio__foto::before {
  content: "";
  position: absolute;
  top: -14px;
  right: -14px;
  bottom: 14px;
  left: 14px;
  border: 3px solid var(--p-blanco);
  opacity: 0.85;
}
.hb-inicio__foto::after {
  content: "";
  position: absolute;
  left: -10px;
  bottom: -10px;
  width: 42%;
  height: 10px;
  background: var(--p-rojo);
}
.hb-inicio__foto img { position: relative; width: 100%; aspect-ratio: 1380 / 752; object-fit: cover; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); }

/* ---------- canchas ---------- */

.hb-pista { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.6rem, 3.5vw, 2.4rem); max-width: 980px; padding-bottom: clamp(3rem, 6vw, 5rem); }
.hb-pista > * { min-width: 0; }

.hb-cancha {
  position: relative;
  padding: clamp(1.4rem, 3.2vw, 2.4rem);
  background: linear-gradient(180deg, var(--p-azul-3), var(--p-azul-2));
  border: 2px solid var(--p-linea-2);
  box-shadow: inset 0 0 0 10px var(--p-azul-3), inset 0 0 0 11px var(--p-linea), 0 30px 50px -36px rgba(0, 0, 0, 0.9);
}
.hb-cancha::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 28px;
  width: 64px;
  height: 6px;
  background: var(--p-rojo);
}

.hb-cancha__cab { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.hb-cancha__num {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  min-width: 54px;
  height: 44px;
  padding: 0 0.5rem;
  background: var(--p-tinta);
  border: 2px solid var(--p-amarillo);
  color: var(--p-amarillo);
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.hb-h2 {
  margin: 0;
  color: var(--p-blanco);
  font-family: var(--p-titulo);
  font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}

.hb-cancha__cont > :last-child,
.hb-set > :last-child { margin-bottom: 0; }

.hb-set {
  position: relative;
  margin-top: 1.4rem;
  padding: 1.2rem 1.3rem 1.2rem 1.5rem;
  background: rgba(7, 19, 49, 0.55);
  border-left: 4px solid var(--p-rojo);
}
.hb-cancha__cont > .hb-set:first-child { margin-top: 0; }
.hb-h3 {
  margin: 0 0 0.6rem;
  color: var(--p-amarillo);
  font-family: var(--p-titulo);
  font-size: clamp(1.25rem, 1.12rem + 0.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hb-accion { margin: 1.6rem 0 0.4rem; }

/* tablas */

.hb-marcador {
  margin: 1.1rem 0;
  overflow-x: auto;
  border: 2px solid var(--p-linea-2);
  background: rgba(7, 19, 49, 0.6);
  -webkit-overflow-scrolling: touch;
}
.hb-marcador table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.hb-marcador--ancha table { min-width: 560px; }
.hb-marcador thead th {
  padding: 0.75rem 1rem;
  background: var(--p-rojo);
  color: var(--p-blanco);
  font-family: var(--p-titulo);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: left;
  text-transform: uppercase;
}
.hb-marcador tbody th,
.hb-marcador tbody td,
.hb-marcador tfoot th,
.hb-marcador tfoot td { padding: 0.7rem 1rem; text-align: left; vertical-align: top; }
.hb-marcador tbody tr + tr > * { border-top: 1px solid var(--p-linea); }
.hb-marcador tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.03); }
.hb-marcador tbody th { color: var(--p-blanco); font-weight: 600; }
.hb-marcador tbody tr:hover { background: rgba(255, 210, 60, 0.08); }
.hb-marcador tfoot { background: var(--p-amarillo); }
.hb-marcador tfoot th,
.hb-marcador tfoot td { color: var(--p-tinta); font-weight: 800; }

/* listas */

.hb-bolas { display: grid; gap: 0.5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.hb-bolas li { position: relative; padding-left: 1.7rem; line-height: 1.6; }
.hb-bolas li::before {
  content: "";
  position: absolute;
  top: 0.42em;
  left: 0.1rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 0 50%, transparent 0.5rem, rgba(255, 255, 255, 0.85) 0.5rem 0.56rem, transparent 0.56rem),
    var(--p-amarillo);
}

.hb-saques { display: grid; gap: 0.5rem; margin: 0 0 1.1rem; padding: 0; list-style: none; counter-reset: hb-s; }
.hb-saques li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: center;
  padding: 0.55rem 0.9rem 0.55rem 0.55rem;
  border: 1px solid var(--p-linea);
  background: rgba(255, 255, 255, 0.03);
  counter-increment: hb-s;
  line-height: 1.45;
}
.hb-saques li::before {
  content: counter(hb-s);
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  background: var(--p-verde);
  color: var(--p-blanco);
  font-family: var(--p-titulo);
  font-size: 1.2rem;
  font-weight: 800;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

/* preguntas */

.hb-faqs { display: grid; gap: 0.6rem; }
.hb-faq__it { background: rgba(7, 19, 49, 0.55); border: 2px solid var(--p-linea); transition: border-color 0.2s ease; }
.hb-faq__it[open] { border-color: var(--p-amarillo); }
.hb-faq__s { display: flex; align-items: center; gap: 0.9rem; min-height: 60px; padding: 0.85rem 1.1rem; list-style: none; cursor: pointer; }
.hb-faq__s::-webkit-details-marker { display: none; }
.hb-faq__s::after {
  content: "+";
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-left: auto;
  background: var(--p-rojo);
  color: var(--p-blanco);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.25s ease, background-color 0.2s ease;
}
.hb-faq__it[open] .hb-faq__s::after { transform: rotate(45deg); background: var(--p-verde); }
.hb-faq__n { flex-shrink: 0; color: var(--p-amarillo); font-family: "Courier New", ui-monospace, monospace; font-weight: 700; }
.hb-faq__q { margin: 0; color: var(--p-blanco); font-family: var(--p-titulo); font-size: 1.25rem; font-weight: 700; line-height: 1.25; letter-spacing: 0.01em; }
.hb-faq__r { padding: 0 1.1rem 1.15rem calc(1.1rem + 1.6rem + 0.9rem); }
.hb-faq__r p { margin: 0; }

/* ---------- pie ---------- */

.hb-pie { position: relative; background: #061538; border-top: 1px solid var(--p-linea); }
.hb-pie::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: linear-gradient(90deg, var(--p-rojo) 0 33%, var(--p-blanco) 33% 66%, var(--p-azul-4) 66%); }
.hb-pie__rej { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 2rem; align-items: start; padding: 2.9rem 0 1.6rem; }
.hb-pie__edad { display: flex; align-items: center; gap: 0.7rem; margin: 1rem 0 0; color: var(--p-tenue); font-size: 0.93rem; }
.hb-edad { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--p-rojo); color: var(--p-blanco); font-size: 0.82rem; font-weight: 800; }
.hb-pie__nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.1rem 1.4rem; margin: 0; padding: 0; list-style: none; }
.hb-pie__nav a { display: inline-block; padding: 0.4rem 0; color: var(--p-texto); font-weight: 500; text-decoration: none; }
.hb-pie__nav a:hover { color: var(--p-amarillo); }
.hb-pie__btns { display: grid; gap: 0.7rem; }
.hb-pie__copy { margin: 0; padding: 1rem 0 1.6rem; border-top: 1px solid var(--p-linea); color: var(--p-tenue); font-size: 0.88rem; }

.hb-arriba {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--p-amarillo);
  color: var(--p-tinta);
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.8);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
}
.hb-arriba.hb-arriba--ver { opacity: 1; visibility: visible; }

/* ---------- adaptación ---------- */

@media (max-width: 1240px) {
  .hb-nav { display: none; }
  .hb-raqueta { display: inline-flex; }
  .hb-tribuna__cta { margin-left: auto; }
}

@media (max-width: 900px) {
  .hb-inicio__rej { grid-template-columns: minmax(0, 1fr); }
  .hb-inicio__foto { order: -1; margin: 14px 14px 10px 0; }
  .hb-pie__rej { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  :root { --p-alto: 62px; }
  body { font-size: 1rem; }
  .hb-logo__b { display: none; }
  .hb-raqueta__txt { display: none; }
  .hb-raqueta { width: 46px; padding: 0; justify-content: center; }
  .hb-tribuna__cta { padding: 0.45rem 0.95rem; font-size: 0.95rem; }
  .hb-inicio__btns .hb-btn,
  .hb-accion .hb-btn { width: 100%; }
  .hb-cancha { padding: 1.15rem; box-shadow: inset 0 0 0 6px var(--p-azul-3), inset 0 0 0 7px var(--p-linea); }
  .hb-set { padding: 1rem 1rem 1rem 1.2rem; }
  .hb-red__ctas { grid-template-columns: minmax(0, 1fr); }
  .hb-faq__r { padding-left: 1.1rem; }
}
