/* Hoja compartida por noticias.html y noticias/*.html (listado + texto completo de cada noticia).
   Única excepción al patrón del sitio (cada página trae su <style> propio): aquí sí se comparte
   porque cada noticia nueva es un archivo HTML nuevo y repetir ~250 líneas de CSS por nota no
   escala. El resto de las páginas (index.html, tenis.html, padel.html, etc.) siguen con su
   <style> inline como siempre — no tocar ese patrón. */

/* Tokens y base — mismos valores que index.html/tenis.html. */
:root {
  --navy: #062A41;
  --navy-deep: #041E2F;
  --lime: #C8E800;
  --bone: #F6F5EF;
  --court: #E9EEE4;
  --muted: #406077;
  --line: rgba(6, 42, 65, .14);
  --display: 'Archivo', system-ui, sans-serif;
  --body: 'Archivo', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --pad: clamp(1.1rem, 4vw, 2rem);
  --radius: 12px;
}

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

body {
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--navy);
  background: var(--bone);
  -webkit-font-smoothing: antialiased
}

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

a {
  color: inherit
}

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

.site-header :focus-visible {
  outline-color: var(--lime)
}

.wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--pad)
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(4, 30, 47, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08)
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding-block: .4rem
}

.brand {
  display: flex;
  align-items: baseline;
  text-decoration: none
}

.brand-logo {
  width: 100px;
  height: auto
}

.back-link {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none
}

.back-link:hover {
  color: var(--lime)
}

/* ====== Listado (noticias.html) ====== */
.page-head {
  padding-block: clamp(2.5rem, 7vw, 4.5rem) clamp(1.2rem, 3vw, 2rem)
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted)
}

.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--lime);
  border: 1.5px solid var(--navy);
  border-radius: 50%
}

.page-head h1 {
  font-family: var(--display);
  font-stretch: 120%;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.9rem, 6vw, 3.2rem);
  line-height: 1.05;
  margin-top: .7rem
}

.page-head .lede {
  margin-top: .9rem;
  color: var(--muted);
  max-width: 640px
}

/* Chips de filtro por deporte */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.6rem
}

.chip {
  min-height: 42px;
  padding: .5rem 1.1rem;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease
}

.chip:hover {
  border-color: var(--navy)
}

.chip.is-active {
  background: var(--navy);
  color: var(--lime);
  border-color: var(--navy)
}

/* Grid de noticias */
.news-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  padding-block: 1.5rem clamp(3rem, 8vw, 5rem)
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem 1.5rem;
  text-decoration: none;
  color: var(--navy);
  transition: transform .22s ease, box-shadow .22s ease
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 34px rgba(6, 42, 65, .12)
}

/* Imagen de la noticia (obligatoria). Full-bleed arriba de la tarjeta. */
.news-media {
  position: relative;
  margin: -1.6rem -1.4rem 0;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--court)
}

.news-media::before {
  content: "MK SPORTS";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .22em;
  color: var(--muted);
  opacity: .45
}

.news-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover
}

.news-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(4, 30, 47, .4), rgba(4, 30, 47, 0) 48%);
  pointer-events: none
}

.news-media .tags {
  position: absolute;
  z-index: 3;
  top: .75rem;
  left: .75rem;
  margin: 0
}

.card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem
}

.badge {
  font-family: var(--mono);
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--navy);
  color: var(--lime);
  padding: .28rem .55rem;
  border-radius: 4px
}

.badge.sport {
  background: var(--lime);
  color: var(--navy)
}

.news-meta {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted)
}

.card h3 {
  font-family: var(--display);
  font-stretch: 120%;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.2rem;
  line-height: 1.1
}

.card p {
  color: var(--muted);
  font-size: .93rem
}

.card .go {
  margin-top: auto;
  padding-top: .4rem;
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 500
}

.empty {
  padding: 2rem 0 4rem;
  color: var(--muted)
}

/* ====== Texto completo (noticias/*.html) ====== */
.article-wrap {
  max-width: 760px;
  margin-inline: auto;
  padding-inline: var(--pad)
}

.article-head {
  padding-block: clamp(2.2rem, 6vw, 3.6rem) clamp(1.2rem, 3vw, 1.8rem)
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted)
}

.article-head h1 {
  font-family: var(--display);
  font-stretch: 120%;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.7rem, 5vw, 2.7rem);
  line-height: 1.08;
  margin-top: .8rem
}

.article-hero {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--court);
  margin-bottom: clamp(1.6rem, 4vw, 2.4rem)
}

.article-hero::before {
  content: "MK SPORTS";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .22em;
  color: var(--muted);
  opacity: .45
}

.article-hero img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover
}

.article-body {
  padding-bottom: clamp(3rem, 8vw, 5rem)
}

.article-body p {
  margin-bottom: 1rem;
  font-size: 1.02rem
}

.article-body p:last-child {
  margin-bottom: 0
}

.article-foot {
  padding-bottom: clamp(3rem, 8vw, 5rem)
}

.article-foot a {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none
}

.article-foot a:hover {
  color: var(--muted)
}

/* ====== Footer (compartido) ====== */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, .75);
  font-size: .9rem;
  padding-block: 1.6rem
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  align-items: center;
  justify-content: space-between
}

.site-footer a {
  color: #fff;
  text-decoration: none
}

.site-footer a:hover {
  color: var(--lime)
}

.footer-dev-credit {
  flex-basis: 100%;
  text-align: center;
  font-size: .68rem;
  color: rgba(255, 255, 255, .3);
  margin-top: .2rem;
}

.footer-dev-credit a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: rgba(255, 255, 255, .45);
  text-decoration: none;
}

.footer-dev-credit a:hover {
  color: var(--lime);
}

.footer-dev-credit img {
  display: inline-block;
  opacity: .85;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important
  }
}
