.torneo-hero {
  position: relative;
  margin-top: 3.2rem;
  border-radius: 0.8rem;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15));
}
.torneo-hero__imagen {
  width: 100%;
  height: clamp(18rem, 40vh, 36rem);
  object-fit: cover;
  display: block;
  filter: contrast(1.02) saturate(1.05);
}
.torneo-hero__meta {
  position: absolute;
  left: 2rem;
  bottom: 2rem;
  background: rgba(255, 255, 255, 0.92);
  padding: 1.6rem 2rem;
  border-radius: 0.8rem;
  display: flex;
  gap: 1.2rem;
  align-items: center;
  box-shadow: 0 6px 20px rgba(3, 24, 34, 0.12);
  min-width: 40rem;
}
.torneo-logo {
  width: 6.4rem;
  height: 6.4rem;
  border-radius: 0.6rem;
  overflow: hidden;
  flex: 0 0 6.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--grisClaro);
}
.torneo-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.torneo-titulo {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.torneo-titulo h1 {
  font-size: 2.8rem;
  margin: 0;
}
.torneo-meta-line {
  font-size: 1.4rem;
  color: var(--grisOscuro);
}

/* Contenido principal */
.torneo-contenido {
  display: grid;
  grid-template-columns: 1fr 36rem;
  gap: 3.2rem;
  margin-top: 2.4rem;
  align-items: start;
}
.torneo-descripcion {
  background: #fff;
  padding: 2.4rem;
  border-radius: 0.8rem;
  box-shadow: 0 6px 18px rgba(3, 24, 34, 0.06);
}
.torneo-descripcion h2 {
  margin-top: 0;
  font-size: 2.4rem;
}
.torneo-datos {
  margin-top: 1.2rem;
  display: flex;
  gap: 1rem;
  flex-direction: column;
}
.dato {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.dato strong {
  min-width: 9rem;
  display: inline-block;
  font-weight: 700;
}

/* Tarjeta del ganador */
.ganador {
  background: #fff;
  padding: 2rem;
  border-radius: 0.8rem;
  box-shadow: 0 6px 18px rgba(3, 24, 34, 0.06);
  text-align: center;
}
.ganador__foto {
  width: 12rem;
  height: 12rem;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--blanco);
  box-shadow: 0 6px 18px rgba(3, 24, 34, 0.12);
}
.ganador__foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ganador__nombre {
  font-size: 1.8rem;
  font-weight: 700;
}
.pais {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}
.pais img {
  width: 2.4rem;
  height: 1.6rem;
  object-fit: cover;
  border-radius: 0.2rem;
}

/* Responsive */
@media (max-width: 1000px) {
  .torneo-contenido {
    grid-template-columns: 1fr;
  }
}

/*FRONTEND*/
/* Container */
.torneos-contenedor {
  width: min(92%, 120rem);
  margin: 0 auto;
  padding: 3rem 0;
}

.titulo-seccion {
  text-align: center;
  font-size: 3.6rem;
  margin-bottom: 2.4rem;
  color: #0b2340;
  letter-spacing: -0.02em;
}

/* Grid: 3 / 2 / 1 */
.torneos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

/* Card */
.torneo-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(12, 30, 50, 0.08);
  border: 1px solid rgba(8, 30, 60, 0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.torneo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 48px rgba(8, 30, 60, 0.12);
}

/* Media area: court image + floating logo */
.card-media {
  position: relative;
  height: 170px;
  background: #e9eef6;
}

.card-media .cancha {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: center;
}

/* Floating circular logo */
.logo-torneo {
  position: absolute;
  left: 16px;
  bottom: -20px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff;
  padding: 6px;
  box-shadow: 0 6px 18px rgba(8, 30, 60, 0.12);
  object-fit: contain;
  border: 3px solid #fff;
}

/* Body */
.card-body {
  padding: 3.2rem 1.6rem 1.6rem; /* leave room for floating logo */
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  flex: 1;
}

/* Top line: title + country */
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.torneo-nombre {
  font-size: 1.6rem;
  margin: 0;
  color: #07203a;
  font-weight: 700;
  line-height: 1.1;
}

.pais {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-align: right;
}

.bandera {
  width: 34px;
  height: 22px;
  object-fit: cover;
  border-radius: 4px;
  display: inline-block;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.pais-nombre {
  font-size: 1.1rem;
  color: #334e6a;
  font-weight: 600;
}

/* Meta badges */
.meta-line {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #093046;
  background: rgba(6, 120, 170, 0.08);
  border: 1px solid rgba(6, 120, 170, 0.12);
}

/* Surface color variants */
.badge.superficie.dura {
  background: rgba(0, 165, 226, 0.08);
  border-color: rgba(0, 165, 226, 0.12);
}
.badge.superficie.tierra {
  background: rgba(204, 102, 0, 0.08);
  border-color: rgba(204, 102, 0, 0.12);
}
.badge.superficie.hierba {
  background: rgba(50, 180, 90, 0.08);
  border-color: rgba(50, 180, 90, 0.12);
}

/* Category badge */
.badge.categoria {
  background: rgba(220, 220, 220, 0.12);
  color: #102635;
  border-color: rgba(0, 0, 0, 0.05);
}

/* Short description */
.descripcion-corta {
  margin: 0;
  color: #415a6e;
  font-size: 1.1rem;
  line-height: 1.4;
  flex: 1;
}

/* Footer */
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 0.6rem;
}

.ver-mas {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  background: linear-gradient(180deg, #00a5e2, #0382b0);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: background 0.18s ease;
}

.ver-mas:hover {
  background: linear-gradient(180deg, #0382b0, #02374a);
}

.visitas {
  color: #6b8796;
  font-weight: 600;
  font-size: 1rem;
}

/* Responsive breakpoints */
@media (max-width: 1200px) {
  .torneos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .torneos-grid {
    grid-template-columns: 1fr;
  }
  .card-media {
    height: 220px;
  }
  .logo-torneo {
    left: 14px;
    bottom: -32px;
    width: 84px;
    height: 84px;
  }
  .card-body {
    padding-top: 4.2rem;
  }
  .titulo-seccion {
    font-size: 3rem;
  }
}

/* Small accessibility / readability bump */
.torneo-nombre,
.pais-nombre,
.descripcion-corta {
  letter-spacing: -0.01em;
}
