/* Galería pública. Mismos tokens y prefijo fm- que index.xhtml. */
:root {
    --fm-bg: #f4f6fa;
    --fm-card: #ffffff;
    --fm-text: #2b3445;
    --fm-muted: #5d6a85;
    --fm-primary: #1a3760;
    --fm-accent: #3a6bb5;
    --fm-border: #e6eaf2;
    --fm-shadow: 0 2px 6px rgba(0,0,0,.06);
    --fm-shadow-hover: 0 12px 28px rgba(16,32,64,.14);
    --fm-hero-a: #1a3760;
    --fm-hero-b: #2f5a96;
    --fm-suave: #eef2f8;
    --fm-marco: #e9edf4;
    --fm-oro: #a87b06;
    --fm-plata: #5f6b7a;
    --fm-bronce: #9a5a2c;
    --fm-grid: rgba(26,55,96,.045);
    --fm-mat: #f6f4ef;
}
body.fm-dark {
    --fm-bg: #1a1d24;
    --fm-card: #232730;
    --fm-text: #e3e6ec;
    --fm-muted: #a3acbd;
    --fm-primary: #7cb2ec;
    --fm-accent: #5fa0e3;
    --fm-border: #343a45;
    --fm-shadow: 0 2px 6px rgba(0,0,0,.45);
    --fm-shadow-hover: 0 12px 28px rgba(0,0,0,.55);
    --fm-hero-a: #12243c;
    --fm-hero-b: #1e3c63;
    --fm-suave: #2b313c;
    --fm-marco: #171a20;
    --fm-oro: #e0b33a;
    --fm-plata: #b5bfcc;
    --fm-bronce: #d8915c;
    --fm-grid: rgba(255,255,255,.035);
    --fm-mat: #2c3039;
}
* { box-sizing: border-box; }
body {
    background-color: var(--fm-bg);
    /* Papel cuadriculado apenas visible: guiño matemático sin competir con las fotos. */
    background-image: linear-gradient(var(--fm-grid) 1px, transparent 1px),
                      linear-gradient(90deg, var(--fm-grid) 1px, transparent 1px);
    background-size: 28px 28px;
    font-family: "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    color: var(--fm-text);
    transition: background .25s, color .25s;
}
a { color: var(--fm-accent); }
:focus-visible { outline: 3px solid var(--fm-accent); outline-offset: 2px; }


.fm-wrap { max-width: 1240px; margin: 0 auto; padding: 28px 1.5rem 24px; }

/* --- Encabezado --- */
.fm-hero {
    background: linear-gradient(135deg, var(--fm-hero-a) 0%, var(--fm-hero-b) 100%);
    color: #fff;
    border-radius: 14px;
    padding: 28px 32px 22px;
    margin-bottom: 18px;
    position: relative;
    overflow: hidden;
}
.fm-hero > :not(.fm-hero-deco) { position: relative; }
.fm-hero-deco {
    position: absolute; right: -40px; top: 50%; transform: translateY(-50%);
    height: 135%; width: auto; color: #fff; opacity: .13; pointer-events: none;
}
.fm-hero-fila { display: flex; align-items: center; gap: 22px; }
.fm-hero-logo { height: 96px; width: 96px; border-radius: 12px; background: #fff; flex-shrink: 0; }
.fm-eyebrow {
    margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .7px;
    text-transform: uppercase; opacity: .85;
}
.fm-hero h1 { margin: 0 0 8px; font-size: 30px; line-height: 1.12; }
.fm-sub { margin: 0; max-width: 46rem; font-size: 15px; line-height: 1.55; opacity: .93; }

/* --- Selector de año --- */
.fm-barra {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px;
    padding: 10px 18px; margin-bottom: 4px;
    background: var(--fm-bg);
}
.fm-modo-3d .fm-barra { position: static; }
.fm-anios { display: flex; align-items: center; gap: 12px; min-width: 0; }
.fm-anios-et {
    font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
    color: var(--fm-muted); flex-shrink: 0;
}
.fm-anios ul {
    list-style: none; margin: 0; padding: 2px; display: flex; gap: 8px;
    overflow-x: auto; scrollbar-width: thin;
}
.fm-anios a {
    display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px;
    border-radius: 999px; border: 1px solid var(--fm-border); background: var(--fm-card);
    color: var(--fm-text); font-weight: 700; font-size: 15px; text-decoration: none;
    box-shadow: var(--fm-shadow); transition: background .15s, color .15s;
}
.fm-anios a:hover { border-color: var(--fm-accent); color: var(--fm-accent); }
.fm-anios a.fm-activo { background: var(--fm-primary); border-color: var(--fm-primary); color: #fff; }
body.fm-dark .fm-anios a.fm-activo { color: #10223a; }

.fm-vistas {
    display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px;
    background: var(--fm-card); border: 1px solid var(--fm-border); box-shadow: var(--fm-shadow);
}
.fm-vista-btn {
    display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 16px;
    border: 0; border-radius: 999px; background: transparent; color: var(--fm-muted);
    font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.fm-vista-btn:hover { color: var(--fm-primary); }
.fm-vista-btn[aria-pressed="true"] { background: var(--fm-suave); color: var(--fm-primary); }

.fm-intro { margin: 0 0 6px; font-size: 14px; color: var(--fm-muted); line-height: 1.6; }
.fm-intro strong { color: var(--fm-text); }

/* --- Secciones --- */
.fm-seccion { margin: 18px 0 34px; }
.fm-sec-tit {
    display: flex; align-items: center; gap: 10px;
    margin: 0 0 16px; font-size: 20px; color: var(--fm-primary);
}
.fm-sec-tit .pi { font-size: 18px; color: var(--fm-accent); }
.fm-sec-tit::after {
    content: ""; flex: 1; height: 1px; margin-left: 8px;
    background: linear-gradient(90deg, var(--fm-border), transparent);
}
.fm-sec-anio {
    margin-left: 2px; padding: 2px 10px; border-radius: 999px; font-size: 14px;
    background: var(--fm-suave); color: var(--fm-muted);
}

/* Flex centrado: una fila incompleta (p. ej. 2 de 3 tarjetas) queda al centro, no pegada a la izquierda. */
.fm-grilla { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.fm-grilla > * { flex: 0 1 300px; min-width: 0; }
.fm-grilla-2 > * { flex-basis: 420px; }

/* --- Tarjeta de obra --- */
.fm-obra {
    --fm-acento: var(--fm-primary);
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--fm-card); border-radius: 14px; box-shadow: var(--fm-shadow);
    border-top: 3px solid var(--fm-acento);
    transition: box-shadow .2s, transform .2s;
}
.fm-obra[data-fm-clave="PRIMER_LUGAR"] { --fm-acento: var(--fm-oro); }
.fm-obra[data-fm-clave="SEGUNDO_LUGAR"] { --fm-acento: var(--fm-plata); }
.fm-obra[data-fm-clave="TERCER_LUGAR"] { --fm-acento: var(--fm-bronce); }
.fm-obra[data-fm-clave="MENCION_HONROSA"] { --fm-acento: var(--fm-accent); }
.fm-obra:hover { box-shadow: var(--fm-shadow-hover); transform: translateY(-2px); }
.fm-obra-img {
    position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
    aspect-ratio: 4 / 3; overflow: hidden;
    /* Paspartú: la foto queda enmarcada como en una sala. */
    background: var(--fm-mat); padding: 12px 12px 0;
}
.fm-obra-img img {
    display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s;
    box-shadow: 0 1px 2px rgba(0,0,0,.18), 0 4px 12px rgba(0,0,0,.08);
}
.fm-obra:hover .fm-obra-img img { transform: scale(1.03); }
.fm-obra-lupa {
    position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(10,20,40,.62); color: #fff; opacity: 0; transition: opacity .2s;
}
.fm-obra:hover .fm-obra-lupa, .fm-obra-img:focus-visible .fm-obra-lupa { opacity: 1; }
.fm-obra-info { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.fm-obra-info h3 { margin: 8px 0 2px; font-size: 18px; line-height: 1.3; color: var(--fm-text); }
.fm-autor { margin: 0; font-size: 15px; font-weight: 600; color: var(--fm-text); }
.fm-lugar { margin: 0; font-size: 13px; color: var(--fm-muted); }
.fm-lugar .pi { font-size: 12px; }
.fm-obra-mas {
    align-self: flex-start; margin-top: auto; padding: 10px 0 0; border: 0; background: none;
    color: var(--fm-accent); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px; min-height: 36px;
}
.fm-obra-mas:hover { text-decoration: underline; }

.fm-medalla {
    align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700;
    letter-spacing: .3px; background: var(--fm-suave); color: var(--fm-primary);
}
.fm-m-PRIMER_LUGAR { background: var(--fm-oro); color: #fff; }
.fm-m-SEGUNDO_LUGAR { background: var(--fm-plata); color: #fff; }
.fm-m-TERCER_LUGAR { background: var(--fm-bronce); color: #fff; }
body.fm-dark .fm-m-PRIMER_LUGAR, body.fm-dark .fm-m-SEGUNDO_LUGAR,
body.fm-dark .fm-m-TERCER_LUGAR { color: #14161b; }

/* Ganadora: imagen completa (sin recorte) junto a la descripción. */
.fm-obra-ganadora { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.fm-obra-ganadora:hover { transform: none; }
.fm-obra-ganadora { border-top-width: 4px; }
.fm-obra-ganadora .fm-obra-img { aspect-ratio: auto; min-height: 340px; max-height: 76vh; padding: 22px; }
.fm-obra-ganadora .fm-obra-img img { object-fit: contain; box-shadow: 0 2px 4px rgba(0,0,0,.2), 0 14px 30px rgba(0,0,0,.18); }
.fm-obra-ganadora .fm-obra-info {
    background: radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--fm-oro) 10%, transparent), transparent 55%);
}
.fm-obra-ganadora:hover .fm-obra-img img { transform: none; }
.fm-obra-ganadora .fm-obra-info { padding: 28px 30px; gap: 6px; }
.fm-obra-ganadora h3 { font-size: 26px; }
.fm-obra-ganadora .fm-autor { font-size: 17px; }
.fm-desc {
    margin: 12px 0 6px; font-size: 15px; line-height: 1.65; white-space: pre-line;
    color: var(--fm-text); max-height: 22em; overflow-y: auto;
}
.fm-obra-ganadora .fm-boton { margin-top: auto; align-self: flex-start; }
.fm-obra-ganadora + .fm-obra-ganadora { margin-top: 22px; }

.fm-boton {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; min-height: 42px;
    border-radius: 8px; background: var(--fm-primary); color: #fff !important; text-decoration: none;
    font: inherit; font-size: 14px; font-weight: 600; border: 1px solid var(--fm-primary); cursor: pointer;
}
.fm-boton:hover { filter: brightness(1.12); }
.fm-boton.fm-secundario { background: transparent; color: var(--fm-primary) !important; }
.fm-boton.fm-secundario:hover { background: var(--fm-suave); filter: none; }
body.fm-dark .fm-boton:not(.fm-secundario) { color: #10223a !important; }

/* --- Estado vacío --- */
.fm-card { background: var(--fm-card); border-radius: 14px; box-shadow: var(--fm-shadow); }
.fm-vacio { text-align: center; padding: 48px 24px; }
.fm-vacio > .pi { font-size: 44px; color: var(--fm-accent); opacity: .7; }
.fm-vacio h2 { margin: 12px 0 6px; color: var(--fm-primary); }
.fm-vacio p { margin: 0 auto 20px; max-width: 30rem; line-height: 1.6; color: var(--fm-muted); }


/* --- Visor --- */
.fm-visor {
    width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0;
    border: 0; background: rgba(8,12,20,.96); color: #e8ecf3;
}
.fm-visor::backdrop { background: rgba(8,12,20,.85); }
.fm-visor-marco {
    display: grid; grid-template-columns: minmax(0, 1fr) 360px; height: 100%;
}
.fm-visor-img {
    display: flex; align-items: center; justify-content: center; padding: 24px 72px; min-height: 0;
}
.fm-visor-img img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 8px 40px rgba(0,0,0,.5); }
.fm-visor-info {
    padding: 70px 28px 28px; overflow-y: auto; background: rgba(255,255,255,.04);
    border-left: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 6px;
}
.fm-visor-info h2 { margin: 10px 0 2px; font-size: 22px; color: #fff; }
.fm-visor .fm-autor { color: #fff; }
.fm-visor .fm-lugar { color: #b8c1d1; }
.fm-visor .fm-desc { color: #dfe4ec; max-height: none; }
.fm-visor .fm-m-MENCION_HONROSA, .fm-visor .fm-m-DESTACADA {
    background: rgba(255,255,255,.12); color: #fff;
}
.fm-visor-pos { margin-top: auto; font-size: 13px; color: #9aa4b5; }
.fm-visor-btn {
    position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(255,255,255,.12); color: #fff; font-size: 18px;
    display: flex; align-items: center; justify-content: center; transition: background .15s;
}
.fm-visor-btn:hover { background: rgba(255,255,255,.25); }
.fm-visor-cerrar { top: 14px; right: 14px; }
.fm-visor-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.fm-visor-sig { right: 374px; top: 50%; transform: translateY(-50%); }
.fm-visor-uno .fm-visor-prev, .fm-visor-uno .fm-visor-sig { display: none; }

/* --- Responsive --- */
@media (max-width: 900px) {
    .fm-obra-ganadora { grid-template-columns: 1fr; }
    .fm-obra-ganadora .fm-obra-img { min-height: 0; max-height: 70vh; aspect-ratio: 4 / 3; }
    .fm-obra-ganadora .fm-obra-info { padding: 20px; }
    .fm-obra-ganadora h3 { font-size: 22px; }
    .fm-desc { max-height: none; }
    .fm-visor-marco { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
    .fm-visor-img { padding: 64px 12px 12px; }
    .fm-visor-info { padding: 16px 20px 20px; max-height: 40vh; border-left: 0;
        border-top: 1px solid rgba(255,255,255,.08); }
    .fm-visor-sig { right: 14px; }
    .fm-visor-prev, .fm-visor-sig { top: 40%; }
}
@media (max-width: 720px) {
    .fm-wrap { padding: 18px 16px 16px; }
    .fm-hero { padding: 22px 20px 18px; }
    .fm-hero-fila { flex-direction: column; align-items: flex-start; gap: 14px; padding-right: 40px; }
    .fm-hero-logo { height: 64px; width: 64px; }
    .fm-hero h1 { font-size: 24px; }
    .fm-sub { font-size: 14px; }
    .fm-grilla > *, .fm-grilla-2 > * { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .fm-obra, .fm-obra-img img, .fm-anios a { transition: none; }
    .fm-obra:hover { transform: none; }
    .fm-obra:hover .fm-obra-img img { transform: none; }
}

/* --- Aparición suave (solo si hay JS y sin «reducir movimiento») --- */
.fm-anim .fm-obra { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease, box-shadow .2s; }
.fm-anim .fm-obra.fm-visible { opacity: 1; transform: none; }
.fm-anim .fm-obra.fm-visible:hover { transform: translateY(-2px); }
.fm-anim .fm-obra-ganadora.fm-visible:hover { transform: none; }

.fm-oculto { display: none !important; }

/* --- Sala 3D --- */
.fm-sala {
    position: relative; height: min(78vh, 760px); min-height: 440px; margin: 10px 0 28px;
    border-radius: 14px; overflow: hidden; background: #1b1d22; box-shadow: var(--fm-shadow-hover);
}
.fm-sala[hidden] { display: none; }
.fm-sala:fullscreen { height: 100vh; border-radius: 0; margin: 0; }
.fm-sala-lienzo, .fm-sala-lienzo canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
/* Viñeta y grano fotográfico sobre la sala: los pinta el navegador una vez, WebGL no trabaja más. */
.fm-sala-lienzo::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 75% 70% at 50% 46%, transparent 55%, rgba(6,8,12,.38) 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='.12'/%3E%3C/svg%3E");
    mix-blend-mode: soft-light;
}
.fm-sala-ayuda {
    position: absolute; top: 14px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 28px);
    display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
    background: rgba(12,16,24,.72); color: #e8ecf3; font-size: 13px; backdrop-filter: blur(4px);
    pointer-events: none;
}
.fm-sala-ayuda kbd {
    display: inline-block; min-width: 20px; padding: 1px 5px; margin: 0 1px; border-radius: 4px;
    border: 1px solid rgba(255,255,255,.35); font: inherit; font-size: 11px; text-align: center;
}
.fm-sala-cargando {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 24px; text-align: center; color: #e8ecf3; font-size: 15px; background: #1b1d22;
}
.fm-sala-cargando[hidden] { display: none; }
.fm-sala-hud[hidden] { display: none; }
.fm-sala-hud {
    position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
    width: min(820px, calc(100% - 24px));
    display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 16px;
    background: rgba(12,16,24,.78); backdrop-filter: blur(6px); color: #fff;
}
.fm-sala-cartel { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.fm-sala-cartel strong { font-size: 15px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-sala-cartel > span:last-child { font-size: 12px; color: #b8c1d1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-sala-cartel .fm-medalla { align-self: center; padding: 2px 9px; font-size: 11px; }
.fm-sala .fm-m-MENCION_HONROSA, .fm-sala .fm-m-DESTACADA { background: rgba(255,255,255,.14); color: #fff; }
.fm-sala-btn {
    flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-width: 44px; height: 44px; padding: 0 12px; border: 0; border-radius: 12px; cursor: pointer;
    background: rgba(255,255,255,.12); color: #fff; font: inherit; font-size: 14px; font-weight: 600;
}
.fm-sala-btn:hover:not(:disabled) { background: rgba(255,255,255,.24); }
.fm-sala-btn[hidden] { display: none; }
.fm-sala-btn[aria-pressed="true"] { background: #e6c35c; color: #1b1d22; }
.fm-sala-btn:disabled { opacity: .4; cursor: default; }
/* Portada e instrucciones de la sala */
.fm-sala-panel {
    position: absolute; inset: 0; z-index: 3; overflow-y: auto;
    display: flex; align-items: center; justify-content: center; padding: 24px;
    background:
        radial-gradient(ellipse at 50% 120%, rgba(232,196,120,.18), transparent 60%),
        linear-gradient(160deg, #18263d 0%, #10161f 100%);
}
.fm-sala-panel[hidden] { display: none; }
.fm-sala-panel-caja { width: min(820px, 100%); color: #e8ecf3; }
.fm-sala-panel-eyebrow {
    margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase;
    color: #e6c35c; display: flex; align-items: center; gap: 8px;
}
.fm-sala-panel h2 { margin: 0 0 8px; font-size: 26px; color: #fff; line-height: 1.2; }
.fm-sala-panel-intro { margin: 0 0 18px; color: #b8c1d1; line-height: 1.6; max-width: 40rem; }
.fm-sala-panel h3 { margin: 0 0 10px; font-size: 14px; letter-spacing: .5px; text-transform: uppercase; color: #9fb3d1; }
.fm-instr { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.fm-instr-col {
    padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.09);
}
.fm-instr h4 { margin: 0 0 8px; font-size: 14px; color: #fff; display: flex; align-items: center; gap: 8px; }
.fm-instr h4:not(:first-child) { margin-top: 14px; }
.fm-instr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.fm-instr li { font-size: 13.5px; color: #cfd6e2; line-height: 1.4; }
.fm-instr-tecla { display: inline-block; min-width: 9.5em; font-weight: 700; color: #fff; }
.fm-instr kbd {
    display: inline-block; min-width: 22px; padding: 1px 6px; margin-right: 3px; border-radius: 5px;
    border: 1px solid rgba(255,255,255,.35); border-bottom-width: 2px; background: rgba(255,255,255,.08);
    color: #fff; font: inherit; font-size: 12px; font-weight: 700; text-align: center;
}
.fm-sala-panel-acciones { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; margin: 0 0 22px; }
.fm-sala-panel .fm-boton { background: #e6c35c; border-color: #e6c35c; color: #1b1d22 !important; font-size: 15px; padding: 12px 22px; }
.fm-sala-panel-nota { font-size: 12.5px; color: #8f9bb0; }
.fm-sala-panel-nota[hidden] { display: none; }

.fm-sala-anio {
    flex-shrink: 0; display: inline-flex; align-items: center; height: 44px; padding: 0 4px 0 6px;
    border-radius: 12px; background: rgba(255,255,255,.12);
}
.fm-sala-anio select {
    height: 40px; border: 0; background: transparent; color: #fff; font: inherit; font-size: 14px;
    font-weight: 700; cursor: pointer;
}
.fm-sala-anio select option { color: #1b1d22; }
.fm-sala-anio > span { display: none; }

@media (max-width: 720px) {
    .fm-barra { position: static; }
    .fm-instr { grid-template-columns: 1fr; }
    /* En el celular lo táctil va primero. */
    .fm-instr-col:nth-child(2) { order: -1; }
    .fm-sala-panel { align-items: flex-start; padding: 18px 16px; }
    .fm-sala-panel h2 { font-size: 21px; }
    .fm-instr-tecla { min-width: 0; display: block; }
    .fm-sala-hud { flex-wrap: wrap; justify-content: center; }
    .fm-sala-cartel { order: -1; flex-basis: 100%; }
    .fm-sala { height: 80vh; min-height: 560px; }
    .fm-sala-ayuda { display: none; }
    .fm-sala-detalle span { display: none; }
    .fm-sala-hud { bottom: 10px; gap: 6px; padding: 6px; }
    .fm-hero-deco { opacity: .08; right: -120px; }
}
