.teamtpl { max-width: 1200px; margin: 0 auto; padding: 24px 0px; }

/* Breadcrumb */
.teamtpl-breadcrumb{
  font-size: 15px;
  color: #002041;
  margin-bottom: 16px;
  font-weight: 500;
}
.teamtpl-breadcrumb a { color: inherit; text-decoration: none; }
.teamtpl-breadcrumb .sep { margin: 0 6px; }

/* =========================
   HERO: layout adaptativo
   ========================= */
.teamtpl-hero{
  display: grid;
  gap: 24px;
  align-items: center;
  margin-bottom: 20px;
}

/* Desktop: solo si hay carrusel, 1fr + sidebar */
.has-carousel .teamtpl-hero{
  grid-template-columns: 1fr minmax(280px, 420px);
}

/* Móvil: siempre 1 columna */
@media (max-width: 900px){
  .teamtpl-hero{ grid-template-columns: 1fr !important; }
}


/* El aside nunca se oculta; si no hay carrusel, se apila debajo */
.no-carousel .teamtpl-hero-right{
  display: block;
  grid-column: 1;
  padding: 0;
  min-height: 0;
  border: 0;
  width: 95% !important;
}

/* HERO LEFT: escudo + título alineados, descripción abajo */
.teamtpl-hero-left .teamtpl-hero-head{
  display: flex;
  align-items: center;
  gap: 16px;
}

.teamtpl-hero-left .teamtpl-escudo{
  width: 100px;
  height: 100px;
  max-width: 100px;
  max-height: 100px;
  object-fit: contain;
  flex: 0 0 auto;
}

.teamtpl-title{
  margin: 0;
  line-height: 1;
  font-size: 2.8rem;
  color: #0F2D4C;
  flex: 1 1 auto;
  text-transform: uppercase;
  font-weight: 800;
}

/* Descripción: 100% ancho, letras pequeñas y line-height reducido */
.teamtpl-intro,
.teamtpl-intro--full{
  max-width: 100% !important;
  font-size: 14px;
  line-height: 1.35;
  margin: 8px 0 5px;
}

/* Evitar desbordes en móviles muy estrechos */
@media (max-width: 640px){
  .teamtpl-hero-left .teamtpl-title{
    font-size: clamp(2.2rem, 10vw, 6rem);
  }
}


/* =========================
   HERO RIGHT: carrusel (1 fila + scroll + flecha)
   ========================= */
.teamtpl-hero-right .teamtpl-carrusel-wrap{
  position: relative;
}

.teamtpl-hero-right .teamtpl-carrusel{
  display: flex;
  flex-wrap: nowrap;                /* siempre 1 fila */
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-x: auto;                 /* scroll horizontal en desktop y móvil */
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

/* Ocultar scrollbar (opcional) */
.teamtpl-hero-right .teamtpl-carrusel{ scrollbar-width: none; }
.teamtpl-hero-right .teamtpl-carrusel::-webkit-scrollbar{ display: none; }

.teamtpl-hero-right .teamtpl-carrusel li{
  flex: 0 0 auto;                   /* no crecer/encoger, todos en línea */
  scroll-snap-align: start;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  text-align: center;
}

.teamtpl-hero-right .teamtpl-carrusel-item{
  display: flex;
  flex-direction: column;
  align-items: center;
  width: auto;
}

/* Imagen: tamaño natural, sin forzar 1:1 */
.teamtpl-hero-right .teamtpl-carrusel img {
  height: 175px;
  width: auto;
  aspect-ratio: auto;
  object-fit: contain;
  padding: 0;
  filter: drop-shadow(0 0 7px #c8c8c8);
  margin: 10px 8px;
  transition: .3s;
}

.teamtpl-hero-right .teamtpl-carrusel img:hover {
    transform: translateY(-5px);
}
/* Etiqueta bajo la imagen */
.teamtpl-hero-right .teamtpl-carrusel-item .teamtpl-carrusel-type{
  margin-top: 5px;
  font-size: 15px;
  line-height: 1.2;
  color: #002041;
  font-weight: 700;
}

/* Botón de avance (única flecha derecha) */
.teamtpl-hero-right .carrusel-next{
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 10px #0000001a;
    background: rgb(255 255 255 / 71%);
    backdrop-filter: blur(7px);
    color: #fff;
    width: 40px;
    border: 1px solid #e0e0e066;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: opacity .2s ease;
    padding: 0;
}
.teamtpl-hero-right .carrusel-next:hover{ opacity: .9; }

/* Móvil: imagen un poco más baja para que quepa */
@media (max-width: 900px){
  .teamtpl-hero-right .teamtpl-carrusel img { height: 150px !important; }
}


/* =========================
   CONTROLES
   ========================= */
.teamtpl-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 45px 0 25px;
  padding-top: 45px;
  border-top: 1px solid #eaeaea;
}
.teamtpl-controls-left{
  display:grid;
  grid-template-rows:auto auto;
  row-gap:6px;
}
.teamtpl-order-label{
  font-size: 16px;
  color: #002041;
  font-weight: 500;
  line-height: 1.2;
}
.teamtpl-order{
  padding: 0px 10px !important;
  width: 280px !important;
  height: 30px !important;
  font-size: 14px !important;
  border-color: #e3e3e3 !important;
  border-radius: 6px !important;
  color: #002041;
  text-transform: uppercase;
}
.teamtpl-order::-ms-expand{ display:none; }
.teamtpl-order option{ text-transform:uppercase; }

.teamtpl-count{
  font-size: 16px;
  color: #002041;
  font-weight: 500 !important;
  white-space: nowrap;
}
.teamtpl-count span{ font-weight: 500 !important; }

@media (max-width: 520px){
  .teamtpl-controls{
    flex-direction:column;
    align-items:flex-start;
    gap:8px;
  }
  .teamtpl-count{ white-space:normal; }
}

/* =========================
   GRID + CARDS
   ========================= */
.teamtpl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

@media (max-width: 991px){
  .teamtpl-grid { grid-template-columns: repeat(3, 1fr); }
}
/* MÓVIL: SIEMPRE 2 COLUMNAS */
@media (max-width: 767px){
  .teamtpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.teamtpl-card{
  background: #fff;
  position: relative;
  display: grid;
}

.teamtpl-card .thumb{
  position: relative;
  display: block;
  margin-bottom: 3px;
  background: #f5f5f5;
  height: 330px;
  display: flex;
  align-items: center;
}

.teamtpl-card img{
  width: auto;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  filter: drop-shadow(0px 0px 7px #c8c8c8);
  padding: 10px 15px;
}

/* Zoom sutil al hover */
.teamtpl-grid .teamtpl-card .thumb img{
  transition: transform .2s ease;
  transform-origin: 50% 50%;
}
.teamtpl-grid .teamtpl-card:hover .thumb img{
  transform: scale(1.02);
}

.teamtpl-card .title{
  font-size: 14px;
  line-height: 1.3;
  margin: 6px 0 0px;
  padding: 0 5px;
}
.teamtpl-card .title a{ color: #002041; }

.teamtpl-card .price{
    font-weight: 600;
    font-size: 20px;
    line-height: 25px;
    display: flex;
    flex-direction: row-reverse;
    justify-content: start;
    gap: 10px;
    padding: 0 3px;
    align-items: baseline;
    margin-top: -1px;
}
.teamtpl-card .price del{
  font-size: 16px;
  color: #9b9b9b;
}

/* =========================
   “MÁS POPULAR” (Best)
   ========================= */
.teamtpl-grid > .teamtpl-best{
  grid-column: span 2 !important;     /* ✅ ocupa el espacio de dos tarjetas (media fila) */
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 20px !important;
  align-items: center !important;
  padding: 20px;
  background: #f5f5f5;
  border-radius: 12px;
  position: relative;
}



.teamtpl-best .best-badge{
    position: absolute;
    top: 14px;
    left: 14px;
    background: #0F2D4C;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 5px 10px;
    border-radius: 6px;
    text-transform: uppercase;
}

.teamtpl-best .best-media{
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: transparent;
  filter: drop-shadow(0px 0px 7px #c8c8c8);
}
.teamtpl-best .best-media img{
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.teamtpl-best .best-info{
  display: grid;
  align-content: center;
  gap: 4px;
}

.teamtpl-best .best-title{
  margin: 0;
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.15;
  font-weight: 900;
  text-transform: uppercase;
  color: #0F2D4C;
}
.teamtpl-best .best-title a{ color: inherit; text-decoration: none; }

.teamtpl-best .best-price{
    display: flex;
    flex-direction: row-reverse;
    justify-content: left;
    line-height: 25px;
}
.teamtpl-best .best-price .price{
  font-weight: 800;
  font-size: clamp(18px, 2.2vw, 22px);
  color: #0F2D4C;
}
.teamtpl-best .best-price del{
  opacity:.55; margin-left:10px; font-weight:500; font-size:14px;
}
.teamtpl-best .best-price ins{ text-decoration:none; }

/* Mobile: apilar best a 1 columna */
@media (max-width: 900px){
  .teamtpl-grid .teamtpl-best {
    grid-column: 1 / -1;   /* 👉 también a ancho completo en móvil */
    grid-template-columns: 1fr;
    gap: 16px;
  }

 
.teamtpl-best .best-badge{
    position: absolute;
    top: 10px;
    right: 10px !important;
    left: auto;
    background: #0F2D4C;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 4px 6px;
    border-radius: 6px;
    text-transform: uppercase;
}
  
  
}

/* =========================
   JUGADORES
   ========================= */
.teamtpl-players { margin: 50px 0 40px; }
.teamtpl-players h2 { margin-bottom: 12px; font-size: 18px; }

.teamtpl-players-list{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.teamtpl-players .player-item{
  text-align: center;
  transition: .3s;
}
.teamtpl-players .player-item img:hover{ padding: 6px; }
.teamtpl-players .player-item img{
  max-width: 100px;
  max-height: 100px;
  border-radius: 50%;
  background: #f3f3f3;
  padding: 8px;
  display: block;
  margin: 0 auto 6px;
  transition: .3s;
}
.teamtpl-players .player-item h3{
  font-size: 14px; color: #002041; margin-top: 15px;
}

/* Móvil: jugadores como carrusel horizontal */
@media (max-width: 900px){
  .teamtpl-players-list{
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }
  .teamtpl-players-list .player-item{
    flex: 0 0 150px;
    scroll-snap-align: center;
  }
  .teamtpl-players .player-item img{
    width: 90px; height: 90px;
  }
  .teamtpl-players .player-item h3{ font-size: 13px; }
  .teamtpl-players-list{ scrollbar-width: none; }
  .teamtpl-players-list::-webkit-scrollbar{ display: none; }
}

/* =========================
   FAQs en dos columnas
   ========================= */
.teamtpl-faqs { margin: 5rem 0 40px; }
.teamtpl-faqs .faqs-grid{
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
  align-items: start;
}
.teamtpl-faqs .faqs-left h2{
  margin: 0 0 8px;
  font-weight: 900;
  text-transform: uppercase;
  color: #0F2D4C;
  line-height: .95;
  font-size: 70px;
}
.teamtpl-faqs .faqs-lead{
  font-size: 13px;
  line-height: 1.35;
  color: #0F2D4C;
  opacity: .85;
  max-width: 100%;
  margin: 0;
}
.teamtpl-faqs .faqs-right > *{ width: 100%; margin-top: 0;}
.teamtpl-faqs .faqs-right .cj-faqs-list{ margin: 0;}
.teamtpl-faqs .faqs-right h2,
.teamtpl-faqs .faqs-right .cj-faqs-title{ display: none !important; }


.teamtpl-rating{
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 5px !important;
    margin: 1px 0 1px;
    line-height: 1;
}
.teamtpl-stars{ font-size:13px; color:#f1b400; letter-spacing:.5px; }
.teamtpl-avg{ font-weight:700; font-size:12px; color:#0F2D4C; }
.teamtpl-cnt{ font-size:12px; color:#8aa0b5; }

@media (max-width:767px){
  .teamtpl-rating{ gap:5px; }
  .teamtpl-stars{ font-size:12px; }
  .teamtpl-avg,.teamtpl-cnt{ font-size:11.5px; }
}


/* Responsive FAQs: a una columna */
@media (max-width: 900px){
  .teamtpl-faqs .faqs-grid{
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .teamtpl-faqs .faqs-left h2{
    font-size: clamp(24px, 6vw, 40px);
  }
  
  .teamtpl-controls-left{
    display: flex;
    grid-template-rows: auto;
    /* row-gap: 5px; */
    justify-content: space-between;
    width: 100%;
}
.teamtpl-order-label{
  font-size: 16px;
  color: #002041;
  font-weight: 500;
  line-height: 1.2;
}
.teamtpl-order{
    padding: 0px 10px !important;
    width: 65% !important;
    height: 30px !important;
    font-size: 14px !important;
    border-color: #e3e3e3 !important;
    border-radius: 6px !important;
    color: #002041;
    text-transform: uppercase;
}



.teamtpl-card .thumb{
  position: relative;
  display: block;
  margin-bottom: 8px;
  background: #f5f5f5;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 10px 0;
}

.teamtpl-card img{
  width: auto;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 0;
  filter: drop-shadow(0px 0px 7px #c8c8c8);
}

/* Zoom sutil al hover */
.teamtpl-grid .teamtpl-card .thumb img{
  transition: transform .2s ease;
  transform-origin: 50% 50%;
}


  .teamtpl-grid > .teamtpl-best{
    grid-column: 1 / -1 !important;   /* ✅ a ancho completo en móvil */
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  
  
  .teamtpl-hero-right .teamtpl-carrusel img {
    height: 150px !important;
}

}

/* Ajustes extra móviles */
@media (max-width: 520px){
  .teamtpl-breadcrumb{ font-size: 13px; }
}



/* Wrapper para posicionar la flecha */
.teamtpl-hero-right .teamtpl-carrusel-wrap{
  position: relative;
}



.teamtpl-hero-right .carrusel-next:hover{ opacity: .9; }

/* Tamaño del icono SVG dentro del botón */
.teamtpl-hero-right .carrusel-next img{
  width: 25px;
  height: 25px;
  display: block;
  pointer-events: none; /* evita capturar clicks en el img */
}



/* Fuerza que la flecha NO se vea cuando tenga el atributo [hidden] */
.teamtpl-hero-right .carrusel-next[hidden]{
  display: none !important;
}

/* Solo mostrarla cuando NO esté [hidden] */
.teamtpl-hero-right .carrusel-next:not([hidden]){
  display: inline-flex;
}

