/* Tarjetas de "Tus equipos" (home/favs.php): home nacional y portadas de cada federación.
   Autónomo: no depende de home.css (las portadas de federación no lo cargan). */
.favs { --cond: 'Bebas Neue', Impact, sans-serif; font-family: Inter, system-ui, sans-serif; }
.favs .crest { position: relative; width: var(--s); height: var(--s); flex: 0 0 var(--s); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--c) 0%, color-mix(in srgb, var(--c) 78%, #000) 100%); color: #fff; font: 800 calc(var(--s) * .38)/1 system-ui, sans-serif;
  box-shadow: inset 0 -2px 4px rgba(0,0,0,.2), inset 0 2px 4px rgba(255,255,255,.3); }
.favs .crest img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: 50%; background: #fff; padding: 8%; }
.favs .crest-borde { border: 2px solid rgba(255,255,255,.85); }
@keyframes favs-pulso { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.82); } }
.favs .pulso { display: inline-block; border-radius: 50%; animation: favs-pulso 1.6s ease-in-out infinite; }
.favs { margin-top: 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.fav { position: relative; overflow: hidden; border-radius: 20px; color: #fff; display: flex; flex-direction: column;
  background: linear-gradient(140deg, var(--c) 0%, color-mix(in srgb, var(--c) 72%, #000) 100%); box-shadow: 0 10px 24px color-mix(in srgb, var(--c) 22%, transparent); }
.fav::before { content: ''; position: absolute; inset: 0; opacity: .12; background-image: repeating-linear-gradient(45deg, #fff 0 2px, transparent 2px 18px); pointer-events: none; }
.fav > * { position: relative; }
.fav a { color: #fff; text-decoration: none; }
.fav-eq { display: flex; align-items: center; gap: 12px; padding: 14px 14px 10px; }
.fav-eq-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.fav-n { font: 400 25px/.95 var(--cond); letter-spacing: .5px; }
.fav-cat { font-size: 12px; font-weight: 600; opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fav-partido { display: flex; flex-direction: column; gap: 4px; margin: 0 10px; padding: 12px 14px; border-radius: 16px; background: rgba(0,0,0,.22); }
.fav-partido:hover { background: rgba(0,0,0,.3); }
.fav-partido.sin { font-size: 13px; font-weight: 600; opacity: .8; }
.fav-et { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; opacity: .85; }
.fav-et em { margin-left: auto; font-style: normal; padding: 2px 8px; border-radius: 8px; background: rgba(255,255,255,.18); letter-spacing: .5px; }
.fav-partido.vivo .fav-et { opacity: 1; }
.fav-et .pulso { width: 7px; height: 7px; flex: 0 0 7px; background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.3); }
.fav-riv { font-size: 15px; font-weight: 800; line-height: 1.25; }
/* Escudo pequeño del rival delante de su nombre */
.fav-riv { display: flex; align-items: center; gap: 5px; min-width: 0; }
.fav-riv .fav-riv-esc { flex: 0 0 auto; margin-left: 1px; }
.fav-riv-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fav-cuando { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.fav-cuando span { font-size: 13px; font-weight: 600; opacity: .9; }
.fav-cuando b { font: 400 30px/1 var(--cond); }
.fav-cuando .r-v::before, .fav-cuando .r-e::before, .fav-cuando .r-d::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #4ade80; }
.fav-cuando .r-e::before { background: #e5e7eb; }
.fav-cuando .r-d::before { background: #f87171; }
.fav-grupo { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding: 11px 14px; border-top: 1px solid rgba(255,255,255,.2); font-size: 12px; font-weight: 600; }
.fav-grupo b { font-weight: 800; }
.fav-grupo span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fav-grupo:hover { background: rgba(0,0,0,.15); }

/* Portadas de federación: bloque "Tus equipos" bajo la cabecera */
.fed-favs { margin: 14px 0 6px; text-align: left; font-family: Inter, system-ui, sans-serif; }
.fed-favs-cab { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.fed-favs-cab h2 { margin: 0; font: 400 28px/1 'Bebas Neue', Impact, sans-serif; letter-spacing: .5px; color: inherit; }
.fed-favs-cab a { font-size: 13px; font-weight: 700; color: var(--fed-primary, #E4162B); text-decoration: none; }
.fed-favs-cab a:hover { text-decoration: underline; }

/* 14-oct-2026: fondo como las cabeceras: foto de la categoría (--foto) bajo un velo de color bien presente.
   Color principal: var(--c); segundo: var(--a2, var(--c)) */
.fav { background: radial-gradient(105% 95% at 0% 0%, color-mix(in srgb, var(--c) 90%, transparent), transparent 74%),
    radial-gradient(85% 85% at 100% 0%, color-mix(in srgb, var(--a2, var(--c)) 62%, transparent), transparent 68%),
    linear-gradient(180deg, color-mix(in srgb, var(--c) 52%, rgba(10,10,12,.32)) 0%, color-mix(in srgb, var(--c) 26%, rgba(10,10,12,.5)) 55%, rgba(10,10,12,.84) 100%),
    var(--foto, none) center / cover no-repeat, #0a0a0c; }
.fav::before { display: none; }
.fav { box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.fav-partido { background: rgba(10,10,12,.38); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
