/* Estilos del menú de pay, la línea del tiempo y el visor de moléculas. */

/* — Encabezado y navegación entre secciones — */
header { position: relative; }
.logo { text-decoration: none; display: inline-block; }
.volver {
  position: absolute; top: 18px; left: 18px; color: var(--texto); text-decoration: none; font-size: 0.9rem;
  background: var(--panel); border: 1px solid var(--borde); border-radius: 999px; padding: 6px 14px;
}
.volver:hover { border-color: var(--acento); }
.volver[hidden] { display: none; }
body[data-seccion="inicio"] main { max-width: 760px; }
/* En las secciones, encabezado compacto en una sola línea para dejarle la pantalla al contenido. */
body:not([data-seccion="inicio"]) header {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; padding: 8px 16px 2px; text-align: left;
}
body:not([data-seccion="inicio"]) h1 { font-size: 1.7rem; }
body:not([data-seccion="inicio"]) .lema { margin: 0; flex: 1; font-size: 0.9rem; }
body:not([data-seccion="inicio"]) .volver { position: static; order: -1; }
body:not([data-seccion="inicio"]) nav { padding: 3px; }
body:not([data-seccion="inicio"]) nav button { padding: 6px 14px; }
body:not([data-seccion="inicio"]) footer { padding: 6px 16px 12px; font-size: 0.72rem; }
.mapa-wrap { min-height: 0; }
nav[hidden] { display: none; }

/* — Selector de idioma (arriba a la derecha; en las secciones, al final de la línea del encabezado) — */
.idioma {
  position: absolute; top: 18px; left: 18px; color: var(--texto); font: inherit; font-size: 0.85rem;
  background: var(--panel); border: 1px solid var(--borde); border-radius: 999px; padding: 5px 10px; cursor: pointer;
}
.idioma:hover, .idioma:focus { border-color: var(--acento); outline: none; }
body:not([data-seccion="inicio"]) .idioma { position: static; order: 10; }

/* — Menú de pay — */
.pay-caja { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 4px 0 10px; }
.pay { width: min(480px, 92vw); height: auto; overflow: visible; filter: drop-shadow(0 10px 30px #0009); }
.rebanada { cursor: pointer; transition: transform 0.25s cubic-bezier(.2, .9, .3, 1.3); }
.rebanada path { stroke: var(--fondo); stroke-width: 5; transition: filter 0.2s; }
.rebanada:hover, .rebanada:focus-visible { transform: translate(var(--dx), var(--dy)); outline: none; }
.rebanada:hover path, .rebanada:focus-visible path { filter: brightness(1.18) saturate(1.1); }
.rebanada text { text-anchor: middle; fill: #fff; pointer-events: none; }
.r-emo { font-size: 46px; dominant-baseline: middle; }
.r-tit { font-size: 19px; font-weight: 700; paint-order: stroke; stroke: #0004; stroke-width: 3px; }
.r-sub { font-size: 13px; opacity: 0.9; }
.pay-centro { fill: var(--fondo); stroke: var(--borde); stroke-width: 2; }
.c-tit { text-anchor: middle; fill: var(--tenue); font-size: 15px; font-weight: 600; }
.pay-desc { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; max-width: 620px; color: var(--tenue); line-height: 1.45; }
.pay-desc b { color: var(--texto); }

/* — Controles compartidos — */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button, .seg button {
  font: inherit; font-size: 0.84rem; cursor: pointer; color: var(--texto);
  background: var(--panel); border: 1px solid var(--borde); border-radius: 999px; padding: 5px 11px;
}
.chips button:hover, .seg button:hover { border-color: var(--acento); }
.chips button.activo {
  background: color-mix(in srgb, var(--c, var(--acento2)) 30%, transparent); border-color: var(--c, var(--acento2));
}
.seg { display: inline-flex; background: var(--panel); border: 1px solid var(--borde); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; }
.seg button.activo { background: var(--acento); color: var(--sobre-acento); font-weight: 600; }

/* — Línea del tiempo — */
.tl-controles {
  display: grid; gap: 7px; background: var(--panel); border: 1px solid var(--borde); border-radius: var(--radio);
  padding: 12px 16px; margin-bottom: 12px;
}
.tl-fila { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.tl-fila[hidden] { display: none; }
.tl-et { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--tenue); min-width: 92px; }
.tl-rango { font-size: 0.88rem; color: var(--tenue); display: inline-flex; align-items: center; gap: 6px; }
.tl-rango input { width: 6.5em; padding: 4px 8px; }
.tl-caja { position: relative; border: 1px solid var(--borde); border-radius: var(--radio); overflow: hidden; background: var(--fondo); }
.tl-caja { display: flex; flex-direction: column; }
.tl-scroll { flex: 1; min-height: 0; height: 100%; overflow: scroll; cursor: grab; user-select: none; position: relative; }
.tl-scroll.arrastrando { cursor: grabbing; }
.tl-lienzo { position: relative; min-height: 100%; padding-bottom: 10px; }
.tl-eje { position: sticky; top: 0; z-index: 5; height: 34px; background: var(--panel-solido); border-bottom: 1px solid var(--borde); }
.tl-eje span { position: absolute; top: 9px; transform: translateX(-50%); font-size: 0.75rem; color: var(--tenue); white-space: nowrap; }
.tl-eje span.fuerte { color: var(--texto); font-weight: 600; }
.tl-rejilla { position: absolute; top: 34px; bottom: 0; right: 0; pointer-events: none; }
.tl-rejilla i { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--linea-suave); }
.tl-rejilla i.fuerte { background: color-mix(in srgb, var(--linea) 50%, transparent); }
.tl-rejilla i.hoy { background: var(--acento); opacity: 0.5; width: 2px; }
.tl-carril { display: flex; position: relative; border-bottom: 1px solid var(--borde); }
.tl-carril:nth-of-type(even) { background: color-mix(in srgb, var(--linea-suave) 40%, transparent); }
.tl-nombre {
  position: sticky; left: 0; z-index: 4; flex: none; width: 136px; padding: 10px 12px;
  background: var(--panel-solido); border-right: 1px solid var(--borde); font-weight: 600; font-size: 0.95rem;
  display: flex; flex-direction: column; gap: 2px;
}
.tl-nombre span { font-size: 1.4rem; }
.tl-nombre small { color: var(--tenue); font-weight: 400; font-size: 0.72rem; }
.tl-eventos { position: relative; flex: 1; }
.tl-item {
  position: absolute; display: flex; align-items: center; height: 24px; padding: 0; border: 0; background: none;
  color: var(--texto); font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; text-align: left;
}
.tl-punto {
  position: absolute; left: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--c);
  box-shadow: 0 0 0 2px var(--fondo);
}
.tl-barra {
  position: absolute; left: 0; top: 2px; height: 20px; width: max(var(--w), 6px); border-radius: 6px;
  background: color-mix(in srgb, var(--c) 28%, transparent); border: 1px solid color-mix(in srgb, var(--c) 70%, transparent);
}
.tl-txt { position: relative; padding: 2px 8px; margin-left: 9px; border-radius: 0 7px 7px 0; background: color-mix(in srgb, var(--fondo) 80%, transparent); border-left: 2px solid var(--c); }
.tl-item.periodo .tl-txt { margin-left: 4px; background: none; border-left: 0; }
.tl-item:hover .tl-txt, .tl-item.sel .tl-txt { background: color-mix(in srgb, var(--c) 30%, var(--fondo)); }
.tl-item.sel { z-index: 3; }
.tl-item.sel .tl-punto { transform: scale(1.35); }
.tl-cruce {
  position: absolute; top: 34px; bottom: 0; width: 2px; margin-left: -1px; background: var(--acento);
  pointer-events: none; z-index: 2;
}
.tl-cruce span {
  position: sticky; top: 38px; display: inline-block; transform: translateX(-50%); margin-left: 1px;
  font-size: 0.72rem; font-weight: 700; color: var(--sobre-acento); background: var(--acento); padding: 1px 6px; border-radius: 6px;
}
.tl-cruce.fin { background: var(--acento2); }
.tl-cruce.fin span { background: var(--acento2); color: var(--fondo); }
.tl-banda {
  position: absolute; top: 34px; bottom: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(90deg, color-mix(in srgb, var(--acento) 12%, transparent), color-mix(in srgb, var(--acento2) 12%, transparent));
}
.tl-guia { position: absolute; top: 0; bottom: 14px; width: 1px; background: var(--linea); pointer-events: none; z-index: 6; }
.tl-zoom { top: 44px; right: 26px; z-index: 7; }

/* Tooltip al pasar el mouse y ficha fija del evento seleccionado */
.tl-tip, .tl-fijo {
  background: var(--panel-solido); border: 1px solid var(--borde); border-radius: 12px; padding: 10px 12px;
  font-size: 0.85rem; line-height: 1.4; box-shadow: var(--sombra);
}
.tl-tip { position: absolute; z-index: 9; width: max-content; max-width: 360px; pointer-events: none; }
.tl-fijo {
  position: absolute; z-index: 8; width: 360px; max-width: 70vw; cursor: auto;
  border-color: color-mix(in srgb, var(--acento) 60%, transparent); user-select: text;
}
.tl-tip h4, .tl-fijo h4 { margin: 0 0 3px; font-size: 0.95rem; padding-right: 18px; }
.tl-tip p, .tl-fijo p { margin: 6px 0; }
.tl-tip ul, .tl-fijo ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 3px; }
.tl-tip li, .tl-fijo li { display: flex; gap: 6px; align-items: baseline; }
.tl-tip .nota { font-size: 0.75rem; }
.tl-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c); transform: translateY(-1px); }
.tl-fijo .cerrar {
  position: absolute; top: 4px; right: 8px; background: none; border: 0; color: var(--tenue); font-size: 1.3rem; cursor: pointer;
}
.tl-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.tl-tags span {
  font-size: 0.72rem; padding: 2px 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--c) 25%, transparent); border: 1px solid color-mix(in srgb, var(--c) 60%, transparent);
}
.tl-mismo { border-top: 1px solid var(--borde); padding-top: 8px; margin-top: 6px; font-size: 0.82rem; }
.tl-grupo { margin-top: 6px; }
.tl-grupo > span { font-weight: 600; color: var(--acento-txt); font-size: 0.8rem; }
.tl-mismo small { color: var(--tenue); }
.tl-vacio { padding: 40px 160px; color: var(--tenue); }
.tl-ayuda { text-align: center; margin: 6px 0 0; }
.tl-plegar {
  margin-left: auto; font: inherit; font-size: 0.8rem; cursor: pointer; color: var(--tenue);
  background: none; border: 1px solid var(--borde); border-radius: 999px; padding: 4px 12px;
}
.tl-plegar:hover { color: var(--texto); border-color: var(--acento); }

/* Barras de desplazamiento siempre visibles (y fáciles de agarrar) */
.tl-scroll::-webkit-scrollbar { width: 14px; height: 14px; }
.tl-scroll::-webkit-scrollbar-track { background: var(--campo); }
.tl-scroll::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--acento) 70%, transparent); border-radius: 8px; border: 3px solid var(--campo); }
.tl-scroll::-webkit-scrollbar-thumb:hover { background: var(--acento); }
.tl-scroll::-webkit-scrollbar-corner { background: var(--campo); }
@supports not selector(::-webkit-scrollbar) {
  .tl-scroll { scrollbar-color: var(--acento) var(--campo); scrollbar-width: auto; }
}

/* — Moléculas — */
.mol-busca { display: flex; gap: 8px; justify-content: center; margin: 4px auto 10px; max-width: 720px; }
.mol-busca input { flex: 1; font-size: 1.05rem; padding: 10px 14px; border-radius: 12px; }
.mol-busca button { font: inherit; font-weight: 600; cursor: pointer; background: var(--acento); color: var(--sobre-acento); border: 0; border-radius: 12px; padding: 0 18px; }
.ejemplos small { color: var(--tenue); }
.mol-aviso {
  max-width: 760px; margin: 0 auto 10px; text-align: center; padding: 8px 14px; border-radius: 12px;
  background: color-mix(in srgb, var(--acento2) 15%, transparent); border: 1px solid color-mix(in srgb, var(--acento2) 50%, transparent);
}
.mol-aviso.error { background: color-mix(in srgb, #ef476f 15%, transparent); border-color: color-mix(in srgb, #ef476f 55%, transparent); }
.mol-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 12px; min-height: 0; }
.mol-visor {
  position: relative; height: 100%; min-height: 0; border-radius: var(--radio); overflow: hidden; border: 1px solid var(--borde);
  background: var(--v-fondo);
}
.mol-visor > canvas { display: block; width: 100% !important; height: 100% !important; cursor: grab; touch-action: none; }
.mol-visor { min-width: 0; }
.mol-etiquetas { position: absolute; inset: 0; pointer-events: none; }
.mol-simbolo { font-weight: 700; font-size: 13px; color: #fff; text-shadow: 0 0 3px #000, 0 0 6px #000; pointer-events: none; }
.mol-cargando { position: absolute; inset: 0; display: grid; place-items: center; color: var(--tenue); }
.mol-herr { z-index: 2; }
.mol-herr button { font-size: 1rem; }
.mol-herr button.activo { background: var(--acento); color: var(--sobre-acento); }
.mol-ficha { width: 300px; z-index: 3; }
.mol-ficha p { margin: 7px 0; line-height: 1.4; }
.mol-chip, .mol-comp i {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: 0.85rem; font-style: normal;
  color: #111; font-weight: 700; vertical-align: middle;
  background: radial-gradient(circle at 34% 30%, color-mix(in srgb, var(--c) 35%, white), var(--c) 55%, color-mix(in srgb, var(--c) 55%, black));
}
.mol-panel {
  background: var(--panel); border: 1px solid var(--borde); border-radius: var(--radio); padding: 14px 16px;
  max-height: 100%; overflow: auto; line-height: 1.45;
}
.mol-panel h3 { margin: 0; font-size: 1.3rem; }
.mol-formula { font-size: 2rem; font-weight: 700; color: var(--acento-txt); margin: 2px 0; }
.mol-comp { display: grid; gap: 6px; margin: 12px 0; }
.mol-comp span { display: flex; align-items: center; gap: 8px; }
.mol-comp i { width: 18px; height: 18px; }
.mol-prop { font-size: 0.88rem; background: color-mix(in srgb, var(--acento) 12%, transparent); padding: 8px 10px; border-radius: 10px; }
.mol-iso { font-size: 0.88rem; margin: 10px 0; }
.mol-iso .chips { margin-top: 6px; }
/* Diccionario: botón al final de la fila de ejemplos que despliega un panel flotante */
#mol-ejemplos { position: relative; }
#mol-ejemplos.solo-dicc > button { display: none; }
.ejemplos .mol-dd-btn { font-weight: 600; border-color: var(--acento); color: var(--acento-txt); }
.ejemplos .mol-dd-btn.activo { background: var(--acento); color: var(--sobre-acento); }
.ejemplos .mol-dd-btn.activo small { color: inherit; }
.mol-dd-panel {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); z-index: 40;
  width: min(760px, 96vw); max-height: min(62vh, 560px); overflow: auto;
  background: var(--panel-solido); border: 1px solid var(--borde); border-radius: var(--radio);
  box-shadow: var(--sombra); padding: 4px 16px 14px; text-align: left;
}
.mol-dd-panel[hidden] { display: none; }
.mol-cat h4 { margin: 14px 0 6px; font-size: 0.9rem; color: var(--tenue); font-weight: 600; }

/* — Moléculas: modo Construir — */
.mol-arriba { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: center; margin-bottom: 8px; }
.mol-arriba .mol-busca { margin: 0; flex: 1; max-width: 720px; }
.ejemplos[hidden] { display: none; }
.mol-obra {
  display: grid; gap: 8px; margin: 0 0 10px; padding: 10px 14px;
  background: var(--panel); border: 1px solid var(--borde); border-radius: var(--radio);
}
.mol-obra[hidden] { display: none; }
.mol-obra-fila { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.mol-obra-fila .tl-et { min-width: 70px; }
.mol-obra-acc { display: inline-flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.mol-paleta { align-items: center; }
.mol-paleta button { display: inline-flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px 6px; border-radius: 12px; }
.mol-paleta button small { font-size: 0.66rem; color: var(--tenue); }
.mol-paleta .mol-chip { width: 30px; height: 30px; }
.mol-paleta .mol-tabla-btn { flex-direction: row; padding: 8px 12px; border-radius: 999px; }
.mol-paleta .mol-tabla-btn.activo { background: var(--acento); color: var(--sobre-acento); }
.mol-acc, .mol-acciones button, .mol-quitar {
  font: inherit; font-size: 0.8rem; cursor: pointer; color: var(--texto);
  background: var(--campo); border: 1px solid var(--borde); border-radius: 8px; padding: 4px 9px;
}
.mol-acc:hover, .mol-acciones button:hover, .mol-quitar:hover { border-color: var(--acento); }
.mol-acciones button.activo { background: var(--acento); color: var(--sobre-acento); border-color: transparent; }
.mol-acciones { border-top: 1px solid var(--borde); padding-top: 6px; margin-top: 6px; display: grid; gap: 5px; font-size: 0.85rem; }
.mol-acciones > div { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.mol-quitar { margin-top: 8px; width: 100%; }
.mol-ficha h4 small { color: var(--tenue); font-weight: 400; }
.mol-ficha { max-height: calc(100% - 70px); overflow: auto; }
.mol-panel .mol-acc { margin: 0 0 8px; }
.mol-pista {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 30px; text-align: center;
  color: var(--tenue); font-size: 1.05rem; pointer-events: none;
}
.mol-pista[hidden] { display: none; }

/* Tabla periódica */
.mol-tabla { overflow-x: auto; padding-bottom: 4px; }
.mol-tabla[hidden] { display: none; }
.tp-rejilla {
  display: grid; grid-template-columns: repeat(18, minmax(38px, 1fr)); grid-template-rows: repeat(7, auto) 8px repeat(2, auto);
  gap: 3px; min-width: 760px;
}
.tp-celda {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: 3px 2px 2px;
  font: inherit; color: var(--texto); cursor: pointer; border-radius: 6px; line-height: 1.05; min-height: 44px;
  background: color-mix(in srgb, var(--f) 18%, var(--campo)); border: 1px solid color-mix(in srgb, var(--f) 45%, transparent);
}
.tp-celda:hover { background: color-mix(in srgb, var(--f) 45%, var(--campo)); transform: scale(1.08); z-index: 1; }
.tp-celda small { font-size: 0.58rem; color: var(--tenue); }
.tp-celda b { font-size: 0.95rem; }
.tp-celda span { font-size: 0.5rem; color: var(--tenue); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-hueco { display: grid; place-items: center; font-size: 0.6rem; color: var(--tenue); border: 1px dashed var(--borde); border-radius: 6px; }
.tp-leyenda { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 0.72rem; color: var(--tenue); }
.tp-leyenda i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--f); margin-right: 4px; vertical-align: -1px; }


/* Vista de electrones */
.mol-vista { position: absolute; top: 12px; left: 14px; z-index: 2; background: var(--panel-solido); }
.mol-leyenda-e {
  position: absolute; left: 14px; top: 56px; z-index: 2; display: grid; gap: 4px; font-size: 0.75rem; color: var(--tenue);
  background: var(--panel-solido); border: 1px solid var(--borde); border-radius: 10px; padding: 6px 10px;
}
.mol-leyenda-e[hidden] { display: none; }
.mol-leyenda-e i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.mol-leyenda-e .e-par { background: linear-gradient(90deg, #ff4d4d 50%, #ffffff 50%); box-shadow: 0 0 6px #fff8; }
.mol-leyenda-e .e-libre { background: #ff4d4d; box-shadow: 0 0 6px #ff4d4d; }
.mol-leyenda-e .e-solo { background: #fff; box-shadow: 0 0 6px #fff; }
.mol-real {
  font: inherit; font-size: 0.8rem; cursor: pointer; color: var(--texto); background: var(--panel);
  border: 1px solid var(--borde); border-radius: 999px; padding: 3px 10px; margin: 2px;
}
.mol-real:hover { border-color: var(--acento); }
.mol-panel a { color: var(--acento-txt); }


/* Ficha completa del elemento (tooltip de la tabla periódica) */
.ef-tip {
  position: fixed; z-index: 50; width: 1080px; max-width: calc(100vw - 16px); max-height: calc(100vh - 16px); overflow: hidden; pointer-events: none;
  background: var(--v-campo); border: 1px solid var(--borde); border-radius: 14px; padding: 12px 14px;
  box-shadow: 0 14px 40px #000c; font-size: 0.78rem; line-height: 1.35;
}
.ef-tip[hidden] { display: none; }
.ef-cab { display: grid; grid-template-columns: 130px 210px 1fr; gap: 12px; align-items: start; }
.ef-cab img { width: 130px; height: 130px; object-fit: cover; border-radius: 10px; flex: none; background: #000; }
.ef-sinfoto { width: 130px; height: 130px; flex: none; display: grid; place-items: center; text-align: center; padding: 10px; font-size: 0.72rem; color: var(--tenue); border: 1px dashed var(--borde); border-radius: 10px; }
.ef-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ef-sim { font-size: 2.2rem; font-weight: 800; line-height: 1; color: var(--f); }
.ef-sim small { font-size: 0.9rem; color: var(--tenue); margin-left: 6px; font-weight: 600; }
.ef-nom { font-size: 1.25rem; font-weight: 700; }
.ef-masa { color: var(--tenue); }
.ef-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.ef-chips span { font-size: 0.7rem; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--f, #9fb4ff) 25%, transparent); border: 1px solid color-mix(in srgb, var(--f, #9fb4ff) 55%, transparent); }
.ef-chips .rad { --f: #8aff00; }
.ef-nota { margin: 0; color: var(--texto); font-size: 0.8rem; }
.ef-pne { display: flex; gap: 8px; margin: 6px 0 4px; }
.ef-pne div { flex: 1; text-align: center; background: var(--panel); border-radius: 8px; padding: 4px; }
.ef-pne b { display: block; font-size: 1.25rem; }
.ef-pne div:nth-child(1) b { color: #ffb703; } .ef-pne div:nth-child(2) b { color: #ef476f; } .ef-pne div:nth-child(3) b { color: #4cc9f0; }
.ef-pne span { color: var(--tenue); font-size: 0.68rem; }
.ef-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: 2px 14px; }
.ef-sec h5 { margin: 6px 0 3px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--acento-txt); }
.ef-f { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--linea-suave); padding: 1px 0; }
.ef-f span { color: var(--tenue); }
.ef-f b { font-weight: 600; text-align: right; }
.ef-espectro svg { display: block; width: 100%; height: 22px; border-radius: 4px; }
.ef-escala { display: flex; justify-content: space-between; font-size: 0.6rem; color: var(--tenue); padding: 1px 12% 0 5%; }
.ef-pne b { font-size: 1.05rem !important; }
.ef-nfpa { grid-column: span 2; }
.ef-nfpa-cuerpo { display: flex; gap: 12px; align-items: center; }
.ef-nfpa-cuerpo > div { flex: 1; }
.ef-rombo { width: 72px; height: 72px; flex: none; }
.ef-cuadro { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; border: 1px solid #0006; }
.ef-mini { font-size: 0.62rem; color: var(--tenue); margin-top: 2px; }
.ef-f small { color: var(--tenue); font-weight: 400; }
.ef-fuente { margin: 8px 0 0; font-size: 0.65rem; color: var(--tenue); }
/* Veredicto de viabilidad */
.mol-veredicto { border-radius: 10px; padding: 8px 10px; margin: 8px 0; background: var(--panel); border: 1px solid var(--borde); font-size: 0.88rem; }
.mol-veredicto p { margin: 5px 0; }
.mol-veredicto.nivel-existe, .mol-veredicto.nivel-registrada { border-color: #06d6a0aa; background: #06d6a01a; }
.mol-veredicto.nivel-posible { border-color: #ffd166aa; background: #ffd1661a; }
.mol-veredicto.nivel-dudosa { border-color: #f8961eaa; background: #f8961e1a; }
.mol-veredicto.nivel-inestable, .mol-veredicto.nivel-incompleta { border-color: #ef476faa; background: #ef476f1a; }

@media (max-width: 820px) {
  .mol-wrap { grid-template-columns: 1fr; height: auto !important; }
  .mol-visor { height: 62vh; }
  .mapa-wrap { height: auto !important; }
  #mapa { height: 60vh; }
  .mol-panel { max-height: none; }
  .tl-info { width: auto; left: 10px; right: 10px; }
  .volver { position: static; display: inline-block; margin-bottom: 8px; }
  body[data-seccion="inicio"] .idioma { top: 10px; left: 10px; }
}
