/* SoniJerez Nube — estilos de la aplicación */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url(fuentes/PlusJakartaSans.ttf) format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --fondo: #F5F6FA;
  --sup: #FFFFFF;
  --sup2: #FAFAFC;
  --tinta: #15161C;
  --tinta2: #3D4150;
  --suave: #5A5F6E;
  --linea: #E4E6EE;
  --linea2: #EEF0F5;
  --hover: #F3F4F8;
  --boton: #6B2BD9;
  --boton-hover: #5A1FC0;
  --violeta: #6B2BD9;
  --violeta-osc: #5A1FC0;
  --violeta-cl: #F1EAFE;
  --violeta-sel: #F4EFFE;
  --violeta-borde: #C9B5F5;
  --magenta: #B0137A;
  --magenta-cl: #FCE7F3;
  --azul: #2152CC;
  --azul-cl: #E5EDFE;
  --cian: #0A7F9C;
  --cian-cl: #E0F6FB;
  --rojo: #C62828;
  --rojo-cl: #FDECEC;
  --verde: #1B7F3A;
  --verde-cl: #E3F5E9;
  --ambar: #8A5200;
  --ambar-cl: #FFF4E0;
  --degradado: linear-gradient(90deg, #D1208E, #7B2FF7 45%, #2A64F0 75%, #0BB4D6);
  --sombra: 0 18px 50px rgba(21, 22, 28, 0.16);
  --sombra-s: 0 4px 16px rgba(21, 22, 28, 0.12);
  --fuente: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --barra: 248px;
  --nav-movil: 72px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fondo: #0F1015;
    --sup: #1A1B22;
    --sup2: #202129;
    --tinta: #F1F2F6;
    --tinta2: #D5D7E0;
    --suave: #A3A8B8;
    --linea: #2E3039;
    --linea2: #272932;
    --hover: #24252E;
    --boton: #7C3AED;
    --boton-hover: #6D28D9;
    --violeta: #A98BFF;
    --violeta-osc: #C8B4FF;
    --violeta-cl: #2B2342;
    --violeta-sel: #261F3A;
    --violeta-borde: #5B4A8C;
    --magenta: #F27BC4;
    --magenta-cl: #3A1830;
    --azul: #8AAEFF;
    --azul-cl: #1C2744;
    --cian: #5FD3EE;
    --cian-cl: #12313A;
    --rojo: #FF8A80;
    --rojo-cl: #3A1C1C;
    --verde: #6FD99A;
    --verde-cl: #15301F;
    --ambar: #FFC56B;
    --ambar-cl: #352816;
    --sombra: 0 18px 50px rgba(0, 0, 0, 0.5);
    --sombra-s: 0 4px 16px rgba(0, 0, 0, 0.4);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--tinta);
  font-family: var(--fuente);
  font-size: 14px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.55; }
a { color: var(--violeta); }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--violeta); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.ic { flex-shrink: 0; display: block; }

/* ---------- Marca ---------- */
.marca { font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.marca b {
  background: var(--degradado);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}
.marca span { color: var(--suave); font-weight: 600; }

/* ---------- Botones y campos ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--linea); background: var(--sup); color: var(--tinta);
  font-weight: 600; font-size: 13.5px; white-space: nowrap; text-decoration: none;
}
.boton:hover { background: var(--hover); }
.boton.prim { background: var(--boton); border-color: var(--boton); color: #fff; font-weight: 700; }
.boton.prim:hover { background: var(--boton-hover); }
.boton.peligro { color: var(--rojo); }
.boton.peligro-lleno { background: var(--rojo); border-color: var(--rojo); color: #fff; }
.boton.suave { background: var(--violeta-cl); border-color: transparent; color: var(--violeta-osc); font-weight: 700; }
.boton.plano { background: transparent; border-color: transparent; }
.boton.plano:hover { background: var(--hover); }
.boton.grande { height: 48px; font-size: 15px; border-radius: 12px; padding: 0 18px; }
.boton.ancho { width: 100%; }
.boton-ic {
  width: 36px; height: 36px; border-radius: 9px; border: none; background: transparent;
  color: var(--suave); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.boton-ic:hover { background: var(--hover); color: var(--tinta); }
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo > label, .etiqueta { font-size: 13px; font-weight: 700; }
.entrada {
  height: 44px; border: 1px solid #D5D8E2; border-radius: 10px; padding: 0 12px;
  background: var(--sup); width: 100%; font-size: 15px;
}
@media (prefers-color-scheme: dark) { .entrada { border-color: var(--linea); } }
.entrada:focus { outline: none; border-color: var(--violeta); box-shadow: 0 0 0 3px var(--violeta-cl); }
select.entrada { padding-right: 8px; }
.nota { font-size: 12px; color: var(--suave); }
.error-texto { color: var(--rojo); font-weight: 600; font-size: 13px; }
.interruptor { display: flex; align-items: center; gap: 12px; min-height: 48px; cursor: pointer; }
.interruptor .txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.interruptor .txt b { font-size: 14.5px; font-weight: 600; }
.interruptor input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.interruptor .pista {
  width: 46px; height: 28px; flex-shrink: 0; border-radius: 99px; background: #D5D8E2; position: relative; transition: background 0.15s;
}
@media (prefers-color-scheme: dark) { .interruptor .pista { background: #3A3D49; } }
.interruptor .pista::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.15s;
}
.interruptor input:checked + .pista { background: var(--boton); }
.interruptor input:checked + .pista::after { transform: translateX(18px); }
.interruptor input:focus-visible + .pista { outline: 2px solid var(--violeta); outline-offset: 2px; }
.casilla { width: 17px; height: 17px; margin: 0; accent-color: var(--boton); cursor: pointer; }

.pastilla { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.p-violeta { background: var(--violeta-cl); color: var(--violeta-osc); }
.p-azul { background: var(--azul-cl); color: var(--azul); }
.p-cian { background: var(--cian-cl); color: var(--cian); }
.p-gris { background: var(--hover); color: var(--tinta2); }
.p-ambar { background: var(--ambar-cl); color: var(--ambar); }
.p-verde { background: var(--verde-cl); color: var(--verde); }
.p-rojo { background: var(--rojo-cl); color: var(--rojo); }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  height: 34px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--linea); background: var(--sup);
  font-weight: 600; font-size: 13px; color: var(--tinta);
}
.chip.activo { background: var(--tinta); border-color: var(--tinta); color: var(--fondo); font-weight: 700; }
.segmentos { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--linea2); height: 38px; }
.segmentos button {
  border: none; border-radius: 8px; background: transparent; padding: 0 12px; font-weight: 600; font-size: 13px; color: var(--tinta2);
  display: inline-flex; align-items: center; gap: 6px;
}
.segmentos button.activo { background: var(--sup); color: var(--tinta); font-weight: 700; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.segmentos.ic button { width: 34px; justify-content: center; padding: 0; }

.tarjeta { background: var(--sup); border: 1px solid var(--linea); border-radius: 14px; }
.tarjeta.pad { padding: 16px; }
.tarjeta-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--linea2); }
.tarjeta-cab h2, .tarjeta-cab h3 { margin: 0; font-size: 15px; font-weight: 800; }
.barra-uso { height: 8px; border-radius: 99px; background: var(--linea2); overflow: hidden; }
.barra-uso > div { height: 100%; border-radius: 99px; background: var(--degradado); }
.barra-uso.fina { height: 6px; }
.barra-uso.alerta > div { background: var(--rojo); }

/* ---------- Iconos de tipo ---------- */
.tico {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; letter-spacing: 0.02em; overflow: hidden; position: relative;
}
.tico.s { width: 28px; height: 28px; border-radius: 8px; font-size: 9px; }
.tico img { width: 100%; height: 100%; object-fit: cover; display: block; }
.t-carpeta, .t-magenta { background: var(--magenta-cl); color: var(--magenta); }
.t-violeta { background: var(--violeta-cl); color: var(--violeta); }
.t-azul { background: var(--azul-cl); color: var(--azul); }
.t-cian, .t-imagen { background: var(--cian-cl); color: var(--cian); }
.t-pdf { background: var(--rojo-cl); color: var(--rojo); }
.t-hoja { background: var(--verde-cl); color: var(--verde); }
.t-documento { background: var(--azul-cl); color: var(--azul); }
.t-presentacion { background: var(--ambar-cl); color: var(--ambar); }
.t-video { background: var(--violeta-cl); color: var(--violeta); }
.t-audio, .t-comprimido, .t-texto, .t-otro { background: var(--hover); color: var(--tinta2); }
.avatar {
  width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; flex-shrink: 0; background: var(--violeta-cl); color: var(--violeta-osc);
}
.avatar.g { width: 34px; height: 34px; font-size: 13px; }
.avatar.xl { width: 44px; height: 44px; font-size: 15px; }
.avatar.lleno { background: var(--boton); color: #fff; }

/* ---------- Pantallas de entrada ---------- */
.acceso { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 32px 18px; }
.acceso-caja { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 26px; }
.acceso-logo { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.acceso-logo img { width: 76px; height: 76px; border-radius: 20px; box-shadow: 0 10px 30px rgba(107, 43, 217, 0.18); }
.acceso-logo .marca { font-size: 28px; }
.acceso-logo p { margin: 0; color: var(--suave); font-size: 15px; max-width: 290px; }
.acceso form { display: flex; flex-direction: column; gap: 14px; }
.acceso .entrada { height: 50px; border-radius: 12px; font-size: 16px; }
.acceso .codigo { letter-spacing: 0.3em; text-align: center; font-size: 20px; font-weight: 700; }
.acceso .pie { text-align: center; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.enlace-boton { border: none; background: none; color: var(--violeta); font-weight: 600; min-height: 40px; padding: 0 8px; }
.aviso-caja { padding: 12px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 600; line-height: 1.45; }
.aviso-caja.error { background: var(--rojo-cl); color: var(--rojo); }
.aviso-caja.ok { background: var(--verde-cl); color: var(--verde); }
.aviso-caja.info { background: var(--violeta-cl); color: var(--violeta-osc); }

/* ---------- Estructura ---------- */
.app { display: flex; min-height: 100%; }
.lateral {
  width: var(--barra); flex-shrink: 0; background: var(--sup); border-right: 1px solid var(--linea);
  padding: 18px 12px 14px; display: flex; flex-direction: column; gap: 16px;
  position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto;
}
.lateral .marca { font-size: 20px; padding: 0 8px; text-decoration: none; display: block; }
.lateral-botones { display: flex; flex-direction: column; gap: 8px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a, .arbol a {
  display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 9px;
  font-size: 14px; font-weight: 600; color: var(--tinta2); text-decoration: none; min-width: 0;
}
.nav a:hover, .arbol a:hover { background: var(--hover); }
.nav a.activo, .arbol a.activo { background: var(--violeta-cl); color: var(--violeta-osc); font-weight: 700; }
.nav-titulo { padding: 4px 10px 6px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--suave); }
.arbol { display: flex; flex-direction: column; gap: 1px; }
.arbol a { height: 34px; font-size: 13.5px; }
.arbol .flecha { width: 18px; height: 18px; border: none; background: none; padding: 0; color: var(--suave); display: inline-flex; align-items: center; justify-content: center; border-radius: 5px; flex-shrink: 0; }
.arbol .flecha:hover { background: var(--linea); }
.arbol .flecha.vacia { visibility: hidden; }
.arbol .nombre { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.solo-tu { font-size: 10.5px; font-weight: 700; color: var(--violeta-osc); background: var(--violeta-cl); padding: 1px 7px; border-radius: 99px; white-space: nowrap; }
.lateral-espacio { padding: 12px; border-radius: 12px; background: var(--fondo); display: flex; flex-direction: column; gap: 8px; }
.lateral-espacio .fila { display: flex; justify-content: space-between; font-size: 12px; gap: 8px; }
.lateral-espacio .fila span { color: var(--suave); }
.relleno { flex: 1; }

.principal { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.superior { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 28px 0; flex-wrap: wrap; }
.superior .buscador { flex: 1 1 320px; max-width: 560px; }
.buscador {
  display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px;
  background: var(--sup); border: 1px solid var(--linea); border-radius: 12px; color: var(--suave);
}
.buscador input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-size: 14px; color: var(--tinta); }
.buscador:focus-within { border-color: var(--violeta); box-shadow: 0 0 0 3px var(--violeta-cl); }
.yo { display: flex; align-items: center; gap: 10px; border: none; background: transparent; padding: 4px 6px; border-radius: 10px; text-align: left; }
.yo:hover { background: var(--hover); }
.yo .txt { display: flex; flex-direction: column; line-height: 1.2; }
.yo .txt b { font-size: 13px; }
.yo .txt span { font-size: 12px; color: var(--suave); }
.contenido { padding: 18px 28px 40px; display: flex; flex-direction: column; gap: 18px; flex: 1; min-width: 0; position: relative; }
.cabecera { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.cabecera h1 { margin: 2px 0 0; font-size: 28px; line-height: 34px; font-weight: 800; letter-spacing: -0.02em; word-break: break-word; }
.cabecera p { margin: 4px 0 0; color: var(--suave); font-size: 14px; }
.acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.migas { display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: 13px; font-weight: 600; color: var(--suave); }
.migas a { color: var(--suave); text-decoration: none; }
.migas a:hover { color: var(--violeta); }
.volver { display: none; }

/* ---------- Zona para soltar ---------- */
.soltar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 12px 16px;
  border: 2px dashed var(--violeta-borde); background: var(--violeta-sel); border-radius: 14px;
}
.soltar .circ { width: 40px; height: 40px; border-radius: 50%; background: var(--violeta-cl); color: var(--violeta); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.soltar .txt { flex: 1 1 260px; display: flex; flex-direction: column; gap: 2px; }
.soltar .txt b { font-size: 14.5px; }
.soltar .txt span { font-size: 13px; color: var(--suave); }
.capa-soltar {
  position: fixed; inset: 0; z-index: 60; background: rgba(107, 43, 217, 0.12); border: 3px dashed var(--violeta);
  display: flex; align-items: center; justify-content: center; pointer-events: none;
}
.capa-soltar div { background: var(--sup); padding: 18px 24px; border-radius: 16px; box-shadow: var(--sombra); font-weight: 800; font-size: 17px; }

/* ---------- Barra de selección ---------- */
.barra-sel {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 5px 6px 5px 16px; border-radius: 12px;
  background: #15161C; color: #fff; position: sticky; top: 8px; z-index: 5;
}
@media (prefers-color-scheme: dark) { .barra-sel { background: #F1F2F6; color: #15161C; } }
.barra-sel b { font-size: 13px; margin-right: 8px; }
.barra-sel button { height: 34px; padding: 0 10px; border: none; border-radius: 8px; background: transparent; color: inherit; font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.barra-sel button:hover { background: rgba(255, 255, 255, 0.12); }
.barra-sel button.rojo { color: #FFB4B4; }
@media (prefers-color-scheme: dark) { .barra-sel button.rojo { color: #B3261E; } .barra-sel button:hover { background: rgba(0, 0, 0, 0.08); } }
.barra-sel .cerrar { margin-left: auto; }

/* ---------- Tabla de archivos ---------- */
.tabla-caja { background: var(--sup); border: 1px solid var(--linea); border-radius: 14px; overflow-x: auto; }
.tabla { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 14px; }
.tabla th {
  height: 38px; padding: 0 12px; text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--suave); background: var(--sup2); border-bottom: 1px solid var(--linea); white-space: nowrap;
}
.tabla td { height: 46px; padding: 0 12px; border-bottom: 1px solid var(--linea2); color: var(--suave); white-space: nowrap; }
.tabla tr:last-child td { border-bottom: none; }
.tabla tbody tr { cursor: default; }
.tabla tbody tr:hover td { background: var(--sup2); }
.tabla tbody tr.sel td { background: var(--violeta-sel); }
.tabla td.nom { color: var(--tinta); font-weight: 600; white-space: normal; }
.tabla td.der, .tabla th.der { text-align: right; }
.tabla .c-sel { width: 44px; padding: 0 0 0 14px; }
.tabla .c-acc { width: 48px; padding: 0 6px; }
.nom-celda { display: flex; align-items: center; gap: 10px; min-width: 0; }
.nom-celda button.abrir { border: none; background: none; padding: 0; text-align: left; font-weight: 600; color: var(--tinta); word-break: break-word; }
.nom-celda button.abrir:hover { color: var(--violeta); text-decoration: underline; }
.quien { display: inline-flex; align-items: center; gap: 8px; color: var(--tinta2); }

/* Lista compacta (móvil y buscador) */
.lista { background: var(--sup); border: 1px solid var(--linea); border-radius: 14px; overflow: hidden; }
.fila-l { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 6px 4px 6px 12px; border-bottom: 1px solid var(--linea2); }
.fila-l:last-child { border-bottom: none; }
.fila-l.sel { background: var(--violeta-sel); }
.fila-l .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; border: none; background: none; padding: 0; text-align: left; }
.fila-l .txt b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fila-l .txt span { font-size: 12px; color: var(--suave); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fila-l .boton-ic { width: 44px; height: 44px; }

/* Cuadrícula */
.cuadricula { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.celda {
  background: var(--sup); border: 1px solid var(--linea); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column;
  position: relative; text-align: left; padding: 0;
}
.celda.sel { outline: 3px solid var(--boton); outline-offset: -1px; }
.celda .img { aspect-ratio: 1; background: var(--linea2); display: flex; align-items: center; justify-content: center; overflow: hidden; border: none; padding: 0; width: 100%; }
.celda .img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.celda .img .tico { width: 56px; height: 56px; border-radius: 14px; font-size: 13px; }
.celda .pie { padding: 8px 10px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.celda .pie b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.celda .pie span { font-size: 11.5px; color: var(--suave); }
.celda .marcar { position: absolute; top: 8px; left: 8px; width: 22px; height: 22px; }
.celda .mas { position: absolute; top: 4px; right: 4px; background: rgba(255, 255, 255, 0.9); color: #15161C; }
.celda .video-marca { position: absolute; bottom: 52px; right: 8px; background: rgba(21, 22, 28, 0.7); color: #fff; border-radius: 6px; padding: 2px 6px; font-size: 11px; font-weight: 700; display: flex; align-items: center; gap: 3px; }

/* Carpetas en tarjetas (inicio) */
.carpetas-rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.carpeta-tarjeta {
  display: flex; align-items: center; gap: 10px; height: 62px; padding: 0 12px; background: var(--sup); border: 1px solid var(--linea);
  border-radius: 14px; text-decoration: none; color: var(--tinta); min-width: 0;
}
.carpeta-tarjeta:hover { border-color: var(--violeta-borde); }
.carpeta-tarjeta .txt { display: flex; flex-direction: column; min-width: 0; }
.carpeta-tarjeta b { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.carpeta-tarjeta span { font-size: 12px; color: var(--suave); }
.seccion { display: flex; flex-direction: column; gap: 10px; }
.seccion-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.seccion-cab h2 { margin: 0; font-size: 16px; font-weight: 800; }
.seccion-cab a { font-size: 14px; font-weight: 600; text-decoration: none; }
.vacio { padding: 40px 16px; text-align: center; color: var(--suave); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.vacio .circ { width: 56px; height: 56px; border-radius: 50%; background: var(--violeta-cl); color: var(--violeta); display: flex; align-items: center; justify-content: center; }
.vacio b { color: var(--tinta); font-size: 15px; }
.cargando { padding: 40px; display: flex; justify-content: center; }
.giro { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--linea); border-top-color: var(--violeta); animation: giro 0.8s linear infinite; }
@keyframes giro { to { transform: rotate(360deg); } }
.banner {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--ambar-cl); color: var(--ambar);
  font-weight: 600; flex-wrap: wrap;
}
.banner .txt { flex: 1 1 240px; }

/* ---------- Menús, modales, avisos ---------- */
.menu {
  position: fixed; z-index: 90; min-width: 220px; padding: 6px; background: var(--sup); border: 1px solid var(--linea);
  border-radius: 14px; box-shadow: var(--sombra); display: flex; flex-direction: column;
}
.menu button {
  display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border: none; border-radius: 9px; background: transparent;
  text-align: left; font-weight: 600; font-size: 14px; color: var(--tinta);
}
.menu button:hover { background: var(--hover); }
.menu button.rojo { color: var(--rojo); }
.menu hr { border: none; height: 1px; background: var(--linea2); margin: 4px 8px; }
.fondo-modal {
  position: fixed; inset: 0; z-index: 100; background: rgba(21, 22, 28, 0.48); display: flex; align-items: center; justify-content: center; padding: 16px;
  animation: aparece 0.12s ease-out;
}
@keyframes aparece { from { opacity: 0; } }
.modal {
  background: var(--sup); border-radius: 18px; box-shadow: var(--sombra); width: 100%; max-width: 460px; max-height: calc(100vh - 32px);
  overflow-y: auto; display: flex; flex-direction: column;
}
.modal.ancho { max-width: 640px; }
.modal-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 6px; }
.modal-cab h2 { margin: 0; font-size: 18px; font-weight: 800; }
.modal-cuerpo { padding: 8px 18px 4px; display: flex; flex-direction: column; gap: 14px; }
.modal-cuerpo p { margin: 0; color: var(--tinta2); line-height: 1.5; }
.modal-pie { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 18px 18px; flex-wrap: wrap; }
.avisos { position: fixed; z-index: 120; left: 50%; transform: translateX(-50%); bottom: 24px; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.aviso {
  background: #15161C; color: #fff; padding: 11px 16px; border-radius: 12px; font-weight: 600; font-size: 13.5px; box-shadow: var(--sombra-s);
  display: flex; align-items: center; gap: 10px; pointer-events: auto; animation: sube 0.18s ease-out;
}
.aviso.error { background: #B3261E; }
@keyframes sube { from { transform: translateY(10px); opacity: 0; } }

/* Hoja inferior (móvil) */
.hoja-fondo { position: fixed; inset: 0; z-index: 100; background: rgba(21, 22, 28, 0.48); display: flex; align-items: flex-end; justify-content: center; animation: aparece 0.12s; }
.hoja {
  background: var(--sup); width: 100%; max-width: 560px; border-radius: 22px 22px 0 0; padding: 10px 18px calc(22px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 14px; max-height: 92vh; overflow-y: auto; animation: hoja 0.2s ease-out;
}
@keyframes hoja { from { transform: translateY(40px); opacity: 0.6; } }
.agarre { width: 40px; height: 5px; border-radius: 99px; background: var(--linea); align-self: center; }
.hoja-cab { display: flex; align-items: center; justify-content: space-between; }
.hoja-cab h2 { margin: 0; font-size: 20px; font-weight: 800; }
.destino {
  display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 6px 14px; border: 1px solid var(--linea); border-radius: 14px;
  background: var(--sup2); text-align: left; width: 100%;
}
.destino .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.destino .txt span { font-size: 12px; color: var(--suave); }
.destino .txt b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.destino .cambiar { font-weight: 700; color: var(--violeta); font-size: 14px; }
.origenes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.origen {
  height: 96px; border-radius: 16px; border: 1px solid var(--linea); background: var(--sup); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 14px; cursor: pointer; position: relative;
}
.origen:hover { border-color: var(--violeta-borde); }
.origen input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.origen .tico { width: 44px; height: 44px; border-radius: 13px; }

/* Panel de subidas */
.panel-subidas {
  position: fixed; z-index: 80; right: 24px; bottom: 24px; width: 360px; max-width: calc(100vw - 32px); background: var(--sup);
  border: 1px solid var(--linea); border-radius: 16px; box-shadow: var(--sombra); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px;
}
.panel-subidas .cab { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.panel-subidas .cab > div:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.panel-subidas .cab > div:last-child { display: flex; gap: 2px; flex-shrink: 0; }
.panel-subidas .cab b { font-size: 14px; font-weight: 800; }
.panel-subidas .cab span { font-size: 12px; color: var(--suave); }
.panel-subidas .items { display: flex; flex-direction: column; gap: 8px; max-height: 220px; overflow-y: auto; }
.subida-item { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.subida-item .l { display: flex; justify-content: space-between; gap: 10px; }
.subida-item .l b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.subida-item .estado { font-weight: 700; white-space: nowrap; color: var(--violeta); }
.subida-item .estado.ok { color: var(--verde); }
.subida-item .estado.mal { color: var(--rojo); }
.subida-item .estado.gris { color: var(--suave); font-weight: 600; }
.panel-subidas.min .items, .panel-subidas.min .barra-total { display: none; }

/* ---------- Visor ---------- */
.visor { position: fixed; inset: 0; z-index: 110; background: #0B0B0F; color: #fff; display: flex; flex-direction: column; }
.visor-cab { display: flex; align-items: center; gap: 8px; padding: 10px 12px; padding-top: calc(10px + env(safe-area-inset-top)); }
.visor-cab .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.visor-cab .t b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.visor-cab .t span { font-size: 12px; color: #B9BCC8; }
.visor .boton-ic { color: #E4E6EE; width: 42px; height: 42px; }
.visor .boton-ic:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.visor-cuerpo { flex: 1; min-height: 0; display: flex; }
.visor-medio { flex: 1; min-width: 0; position: relative; display: flex; align-items: center; justify-content: center; padding: 8px; }
.visor-medio img, .visor-medio video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.visor-medio iframe { width: 100%; height: 100%; border: none; background: #fff; border-radius: 6px; }
.visor-medio .sin { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; color: #D5D7E0; }
.visor-medio .sin .tico { width: 84px; height: 84px; border-radius: 20px; font-size: 18px; }
.visor-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: none; background: rgba(255, 255, 255, 0.12); color: #fff; display: flex; align-items: center; justify-content: center; }
.visor-nav:hover { background: rgba(255, 255, 255, 0.22); }
.visor-nav.izq { left: 12px; }
.visor-nav.der { right: 12px; }
.visor-info { width: 320px; flex-shrink: 0; background: #16171D; border-left: 1px solid #2A2C35; padding: 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.visor-info h3 { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: #A3A8B8; }
.visor-info dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; font-size: 13.5px; }
.visor-info dt { color: #A3A8B8; }
.visor-info dd { margin: 0; font-weight: 600; word-break: break-word; }
.visor-info .acciones .boton { background: #24252E; border-color: #2E3039; color: #F1F2F6; }
.visor-info .acciones .boton:hover { background: #2E3039; }
.visor-info .mini-mapa { height: 160px; border-radius: 12px; overflow: hidden; background: #24252E; }
.visor-info a { color: #C8B4FF; }

/* ---------- Fotos y mapa ---------- */
.dia { display: flex; flex-direction: column; gap: 8px; }
.dia-cab { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; position: sticky; top: 0; background: var(--fondo); padding: 6px 0; z-index: 2; }
.dia-cab h3 { margin: 0; font-size: 15px; font-weight: 800; }
.dia-cab span { font-size: 12.5px; color: var(--suave); }
.mosaico { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 4px; }
.mosaico button { aspect-ratio: 1; border: none; padding: 0; background: var(--linea2); border-radius: 6px; overflow: hidden; position: relative; display: flex; align-items: center; justify-content: center; }
.mosaico img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mosaico .dur { position: absolute; bottom: 5px; right: 5px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6)); }
.mapa-zona { display: flex; flex-wrap: wrap; gap: 18px; align-items: stretch; flex: 1; }
.mapa-caja { flex: 1 1 520px; min-width: 0; min-height: 560px; position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--linea); background: #EDEFE6; }
.mapa-caja .leaflet-container { width: 100%; height: 100%; position: absolute; inset: 0; font-family: var(--fuente); }
.mapa-cuenta { position: absolute; z-index: 500; top: 12px; left: 56px; padding: 8px 12px; border-radius: 10px; background: var(--sup); box-shadow: var(--sombra-s); font-size: 13px; font-weight: 700; }
.mapa-lado { flex: 1 1 320px; min-width: 0; max-height: 640px; overflow-y: auto; background: var(--sup); border: 1px solid var(--linea); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.mapa-lado h2 { margin: 0; font-size: 18px; font-weight: 800; }
.pin { position: relative; }
.pin .marco {
  width: 52px; height: 52px; border-radius: 11px; background: #fff; padding: 3px; box-shadow: 0 3px 8px rgba(21, 22, 28, 0.3);
}
.pin .marco div { width: 100%; height: 100%; border-radius: 8px; background: #E9B48A center/cover no-repeat; }
.pin .punta { position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 8px solid #fff; }
.pin .cuenta {
  position: absolute; top: -10px; right: -12px; min-width: 26px; height: 20px; padding: 0 7px; border-radius: 10px; background: #15161C; color: #fff;
  border: 2px solid #fff; font: 700 11px/16px var(--fuente); text-align: center;
}
.pin.sel .marco { background: #6B2BD9; }
.pin.sel .punta { border-top-color: #6B2BD9; }
.pin.sel .cuenta { background: #6B2BD9; }
.leaflet-div-icon.icono-pin { background: transparent; border: none; }

/* ---------- Equipo ---------- */
.dos-col { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.dos-col > .izq { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.dos-col > .der { flex: 1 1 380px; min-width: 0; }
.tabla-usuarios tbody tr { cursor: pointer; }
.tabla-usuarios tbody tr.sel td { background: var(--violeta-sel); }
.tabla-usuarios tbody tr.sel td:first-child { box-shadow: inset 3px 0 0 var(--boton); }
.matriz th, .matriz td { text-align: center; }
.matriz th:first-child, .matriz td:first-child { text-align: left; }
.matriz .privada td { background: var(--violeta-sel); color: var(--violeta-osc); font-weight: 600; }
.actividad-item { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--linea2); font-size: 14px; }
.actividad-item:last-child { border-bottom: none; }
.actividad-item .txt { flex: 1; min-width: 0; color: var(--tinta2); }
.actividad-item .txt b { color: var(--tinta); }
.actividad-item .cuando { font-size: 12px; color: var(--suave); white-space: nowrap; }

/* ---------- Ajustes ---------- */
.ajustes { display: flex; flex-direction: column; gap: 18px; max-width: 860px; }
.ajustes .tarjeta-cuerpo { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.ajustes .fila-campos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.qr { width: 196px; height: 196px; background: #fff; border-radius: 12px; padding: 8px; display: flex; align-items: center; justify-content: center; }
.qr img, .qr svg { width: 100%; height: 100%; image-rendering: pixelated; }
.codigo-texto { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; background: var(--hover); padding: 8px 10px; border-radius: 8px; word-break: break-all; }
.enlaces-movil { display: none; }

/* ---------- Barra inferior (móvil) ---------- */
.nav-movil { display: none; }

@media (max-width: 899px) {
  body { font-size: 15px; }
  .lateral { display: none; }
  .superior { display: none; }
  .contenido { padding: 14px 16px calc(var(--nav-movil) + 28px + env(safe-area-inset-bottom)); gap: 14px; }
  .cabecera h1 { font-size: 26px; }
  .volver { display: inline-flex; align-items: center; gap: 2px; height: 40px; font-size: 16px; font-weight: 600; color: var(--violeta); text-decoration: none; border: none; background: none; padding: 0; }
  .cab-movil { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; }
  .cab-movil .marca { font-size: 21px; }
  .nav-movil {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; position: fixed; z-index: 70; left: 0; right: 0; bottom: 0;
    height: calc(var(--nav-movil) + env(safe-area-inset-bottom)); padding: 4px 8px env(safe-area-inset-bottom); background: var(--sup); border-top: 1px solid var(--linea);
  }
  .nav-movil a { display: flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none; color: var(--suave); font-size: 11px; font-weight: 600; }
  .nav-movil a.activo { color: var(--violeta); font-weight: 700; }
  .nav-movil .mas-grande {
    justify-self: center; width: 58px; height: 58px; margin-top: -26px; border-radius: 50%; background: var(--boton); color: #fff; border: none;
    display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(107, 43, 217, 0.35);
  }
  .panel-subidas { right: 16px; left: 16px; width: auto; bottom: calc(var(--nav-movil) + 14px + env(safe-area-inset-bottom)); }
  .ocultar-movil { display: none !important; }
  .soltar { display: none; }
  .visor-info { display: none; }
  .visor-info.abierta { display: flex; position: absolute; left: 0; right: 0; bottom: 0; width: auto; max-height: 60%; border-left: none; border-top: 1px solid #2A2C35; border-radius: 18px 18px 0 0; z-index: 3; }
  .visor-nav { display: none; }
  .mapa-caja { flex-basis: 100%; min-height: 58vh; }
  .mapa-lado { max-height: none; }
  .enlaces-movil { display: flex; }
  .carpetas-rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosaico { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 3px; }
  .cuadricula { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .avisos { bottom: calc(var(--nav-movil) + 20px + env(safe-area-inset-bottom)); }
}
@media (min-width: 900px) {
  .solo-movil { display: none !important; }
  .cab-movil { display: none; }
}

/* ---------- Espacio y copias (1.1) ---------- */
:root {
  --grafica: #6B2BD9;
  --grafica-gris: #8E93A3;
  --grafica-pista: #ECEDF3;
  --grafica-rejilla: #EEF0F5;
  --grafica-base: #D5D8E2;
}
@media (prefers-color-scheme: dark) {
  :root {
    --grafica: #9474FA;
    --grafica-gris: #6E7383;
    --grafica-pista: #2A2C36;
    --grafica-rejilla: #272932;
    --grafica-base: #3A3D49;
  }
}
a.lateral-espacio.enlace { text-decoration: none; color: inherit; }
a.lateral-espacio.enlace:hover { background: var(--hover); }
a.lateral-espacio.enlace.activo { background: var(--violeta-cl); }
a.lateral-espacio.enlace.activo .fila b { color: var(--violeta-osc); }
.espacio { display: flex; flex-direction: column; gap: 18px; margin-top: 18px; }
.esp-fila { display: flex; flex-wrap: wrap; gap: 18px; align-items: stretch; }
.esp-fila > .tarjeta { flex: 1 1 260px; min-width: 0; }
.esp-fila > .esp-ancha { flex: 2 1 440px; }
.esp-fila > .esp-ancha2 { flex: 1.4 1 360px; }
.esp-col { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.esp-tarjeta { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.esp-tarjeta h2 { margin: 0; font-size: 16px; font-weight: 800; }
.esp-sub { margin: 2px 0 0; font-size: 13px; color: var(--suave); line-height: 1.45; }
.esp-etiqueta { font-size: 14px !important; font-weight: 700 !important; color: var(--suave); }
.esp-hosting-cab { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.esp-heroe { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.esp-heroe b { font-size: 44px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.esp-heroe span { font-size: 16px; font-weight: 600; color: var(--suave); }
.esp-libre { font-size: 14px; color: var(--suave); }
.esp-libre b { color: var(--tinta); font-weight: 800; }
.esp-medidor { display: flex; gap: 2px; height: 14px; border-radius: 99px; overflow: hidden; background: var(--sup); }
.esp-medidor span { display: block; height: 100%; min-width: 0; }
.s-nube { background: var(--grafica); }
.esp-medidor .s-nube { min-width: 4px; }
.s-resto { background: var(--grafica-gris); }
.s-libre { background: var(--grafica-pista); flex: 1; }
.esp-leyenda { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13px; color: var(--tinta2); }
.esp-leyenda > span { display: inline-flex; align-items: center; gap: 8px; }
.esp-leyenda i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex-shrink: 0; }
.esp-leyenda i.s-libre { box-shadow: inset 0 0 0 1px var(--grafica-base); }
.esp-leyenda b { color: var(--tinta); font-weight: 800; }
.esp-alerta { margin: 0; display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--ambar-cl); color: var(--ambar); font-size: 13px; font-weight: 600; line-height: 1.45; }
.esp-alerta svg { margin-top: 1px; }
.esp-alerta.col { flex-direction: column; }
.esp-alerta.col > span svg { display: inline-block; vertical-align: -3px; }
.esp-cron { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.esp-cron .codigo-texto { color: var(--tinta); }
.esp-grafica { position: relative; outline-offset: 4px; border-radius: 8px; }
.esp-grafica svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.esp-grafica text { font-family: var(--fuente); }
.esp-grafica .g-eje { font-size: 11px; fill: var(--suave); }
.esp-grafica .g-etiqueta { font-size: 11px; font-weight: 700; fill: var(--tinta2); }
.esp-grafica .g-valor { font-size: 12.5px; font-weight: 800; fill: var(--tinta); }
.esp-grafica .g-rejilla { stroke: var(--grafica-rejilla); stroke-width: 1; }
.esp-grafica .g-base { stroke: var(--grafica-base); stroke-width: 1; }
.esp-grafica .g-limite { stroke: var(--suave); stroke-width: 1; opacity: 0.7; }
.esp-grafica .g-area { fill: var(--grafica); fill-opacity: 0.1; stroke: none; }
.esp-grafica .g-linea { fill: none; stroke: var(--grafica); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.esp-grafica .g-prevision { stroke: var(--grafica); stroke-opacity: 0.55; stroke-width: 2; stroke-dasharray: 5 5; stroke-linecap: round; }
.esp-grafica .g-punto { fill: var(--grafica); stroke: var(--sup); stroke-width: 2; }
.esp-grafica .g-punto-hueco { fill: var(--sup); stroke: var(--grafica); stroke-width: 2; }
.esp-grafica .g-guia { stroke: var(--grafica-base); stroke-width: 1; }
.esp-tip { position: absolute; transform: translate(-50%, -100%); pointer-events: none; background: var(--tinta); color: var(--sup); font-size: 12px; font-weight: 700; padding: 6px 9px; border-radius: 8px; white-space: nowrap; box-shadow: var(--sombra-s); z-index: 2; }
.esp-datos summary { cursor: pointer; font-size: 13px; color: var(--suave); font-weight: 600; width: fit-content; }
.esp-datos table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.esp-datos th, .esp-datos td { padding: 6px 8px; border-bottom: 1px solid var(--linea2); text-align: left; }
.esp-datos th { color: var(--suave); font-size: 12px; }
.esp-datos td:last-child, .esp-datos th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.esp-barras { display: flex; flex-direction: column; gap: 14px; }
.esp-barra { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 10px; font-size: 13px; }
.esp-barra .nom { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.esp-pista { display: flex; align-items: center; gap: 8px; min-width: 0; }
.esp-relleno { display: block; height: 14px; border-radius: 0 4px 4px 0; background: var(--grafica); flex-shrink: 0; }
.esp-barra .valor { font-weight: 700; color: var(--tinta2); white-space: nowrap; }
.esp-cab { display: flex; align-items: center; gap: 12px; }
.esp-cab h2 { flex: 1; min-width: 0; }
.esp-ico { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.esp-dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; font-size: 13px; }
.esp-dl dt { color: var(--suave); }
.esp-dl dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.esp-botones { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.esp-grandes { display: flex; flex-direction: column; margin: 0 -6px; }
.esp-grande { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 4px 6px; border-bottom: 1px solid var(--linea2); color: var(--tinta); text-decoration: none; border-radius: 8px; }
.esp-grande:last-child { border-bottom: none; }
.esp-grande:hover { background: var(--sup2); }
.esp-grande .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.esp-grande .txt b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.esp-grande .txt span { font-size: 12px; color: var(--suave); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.esp-grande .tam { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.esp-pasos { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--tinta2); line-height: 1.45; }
.esp-campos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.clave-grande { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 16px; font-weight: 700; letter-spacing: 0.03em; line-height: 1.75; background: var(--sup2); border: 1px solid var(--linea); border-radius: 12px; padding: 12px 14px; overflow-wrap: anywhere; user-select: all; }
.rep-lista { display: flex; flex-direction: column; gap: 12px; }
.rep-grupo { border: 1px solid var(--linea); border-radius: 12px; overflow: hidden; }
.rep-cab { padding: 8px 12px; background: var(--sup2); font-size: 12px; font-weight: 700; color: var(--suave); border-bottom: 1px solid var(--linea2); }
.rep-fila { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 12px; border-bottom: 1px solid var(--linea2); cursor: pointer; }
.rep-fila:last-child { border-bottom: none; }
.rep-fila:hover { background: var(--sup2); }
.rep-fila .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rep-fila .txt b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rep-fila .txt span { font-size: 12px; color: var(--suave); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 899px) {
  .espacio { margin-top: 12px; gap: 14px; }
  .esp-fila { gap: 14px; }
  .esp-col { gap: 14px; }
  .esp-heroe b { font-size: 36px; }
}
