/* Ficha de estudio v2: lo propio del estudio. La base (dashboard, cifras, dock, tarjetas, listas)
   viene de fjuego-v2.css, que bd/festudio-v2 carga antes. Prefijo fe- */

/* ===== Cabecera ===== */
.fe-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    padding: 1rem;
    border-radius: 0.8rem;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(var(--v2-acento-rgb, 57, 192, 255), 0.25), 0 14px 30px -12px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}
.fe-logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.fe-logo-vacio { background: radial-gradient(circle at 30% 30%, #0b4f78, #021825); font-size: 3rem; color: rgba(var(--v2-acento-rgb, 57, 192, 255), 0.5); }
.fe-logos-historicos { font-size: 0.72rem; color: #9bc6dc !important; text-decoration: none !important; text-align: center; }
.fe-logos-historicos:hover { color: #fff !important; }
.fe-seguir { display: flex; flex-direction: column; align-items: stretch; gap: 0.35rem; }
.fe-seguir .fj-boton { justify-content: center; cursor: pointer; font: inherit; font-size: 0.8rem; }
.fe-siguiendo { color: var(--dvgo-color-footer-fondo) !important; background: var(--dvgo-color-footer-texto); border-color: var(--dvgo-color-footer-texto); font-weight: bold; }
.fe-seguidores { font-family: "IBMPlexMono", monospace; font-size: 0.7rem; color: #7fa3b8; text-align: center; }
.fe-provincia { color: #9bc6dc !important; text-decoration: none !important; }
.fe-bio-generada { font-size: 0.95rem; }
.fe-bio-generada p { margin: 0 0 0.6rem; }
.fe-nota-bio { font-size: 0.72rem; color: #7fa3b8; margin: -0.4rem 0 1rem; }

/* ===== Juegos ===== */
#fe-juegos .fj-juegos-rejilla { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
/* Producciones internacionales: tarjetas algo más pequeñas, para que los juegos españoles manden */
#fe-juegos #fe-lista-extranjeros { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 0.7rem; }
#fe-lista-extranjeros .fj-juego-titulo { font-size: 0.74rem; }
#fe-lista-extranjeros .fj-juego-ano { font-size: 0.64rem; overflow-wrap: anywhere; }
@media (max-width: 640px) {
    #fe-juegos #fe-lista-extranjeros { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; }
    #fe-lista-extranjeros .fj-juego-titulo { font-size: 0.66rem; }
}
.fe-juegos .fj-juego-portada { position: relative; }
.fe-juego-estado {
    position: absolute;
    left: 0.35rem; right: 0.35rem; bottom: 0.35rem;
    font-size: 0.58rem;
    font-weight: bold;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
    padding: 0.15rem 0.3rem;
    border-radius: 0.3rem;
    color: #021825;
    background: #ffb454;
}
.fj-juego-estado-cancelado { background: #ff6b7d; }
.fj-juego-estado-pausa { background: #ff8a5c; }
.fj-juego-estado-acceso { background: #c9a7ff; }
.fe-vermas-juegos { grid-column: 1 / -1; justify-self: start; }

/* ===== Equipo ===== */
.fe-area + .fe-area { margin-top: 1.4rem; }
.fe-miembros { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 0.6rem; }
.fe-miembro {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.7rem;
    border-radius: 0.7rem;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(var(--v2-acento-rgb, 57, 192, 255), 0.12);
    text-decoration: none !important;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.fe-miembro:hover { border-color: rgba(var(--v2-acento-rgb, 57, 192, 255), 0.45); transform: translateY(-2px); }
.fe-miembro-destacado { border-left: 3px solid #ffc457; }
.fe-miembro-foto {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem; height: 3rem;
    border-radius: 50%;
    overflow: hidden;
    font-family: "IBMPlexMono", monospace;
    font-weight: bold;
    color: #9bc6dc;
    background: radial-gradient(circle at 30% 30%, #0b4f78, #021825);
    border: 1px solid rgba(var(--v2-acento-rgb, 57, 192, 255), 0.3);
}
.fe-miembro-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fe-miembro-datos { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.fe-miembro-nombre { font-size: 0.88rem; font-weight: bold; color: #fff; line-height: 1.25; }
.fe-miembro-nombre i { font-size: 0.75em; color: var(--dvgo-color-footer-texto); }
.fe-miembro-rol { font-size: 0.74rem; color: #9bc6dc; line-height: 1.3; }
.fe-fundador { font-size: 0.6rem; font-weight: bold; text-transform: uppercase; letter-spacing: 0.05em; color: #ffc457; border: 1px solid rgba(255, 196, 87, 0.4); border-radius: 999px; padding: 0 0.4rem; margin-right: 0.15rem; }
.fe-miembro-antiguedad { font-family: "IBMPlexMono", monospace; font-size: 0.65rem; color: #7fa3b8; }

/* ===== Antiguos miembros ===== */
.fe-exmiembro { opacity: 0.85; }
.fe-exmiembro:hover { opacity: 1; }
.fe-exmiembro .fe-miembro-foto { filter: grayscale(0.6); }
.fe-ahora { font-size: 0.68rem; color: #5cffb1; }
.fe-ahora strong { color: #eafcff; }

/* ===== Con quién trabaja (editoras): juegos españoles frente a extranjeros que publica ===== */
.fe-origen { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 0.3rem 0.8rem; align-items: center; margin-top: 0.6rem; }
.fe-origen-etiqueta { font-size: 0.75rem; color: #9bc6dc; }
.fe-origen-barra { display: flex; height: 0.7rem; border-radius: 1rem; overflow: hidden; background: rgba(255, 255, 255, 0.06); }
.fe-origen-es { background: linear-gradient(90deg, #ffc457, #ff9f43); }
.fe-origen-ext { background: linear-gradient(90deg, var(--v2-acento, #39c0ff), #2b8fd6); }
.fe-origen-cifras { grid-column: 2; font-size: 0.75rem; color: #9bc6dc; }
.fe-origen-cifras b { font-weight: 600; }
.fe-origen-es-txt { color: #ffc457; }
.fe-origen-ext-txt { color: #66ccff; }
.fe-origen-cifras small { color: #7fa3b8; }

/* ===== Trayectoria: juegos por año ===== */
.fe-linea { display: flex; align-items: flex-end; gap: 4px; height: 150px; padding-top: 0.6rem; overflow-x: auto; }
.fe-linea-ano { flex: 1 0 22px; display: flex; flex-direction: column; align-items: center; gap: 0.35rem; height: 100%; cursor: default; }
.fe-linea-barra { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.fe-linea-barra > span {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    padding-top: 0.15rem;
    border-radius: 3px 3px 0 0;
    font-family: "IBMPlexMono", monospace;
    font-size: 0.62rem;
    font-weight: bold;
    color: var(--dvgo-color-footer-fondo);
    background: linear-gradient(180deg, var(--dvgo-color-footer-texto), rgba(var(--v2-acento-rgb, 57, 192, 255), 0.45));
    transition: filter 0.2s ease;
}
.fe-linea-ano:hover .fe-linea-barra > span { filter: brightness(1.3); }
.fe-linea-vacio .fe-linea-barra { border-bottom: 2px solid rgba(var(--v2-acento-rgb, 57, 192, 255), 0.15); }
.fe-linea-etiqueta { font-family: "IBMPlexMono", monospace; font-size: 0.6rem; color: #7fa3b8; white-space: nowrap; }
.fe-linea-fundacion .fe-linea-etiqueta { color: #5cffb1; }

/* ===== Con quién trabaja y perfil técnico ===== */
.fe-veces { font-family: "IBMPlexMono", monospace; font-size: 0.65rem; color: #7fa3b8; margin-left: 0.25rem; }
.fe-perfiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 1.2rem; }
.fe-perfil-fila { display: grid; grid-template-columns: minmax(0, 1fr) 4rem 1.6rem; align-items: center; gap: 0.5rem; padding: 0.22rem 0; font-size: 0.78rem; color: #cdeaf7 !important; text-decoration: none !important; }
.fe-perfil-fila:hover { color: #fff !important; }
.fe-perfil-nombre { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fe-perfil-barra { height: 0.35rem; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.fe-perfil-barra span { display: block; height: 100%; border-radius: 999px; background: var(--dvgo-color-footer-texto); }
.fe-perfil-n { font-family: "IBMPlexMono", monospace; font-size: 0.7rem; color: #9bc6dc; text-align: right; }

/* ===== Actividad ===== */
.fe-semaforo { display: flex; gap: 0.9rem; align-items: flex-start; padding: 0.9rem 1rem; border-radius: 0.7rem; background: rgba(0, 0, 0, 0.22); border: 1px solid rgba(var(--v2-acento-rgb, 57, 192, 255), 0.12); border-left: 3px solid var(--fj-color); }
.fe-semaforo-icono { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; font-size: 1.1rem; color: var(--fj-color); background: color-mix(in srgb, var(--fj-color) 14%, transparent); border: 1px solid color-mix(in srgb, var(--fj-color) 40%, transparent); }
.fe-semaforo strong { display: block; font-family: "KodeMono-Medium", monospace; font-weight: normal; font-size: 1.05rem; color: var(--fj-color); }
.fe-semaforo p { margin: 0.3rem 0 0.4rem; font-size: 0.82rem; color: #cdeaf7; line-height: 1.45; }
.fe-checks { list-style: none; margin: 0.9rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.fe-checks li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.82rem; color: #cdeaf7; }
.fe-checks li i { margin-top: 0.15rem; }
.fe-checks small { display: block; font-size: 0.7rem; color: #7fa3b8; }
.fe-check-si i { color: #5cffb1; }
.fe-check-no { opacity: 0.6; }
.fe-check-no i { color: #7fa3b8; }
.fe-vida { display: flex; align-items: center; gap: 0.7rem; margin-top: 1.2rem; font-family: "IBMPlexMono", monospace; font-size: 0.78rem; color: #9bc6dc; }
.fe-vida-ano { white-space: nowrap; }
.fe-vida-barra { flex: 1; position: relative; height: 0.5rem; border-radius: 999px; background: linear-gradient(90deg, #5cffb1, var(--dvgo-color-footer-texto)); }
.fe-vida-cerrada { background: linear-gradient(90deg, #5cffb1, #ff6b7d); }
.fe-vida-barra span { position: absolute; left: 50%; top: -1.3rem; transform: translateX(-50%); font-size: 0.68rem; color: #fff; white-space: nowrap; }

/* ===== Relevancia ===== */
.fe-ranking { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.fe-ranking-puesto { font-family: "IBMPlexMono", monospace; font-weight: bold; font-size: 2.6rem; line-height: 1; color: #ffc457; text-shadow: 0 0 14px rgba(255, 196, 87, 0.35); }
.fe-ranking-texto { font-size: 0.82rem; color: #cdeaf7; line-height: 1.45; }
.fe-ranking-texto strong { color: #fff; }
.fe-bloques { display: grid; gap: 0.6rem; }
.fe-bloque { display: grid; grid-template-columns: 7.5rem 1fr 3.5rem; align-items: center; gap: 0.7rem; font-size: 0.8rem; }
.fe-bloque-nombre { color: #cdeaf7; }
.fe-bloque-nombre i { color: var(--fj-color); width: 1rem; }
.fe-bloque-barra { height: 0.45rem; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.fe-bloque-barra span { display: block; height: 100%; border-radius: 999px; background: var(--fj-color); }
.fe-bloque-pts { font-family: "IBMPlexMono", monospace; color: #fff; text-align: right; }

/* ===== Historia corporativa ===== */
.fe-detalle { padding: 0.45rem 0; border-bottom: 1px dashed rgba(var(--v2-acento-rgb, 57, 192, 255), 0.12); font-size: 0.82rem; color: #cdeaf7; }
.fe-detalle summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 0.6rem; }
.fe-detalle summary::-webkit-details-marker { display: none; }
.fe-detalle p { margin: 0.4rem 0 0.2rem; font-size: 0.76rem; color: #9bc6dc; line-height: 1.45; }

/* ===== Titulaciones y cursos (centros de formación) ===== */
.fe-cursos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 0.5rem; }
.fe-curso { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.8rem; border-radius: 0.7rem; background: rgba(0, 0, 0, 0.22); border: 1px solid rgba(var(--v2-acento-rgb, 57, 192, 255), 0.12); font-size: 0.85rem; color: #eafcff !important; text-decoration: none !important; transition: border-color 0.2s ease; }
.fe-curso > i:first-child { color: var(--dvgo-color-footer-texto); }
.fe-curso span { flex: 1; min-width: 0; }
a.fe-curso:hover { border-color: rgba(var(--v2-acento-rgb, 57, 192, 255), 0.45); }
.fe-curso-externo { font-size: 0.7rem; color: #7fa3b8; }

/* ===== En los medios: menciones automáticas, aparte y plegadas ===== */
.fe-menciones { margin-top: 1.2rem; border-top: 1px dashed rgba(var(--v2-acento-rgb, 57, 192, 255), 0.18); padding-top: 0.9rem; }
.fe-menciones > summary { cursor: pointer; list-style: none; display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; font-size: 0.85rem; font-weight: bold; color: #cdeaf7; }
.fe-menciones > summary::-webkit-details-marker { display: none; }
.fe-menciones > summary::after { content: "\f078"; font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free"; font-weight: 900; font-size: 0.7rem; color: #7fa3b8; margin-left: auto; transition: transform 0.2s ease; }
.fe-menciones[open] > summary::after { transform: rotate(180deg); }
.fe-menciones > summary:hover { color: #fff; }
.fe-menciones-auto { font-size: 0.6rem; font-weight: normal; text-transform: uppercase; letter-spacing: 0.05em; color: #9bc6dc; border: 1px dashed rgba(var(--v2-acento-rgb, 57, 192, 255), 0.35); border-radius: 999px; padding: 0.05rem 0.5rem; }
.fe-menciones > .fj-columnas { margin-top: 0.9rem; }

/* ===== Financiación ===== */
.fe-fin-cifras { margin-bottom: 1rem; }
.fe-fin-linea { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) auto auto; align-items: center; gap: 0.8rem; padding: 0.5rem 0; border-bottom: 1px dashed rgba(var(--v2-acento-rgb, 57, 192, 255), 0.12); font-size: 0.8rem; }
.fe-fin-linea:last-of-type { border-bottom: none; }
.fe-fin-origen, .fe-fin-destino a { color: #eafcff !important; text-decoration: none !important; }
.fe-fin-origen:hover, .fe-fin-destino a:hover { color: var(--dvgo-color-footer-texto) !important; }
.fe-fin-origen i, .fe-fin-destino i { color: rgba(var(--v2-acento-rgb, 57, 192, 255), 0.7); margin-right: 0.2rem; }
.fe-fin-destino { color: #cdeaf7; }
.fe-fin-destino small { display: block; font-size: 0.66rem; color: #7fa3b8; }
.fe-fin-importe { font-family: "IBMPlexMono", monospace; font-weight: bold; color: #5cffb1; white-space: nowrap; }
@media (max-width: 700px) {
    .fe-fin-linea { grid-template-columns: 1fr auto; }
    .fe-fin-destino { grid-column: 1 / -1; order: 3; }
}

/* ===== Identidad ===== */
.fe-reclamar { font-size: 0.82rem; color: #cdeaf7; line-height: 1.45; margin: 0; }
