@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/fraunces-600.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/fraunces-600-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/outfit-400.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/outfit-600.woff2") format("woff2");
}

:root {
  --tinta: #1a2a22;
  --tinta-suave: #3a4e44;
  --verde: #14633a;
  --verde-oscuro: #0e4a2b;
  --verde-profundo: #12382a;
  --verde-suave: #e5f2e8;
  --papel: #fffcf7;
  --lino: #f3efe4;
  --linea: #e3dac8;
  --arena: #f7ecd9;
  --arcilla: #6d3b14;
  --oro: #f3d48a;
  --sombra: 0 18px 40px rgba(18, 40, 28, 0.07);
  --radio: 18px;
  --ancho: 1120px;
  --fuente: "Outfit", "Segoe UI", sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  color-scheme: light;
}

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

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.2rem;
}

body {
  margin: 0;
  font-family: var(--fuente);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--tinta);
  background: var(--lino);
}

h1, h2, h3, p, dl, dd { margin: 0; }

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

a { color: var(--verde-oscuro); }

a:hover { color: #08361e; }

:focus { outline: none; }

:focus-visible {
  outline: 3px solid var(--verde-profundo);
  outline-offset: 3px;
}

::selection {
  background: #cfe6d6;
  color: #10281c;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.saltar {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-160%);
  background: var(--papel);
  color: var(--tinta);
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  z-index: 50;
  text-decoration: none;
}

.saltar:focus {
  position: fixed;
  transform: none;
}

.franja {
  height: 9px;
  background: repeating-linear-gradient(
    90deg,
    #0f4e2d 0 16px,
    #1d7a49 16px 32px
  );
}

.barra {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--verde-profundo);
  color: #f6f1e6;
  border-bottom: 1px solid rgba(243, 212, 138, 0.4);
}

.barra-inner,
.envoltorio {
  width: min(var(--ancho), calc(100% - 2rem));
  margin-inline: auto;
}

.barra-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  min-height: 4rem;
  flex-wrap: wrap;
  padding-block: 0.35rem;
}

.marca {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  color: #f6f1e6;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.marca svg { flex: none; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
}

.nav a {
  color: #f6f1e6;
  text-decoration: underline;
  text-decoration-color: rgba(246, 241, 230, 0.45);
  text-underline-offset: 0.22em;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  font-weight: 600;
}

.nav a:hover { text-decoration-color: #f6f1e6; background: rgba(255, 255, 255, 0.06); }

.barra :focus-visible { outline-color: var(--oro); }

.hero {
  position: relative;
  overflow: hidden;
  padding: 2.2rem 0 2.6rem;
  background:
    radial-gradient(900px 280px at 100% -10%, rgba(20, 99, 58, 0.14), transparent 60%),
    var(--lino);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.8fr);
  gap: 1.5rem 2rem;
  align-items: end;
}

.ceja {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--verde-oscuro);
  margin-bottom: 0.45rem;
}

h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.15rem, 4.2vw, 3.45rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
  max-width: 16ch;
}

h1 em {
  font-style: italic;
  font-weight: 600;
  color: var(--verde);
}

.lede {
  margin-top: 0.9rem;
  max-width: 42rem;
  font-size: 1.08rem;
  color: var(--tinta);
}

.hoy {
  margin-top: 0.7rem;
  color: var(--tinta-suave);
  font-weight: 600;
}

.hoy:empty { display: none; }

.hero-lado {
  display: grid;
  gap: 0.9rem;
  justify-items: end;
}

.hero-arte {
  width: min(300px, 100%);
  height: auto;
}

.stats {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.stats div {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.15rem;
  background: rgba(255, 252, 247, 0.78);
  border: 1px solid var(--linea);
  border-radius: 14px;
  padding: 0.65rem 0.7rem 0.7rem;
}

.stats dd {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1;
  color: var(--verde-oscuro);
  font-variant-numeric: tabular-nums;
}

.stats .stat-rango {
  font-size: 1.02rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.stats dt {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tinta-suave);
}

.envoltorio { padding-bottom: 3rem; }

.sin-js {
  margin: 1rem 0;
  background: var(--arena);
  border-radius: 12px;
  padding: 0.85rem 1rem;
}

.panel {
  margin-top: -0.4rem;
  background: var(--papel);
  border: 1px solid var(--linea);
  border-radius: 22px;
  box-shadow: var(--sombra);
  padding: 1.15rem 1.15rem 1.2rem;
}

.panel-titulo {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.etiq,
.campo label,
.busqueda label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tinta);
  margin-bottom: 0.35rem;
}

.busqueda input,
.campo select,
.campo input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cfc4ae;
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  background: #fff;
  color: var(--tinta);
  font: inherit;
  font-size: 1rem;
}

.busqueda input::placeholder { color: #5c675f; }

.busqueda { margin-bottom: 0.95rem; }

.regiones {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-areas:
    "todas todas todas todas todas todas"
    "noroeste noroeste noroeste noreste noreste noreste"
    "occidente occidente bajio bajio centro centro"
    "pacifico pacifico pacifico caribe caribe caribe";
  gap: 0.55rem;
  margin-bottom: 0.95rem;
}

.region-todas { grid-area: todas; }
.region[data-area="noroeste"] { grid-area: noroeste; }
.region[data-area="noreste"] { grid-area: noreste; }
.region[data-area="occidente"] { grid-area: occidente; }
.region[data-area="bajio"] { grid-area: bajio; }
.region[data-area="centro"] { grid-area: centro; }
.region[data-area="pacifico"] { grid-area: pacifico; }
.region[data-area="caribe"] { grid-area: caribe; }
.region-extra { grid-column: 1 / -1; }

.region {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  text-align: left;
  min-height: 48px;
  padding: 0.55rem 0.75rem;
  border-radius: 14px;
  border: 1px solid #ddd3c1;
  background: #fff;
  color: var(--tinta);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.region:hover { border-color: var(--verde); }

.region[aria-pressed="true"] {
  background: var(--verde);
  border-color: var(--verde);
  color: #f7f4ec;
}

.region-nombre { min-width: 0; }

.region-n {
  flex: none;
  min-width: 1.8rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  background: var(--verde-suave);
  color: var(--verde-oscuro);
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
}

.region[aria-pressed="true"] .region-n {
  background: var(--oro);
  color: #1a2a22;
}

.region[aria-pressed="true"]:focus-visible,
.btn-primario:focus-visible {
  outline-color: var(--oro);
}

.rejilla-filtros {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.8fr 0.8fr;
  gap: 0.75rem;
}

.filtro-pie {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  margin-top: 0.85rem;
}

.check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  font-weight: 600;
  cursor: pointer;
}

.check input {
  width: 1.2rem;
  height: 1.2rem;
  accent-color: var(--verde);
}

.btn,
.btn-texto {
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  text-align: center;
}

.btn-primario {
  background: var(--verde);
  color: #fff;
}

.btn-primario:hover { background: var(--verde-oscuro); color: #fff; }

.btn-sec {
  background: transparent;
  color: var(--verde-oscuro);
  border-color: var(--verde);
}

.btn-sec:hover { background: var(--verde-suave); }

.btn-texto {
  background: transparent;
  border: none;
  color: var(--verde-oscuro);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  min-height: 44px;
  padding: 0.35rem 0.15rem;
}

.btn-texto:disabled {
  color: #746c60;
  cursor: not-allowed;
  text-decoration: none;
}

.btn:disabled { opacity: 1; color: #5e675f; border-color: #cfc6b6; background: #f6f3ec; cursor: not-allowed; }

.pista, .host, .nota-cal, .vista-url, .leyenda {
  color: var(--tinta-suave);
  font-size: 0.92rem;
}

.pista { margin-top: 0.35rem; }

.aviso {
  margin-top: 0.75rem;
  background: var(--arena);
  color: var(--arcilla);
  font-weight: 600;
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
}

.resultados { margin-top: 1.45rem; }

.resultados-encabezado { margin-bottom: 0.9rem; }

#conteo {
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.vista-url {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.7rem;
  margin-top: 0.4rem;
}

#enlace-vista {
  overflow-wrap: anywhere;
  font-weight: 600;
}

.copiado:empty { display: none; }

.copiado {
  font-weight: 600;
  color: var(--verde-oscuro);
}

.leyenda { margin-top: 0.35rem; }

.mes + .mes { margin-top: 1.5rem; }

.mes-titulo {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.7rem;
}

.mes-cuenta {
  font-family: var(--fuente);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--tinta-suave);
}

.lista {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

.card {
  display: grid;
  grid-template-columns: 5.6rem minmax(0, 1fr);
  background: var(--papel);
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  overflow: hidden;
  min-width: 0;
}

.card:hover { border-color: #b7c9bb; }

.card.es-tentativa {
  background: #fffaf3;
  border-style: dashed;
  border-color: #c9a36a;
}

.card.is-past { background: #f7f4ee; }

.card.is-current { box-shadow: inset 0 0 0 2px var(--verde); }

.riel-wrap { display: flex; }

.riel {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 0.05rem;
  padding: 0.95rem 0.3rem 0.75rem;
  background: var(--verde-suave);
  color: var(--verde-profundo);
}

.card.es-tentativa .riel { background: var(--arena); color: var(--arcilla); }

.card.is-past .riel { background: #ece6da; color: var(--tinta-suave); }

.riel-dia {
  font-family: var(--display);
  font-size: 1.7rem;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}

.riel-mes {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.riel-sep { line-height: 1; opacity: 0.75; }

.riel-vacio .riel-leyenda {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  padding-inline: 0.35rem;
}

.card-cuerpo {
  padding: 0.9rem 1rem 1rem;
  min-width: 0;
}

.cuando {
  color: var(--tinta-suave);
  font-size: 0.86rem;
  font-weight: 600;
}

.card h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.28rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin-top: 0.15rem;
}

.card h3 a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  text-decoration-color: rgba(20, 99, 58, 0.45);
}

.card h3 a:hover { text-decoration-color: currentColor; }

.enlace-pagina { margin-top: 0.65rem; font-weight: 600; }

.pagina-torneo { padding: 1.4rem 0 2.8rem; }

.volver { margin-bottom: 0.9rem; font-weight: 600; }

.volver a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.volver a:hover { text-decoration: underline; }

.ficha-pagina {
  background: var(--papel);
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
}

.ficha-cabeza {
  display: grid;
  grid-template-columns: 6.2rem minmax(0, 1fr);
}

.ficha-pagina.es-tentativa {
  background: #fffaf3;
  border-style: dashed;
  border-color: #c9a36a;
}

.ficha-pagina.es-tentativa .riel { background: var(--arena); color: var(--arcilla); }

.ficha-pagina h1 {
  max-width: 36rem;
  font-size: clamp(1.85rem, 3.4vw, 2.7rem);
  margin-top: 0.15rem;
}

.ficha-cuerpo { padding: 1.15rem 1.25rem 1.25rem; min-width: 0; }

.ficha-datos { padding: 0 1.25rem 1.25rem; }

.ficha-pagina .ficha-lista {
  margin-top: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--linea);
}

.compartir {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.7rem;
  margin-top: 0.95rem;
}

.compartir-etiq {
  flex-basis: 100%;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tinta-suave);
}

.compartir a { font-weight: 600; overflow-wrap: anywhere; }

.lugar {
  margin-top: 0.4rem;
  font-weight: 600;
}

.club {
  margin-top: 0.12rem;
  color: var(--tinta-suave);
  overflow-wrap: anywhere;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.7rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
}

.badge-tipo { background: var(--verde-suave); color: var(--verde-oscuro); }

.badge-tentativa { background: #f3d7b0; color: #5c320f; }

.badge-tiempo { background: #e7e2d6; color: #24382e; }

.badge-tiempo.en-curso { background: #d7ebf6; color: #0d3a50; }

.costo { margin-top: 0.75rem; }

.costo-etiq {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tinta-suave);
}

.costo-valor {
  font-weight: 600;
  color: var(--verde-oscuro);
  overflow-wrap: anywhere;
}

.pendiente {
  color: #5c4a2a;
  font-style: italic;
  font-weight: 400;
}

.acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.host, .nota-cal { margin-top: 0.4rem; }

.nota-cal { flex-basis: 100%; }

.sin-enlace { margin-top: 0.75rem; font-weight: 600; }

.ficha {
  margin-top: 0.75rem;
  border-top: 1px solid var(--linea);
  padding-top: 0.15rem;
}

summary {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  cursor: pointer;
  font-weight: 600;
  color: var(--verde-oscuro);
  list-style: none;
}

summary::-webkit-details-marker { display: none; }

summary::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  margin-top: -0.15rem;
}

details[open] summary::before { transform: rotate(45deg); margin-top: 0.1rem; }

.ficha-lista {
  display: grid;
  gap: 0.65rem;
  padding: 0.35rem 0 0.5rem;
}

.ficha-lista > div {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: 0.15rem 0.75rem;
}

.ficha-lista dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tinta-suave);
}

.ficha-lista dd { overflow-wrap: anywhere; }

.ficha-lista a { font-weight: 600; }

.notas-valor { white-space: pre-wrap; }

.vacio {
  text-align: center;
  background: var(--papel);
  border: 1px dashed #d2c7b2;
  border-radius: var(--radio);
  padding: 2rem 1.1rem 2.2rem;
}

.vacio svg { width: 88px; height: auto; margin-bottom: 0.4rem; }

.vacio h2 {
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.vacio p {
  max-width: 36rem;
  margin: 0.55rem auto 1rem;
  color: var(--tinta-suave);
}

.organizadores {
  margin-top: 2.2rem;
  background: #f4e7cf;
  border: 1px dashed #c4a46a;
  border-radius: var(--radio);
  padding: 1.2rem 1.2rem 1.25rem;
}

.organizadores h2 {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.organizadores p { margin-top: 0.45rem; }

.todo-mark {
  display: block;
  margin-top: 0.8rem;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.86rem;
  line-height: 1.45;
  background: var(--papel);
  color: #6b3a12;
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
}

.pie {
  background: var(--verde-profundo);
  color: #f6f1e6;
  padding: 2rem 0 2.4rem;
}

.pie .envoltorio { padding-bottom: 0; }

.marca-pie {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 600;
}

.pie p { margin-top: 0.55rem; max-width: 46rem; }

.pie a { color: var(--oro); }

.pie :focus-visible { outline-color: var(--oro); }

@media (min-width: 980px) {
  .lista { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-lado { justify-items: start; }
  .hero-arte { width: 180px; }
  .rejilla-filtros { grid-template-columns: 1fr 1fr; }
  .regiones {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "todas todas"
      "noroeste noreste"
      "occidente bajio"
      "centro pacifico"
      "caribe caribe";
  }
}

@media (max-width: 560px) {
  .envoltorio,
  .barra-inner { width: min(var(--ancho), calc(100% - 1.25rem)); }
  .hero { padding: 1.35rem 0 1.5rem; }
  .hero-arte { display: none; }
  .stats { grid-template-columns: 1fr 1fr 1.15fr; }
  .rejilla-filtros,
  .ficha-lista > div { grid-template-columns: 1fr; }
  .card,
  .ficha-cabeza { grid-template-columns: 4.5rem minmax(0, 1fr); }
  .ficha-pagina h1 { max-width: none; }
  .riel-dia { font-size: 1.35rem; }
  .acciones { flex-direction: column; }
  .acciones .btn { width: 100%; }
  .panel { padding: 1rem 0.85rem 1.05rem; }
}

@media (max-width: 380px) {
  .nav a { padding-inline: 0.35rem; }
  .stats { grid-template-columns: 1fr; }
}

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

@media (forced-colors: active) {
  .btn-primario,
  .region,
  .card,
  .ficha-pagina { border: 1px solid ButtonText; }
  .region[aria-pressed="true"] { border: 2px solid Highlight; }
}

@media print {
  .franja, .barra, .panel, .vista-url, .acciones, .organizadores, .hero-arte { display: none !important; }
  body { background: #fff; }
  .card, .ficha-pagina { break-inside: avoid; border-color: #999; }
  .pie { background: #fff; color: #000; }
  .pie a { color: #000; }
}
