/* ============================================================
   PORTADA (front-page.php) — mobile first
   ============================================================ */

/* ── Noticias: ajustes finos sobre .home-news de main.css ── */
.home-news .noticia-card.is-row .noticia-img { background-size: cover; background-position: center; }
@media (min-width: 1024px) {
  .home-news-row { gap: 20px; }
  .home-news-row .noticia-img { height: 150px; }
  .home-news-row .noticia-body,
  .noticia-card.is-row .noticia-body { padding: 18px; }
  .home-news-row .noticia-title,
  .noticia-card.is-row .noticia-title { margin-bottom: 6px; }
}

/* ── Contacto ── */
.contact-list { display: flex; flex-direction: column; gap: 12px; }
.contact-card {
  background: white; border-radius: var(--radius-md);
  padding: 18px; box-shadow: var(--shadow-sm);
  display: flex; gap: 14px; align-items: flex-start;
}
.contact-card-icon { font-size: 22px; line-height: 1.3; flex-shrink: 0; }
.contact-card-title { font-weight: 700; margin-bottom: 4px; }
.contact-card p { overflow-wrap: anywhere; }
.contact-map {
  background: var(--gray-200); border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px;
  color: var(--gray-500);
}
.contact-form { background: white; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.contact-form .form-field { margin-bottom: 14px; }
.contact-form .form-label { font-size: 11px; margin-bottom: 6px; }
.contact-form .form-input,
.contact-form .form-textarea { background: var(--gray-50); }
.contact-form .form-textarea { min-height: 100px; }

@media (min-width: 768px) {
  .contact-list { gap: 16px; }
  .contact-card { padding: 24px; gap: 16px; }
  .contact-card-icon { font-size: 24px; }
  .contact-map, .contact-form { border-radius: var(--radius-lg); }
}

/* ── Secciones: tarjetas "Próximamente" ── */
.sport-card.is-soon { cursor: pointer; }
.sport-card.is-soon img { filter: grayscale(0.35); opacity: 0.8; }
.sport-soon {
  position: absolute; top: 10px; right: 10px;
  background: var(--black); color: white;
  font-size: 10px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase;
  padding: 4px 9px; border-radius: 20px; line-height: 1.3;
}
@media (min-width: 768px) {
  .sport-soon { top: 12px; right: 12px; }
}

/* ── Botón "Ver más noticias" ── */
.news-more { display: flex; justify-content: center; margin-top: 28px; }
.news-more .btn-primary { width: 100%; }
@media (min-width: 480px) { .news-more .btn-primary { width: auto; } }
@media (min-width: 768px) { .news-more { margin-top: 40px; } }

/* ── Últimas noticias (reales) ── */
.home-news .noticia-img, .home-news-row .noticia-img { display: block; text-decoration: none; }
.noticia-img.is-empty {
  display: flex !important; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue), var(--pink)); font-size: 34px;
}
.noticia-card .noticia-title { margin-top: 0; }
.noticia-card .noticia-title a { color: inherit; text-decoration: none; }
.noticia-card .noticia-title a:hover { color: var(--blue); }
.noticia-exc {
  font-size: 14px; line-height: 1.6; color: var(--gray-600); margin: 0 0 12px;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.home-news-row .noticia-title, .home-news-side .noticia-title {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.home-news-empty { color: var(--gray-600); font-size: 15px; }
@media (min-width: 1024px) { .noticia-exc { font-size: 15px; -webkit-line-clamp: 3; } }

/* ══ Fotos de noticias 1:1 ══ */
.home-news .noticia-card .noticia-img,
.home-news-row .noticia-card .noticia-img { height: auto; aspect-ratio: 1 / 1; }

/* Laterales: miniatura cuadrada a la izquierda */
.home-news .noticia-card.is-row .noticia-img { width: 112px; min-width: 112px; align-self: flex-start; }

/* Destacada: foto arriba en móvil; foto cuadrada a la izquierda desde tablet */
@media (min-width: 768px) {
  .home-news .noticia-card.is-featured { flex-direction: row; }
  .home-news .noticia-card.is-featured .noticia-img { width: 48%; flex: none; align-self: flex-start; }
  .home-news .noticia-card.is-featured .noticia-body { justify-content: center; padding: 24px; }
  .home-news .noticia-card.is-row .noticia-img { width: 120px; min-width: 120px; }
}
@media (min-width: 1024px) {
  .home-news .noticia-card.is-featured .noticia-img { width: 52%; }
  .home-news .noticia-card.is-featured .noticia-title { font-size: 21px; }
}
@media (min-width: 768px) {
  .home-news .noticia-card.is-featured .noticia-title { flex: none; }
}
@media (min-width: 1024px) {
  .home-news { align-items: start; }
  .home-news .noticia-card.is-featured .noticia-img { width: 58%; }
}
