/* --- CARTELERA Y CRUCES DE PARTIDOS --- */
.jornada-container {
  max-width: 1350px;
  margin: 40px auto;
  padding: 0 20px;
}

.jornada-header {
  text-align: center;
  margin-bottom: 40px;
}

.fecha-badge {
  background: var(--accent);
  color: white;
  padding: 6px 16px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.8rem;
  display: inline-block;
  margin-bottom: 10px;
}

.cruces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
}

.cruce-card {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  transition: 0.3s;
}

.cruce-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.cruce-time {
  background: #f8f9fa;
  padding: 10px;
  font-size: 0.75rem;
  text-align: center;
  font-weight: 700;
}

.cruce-teams {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 25px 10px;
}

.team {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 20%;
}

.team img {
  width: 50px;
  height: 50px;
  margin-bottom: 8px;
  object-fit: contain;
}

.team span {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--primary);
}

.vs-text {
  font-weight: 900;
  color: #ddd;
  font-size: 1.2rem;
}

.cruce-footer {
  text-align: center;
  padding: 8px;
  font-size: 0.8rem;
  border-top: 1px solid #f4f4f4;
  font-weight: 700;
  color: #666;
}

/* --- TARJETA DE EQUIPO LIBRE / DESCANSO --- */
.cruce-libre {
  background: linear-gradient(90deg, #ffffff 0%, #f8f9fa 100%);
  border-left: 5px solid var(--primary);
  display: flex;
  align-items: center;
  padding: 20px;
}

.libre-inner {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 20px;
}

.libre-badge {
  background: var(--primary);
  color: white;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 3px;
  writing-mode: vertical-lr;
  transform: rotate(180deg);
}

.logo-club-descanso {
  width: 60px !important;
  height: 60px !important;
  object-fit: contain;
}

/* --- RESUMEN DE JORNADA (RESULTADOS) --- */
.resultados-lista {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30%, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.resultado-cruce-box {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #eee;
  overflow: hidden;
}

.cruce-header-simple {
  background: var(--primary);
  padding: 10px;
  display: flex;
  justify-content: space-between;
  color: white;
}

.club-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
}

.club-mini img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.serie-fila {
  display: flex;
  justify-content: space-between;
  padding: 8px 15px;
  border-bottom: 1px solid #f9f9f9;
}

.serie-score {
  font-weight: 800;
  width: 80px;
  text-align: center;
}

.ganador {
  color: var(--accent);
}

/* --- BLOQUE DE INSTITUCIONES --- */
.logo-contenedor {
  transition: all 0.3s ease;
  cursor: pointer;
  background: white;
  border: 1px solid #eee;
}

.logo-contenedor:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-color: var(--neon-blue);
}

.institucion-card-v2 {
  background: rgb(199, 199, 199);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(10px);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.institucion-card-v2:hover {
  transform: scale(1.1);
}

.info_club {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* --- TARJETAS DE NOTICIAS --- */
.noticias-grid {
  display: grid !important; /* Forzamos el comportamiento de grilla */
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 25px;
  margin-top: 20px;
  width: 100%; /* Asegura que ocupe todo el ancho disponible */
}

.news-card {
  background: var(--white, #ffffff);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 31, 63, 0.12);
  border-color: rgba(0, 212, 255, 0.4);
}

.news-image-wrapper {
  position: relative;
  width: 100%;
  height: 210px;
  overflow: hidden;
  background-color: #f1f5f9;
}

.news-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-image {
  transform: scale(1.06);
}

.news-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--primary, #001f3f);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 30px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.news-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 12px;
}

.news-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.news-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary, #001f3f);
  line-height: 1.4;
  margin-bottom: 12px;
  /* Limita el título a 2 líneas si es muy largo */
  display: -webkit-box;
  overflow: hidden;
}

.news-excerpt {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 20px;
  /* Limita el texto a 3 líneas */
  display: -webkit-box;
  overflow: hidden;
}

.news-footer {
  margin-top: auto;
  border-top: 1px solid #f1f5f9;
}

.btn-read-more {
  color: var(--accent, #e91b23);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition:
    gap 0.2s ease,
    color 0.2s ease;
}

.btn-read-more:hover {
  color: var(--primary, #001f3f);
  gap: 10px;
}
/* --- VISTA INICIO RESPONSIVA --- */
@media (max-width: 768px) {
  .cruce-libre {
    flex-direction: column;
    text-align: center;
  }

  .libre-inner {
    flex-direction: column;
  }

  .libre-badge {
    writing-mode: horizontal-tb;
    transform: none;
  }

  .resultados-lista {
    grid-template-columns: repeat(auto-fit, minmax(50%, 1fr));
  }
  .noticias-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 500px) {
  .noticias-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  }
  .jornada-container {
    padding: 0px;
  }
}
