/* =========================================================
   Camisetum PDP - Detalles + Historia + Jugadores
   ========================================================= */

.c-pdp-dh{
  margin-top: 26px;
  padding-top: 58px;
  border-top: 1px solid rgba(0, 0, 0, .10);
}

/* Grid base */
.c-pdp-dh__grid{
  display: grid;
  grid-template-columns: 1fr;
}

/* --- MODO OFF --- */
.c-pdp-dh--history-off .c-pdp-dh__grid{
  grid-template-columns: 1fr;
}
.c-pdp-dh--history-off .c-pdp-dh__col--history{
  display: none;
}

/* Columna Detalles: borde derecho */
.c-pdp-dh__col--details{
  padding-right: 40px;
  border-right: 1px solid #e6e6e6;
}

/* Título */
.c-pdp-dh__title{
  margin: 0 0 18px 0;
  font-weight: 900;
  font-size: 1.3rem !important;
  line-height: 1.05;
  color: #7a7a7a;
}

/* Lista (dl) */
.c-pdp-specs{
  margin: 0;
}

.c-pdp-specs__row{
  display: grid;
  grid-template-columns: 190px 1fr;
  column-gap: 0px;
  padding: 1px 0;
}

.c-pdp-specs__label,
.c-pdp-specs__value{
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.c-pdp-specs__label{
  font-weight: 700;
  color: #0a0a0a;
}

.c-pdp-specs__value{
  font-weight: 400;
  color: #2b2b2b;
}

/* País + bandera */
.c-pdp-specs__country{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.c-pdp-specs__flag{
  font-size: 14px;
  line-height: 1;
  position: relative;
  top: 1px;
}

/* Certificaciones: badges */
.c-pdp-specs__badges{
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
}
.c-pdp-specs__badge{
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border: 1px solid #d0d0d0;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.35;
  color: #333;
  background: #fff;
}

/* Emoji (bandera) */
.c-pdp-specs__country .emoji{
  display: inline !important;
  border: none !important;
  box-shadow: none !important;
  height: 1em !important;
  width: 1em !important;
  margin: 0 0.07em !important;
  vertical-align: -0.1em !important;
  background: none !important;
  padding: 0 !important;
}

/* ✅ MÓVIL: mantener 2 columnas (label + value en la misma fila) */
@media (max-width: 767.98px){
  .c-pdp-dh__col--details{
    padding-right: 0;
    border-right: 0;
  }

  .c-pdp-dh__title{
    font-size: 26px;
    margin-bottom: 14px;
  }

  .c-pdp-specs__row{
    grid-template-columns: clamp(150px, 46vw, 210px) 1fr;
    column-gap: 16px;
    padding: 4px 0;
  }

  .c-pdp-specs__label,
  .c-pdp-specs__value{
    font-size: 13px;
  }
}

/* =========================================================
   HISTORIA: layout + estilos
   ========================================================= */

@media (min-width: 1024px){
  .c-pdp-dh--history-on .c-pdp-dh__grid{
    grid-template-columns: 1fr 1fr;
  }

  .c-pdp-dh--history-on .c-pdp-dh__col--history{
    padding-left: 40px;
  }
}

@media (max-width: 1023.98px){
  .c-pdp-dh--history-on .c-pdp-dh__col--history{
    margin-top: 30px;
  }
  
  .c-pdp-dh__subtitle{
  margin: 30px 0 12px 0 !important;
  }
}

.c-pdp-history__body{
  font-size: 14px;
  line-height: 1.65;
  color: #2b2b2b;
}

.c-pdp-history__body p{
  margin: 0 0 12px 0;
}

.c-pdp-history__body p:last-child{
  margin-bottom: 0;
}

.c-pdp-history__empty{
  margin: 0;
  color: #666;
}

/* =========================================================
   JUGADORES QUE UTILIZARON ESTA CAMISETA
   ========================================================= */

.c-pdp-dh__subtitle{
  margin: 22px 0 12px 0;
  font-weight: 900;
  font-size: 1.3rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #7a7a7a;
  text-transform: uppercase;
}

.c-pdp-players-used__grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 0px;
  row-gap: 10px;
  align-items: start;
}

@media (max-width: 479.98px){
  .c-pdp-players-used__grid{
    grid-template-columns: 1fr;
  }
}

.c-pdp-player{
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  min-height: 34px; /* ✅ ajustado al nuevo tamaño de imagen */
}

.c-pdp-player:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ✅ AQUÍ: tamaño de la imagen (antes 44px) */
.c-pdp-player__media{
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 9px;
  overflow: hidden;
  background: #f2f2f2;
}

.c-pdp-player__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.c-pdp-player__placeholder{
  width: 100%;
  height: 100%;
  display: block;
}

/* Evita saltos de altura por wrap */
.c-pdp-player__name{
  font-size: 14px;
  line-height: 1.3;
  font-weight: 700;
  color: #0a0a0a;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

@media (max-width: 767.98px){
  .c-pdp-player__name{
    font-size: 13px;
  }
}

.c-pdp-players-used__empty{
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #666;
}
