/* =========================================================
   Coberturas: buscador, filtros, tarjetas, jornadas, video y archivo.
   Usa las variables de styles.css (negro, rojo, blanco). Pensado
   primero para celular.
   ========================================================= */

.pub figure.gallery__item { margin: 0; }

/* ---------- Migas de pan ---------- */
.migas ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; list-style: none; margin: 0 0 1.5rem; padding: 0; font-size: .95rem; color: var(--gray-2); }
.migas li:not(:last-child)::after { content: "›"; margin-left: .5rem; color: var(--red); }
.migas a { color: var(--gray); text-decoration: none; }
.migas a:hover { color: var(--white); text-decoration: underline; }
.migas [aria-current] { color: var(--white); font-weight: 600; }

.cob-subtitulo { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 2.5rem 0 1rem; }
.cob-subtitulo span { color: var(--gray-2); font-size: .7em; }

/* ---------- Buscador ---------- */
.buscador { background: var(--black-2); border: 1px solid var(--line); border-top: 4px solid var(--red); padding: clamp(1rem, 3vw, 1.75rem); margin: 0 0 1.25rem; }
.buscador__etiqueta { display: block; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.3rem, 4vw, 1.75rem); margin-bottom: .75rem; }
.buscador__fila { display: flex; gap: .5rem; }
.buscador__campo {
  flex: 1; min-width: 0; min-height: 56px; padding: 0 1rem; font: inherit; font-size: 1.15rem;
  color: var(--white); background: var(--black); border: 2px solid var(--line); border-radius: var(--radius);
}
.buscador__campo:focus { outline: none; border-color: var(--red); }
.buscador__boton { min-height: 56px; }
.buscador__ejemplos { margin: .6rem 0 0; color: var(--gray-2); font-size: .9rem; }
.buscador__ejemplos a { color: var(--gray); }
.buscador--compacto { margin: 1.5rem 0; }

/* ---------- Filtros (botón en celular, panel abierto en computadora) ---------- */
.filtros { margin-top: 1rem; }
.filtros__boton {
  display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  padding: .55rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--black);
}
.filtros__boton::-webkit-details-marker { display: none; }
.filtros__boton::before { content: "☰"; color: var(--red); }
.filtros[open] .filtros__boton { border-color: var(--red); }
.filtros__cuenta { background: var(--red); color: var(--white); border-radius: 99px; min-width: 1.4em; padding: 0 .4em; text-align: center; font-size: .85rem; }
.filtros__panel { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-top: 1rem; }
.filtros__panel label { display: grid; gap: .3rem; font-size: .9rem; color: var(--gray); font-weight: 600; }
.filtros__panel select, .filtros__panel input {
  min-height: 46px; padding: 0 .6rem; font: inherit; color: var(--white); background: var(--black);
  border: 1px solid var(--line); border-radius: var(--radius); color-scheme: dark;
}
.filtros__panel select:disabled { opacity: .5; }
.filtros__acciones { display: flex; flex-wrap: wrap; gap: .5rem; align-items: end; grid-column: 1 / -1; }

.archivo-chips { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0 0 1.5rem; color: var(--gray-2); }
.archivo-chips a { padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; color: var(--white); font-weight: 600; }
.archivo-chips a:hover { border-color: var(--red); }
.section__enlaces { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.orden-chips {display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0 0 1.25rem; color: var(--gray-2); font-size: .95rem; }
.orden-chips a { padding: .3rem .75rem; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; color: var(--white); }
.orden-chips a:hover { border-color: var(--red); }
.orden-chips a[aria-current] { background: var(--red); border-color: var(--red); font-weight: 700; }

/* ---------- Resultados ---------- */
.resultados__cuenta { color: var(--gray); font-weight: 600; margin: 1.5rem 0 1rem; }
.sin-resultados { background: var(--black-2); border: 1px solid var(--line); padding: 1.5rem; }
.sin-resultados__titulo { font-weight: 700; font-size: 1.2rem; }
.sin-resultados ul { list-style: disc; padding-left: 1.25rem; color: var(--gray); }
.sin-resultados li { margin: .4rem 0; }
.ver-mas { text-align: center; margin-top: 2rem; }

/* ---------- Tarjetas ---------- */
.tarjetas { display: grid; gap: clamp(.75rem, 2vw, 1.25rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.tarjeta { background: var(--black-2); border: 1px solid var(--line); transition: border-color .2s, transform .2s var(--ease); }
.tarjeta:hover { border-color: var(--red); transform: translateY(-3px); }
.tarjeta__enlace { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.tarjeta__media { position: relative; aspect-ratio: 16 / 10; background: var(--black-3); overflow: hidden; }
.tarjeta__media img { width: 100%; height: 100%; object-fit: cover; }
.tarjeta__media--video::after {
  content: ""; position: absolute; inset: 50% auto auto 50%; width: 56px; height: 40px; transform: translate(-50%, -50%);
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 48'%3E%3Cpath fill='%23e30613' d='M66.5 7.7a8.5 8.5 0 0 0-6-6C55.2.4 34 .4 34 .4s-21.2 0-26.5 1.3a8.5 8.5 0 0 0-6 6A89 89 0 0 0 .2 24a89 89 0 0 0 1.3 16.3 8.5 8.5 0 0 0 6 6C12.8 47.6 34 47.6 34 47.6s21.2 0 26.5-1.3a8.5 8.5 0 0 0 6-6A89 89 0 0 0 67.8 24a89 89 0 0 0-1.3-16.3Z'/%3E%3Cpath fill='%23fff' d='m27 34 18-10-18-10z'/%3E%3C/svg%3E");
}
.tarjeta__sin-imagen { display: grid; place-items: center; height: 100%; font-family: var(--font-display); font-weight: 900; font-size: 2.5rem; color: var(--red); }
.tarjeta__cuerpo { display: grid; gap: .35rem; padding: .9rem 1rem 1rem; }
.tarjeta__fecha { margin: 0; color: var(--red); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.tarjeta__titulo { font-size: 1.35rem; line-height: 1.1; }
.tarjeta__meta { margin: 0; color: var(--gray); font-size: .92rem; }

.ind-lista { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .25rem; }
.ind { display: inline-flex; align-items: center; gap: .3em; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: .2em .55em; border: 1px solid var(--line); color: var(--gray); }
.ind--fotos { border-color: #2f6b45; color: #8ff0b0; }
.ind--fotos::before { content: "📷"; }
.ind--video { border-color: var(--red); color: #ffb3b7; }
.ind--video::before { content: "▶"; }
.ind--prep { border-style: dashed; }

/* ---------- Página de cobertura ---------- */
.marcador { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; margin: 0 0 1.5rem; padding: 1rem; background: var(--black-2); border-left: 4px solid var(--red); }
.marcador__equipo { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.2rem, 4vw, 1.8rem); text-transform: uppercase; }
.marcador__equipo:last-child { text-align: right; }
.marcador__resultado { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 6vw, 2.6rem); color: var(--red); }

.cob-video { margin: 1.5rem 0 1rem; }
.cob-video__marco { position: relative; aspect-ratio: 16 / 9; background: #000; border-top: 4px solid var(--red); }
.cob-video__marco iframe, .cob-video__miniatura { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.cob-video__play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.25); border: 0; cursor: pointer; }
.cob-video__play:hover { background: rgba(0,0,0,.1); }
.cob-video__play svg { width: clamp(64px, 12vw, 96px); height: auto; filter: drop-shadow(0 4px 12px rgba(0,0,0,.6)); }
.cob-video__alternativa { margin: .6rem 0 0; color: var(--gray); font-size: .95rem; }
.cob-video__alternativa a { color: var(--white); font-weight: 600; }

.cob-aviso { margin: 1.5rem 0; padding: 1.25rem 1.5rem; background: var(--black-2); border: 1px dashed var(--line); border-left: 4px solid var(--red); }
.cob-aviso p { margin: 0; color: var(--gray); }
.cob-aviso__titulo { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1.3rem; color: var(--white) !important; margin-bottom: .25rem !important; }
.cob-volver { margin-top: 2rem; }

/* ---------- Compartir ---------- */
.compartir { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0 0 1.5rem; }
.compartir__titulo { color: var(--gray-2); font-weight: 600; margin-right: .25rem; }
.compartir__btn {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 .9rem; font: inherit; font-weight: 600; font-size: .95rem;
  color: var(--white); background: var(--black-3); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; cursor: pointer;
}
.compartir__btn:hover { border-color: var(--white); }
.compartir__btn--fb { background: #1877f2; border-color: #1877f2; }
.compartir__btn--wa { background: var(--whatsapp); border-color: var(--whatsapp); color: #062b14; }

/* ---------- Jornada ---------- */
.partidos { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.partido { background: var(--black-2); border: 1px solid var(--line); }
.partido__enlace { display: flex; gap: 1rem; align-items: center; text-decoration: none; color: inherit; }
.partido__enlace:hover { background: var(--black-3); }
.partido__img { width: clamp(96px, 26vw, 180px); aspect-ratio: 16 / 10; object-fit: cover; flex: none; }
.partido__texto { display: grid; gap: .25rem; padding: .9rem 1rem; }
.partido__numero { color: var(--red); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.partido__equipos { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.15rem, 3.5vw, 1.5rem); text-transform: uppercase; }
.partido__equipos strong { color: var(--red); margin: 0 .25em; }
.partido__datos { color: var(--gray); font-size: .9rem; }
.partido--sin { opacity: .8; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0 0 1rem; padding: 0; }
.chips a { display: inline-block; padding: .5rem 1rem; border: 1px solid var(--line); background: var(--black-2); text-decoration: none; font-weight: 600; }
.chips a:hover { border-color: var(--red); }
.chips span { color: var(--gray-2); font-weight: 400; font-size: .85em; }
.jornadas-grupo h3 { font-size: 1.2rem; margin: 1rem 0 .5rem; color: var(--gray); }

/* ---------- Archivo ---------- */
.archivo-anio { margin-bottom: 1.5rem; }
.archivo-anio h2 a { text-decoration: none; }
.archivo-meses { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.archivo-meses a { display: inline-flex; gap: .5rem; padding: .5rem .9rem; border: 1px solid var(--line); background: var(--black-2); text-decoration: none; font-weight: 600; }
.archivo-meses a:hover { border-color: var(--red); }
.archivo-meses span { color: var(--red); }

/* ---------- Portada del sitio ---------- */
.inicio-coberturas__acciones { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; justify-content: center; margin-top: 2rem; }

@media (max-width: 600px) {
  .buscador__fila { flex-direction: column; }
  .buscador__boton { width: 100%; }
  .marcador { grid-template-columns: 1fr; text-align: center; }
  .marcador__equipo:last-child { text-align: center; }
  .partido__enlace { align-items: stretch; }
}
@media (min-width: 900px) {
  .filtros__panel { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Cobertura del día ---------- */
.tarjeta__cuenta {
  position: absolute; z-index: 2; left: 0; bottom: 0; padding: .2em 1.1em .2em .75em;
  background: var(--red); color: var(--white); font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
  letter-spacing: .04em; text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}
.dia__jornada {
  display: flex; align-items: center; gap: .5em; margin: 1.25rem 0 .6rem; color: var(--gray);
  font-size: 1.15rem; letter-spacing: .08em;
}
.dia__jornada::before {
  content: ""; flex: none; width: 10px; height: .85em; background: var(--red);
  clip-path: polygon(40% 0, 100% 0, 60% 100%, 0 100%);
}
.dia__categoria + .dia__categoria { margin-top: 2.5rem; }
.dia .partido__equipos { font-size: clamp(1.1rem, 3vw, 1.4rem); }
.cob-volver { display: flex; flex-wrap: wrap; gap: .75rem 1.75rem; }
.cob-video__alternativa a + a, .cob-video__alternativa a:not(:first-child) { margin-left: 0; }

/* ---------- Noticias ---------- */
.noticias { display: grid; gap: clamp(.75rem, 2vw, 1.25rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.noticia { background: var(--black-2); border: 1px solid var(--line); transition: border-color .2s, transform .3s var(--ease); }
.noticia__enlace { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.noticia__media { position: relative; aspect-ratio: 16 / 10; background: var(--black-3); overflow: hidden; }
.noticia__media img { width: 100%; height: 100%; object-fit: cover; }
.noticia__cuerpo { display: grid; gap: .5rem; align-content: start; flex: 1; padding: 1rem 1.1rem 1.25rem; }
.noticia__fecha { margin: 0; color: var(--red); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.noticia__titulo { font-size: clamp(1.35rem, 3vw, 1.7rem); line-height: 1.08; }
.noticia__texto {
  margin: 0; color: var(--gray); font-size: .98rem; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.noticia__mas {
  justify-self: start; margin-top: .35rem; padding-bottom: 2px; border-bottom: 2px solid var(--red);
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
}
.noticia__mas::after { content: " →"; color: var(--red); }
.noticia:hover { border-color: var(--red); }
.noticia__enlace:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
/* Pocas noticias: se ven grandes (una sola ocupa todo el ancho) */
.noticias[data-cantidad="1"] { grid-template-columns: 1fr; }
.noticias[data-cantidad="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 761px) {
  .noticias[data-cantidad="1"] .noticia__enlace { flex-direction: row; }
  .noticias[data-cantidad="1"] .noticia__media { flex: 0 0 48%; aspect-ratio: auto; min-height: 300px; }
  .noticias[data-cantidad="1"] .noticia__cuerpo { align-content: center; padding: clamp(1.25rem, 4vw, 2.5rem); }
  .noticias[data-cantidad="1"] .noticia__titulo { font-size: clamp(1.9rem, 4vw, 2.8rem); }
  .noticias[data-cantidad="1"] .noticia__texto { -webkit-line-clamp: 5; font-size: 1.05rem; }
}
@media (max-width: 760px) { .noticias[data-cantidad="2"] { grid-template-columns: 1fr; } }
.noticias-inicio .noticias { margin-top: .25rem; }
.noticias-mas { padding-top: 0; }
