
	/* =========================================================
   FIX: no cortar sombras de botones (match-previa-slim tiene overflow:hidden)
   ========================================================= */
.team-slim--layout4{ overflow:visible; }                 /* permite que sombras salgan */
.team-slim--layout4 .team-slim__body{ overflow:visible; }/* doble seguro */
.team-slim--layout4 .cabecera_partido{ position:relative; z-index:1; } /* menú encima si hiciera falta */

/* Separación para que la sombra no "choque" con el menú de abajo */
.team-slim--layout4 .team-slim__body{ padding-bottom:14px; }

/* =========================================================
   Header TOP: LaLiga + puesto a la derecha
   ========================================================= */
.team-slim__pos{
  font-size:12px;
  font-weight:900;
  color:#1d4ed8;
  background:rgba(37,99,235,.10);
  border:1px solid rgba(37,99,235,.20);
  padding:6px 10px;
  border-radius:999px;
  white-space:nowrap;
}

/* =========================================================
   HERO centrado y alineado
   ========================================================= */
.team-slim__hero3{
  display:flex;
  align-items:center;      /* escudo centrado verticalmente */
  justify-content:center;  /* conjunto centrado */
	gap: 10px;
    padding: 6px 0px 10px 0px;
}

.team-slim__logo-big{
  width:64px;
  height:64px;
  object-fit:contain;
  flex:0 0 auto;
}

.team-slim__hero-text{
  text-align:left;
  min-width:0;
}

.team-slim__name-big{
  font-size:28px;
  font-weight:900;
  letter-spacing:.2px;
  line-height:1.05;
  color:#0f172a;
  text-transform:uppercase;
}


/* =========================================================
   BOTONES GENÉRICOS REUTILIZABLES (btn-slimx)
   Variantes: primary / success / warning / danger
   ========================================================= */
.btn-slimx{
  flex:1 1 0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;

  padding:12px 10px;
  border-radius:12px;
  font-size:12px;
  font-weight:900;
  letter-spacing:.3px;
  text-transform:uppercase;

  color:#fff !important;
  text-decoration:none !important;

  white-space:nowrap;
}

/* Hover/active */
.btn-slimx:hover{ filter:brightness(1.05); }
.btn-slimx:active{ transform:translateY(1px); }

/* Primary (azul) */
.btn-slimx--primary{
  background:linear-gradient(135deg, #1d4ed8 0%, #3b82f6 55%, #60a5fa 100%) !important;
}

/* Success (verde) */
.btn-slimx--success{
  background:linear-gradient(135deg, #047857 0%, #10b981 55%, #34d399 100%) !important;
}

/* Warning (naranja) */
.btn-slimx--warning{
  background:linear-gradient(135deg, #b45309 0%, #f59e0b 55%, #fbbf24 100%) !important;
}

/* Danger (rojo) */
.btn-slimx--danger{
  background:linear-gradient(135deg, #b91c1c 0%, #ef4444 55%, #f87171 100%) !important;
}

/* Placeholder invisible para mantener 3 columnas cuando falta botón */
.btn-slimx--ghost{
  visibility:hidden;
  box-shadow:none !important;
  background:transparent !important;
}

/* Contenedor fila acciones */
.team-slim__actions-row{
  display:flex;
  gap:10px;
  margin-top:12px;
  overflow:visible;
}


/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width:767px){
  .team-slim__logo-big{ width:58px; height:58px; }
  .team-slim__name-big{ font-size:24px; }

  .team-slim__actions-row{ gap:8px; }
  .btn-slimx{ padding:11px 8px; font-size:11px; border-radius:12px; }

  .cabecera_partido{ gap:6px; }
}

/* =========================================
   META CARDS SLIM (entrenador / estadio)
   ========================================= */

.meta-cards-slim{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:10px;

}

/* Card */
.meta-card-slim{
  display:flex;
  align-items:center;
  gap:10px;

  padding:6px 12px;
    background: rgb(255, 255, 255, 0.7);
  border:1px solid #eef0f2;
  border-radius:999px;

  box-shadow:0 6px 14px rgba(0,0,0,.06);
}

/* Avatar (foto o icono) */
.meta-card-slim__avatar{
  width:32px;
  height:32px;
  border-radius:50%;
  object-fit:cover;
  flex-shrink:0;
}

/* Avatar tipo icono */
.meta-card-slim__avatar--icon{
  background:#f1f5f9;
  padding:6px;
}

/* Texto */
.meta-card-slim__text{
  display:flex;
  flex-direction:column;
  line-height:1.15;
}

.meta-card-slim__title{
  font-size:13px;
  font-weight:900;
  color:#0f172a;
  white-space:nowrap;
}

.meta-card-slim__subtitle{
  font-size:11px;
  font-weight:700;
  color:#64748b;
}

/* Mobile */
@media (max-width:767px){
  .meta-card-slim{
    padding:6px 10px;
  }
  .meta-card-slim__avatar{
    width:28px;
    height:28px;
  }
}


/*DEGRADADO DE FONDO REVISAR*/
/* Contenedor */
.match-previa-slim.team-slim--layout4{
  position: relative;
  overflow: hidden;
  z-index: 1;
  background-color: #fff;
}

/* Capa escudo / fondo decorativo (UNA sola vez) */
.match-previa-slim.team-slim--layout4::before{
  content:"";
  position:absolute;

  top:-40px;
  left:-90px;

  width:350px;
  height:350px;

  background-image: var(--team-bg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  transform: rotate(-25deg);
  filter: blur(6px);
  opacity: 0.18;

  z-index: -1;
  pointer-events:none;
}

/* LaLiga (IDs según tu menú) */
.team-bg--89  { --team-bg: url('/images/escudos_laliga/89.png'); }  /* Alavés */
.team-bg--1   { --team-bg: url('/images/escudos_laliga/1.png'); }   /* Athletic */
.team-bg--2   { --team-bg: url('/images/escudos_laliga/2.png'); }   /* Atlético */
.team-bg--3   { --team-bg: url('/images/escudos_laliga/3.png'); }   /* Barcelona */
.team-bg--4   { --team-bg: url('/images/escudos_laliga/4.png'); }   /* Betis */
.team-bg--5   { --team-bg: url('/images/escudos_laliga/5.png'); }   /* Celta */
.team-bg--75  { --team-bg: url('/images/escudos_laliga/75.png'); }  /* Elche */
.team-bg--7   { --team-bg: url('/images/escudos_laliga/7.png'); }   /* Espanyol */
.team-bg--8   { --team-bg: url('/images/escudos_laliga/8.png'); }   /* Getafe */
.team-bg--97  { --team-bg: url('/images/escudos_laliga/97.png'); }  /* Girona */
.team-bg--10  { --team-bg: url('/images/escudos_laliga/10.png'); }  /* Levante */
.team-bg--11  { --team-bg: url('/images/escudos_laliga/11.png'); }  /* Mallorca */
.team-bg--12  { --team-bg: url('/images/escudos_laliga/12.png'); }  /* Osasuna */
.team-bg--111 { --team-bg: url('/images/escudos_laliga/111.png'); } /* Oviedo */
.team-bg--70  { --team-bg: url('/images/escudos_laliga/70.png'); }  /* Rayo */
.team-bg--15  { --team-bg: url('/images/escudos_laliga/15.png'); }  /* Real Madrid */
.team-bg--13  { --team-bg: url('/images/escudos_laliga/13.png'); }  /* Real Sociedad */
.team-bg--17  { --team-bg: url('/images/escudos_laliga/17.png'); }  /* Sevilla */
.team-bg--18  { --team-bg: url('/images/escudos_laliga/18.png'); }  /* Valencia */
.team-bg--19  { --team-bg: url('/images/escudos_laliga/19.png'); }  /* Villarreal */


/* 3. ¡IMPORTANTE! Quitar fondos sólidos de las sub-cajas */
.team-slim__header, 
.team-slim__body {
    position: relative;
    z-index: 2;
    background: transparent !important; /* Esto permite ver el escudo a través */
}

/* Si el header tiene un borde inferior o fondo propio, lo limpiamos */
.header-slim.team-slim__header {
    background: transparent;
    border-bottom: 1px solid rgba(0,0,0,0.05); /* Opcional: una línea sutil */
}


.cabecera_partido{

       width: 100%;
       font-weight: bold;
       text-align: center;
       margin: 10px 0px 0px 0px;}
   
   
   .cabecera_partido .item-menu {
       width: 24%;
       margin-right: 0;
       text-align: center;
       display: inline-table;
       position: relative;
       padding: 5px 0px;
       color: #000000;
   }
   
       .cabecera_partido .activa::after{
            content: '';
            position: absolute;
            left: 50%;
            bottom: 0; /* Posiciona el borde en la parte inferior del li */
            transform: translateX(-50%);
            width: 80%; /* Ancho del borde */
            height: 4px; /* Grosor del borde */
            background-color: #3498db; /* Color del borde (azul) */
            border-radius: 2px;
            transition: all 0.3s ease;
   }

/* =========================================================
   Ficha equipo: noticias mini + Select2 resultados
   ========================================================= */
.team-news-mini {
margin-top:10px;
}

.team-news-mini__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.team-news-mini__title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .2px;
    color: #0e8f41;
    line-height: 1;
    min-width: 0;
}

.team-news-mini__title img {
    width: 16px;
    height: 16px;
    min-width: 16px;
    object-fit: contain;
    display: block;
}

.team-news-mini__title span {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-news-mini__more {
    font-size: 11px;
    font-weight: 700;
    color: #666;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}

.team-news-mini__more:hover,
.team-news-mini__more:focus {
    color: #0e8f41;
    text-decoration: none;
}

.team-news-mini__track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 3px;
}

.team-news-mini__track::-webkit-scrollbar {
    height: 5px;
}

.team-news-mini__track::-webkit-scrollbar-thumb {
    background: #d5dadd;
    border-radius: 10px;
}

.team-news-mini__track::-webkit-scrollbar-track {
    background: transparent;
}

.team-news-mini__item {
    position: relative;
    flex: 0 0 165px;
    max-width: 165px;
    display: block;
    border: 1px solid #edf1f3;
    border-radius: 10px;
    background: #fafbfc;
    text-decoration: none !important;
    transition: all .18s ease;
    overflow: hidden;
}

.team-news-mini__item:hover,
.team-news-mini__item:focus {
    border-color: #d9e7dd;
    text-decoration: none !important;
    transform: translateY(-1px);
}

.team-news-mini__media {
    position: relative;
    width: 100%;
    height: 104px;
    overflow: hidden;
    background: #eef2f4;
}

.team-news-mini__img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #eef2f4;
    transition: transform .25s ease;
}

.team-news-mini__item:hover .team-news-mini__img,
.team-news-mini__item:focus .team-news-mini__img {
    transform: scale(1.04);
}

.team-news-mini__media::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 68%;
    background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.58) 38%, rgba(0,0,0,.18) 72%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

.team-news-mini__txt {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px 9px 8px;
    z-index: 2;
}

.team-news-mini__headline {
    font-size: 12px;
    line-height: 1.18;
    font-weight: 800;
    color: #fff;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,.55);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    min-height: 28px;
}

@media (max-width: 991px) {
    .team-news-mini__item {
        flex: 0 0 160px;
        max-width: 160px;
    }

    .team-news-mini__media {
        height: 100px;
    }
}

@media (max-width: 767px) {
    .team-news-mini {

    }

    .team-news-mini__head {
        margin-bottom: 7px;
    }

    .team-news-mini__title {
        font-size: 10.5px;
        gap: 5px;
    }

    .team-news-mini__title img {
        width: 15px;
        height: 15px;
        min-width: 15px;
    }

    .team-news-mini__more {
        font-size: 10.5px;
    }

    .team-news-mini__track {
        gap: 8px;
        padding-bottom: 2px;
    }

    .team-news-mini__item {
        flex: 0 0 155px;
        max-width: 155px;
        border-radius: 9px;
    }

    .team-news-mini__media {
        height: 98px;
    }

    .team-news-mini__txt {
        padding: 7px 8px 7px;
    }

    .team-news-mini__headline {
        font-size: 11.5px;
        line-height: 1.16;
        min-height: 26px;
    }
}

@media (max-width: 480px) {
    .team-news-mini__item {
        flex: 0 0 148px;
        max-width: 148px;
    }

    .team-news-mini__media {
        height: 94px;
    }

    .team-news-mini__headline {
        font-size: 11px;
    }
}


    /* Estilos para los fondos de color en los resultados de la lista desplegable */
    .select2-results__options {
        margin: 0 !important; /* Eliminar márgenes del contenedor de opciones */
        padding: 0 !important; /* Eliminar padding del contenedor de opciones */
    }

    .select2-results__option {
        padding: 0 !important; /* Eliminar padding de cada opción */
        margin: 0 !important; /* Eliminar márgenes de cada opción */
        line-height: 1em; /* Reducir la altura de la línea si es necesario */
        min-height: auto !important; /* Evitar altura mínima automática */
    }

    .match-result {
        display: block;
        padding: 5px; /* Mantener un poco de padding dentro del texto del resultado */
		    padding: 10px 5px;
    }

    .match-result-win {
        background-color: #d4edda;
        color: #155724;
    }

    .match-result-loss {
        background-color: #f8d7da;
        color: #721c24;
    }

    .match-result-draw {
        background-color: #fff3cd;
        color: #856404;
    }

    /* Estilos para los escudos */
    .team-logo {
        /*height: 1.2em;*/
        vertical-align: middle;
        /*margin: 0 5px;*/
    }

    /* Estilos para el texto seleccionado en el select2 */
    .select2-container .select2-selection__rendered {
        line-height: 38px !important;
        color: #ffffff !important; /* Color del texto seleccionado */
    }

    .select2-container .select2-selection--single {
		height: 40px !important;
		background-color: #0e8f41 !important;
		border: none;
		border-radius: 0px;
		border-bottom: 2px solid #ffffff !important;
    }

     .select2-container .select2-selection__arrow {
        height: 38px !important;
        border-left: none !important;
     }

     .select2-container--default .select2-selection__arrow b {
        border-color: #ffffff transparent transparent transparent !important; /* Color del triángulo de la flecha */
     }

	 .select2-container--default .select2-results > .select2-results__options {
    max-height: 400px; /* alto del desplegable */
    font-size: 16px;   /* tamaño de fuente */
}

.select2-container--default .select2-dropdown {
    width: 300px !important;  /* ajusta el ancho del desplegable */
}

.select2-container--default .select2-results > .select2-results__options {
    max-height: 400px; /* Aumenta o reduce según lo que necesites */
    overflow-y: auto;
}

.select2-results__options .select2-results__option--highlighted .match-result-wrapper .match-result {
    background-color: #f0f0f0 !important; /* El color de fondo que desees al hacer hover */
    color: #333 !important; /* O cualquier otro estilo que quieras aplicar al texto al hacer hover */
    cursor: pointer;
}
