
	/* =========================================================
   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;
   }
