/* =====================================================
   DEPORTES 01 - HERO
===================================================== */

/* Quitar estilos genéricos de Astra en páginas de deporte */

.single-deporte .entry-header,
.single-deporte .entry-title,
.single-deporte .entry-meta,
.single-deporte .post-navigation,
.single-deporte .comments-area {
  display: none !important;
}

.single-deporte .site-content,
.single-deporte .ast-container,
.single-deporte .content-area,
.single-deporte .site-main,
.single-deporte article,
.single-deporte .entry-content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.single-deporte .ast-container {
  display: block !important;
}

/* HERO */

.cabp-deporte-hero {
  position: relative;
  width: 100%;
  height: 340px;
  overflow: hidden;
  background: #0f1f16;
  font-family: Arial, Helvetica, sans-serif;
}

.cabp-deporte-hero,
.cabp-deporte-hero * {
  box-sizing: border-box;
}

/* Imagen destacada */

.cabp-deporte-hero__imagen {
  position: absolute;
  inset: 0;

  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;

  object-fit: cover;
  object-position: center;

  animation: cabpDeporteHeroImagen 1s ease both;
}

/* Oscurecimiento */
.cabp-deporte-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;

  background:
    linear-gradient(
      90deg,
      rgba(8, 34, 20, 0.9) 0%,
      rgba(8, 34, 20, 0.68) 45%,
      rgba(8, 34, 20, 0.2) 100%
    ),
    linear-gradient(
      to top,
      rgba(8, 34, 20, 0.72) 0%,
      rgba(8, 34, 20, 0.12) 48%,
      transparent 75%
    );
}

/* Contenido */

.cabp-deporte-hero__contenido {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;

  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 42px;

  opacity: 0;
  animation: cabpDeporteHeroContenido 0.7s ease 0.15s forwards;
}

@keyframes cabpDeporteHeroContenido {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Volver */

.cabp-deporte-hero__volver {
  display: inline-flex;
  align-items: center;

  margin: 0 0 12px;

  color: rgba(255, 255, 255, 0.7) !important;

  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none !important;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.cabp-deporte-hero__volver:hover,
.cabp-deporte-hero__volver:focus {
  color: #ffffff !important;
  transform: translateX(-3px);
}

/* Nombre del deporte */

.cabp-deporte-hero__titulo {
  margin: 0 0 10px;

  color: #ffffff !important;

  font-size: 3rem;
  font-weight: 700;
  line-height: 1.08;
}

/* Descripción corta */

.cabp-deporte-hero__subtitulo {
  max-width: 660px;
  margin: 0;

  color: rgba(255, 255, 255, 0.82);

  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

/* Animaciones */

@keyframes cabpDeporteHeroImagen {
  from {
    opacity: 0;
    transform: scale(1.06);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes cabpDeporteHeroContenido {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tablet */

@media (max-width: 767px) {
  .cabp-deporte-hero {
    height: 310px;
  }

  .cabp-deporte-hero__contenido {
    padding: 0 20px 34px;
  }

  .cabp-deporte-hero__titulo {
    font-size: 2.35rem;
  }
}

/* Celular */

@media (max-width: 520px) {
  .cabp-deporte-hero {
    height: 280px;
  }

  .cabp-deporte-hero__overlay {
    background:
      linear-gradient(
        to top,
        rgba(8, 34, 20, 0.95) 0%,
        rgba(8, 34, 20, 0.62) 62%,
        rgba(8, 34, 20, 0.2) 100%
      );
  }

  .cabp-deporte-hero__contenido {
    padding: 0 18px 28px;
  }

  .cabp-deporte-hero__titulo {
    font-size: 2rem;
  }

  .cabp-deporte-hero__subtitulo {
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cabp-deporte-hero__imagen,
  .cabp-deporte-hero__contenido {
    animation: none;
  }
}
/* =====================================================
   DEPORTES - SOBRE EL DEPORTE
===================================================== */

.cabp-deporte-descripcion {
  width: 100%;
  padding: 56px 0;
  background: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
}

.cabp-deporte-descripcion,
.cabp-deporte-descripcion * {
  box-sizing: border-box;
}

.cabp-deporte-descripcion .cabp-deporte-contenedor {
  display: grid;
  grid-template-columns: calc(50% - 18px) calc(50% - 18px);
  align-items: center;
  gap: 36px;

  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.cabp-deporte-descripcion__contenido {
  min-width: 0;
}

.cabp-deporte-eyebrow {
  margin: 0 0 10px;
  color: #146135;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.cabp-deporte-titulo-seccion {
  margin: 0 0 16px;
  color: #1f2937 !important;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.cabp-deporte-texto {
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.75;
}

.cabp-deporte-texto p {
  margin: 0 0 12px;
}

.cabp-deporte-texto p:last-child {
  margin-bottom: 0;
}

.cabp-deporte-descripcion__imagen {
  display: block;
  width: 100% !important;
  height: 280px !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center;
  border: 1px solid #d9e7de;
}

@media (max-width: 767px) {
  .cabp-deporte-descripcion .cabp-deporte-contenedor {
    grid-template-columns: 100%;
  }

  .cabp-deporte-descripcion__imagen {
    height: 250px !important;
  }
}

@media (max-width: 520px) {
  .cabp-deporte-descripcion {
    padding: 46px 0;
  }

  .cabp-deporte-descripcion .cabp-deporte-contenedor {
    padding: 0 18px;
  }

  .cabp-deporte-titulo-seccion {
    font-size: 1.55rem;
  }

  .cabp-deporte-descripcion__imagen {
    height: 220px !important;
  }
}

/* =====================================================
   CATEGORÍAS Y HORARIOS
   3 TARJETAS POR FILA - 2 FILAS INTERNAS
===================================================== */

.cabp-categorias {
    width: 100%;
    padding: 52px 0;
    background: #0f1f16;
    font-family: Arial, Helvetica, sans-serif;
}

.cabp-categorias,
.cabp-categorias * {
    box-sizing: border-box;
}

/* CONTENEDOR GENERAL */

.cabp-categorias__container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 34px;
}

/* ENCABEZADO */

.cabp-categorias__eyebrow {
    margin: 0 0 8px;
    color: #4ade80;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.cabp-categorias__titulo {
    margin: 0 0 30px;
    color: #ffffff !important;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
}

/* =====================================================
   GRILLA
===================================================== */

.cabp-categorias__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    width: 100%;
}

/* =====================================================
   TARJETA
===================================================== */

.cabp-categoria-card {
    width: calc((100% - 36px) / 3);

    min-width: 0;
    min-height: 118px;

    padding: 18px 19px;

    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.cabp-categoria-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(74, 222, 128, 0.24);
}

/* =====================================================
   FILA 1
   TITULO IZQUIERDA / DIAS DERECHA
===================================================== */

.cabp-categoria-card__header {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 18px;
}

.cabp-categoria-card__nombre {
    width: 62%;

    margin: 0;

    color: #ffffff !important;

    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;

    text-align: left;
}

.cabp-categoria-card__dias {
    width: 34%;

    padding: 4px 8px;

    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;

    font-size: 0.66rem;
    font-weight: 700;
    line-height: 1.2;

    text-transform: uppercase;
    letter-spacing: 0.03em;

    text-align: center;

    white-space: nowrap;
}

/* =====================================================
   FILA 2
   HORARIO IZQUIERDA / PROFESOR DERECHA
===================================================== */

.cabp-categoria-card__info {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;
}

.cabp-categoria-card__horario {
    width: 48%;

    color: rgba(255, 255, 255, 0.62);

    font-size: 0.76rem;
    line-height: 1.3;

    text-align: left;
}

.cabp-categoria-card__profesor {
    width: 48%;

    color: rgba(255, 255, 255, 0.42);

    font-size: 0.72rem;
    font-style: italic;
    line-height: 1.3;

    text-align: right;
}

/* =====================================================
   TABLET
===================================================== */

@media (max-width: 900px) {

    .cabp-categoria-card {
        width: calc((100% - 18px) / 2);
    }

}

/* =====================================================
   CELULAR
===================================================== */

@media (max-width: 600px) {

    .cabp-categorias {
        padding: 44px 0;
    }

    .cabp-categorias__container {
        padding: 0 18px;
    }

    .cabp-categoria-card {
        width: 100%;
        min-height: 112px;
    }

    .cabp-categoria-card__nombre {
        width: 60%;
    }

    .cabp-categoria-card__dias {
        width: 36%;
    }

}