/* ═══════════════════════════════════════════
   BP EVENTOS HOME — Bádminton Perú
   ═══════════════════════════════════════════ */

.bp-torneos {
  background: #111;
  padding: 56px 0 64px;
  position: relative;
  overflow: hidden;
}

/* ── Video de fondo ── */
.bp-video-bg-wrap {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 56.25vw;
  min-height: 100%;
  min-width: 177.78vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.2;
}
.bp-video-bg-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Container ── */
.bp-torneos .bp-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Grid ── */
.bp-torneos-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ── Card ── */
.bp-torneo-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  width: 280px;
  flex-shrink: 0;
  transition: transform .2s, box-shadow .2s;
}
.bp-torneo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* Bordes por estado */
.bp-card-finalizado { border-color: #CC0000; }
.bp-card-en_curso   { border-color: #e67e00; border-width: 2px; }
.bp-card-proximo    { border-color: #16a34a; border-width: 2px; }

/* ── Imagen del torneo ── */
.bp-torneo-img {
  height: 190px;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid #eee;
}
.bp-torneo-logo-img {
  max-width: 140px;
  max-height: 140px;
  object-fit: contain;
}
.bp-torneo-logo-ph {
  width: 110px; height: 110px;
  background: #ebebeb;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.bp-torneo-logo-ph span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: 10px;
  color: #999; text-align: center;
  text-transform: uppercase; line-height: 1.3;
  padding: 4px;
}

/* ── Badge ── */
.bp-badge {
  position: absolute;
  top: 10px; left: 10px;
  padding: 3px 9px;
  border-radius: 3px;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.8px;
  color: #fff;
}
.bp-badge-finalizado { background: #CC0000; }
.bp-badge-en_curso   { background: #e67e00; }
.bp-badge-proximo    { background: #16a34a; }

/* ── Body ── */
.bp-torneo-body {
  padding: 16px;
  text-align: center;
}
.bp-torneo-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: 14px;
  color: #111; text-transform: uppercase;
  line-height: 1.3; margin-bottom: 8px;
}
.bp-torneo-fed-logo {
  margin: 6px auto 4px;
  display: flex; justify-content: center;
}
.bp-torneo-fed-logo img {
  width: 36px; height: auto;
  opacity: 0.5;
}
.bp-torneo-fecha {
  font-size: 12px; color: #888;
  margin-bottom: 14px;
  font-family: 'Montserrat', sans-serif;
}

/* ── Botón ── */
.bp-torneo-btn {
  display: block;
  text-align: center;
  padding: 11px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  text-decoration: none !important;
  margin: 0 -16px -16px -16px;
  border-radius: 0 0 10px 10px;
  transition: opacity .2s;
}
.bp-torneo-btn:hover { opacity: 0.85; }

.bp-btn-finalizado { background: #CC0000 !important; color: #fff !important; }
.bp-btn-en_curso   { background: #e67e00 !important; color: #fff !important; }
.bp-btn-proximo    { background: #16a34a !important; color: #fff !important; }

/* ── CTA calendario ── */
.bp-torneos-cta {
  text-align: center;
  margin-top: 36px;
}
.bp-torneos-cta a {
  border: 1px solid #444;
  color: #bbb !important;
  padding: 11px 32px;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.8px;
  text-decoration: none !important;
  transition: border-color .2s, color .2s;
}
.bp-torneos-cta a:hover {
  border-color: #888;
  color: #fff !important;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .bp-torneos-grid {
    flex-direction: column;
    align-items: center;
  }
  .bp-torneo-card { width: 100%; max-width: 320px; }
}

/* ── Quitar padding de Astra alrededor del shortcode ── */
.home article.ast-article-single,
.home .ast-article-single,
.home article.type-page,
.home .site-main article,
.home #main article,
.home .ast-container,
.home #primary.content-area,
.home .entry-content,
.home .wp-block-shortcode {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
}

/* ── Selector exacto de Astra que mete padding ── */
.ast-single-post.ast-page-builder-template .site-main > article,
.ast-page-builder-template .post-navigation {
  padding-top: 0px !important;
  padding-left: 0px !important;
  padding-right: 0px !important;
  padding-bottom: 0px !important;
}
