/* ==========================================================================
   Noticias de la Cancha — hoja de estilos única
   Mobile first. Sin dependencias externas. Sin JavaScript para el contenido.
   ========================================================================== */

/* --- Tipografías (autoalojadas) ------------------------------------------ */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/barlow-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/barlow-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/barlow-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/barlow-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/barlow-condensed-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/barlow-condensed-700.woff2') format('woff2');
}

/* --- Variables ----------------------------------------------------------- */
:root {
  --rojo: #d81f2a;
  --rojo-osc: #a4141d;
  --negro: #101010;
  --tinta: #17181a;
  --gris: #6c6f73;
  --gris-claro: #f4f5f6;
  --borde: #e2e4e6;
  --blanco: #ffffff;
  --verde: #0a7d43;
  --display: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  --texto: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --sombra: 0 1px 2px rgba(0, 0, 0, .06);
}

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

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

body {
  margin: 0;
  background: var(--blanco);
  color: var(--tinta);
  font-family: var(--texto);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--rojo); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -.01em;
}

p { margin: 0 0 1em; }

ul,
ol { margin: 0; padding: 0; list-style: none; }

.contenedor {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 14px;
}

.salto-lectores {
  position: absolute;
  left: -9999px;
}

/* --- Barra superior ------------------------------------------------------ */
.barra-superior {
  background: var(--negro);
  color: #9a9ea3;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.barra-superior .contenedor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 32px;
}

.barra-superior a { color: #9a9ea3; }
.barra-superior a:hover { color: var(--blanco); }
.barra-superior .separador { color: #4a4d51; margin: 0 6px; }
.barra-superior .oculto-movil { display: none; }

/* --- Cabecera ------------------------------------------------------------ */
.cabecera {
  border-bottom: 1px solid var(--borde);
  padding: 14px 0 12px;
  text-align: center;
}

.marca {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.marca svg { width: 38px; height: 38px; flex: none; }

.marca-texto {
  font-family: var(--display);
  font-weight: 700;
  font-size: 30px;
  line-height: .92;
  letter-spacing: -.02em;
  text-transform: uppercase;
  text-align: left;
}

.marca-texto b { color: var(--rojo); font-weight: 700; }
.marca-texto span { display: block; font-size: 19px; letter-spacing: .02em; }

.marca-bajada {
  margin: 8px 0 0;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gris);
}

/* --- Navegación ---------------------------------------------------------- */
.nav {
  background: var(--negro);
  position: sticky;
  top: 0;
  z-index: 40;
}

.nav ul {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav ul::-webkit-scrollbar { display: none; }

.nav a {
  display: block;
  padding: 12px 13px;
  color: #f2f2f2;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}

.nav a:hover { color: var(--blanco); background: #1c1c1c; }
.nav a.activo { border-bottom-color: var(--rojo); color: var(--blanco); }
.nav .buscador { margin-left: auto; padding: 12px 13px; color: #9a9ea3; display: none; }

/* --- Última hora --------------------------------------------------------- */
.ultima-hora {
  background: #faf0f1;
  border-bottom: 1px solid #f0d6d8;
  font-size: 14px;
}

.ultima-hora .contenedor {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.ultima-hora .etiqueta {
  background: var(--rojo);
  color: var(--blanco);
  font-family: var(--display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 8px;
  flex: none;
}

.ultima-hora p {
  margin: 0;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- Portada: retícula --------------------------------------------------- */
.portada {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 22px 0 40px;
}

@media (min-width: 1000px) {
  .portada { grid-template-columns: minmax(0, 1fr) 320px; gap: 34px; }
}

/* --- Bloque principal (nota destacada) ----------------------------------- */
.principal figure { margin: 0; }

.principal img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--gris-claro);
}

.principal .cintillo { margin-top: 12px; }

.principal h1 {
  font-size: clamp(1.75rem, 6.4vw, 2.7rem);
  margin: 6px 0 10px;
}

.principal .sumario {
  font-size: 1.05rem;
  color: #3d4045;
  margin: 0 0 10px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--gris);
}

.meta .punto { color: var(--borde); }

/* --- Cintillos y títulos de sección ------------------------------------- */
.cintillo {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rojo);
}

.titulo-seccion {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 2px solid var(--negro);
  padding-bottom: 6px;
  margin: 34px 0 16px;
}

.titulo-seccion h2 {
  font-size: 22px;
  letter-spacing: .02em;
  text-transform: uppercase;
  position: relative;
  padding-left: 12px;
}

.titulo-seccion h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 3px;
  width: 4px;
  background: var(--rojo);
}

.titulo-seccion a {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gris);
  white-space: nowrap;
}

/* --- Retícula de notas --------------------------------------------------- */
.notas {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

@media (min-width: 560px) { .notas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .notas.tres { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.nota figure { margin: 0; overflow: hidden; }

.nota img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--gris-claro);
  transition: transform .35s ease;
}

.nota:hover img { transform: scale(1.03); }

.nota .cintillo { margin: 10px 0 4px; display: block; }

.nota h3 {
  font-size: 1.22rem;
  margin: 0 0 6px;
}

.nota p {
  font-size: .93rem;
  color: #4b4e53;
  margin: 0 0 8px;
}

/* Nota horizontal (listas compactas) */
.nota-fila {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--borde);
}

.nota-fila:last-child { border-bottom: 0; }

.nota-fila img {
  width: 108px;
  height: 68px;
  object-fit: cover;
  background: var(--gris-claro);
}

.nota-fila h3 { font-size: 1.05rem; margin: 0 0 4px; }
.nota-fila .meta { font-size: 11px; }

/* --- Barra lateral ------------------------------------------------------- */
.lateral { display: grid; gap: 24px; align-content: start; }

.widget {
  border: 1px solid var(--borde);
  box-shadow: var(--sombra);
}

.widget > h2 {
  font-size: 15px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 9px 12px;
  background: var(--negro);
  color: var(--blanco);
}

.widget .cuerpo { padding: 12px; }

/* Tabla de posiciones */
.tabla { width: 100%; border-collapse: collapse; font-size: 13px; }

.tabla th {
  text-align: left;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gris);
  font-weight: 600;
  padding: 0 4px 6px;
  border-bottom: 1px solid var(--borde);
}

.tabla td { padding: 6px 4px; border-bottom: 1px solid #f0f1f2; }
.tabla tr:last-child td { border-bottom: 0; }
.tabla .num { text-align: center; width: 26px; color: var(--gris); }
.tabla .pts { text-align: center; font-weight: 700; }
.tabla .equipo { font-weight: 500; }
.tabla tbody tr:nth-child(-n+4) .num { color: var(--verde); font-weight: 700; }

.escudo {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: -1px;
}

/* Próximos partidos */
.partido {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--borde);
  font-size: 14px;
}

.partido:last-child { border-bottom: 0; }

.partido .cuando {
  font-family: var(--display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--rojo);
}

.partido .equipos { font-weight: 600; }
.partido .sede { display: block; font-size: 11.5px; color: var(--gris); font-weight: 400; }

/* Lo más leído */
.leido li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 0;
  border-bottom: 1px solid var(--borde);
  font-size: 14px;
  font-weight: 500;
}

.leido li:last-child { border-bottom: 0; }

.leido .orden {
  flex: 0 0 16px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  color: var(--rojo);
  line-height: 1.05;
}

.leido a { flex: 1 1 auto; min-width: 0; }

/* --- Artículo ------------------------------------------------------------ */
.migas {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gris);
  padding: 16px 0 0;
}

.migas a { color: var(--gris); }
.migas .sep { margin: 0 6px; color: var(--borde); }

.articulo { padding: 8px 0 46px; }

.articulo .cintillo { display: block; margin: 10px 0 6px; }

.articulo h1 {
  font-size: clamp(1.8rem, 6.6vw, 3rem);
  margin: 0 0 12px;
}

.articulo .sumario {
  font-size: 1.12rem;
  color: #3d4045;
  margin: 0 0 18px;
  max-width: 760px;
}

.firma {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--borde);
  border-bottom: 1px solid var(--borde);
  margin-bottom: 20px;
}

.firma .iniciales {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--negro);
  color: var(--blanco);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  flex: none;
}

.firma .quien { font-weight: 600; font-size: 14px; }
.firma .cuando { font-size: 12px; color: var(--gris); }

.figura-articulo { margin: 0 0 8px; }

.figura-articulo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--gris-claro);
}

figcaption {
  font-size: 12px;
  color: var(--gris);
  padding: 7px 0 0;
  border-bottom: 1px solid var(--borde);
  padding-bottom: 10px;
  margin-bottom: 22px;
}

.cuerpo { max-width: 720px; }

.cuerpo p {
  font-size: 1.06rem;
  line-height: 1.78;
  margin: 0 0 1.15em;
}

.cuerpo > p:first-of-type::first-letter {
  float: left;
  font-family: var(--display);
  font-weight: 700;
  font-size: 3.1rem;
  line-height: .82;
  padding: 4px 8px 0 0;
  color: var(--rojo);
}

.cuerpo h2 {
  font-size: 1.55rem;
  margin: 30px 0 10px;
  padding-left: 11px;
  border-left: 4px solid var(--rojo);
}

.cuerpo ul { margin: 0 0 1.15em; }

.cuerpo li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 7px;
  font-size: 1.04rem;
  line-height: 1.7;
}

.cuerpo li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--rojo);
}

.cuerpo blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 18px;
  border-left: 4px solid var(--negro);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.25;
}

.cuerpo blockquote p { font-size: inherit; font-family: inherit; line-height: inherit; margin: 0; }

.cuerpo figure { margin: 26px 0; }

.cuerpo figure img { width: 100%; }

.compartir {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 18px 0;
  margin-top: 26px;
  border-top: 1px solid var(--borde);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gris);
}

.compartir a {
  border: 1px solid var(--borde);
  padding: 5px 11px;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: .06em;
}

.compartir a:hover { border-color: var(--rojo); }

.etiquetas { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; }

.etiquetas a {
  background: var(--gris-claro);
  font-size: 12px;
  padding: 5px 10px;
  color: #4b4e53;
}

.etiquetas a:hover { background: var(--rojo); color: var(--blanco); }

/* --- Pie ----------------------------------------------------------------- */
.pie {
  background: var(--negro);
  color: #9a9ea3;
  font-size: 13px;
  padding: 32px 0 0;
  margin-top: 20px;
}

.pie .columnas {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding-bottom: 26px;
}

@media (min-width: 700px) { .pie .columnas { grid-template-columns: 1.4fr 1fr 1fr; } }

.pie h2 {
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blanco);
  margin-bottom: 10px;
}

.pie li { margin-bottom: 7px; }
.pie a:hover { color: var(--blanco); }

.pie .marca-texto { font-size: 24px; color: var(--blanco); }
.pie .marca-texto span { font-size: 15px; }
.pie .marca svg { width: 30px; height: 30px; }
.pie .sobre { max-width: 340px; margin-top: 12px; line-height: 1.6; }

.pie .legal {
  border-top: 1px solid #24272a;
  padding: 14px 0 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  justify-content: space-between;
  font-size: 12px;
}

/* --- Utilidades ---------------------------------------------------------- */
.solo-lectores {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
