/* SmartApp Tarjetas — panel y paginas publicas.
   Identidad: tinta negra del logo + acento ambar (los "rayos" de luz del logo / LED del letrero).
   Fuentes alojadas en el propio sitio (la politica CSP no permite fuentes externas). */
@font-face { font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("/fonts/jakarta.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair"; src: url("/fonts/playfair.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/fonts/nunito.woff2") format("woff2"); font-weight: 200 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "Grotesk"; src: url("/fonts/grotesk.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }

:root {
  --fondo: #f5f6f8; --superficie: #ffffff; --superficie-2: #f9fafb; --linea: #e4e7ec; --linea-fuerte: #d0d5dd;
  --texto: #111318; --suave: #5d6573; --tenue: #8a919e;
  --primario: #111318; --primario-texto: #ffffff; --primario-hover: #2a2e36;
  --acento: #f2a516; --acento-suave: #fff4dc; --acento-tinta: #8a5a00;
  --ok: #157a46; --ok-fondo: #e6f6ec; --mal: #c0362c; --mal-fondo: #fdecea;
  --radio: 14px; --radio-sm: 10px;
  --sombra-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --sombra: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 16px rgba(16, 24, 40, .06);
  --sombra-lg: 0 24px 48px -12px rgba(16, 24, 40, .18);
  --f-titulo: "Jakarta", "Inter", system-ui, sans-serif;
  --f-texto: "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
  --f-mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --fondo: #0b0d10; --superficie: #14171c; --superficie-2: #191d23; --linea: #252a32; --linea-fuerte: #343a44;
  --texto: #eef0f3; --suave: #a2a9b5; --tenue: #747c89;
  --primario: #f3f4f6; --primario-texto: #0b0d10; --primario-hover: #ffffff;
  --acento: #f5b335; --acento-suave: #2b220f; --acento-tinta: #f5c66b;
  --ok: #4fd18b; --ok-fondo: #10291c; --mal: #ff7b70; --mal-fondo: #33140f;
  --sombra: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25); --sombra-lg: 0 24px 48px -12px rgba(0,0,0,.6);
  color-scheme: dark; } }
:root[data-theme="dark"] {
  --fondo: #0b0d10; --superficie: #14171c; --superficie-2: #191d23; --linea: #252a32; --linea-fuerte: #343a44;
  --texto: #eef0f3; --suave: #a2a9b5; --tenue: #747c89;
  --primario: #f3f4f6; --primario-texto: #0b0d10; --primario-hover: #ffffff;
  --acento: #f5b335; --acento-suave: #2b220f; --acento-tinta: #f5c66b;
  --ok: #4fd18b; --ok-fondo: #10291c; --mal: #ff7b70; --mal-fondo: #33140f;
  --sombra: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25); --sombra-lg: 0 24px 48px -12px rgba(0,0,0,.6);
  color-scheme: dark; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; }
body { background: var(--fondo); color: var(--texto); font: 400 15.5px/1.55 var(--f-texto); font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; min-height: 100vh; }
h1, h2, h3 { font-family: var(--f-titulo); line-height: 1.2; margin: 0; letter-spacing: -.02em; text-wrap: balance; font-weight: 700; }
h1 { font-size: 26px; } h2 { font-size: 18px; } h3 { font-size: 15.5px; font-weight: 650; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; }
::selection { background: var(--acento); color: #111318; }

/* Iconos duotono: la capa ".d" es el relleno suave */
.ico { width: 20px; height: 20px; fill: currentColor; flex: 0 0 auto; }
.ico .d, .ico-grande .d { opacity: .22; }
.ico-grande { width: 40px; height: 40px; fill: currentColor; flex: 0 0 auto; }
.chip-ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--acento-suave); color: var(--acento-tinta); flex: 0 0 auto; }
.chip-ico .ico { width: 22px; height: 22px; }
.chip-ico .ico .d { opacity: .35; }

/* Logo: dos versiones (tinta / blanco) segun el tema */
.logo { display: inline-flex; align-items: center; line-height: 0; }
.logo img { height: 26px; width: auto; }
.logo .logo-oscuro { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo:not(.claro) .logo-claro { display: none; } :root:not([data-theme="light"]) .logo:not(.claro) .logo-oscuro { display: inline; } }
:root[data-theme="dark"] .logo:not(.claro) .logo-claro { display: none; }
:root[data-theme="dark"] .logo:not(.claro) .logo-oscuro { display: inline; }
.logo.blanco .logo-claro { display: none !important; }
.logo.blanco .logo-oscuro { display: inline !important; }

/* ---------- Formularios ---------- */
label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 550; color: var(--suave); }
input, select, textarea { font: inherit; font-size: 16px; color: var(--texto); background: var(--superficie); border: 1px solid var(--linea-fuerte);
  border-radius: var(--radio-sm); padding: 10px 12px; width: 100%; min-height: 44px; box-shadow: var(--sombra-sm); }
input::placeholder { color: var(--tenue); }
input:hover, select:hover, textarea:hover { border-color: var(--tenue); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--acento); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acento) 22%, transparent); }
input:disabled { background: var(--superficie-2); color: var(--tenue); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; }
input[type=checkbox] { width: 20px; height: 20px; min-height: 0; padding: 0; accent-color: var(--primario); box-shadow: none; flex: 0 0 auto; }
input[type=color] { padding: 4px; height: 44px; cursor: pointer; }
input[type=file] { padding: 8px; font-size: 14px; cursor: pointer; }
input[type=file]::file-selector-button { font: inherit; font-weight: 600; font-size: 13.5px; border: 0; border-radius: 8px; padding: 7px 12px; margin-right: 10px;
  background: var(--superficie-2); color: var(--texto); box-shadow: inset 0 0 0 1px var(--linea-fuerte); cursor: pointer; }
.check { flex-direction: row; align-items: center; gap: 10px; color: var(--texto); font-size: 14.5px; font-weight: 500; padding: 10px 12px;
  border: 1px solid var(--linea); border-radius: var(--radio-sm); background: var(--superficie-2); cursor: pointer; }

/* Botones */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: 14.5px; line-height: 1;
  border: 1px solid var(--linea-fuerte); background: var(--superficie); color: var(--texto); border-radius: var(--radio-sm); padding: 0 16px; min-height: 44px;
  cursor: pointer; text-decoration: none; box-shadow: var(--sombra-sm); white-space: nowrap; }
.boton:hover { background: var(--superficie-2); border-color: var(--tenue); }
.boton .ico { width: 18px; height: 18px; }
.boton.primario { background: var(--primario); border-color: var(--primario); color: var(--primario-texto); }
.boton.primario:hover { background: var(--primario-hover); }
.boton.led { background: var(--acento); border-color: var(--acento); color: #1b1300; }
.boton.peligro { color: var(--mal); border-color: color-mix(in srgb, var(--mal) 40%, transparent); }
.boton.peligro:hover { background: var(--mal-fondo); }
.boton.fantasma { background: transparent; border-color: transparent; box-shadow: none; }
.boton.fantasma:hover { background: var(--superficie-2); }
.boton.icono-solo { padding: 0; width: 44px; }
.boton.ancho { width: 100%; }
.boton:disabled { opacity: .55; cursor: progress; }

.aviso { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radio-sm); font-size: 14.5px; font-weight: 500; border: 1px solid transparent; }
.aviso.error { background: var(--mal-fondo); color: var(--mal); border-color: color-mix(in srgb, var(--mal) 25%, transparent); }
.aviso.ok { background: var(--ok-fondo); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.aviso .ico { margin-top: 1px; }
.oculto { display: none !important; }
.fila { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pila { display: flex; flex-direction: column; gap: 14px; }
.rejilla { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px 16px; }
.nota { color: var(--suave); font-size: 14px; }
.mono { font-family: var(--f-mono); letter-spacing: .03em; font-size: .94em; }
.separador { height: 1px; background: var(--linea); border: 0; margin: 4px 0; }

/* ---------- Acceso (login / invitacion): marca a la izquierda, formulario a la derecha ---------- */
.acceso { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.acceso-marca { position: relative; overflow: hidden; background: #0d0f13; color: #e9ebef; padding: 48px clamp(32px, 5vw, 72px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.acceso-marca::before { content: ""; position: absolute; width: 640px; height: 640px; right: -220px; top: -260px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(242,165,22,.32), rgba(242,165,22,0)); pointer-events: none; }
.acceso-marca::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px; mask-image: linear-gradient(180deg, #000, transparent 75%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%); }
.acceso-marca > * { position: relative; z-index: 1; }
.acceso-marca .logo img { height: 30px; }
.acceso-marca h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.12; max-width: 15ch; color: #fff; letter-spacing: -.03em; }
.acceso-marca h2 em { font-style: normal; color: var(--acento); }
.acceso-marca .lema { color: #a7adb8; font-size: 16px; max-width: 42ch; margin-top: 14px; }
.beneficios { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.beneficios li { display: flex; gap: 14px; align-items: flex-start; color: #c9cdd4; font-size: 14.5px; }
.beneficios b { display: block; color: #fff; font-weight: 600; font-size: 15px; }
.beneficios .chip-ico { background: rgba(242,165,22,.12); color: #f5b335; width: 38px; height: 38px; }
.acceso-marca .pie-marca { color: #6f7682; font-size: 13px; }
.acceso-form { display: grid; place-items: center; padding: 40px 20px; background: var(--fondo); }
.acceso-contenido { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 22px; }
.acceso-form .logo-movil { display: none; }
@media (max-width: 900px) {
  .acceso { grid-template-columns: minmax(0, 1fr); }
  .acceso-marca { display: none; }
  .acceso-form { place-items: start center; padding-top: 8vh; }
  .acceso-form .logo-movil { display: flex; justify-content: center; margin-bottom: 4px; }
}

/* Caja centrada */
.caja { width: 100%; max-width: 420px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.acceso-form .caja { background: var(--superficie); border: 1px solid var(--linea); border-radius: 20px; padding: 32px 28px; box-shadow: var(--sombra-lg); }
@media (max-width: 480px) { .acceso-form .caja { padding: 26px 20px; } }
.caja .encabezado { display: flex; flex-direction: column; gap: 8px; }
.caja .encabezado .chip-ico { width: 48px; height: 48px; border-radius: 14px; margin-bottom: 6px; }
.caja .encabezado .chip-ico .ico { width: 26px; height: 26px; }
.caja h1 { font-size: 24px; }
.caja .seguro { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--tenue); font-size: 12.5px; }
.caja .seguro .ico { width: 15px; height: 15px; }
.pasos { display: flex; gap: 6px; }
.pasos span { height: 4px; flex: 1; border-radius: 4px; background: var(--linea); }
.pasos span.hecho { background: var(--acento); }
.codigo2fa { font-family: var(--f-mono); font-size: 28px !important; letter-spacing: .4em; text-align: center; padding-left: .4em !important; font-weight: 600; }
.qr { width: 200px; height: 200px; image-rendering: pixelated; align-self: center; border-radius: 12px; border: 1px solid var(--linea); background: #fff; padding: 6px; }
.recuperacion { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-family: var(--f-mono); font-size: 15.5px; background: var(--superficie-2);
  border: 1px dashed var(--linea-fuerte); padding: 16px; border-radius: var(--radio-sm); text-align: center; }
.instruccion { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--suave); }
.instruccion .num { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: var(--primario); color: var(--primario-texto); display: grid; place-items: center; font-size: 12.5px; font-weight: 700; }

/* ---------- Panel ---------- */
.panel { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.lateral { position: sticky; top: 0; align-self: start; height: 100vh; display: flex; flex-direction: column; gap: 20px; padding: 22px 16px; background: var(--superficie); border-right: 1px solid var(--linea); overflow-y: auto; }
.lateral-logo { padding: 4px 8px 6px; text-decoration: none; }
.lateral-logo .logo img { height: 24px; }
.etiqueta-seccion { font-size: 11.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--tenue); padding: 0 10px; }
.selector-empresa { display: flex; flex-direction: column; gap: 8px; }
.selector-empresa select { font-weight: 600; font-size: 14.5px; }
.menu { display: flex; flex-direction: column; gap: 2px; }
.menu button { display: flex; align-items: center; gap: 12px; font: inherit; font-size: 14.5px; font-weight: 550; text-align: left; background: none; border: 0;
  border-radius: var(--radio-sm); padding: 10px 12px; color: var(--suave); cursor: pointer; min-height: 42px; white-space: nowrap; }
.menu button:hover { background: var(--superficie-2); color: var(--texto); }
.menu button[aria-current="page"] { background: var(--acento-suave); color: var(--texto); }
.menu button[aria-current="page"] .ico { color: var(--acento-tinta); }
.menu button[aria-current="page"] .ico .d { opacity: .4; }
.perfil { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 10px; border-top: 1px solid var(--linea); }
.iniciales { width: 38px; height: 38px; border-radius: 50%; background: var(--primario); color: var(--primario-texto); display: grid; place-items: center;
  font-weight: 700; font-size: 14px; flex: 0 0 auto; font-family: var(--f-titulo); }
.perfil .quien { min-width: 0; flex: 1; line-height: 1.3; }
.perfil .quien b { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.perfil .quien small { color: var(--tenue); font-size: 12.5px; }
.area-principal { min-width: 0; padding: 28px clamp(16px, 3.5vw, 44px) 64px; display: flex; flex-direction: column; gap: 22px; }
.barra { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.barra .migas { color: var(--tenue); font-size: 13px; font-weight: 550; display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.barra .migas .ico { width: 15px; height: 15px; }
.contenido { display: flex; flex-direction: column; gap: 20px; min-width: 0; max-width: 1120px; }
@media (max-width: 960px) {
  .panel { grid-template-columns: minmax(0, 1fr); }
  .lateral { position: sticky; z-index: 5; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--linea); overflow: visible; }
  .lateral .etiqueta-seccion { display: none; }
  .lateral-logo { order: 1; padding: 0; }
  .perfil { order: 2; margin: 0 0 0 auto; padding: 0; border: 0; }
  .perfil .quien { display: none; }
  .selector-empresa { order: 3; width: 100%; }
  .menu { order: 4; width: calc(100% + 32px); margin: 0 -16px; padding: 0 16px; flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .menu::-webkit-scrollbar { display: none; }
  .area-principal { padding-top: 20px; }
  h1 { font-size: 22px; }
}

/* Tarjetas (bloques) del panel */
.tarjeta-ui { background: var(--superficie); border: 1px solid var(--linea); border-radius: var(--radio); padding: 22px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--sombra-sm); }
@media (max-width: 520px) { .tarjeta-ui { padding: 18px 16px; } }
.tarjeta-titulo { display: flex; align-items: center; gap: 14px; }
.tarjeta-titulo > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tarjeta-titulo .acciones-titulo { flex: 0 0 auto; display: flex; gap: 8px; }
.vacio { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 36px 16px; color: var(--suave); }
.vacio .chip-ico { width: 56px; height: 56px; border-radius: 16px; background: var(--superficie-2); color: var(--tenue); }
.vacio .chip-ico .ico { width: 28px; height: 28px; }

/* Tablas */
.tabla { overflow-x: auto; margin: 0 -22px; border-top: 1px solid var(--linea); }
@media (max-width: 520px) { .tabla { margin: 0 -16px; } }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 13px 22px; border-bottom: 1px solid var(--linea); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
th { color: var(--tenue); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; background: var(--superficie-2); white-space: nowrap; }
td .nota { font-size: 13px; }
td.ir { width: 1%; color: var(--tenue); text-align: right; }
tr.clic { cursor: pointer; }
tr.clic:hover td { background: var(--superficie-2); }
tr.clic:hover td.ir { color: var(--texto); }
.estado { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.estado::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.estado.si { background: var(--ok-fondo); color: var(--ok); } .estado.no { background: var(--mal-fondo); color: var(--mal); }
.codigo-chip { font-family: var(--f-mono); font-size: 13px; font-weight: 600; letter-spacing: .05em; background: var(--superficie-2); border: 1px solid var(--linea); padding: 3px 8px; border-radius: 6px; }

/* Editores */
.foto-editor { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 16px; border: 1px dashed var(--linea-fuerte); border-radius: var(--radio); background: var(--superficie-2); }
.foto-editor b { font-size: 14.5px; }
.boton.subir { align-self: flex-start; flex-direction: row; color: var(--texto); font-size: 14.5px; }
.boton.subir input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.boton.subir:focus-within { outline: 2px solid var(--acento); outline-offset: 2px; }
.foto-editor img, .foto-vacia { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; background: var(--superficie); border: 1px solid var(--linea); display: grid; place-items: center; color: var(--tenue); }
.logo-editor { min-width: 160px; min-height: 88px; display: grid; place-items: center; background: var(--superficie); border: 1px solid var(--linea); border-radius: var(--radio-sm); padding: 10px; }
.logo-editor img { max-width: 200px; max-height: 70px; }
.enlace-generado { display: flex; flex-direction: column; gap: 12px; background: var(--superficie-2); border: 1px solid var(--linea); padding: 16px; border-radius: var(--radio); word-break: break-all; }
.enlace-generado .url { font-family: var(--f-mono); font-size: 13.5px; background: var(--superficie); border: 1px solid var(--linea); padding: 9px 12px; border-radius: 8px; }
.enlace-generado .qr { width: 264px; height: 264px; max-width: 100%; height: auto; aspect-ratio: 1; padding: 8px; align-self: center; }
.enlace-generado .botones-qr { justify-content: center; }
.enlace-generado .botones-qr .boton { flex: 1 1 120px; }
.lista-enlaces { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.dos-columnas { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
@media (max-width: 1180px) { .dos-columnas { grid-template-columns: minmax(0, 1fr); } }
.acciones-form { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 6px; border-top: 1px solid var(--linea); margin-top: 4px; padding-top: 18px; }

/* ---------- Pagina de inicio ---------- */
.inicio { min-height: 100vh; display: flex; flex-direction: column; }
.inicio-nav { display: flex; justify-content: space-between; align-items: center; padding: 20px clamp(16px, 5vw, 64px); max-width: 1200px; width: 100%; margin: 0 auto; }
.heroe { max-width: 1200px; width: 100%; margin: 0 auto; padding: clamp(40px, 8vw, 96px) clamp(16px, 5vw, 64px) 40px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
@media (max-width: 860px) { .heroe { grid-template-columns: minmax(0, 1fr); } }
.sello { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--acento-tinta); background: var(--acento-suave); padding: 6px 12px; border-radius: 999px; }
.sello .ico { width: 16px; height: 16px; }
.heroe h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.05; letter-spacing: -.035em; margin: 18px 0 18px; font-weight: 800; }
.heroe h1 em { font-style: normal; background: linear-gradient(90deg, var(--acento), #e8730c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.heroe .lema { font-size: 18px; color: var(--suave); max-width: 46ch; }
.heroe .fila { margin-top: 28px; }
.heroe .boton { min-height: 50px; padding: 0 22px; font-size: 15.5px; }
.muestra { position: relative; display: grid; place-items: center; padding: 20px; }
.muestra::before { content: ""; position: absolute; inset: 8% 4%; border-radius: 40px; background: radial-gradient(closest-side, color-mix(in srgb, var(--acento) 35%, transparent), transparent); filter: blur(10px); }
.telefono { position: relative; width: 270px; border-radius: 40px; padding: 10px; background: #0d0f13; box-shadow: var(--sombra-lg), inset 0 0 0 1px #2a2e36; }
.telefono-pantalla { border-radius: 31px; overflow: hidden; background: #fff; color: #111318; }
.telefono-pantalla .t-portada { height: 92px; background: linear-gradient(135deg, #111318, #2c3340); }
.telefono-pantalla .t-avatar { width: 72px; height: 72px; border-radius: 50%; margin: -36px auto 0; border: 4px solid #fff; background: linear-gradient(135deg, #f5b335, #e8730c); }
.telefono-pantalla .t-nombre { text-align: center; font-family: var(--f-titulo); font-weight: 700; font-size: 17px; margin-top: 8px; }
.telefono-pantalla .t-cargo { text-align: center; color: #6b7280; font-size: 12.5px; }
.telefono-pantalla .t-btn { margin: 14px 16px 8px; height: 38px; border-radius: 10px; background: #111318; }
.telefono-pantalla .t-fila { margin: 8px 16px; height: 44px; border-radius: 10px; border: 1px solid #e5e7eb; display: flex; align-items: center; gap: 10px; padding: 0 10px; }
.telefono-pantalla .t-fila i { width: 26px; height: 26px; border-radius: 8px; background: #fff4dc; }
.telefono-pantalla .t-fila s { height: 8px; width: 60%; border-radius: 4px; background: #eceef2; text-decoration: none; }
.telefono-pantalla .t-pie { height: 24px; }
.nfc-onda { position: absolute; right: 6%; top: 18%; width: 64px; height: 64px; border-radius: 18px; background: var(--superficie); box-shadow: var(--sombra-lg); display: grid; place-items: center; color: var(--acento-tinta); }
.nfc-onda .ico { width: 32px; height: 32px; }
.caracteristicas { max-width: 1200px; width: 100%; margin: 0 auto; padding: 24px clamp(16px, 5vw, 64px) 72px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.caracteristica { background: var(--superficie); border: 1px solid var(--linea); border-radius: var(--radio); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.caracteristica h3 { font-size: 16.5px; margin-top: 6px; }
.caracteristica p { color: var(--suave); font-size: 14.5px; }
.inicio-pie { margin-top: auto; border-top: 1px solid var(--linea); padding: 22px clamp(16px, 5vw, 64px); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--tenue); font-size: 13.5px; }

/* ---------- Tarjeta publica (plantillas y diseno por empresa) ---------- */
body.publica { min-height: 100vh; background: var(--fondo); }
body.publica:has(.vcard[data-fondo="oscuro"]) { background: #07080a; }
body.publica:has(.vcard[data-fondo="claro"]), body.publica:has(.vcard[data-fondo="marca"]), body.publica:has(.vcard[data-fondo="degradado"]) { background: #eef0f3; }
@media (min-width: 560px) { body.publica { padding: 32px 16px; } }
.vcard {
  --c: var(--color-empresa, #111318); --c2: var(--acento-empresa, var(--c)); --sobre-c: var(--sobre-empresa, #fff);
  --vc-fondo: var(--superficie); --vc-sup: var(--superficie); --vc-sup-2: var(--superficie-2); --vc-texto: var(--texto); --vc-suave: var(--suave); --vc-tenue: var(--tenue); --vc-linea: var(--linea);
  --vc-radio: 16px; --vc-f-titulo: var(--f-titulo); --vc-f-texto: var(--f-texto);
  max-width: 440px; margin: 0 auto; min-height: 100vh; background: var(--vc-fondo); color: var(--vc-texto); font-family: var(--vc-f-texto);
  display: flex; flex-direction: column; position: relative; overflow: hidden; }
@media (min-width: 560px) { .vcard { min-height: 0; border-radius: 28px; border: 1px solid var(--vc-linea); box-shadow: var(--sombra-lg); } }
.vcard h1, .vcard h2, .vcard b { font-family: var(--vc-f-titulo); }

/* Fondo */
.vcard[data-fondo="claro"], .vcard[data-fondo="marca"], .vcard[data-fondo="degradado"] {
  --vc-fondo: #ffffff; --vc-sup: #ffffff; --vc-sup-2: #f6f7f9; --vc-texto: #111318; --vc-suave: #5d6573; --vc-tenue: #8a919e; --vc-linea: #e4e7ec; color-scheme: light; }
.vcard[data-fondo="oscuro"] { --vc-fondo: #101216; --vc-sup: #171a20; --vc-sup-2: #1d2128; --vc-texto: #eef0f3; --vc-suave: #a2a9b5; --vc-tenue: #747c89; --vc-linea: #2a2f38; color-scheme: dark; }
.vcard[data-fondo="marca"] { --vc-fondo: color-mix(in srgb, var(--c) 7%, #fff); --vc-linea: color-mix(in srgb, var(--c) 14%, #fff); }
.vcard[data-fondo="degradado"] { background: linear-gradient(180deg, color-mix(in srgb, var(--c2) 16%, #fff) 0%, #fff 48%); }

/* Tipografia */
.vcard[data-fuente="geometrica"] { --vc-f-texto: "Jakarta", system-ui, sans-serif; }
.vcard[data-fuente="elegante"] { --vc-f-titulo: "Playfair", Georgia, serif; }
.vcard[data-fuente="amigable"] { --vc-f-titulo: "Nunito", system-ui, sans-serif; --vc-f-texto: "Nunito", system-ui, sans-serif; }
.vcard[data-fuente="tecnica"] { --vc-f-titulo: "Grotesk", system-ui, sans-serif; --vc-f-texto: "Grotesk", system-ui, sans-serif; }
.vcard[data-fuente="elegante"] .nombre { font-weight: 700; letter-spacing: -.01em; }
.vcard[data-fuente="amigable"] .nombre { font-weight: 800; letter-spacing: -.01em; }

/* Botones */
.vcard[data-botones="rectos"] { --vc-radio: 6px; }
.vcard[data-botones="pildora"] { --vc-radio: 999px; }

/* Logo de la empresa */
.vcard .logo-empresa { position: relative; z-index: 1; display: inline-grid; place-items: center; max-width: 64%; }
.vcard .logo-empresa img { display: block; max-height: 44px; max-width: 100%; width: auto; object-fit: contain; }
.vcard[data-logo-fondo="blanco"] .logo-empresa:not(.sin-logo) { background: #fff; padding: 8px 12px; border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,.14); }
.vcard[data-logo-fondo="oscuro"] .logo-empresa:not(.sin-logo) { background: #111318; padding: 8px 12px; border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.vcard .logo-empresa.grande img { max-height: 104px; }
.vcard .logo-empresa.grande { max-width: 76%; }
.vcard[data-logo-fondo="blanco"] .logo-empresa.grande:not(.sin-logo), .vcard[data-logo-fondo="oscuro"] .logo-empresa.grande:not(.sin-logo) { padding: 14px 20px; border-radius: 18px; }
.vcard .sin-logo { color: var(--sobre-c); font-family: var(--vc-f-titulo); font-weight: 700; font-size: 18px; text-align: center; }

/* Persona */
.vcard .persona { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 24px; text-align: center; }
.vcard .avatar { width: 112px; height: 112px; border-radius: 50%; border: 5px solid var(--vc-fondo); object-fit: cover; background: var(--vc-sup-2); display: grid; place-items: center;
  color: var(--vc-tenue); box-shadow: 0 8px 24px rgba(16,24,40,.16); margin-bottom: 8px; flex: 0 0 auto; }
.vcard .nombre { font-size: 26px; font-weight: 750; letter-spacing: -.025em; line-height: 1.15; }
.vcard .cargo { font-size: 15.5px; font-weight: 550; }
.vcard .detalle { color: var(--vc-suave); font-size: 14px; }
.vcard .nota-persona { margin: 18px 24px 0; padding: 14px 16px; color: var(--vc-suave); text-align: center; font-size: 14.5px; background: var(--vc-sup-2); border-radius: 12px; }

/* Acciones */
.vcard .acciones { display: flex; flex-direction: column; gap: 10px; padding: 22px 20px 8px; }
.vcard .accion { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--vc-linea); border-radius: var(--vc-radio); text-decoration: none; color: var(--vc-texto);
  font-size: 15px; font-weight: 600; background: var(--vc-sup); min-height: 64px; }
.vcard[data-botones="pildora"] .accion { padding-inline: 10px 20px; }
.vcard .accion:hover { border-color: color-mix(in srgb, var(--c2) 35%, var(--vc-linea)); }
.vcard .accion > span { flex: 1; min-width: 0; }
.vcard .accion small { display: block; color: var(--vc-suave); font-size: 13.5px; font-weight: 450; word-break: break-word; margin-top: 1px; font-family: var(--vc-f-texto); }
.vcard .accion .tile { width: 42px; height: 42px; border-radius: min(var(--vc-radio), 14px); display: grid; place-items: center; flex: 0 0 auto;
  background: color-mix(in srgb, var(--c2) 12%, var(--vc-sup)); color: var(--c2); }
.vcard[data-botones="pildora"] .accion .tile { border-radius: 50%; }
.vcard[data-fondo="oscuro"] .accion .tile { background: color-mix(in srgb, var(--c2) 28%, var(--vc-sup)); color: color-mix(in srgb, var(--c2) 40%, #fff); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .vcard[data-fondo="auto"] .accion .tile { background: color-mix(in srgb, var(--c2) 28%, var(--vc-sup)); color: color-mix(in srgb, var(--c2) 40%, #fff); } }
.vcard .accion .tile .ico { width: 22px; height: 22px; }
.vcard .accion .tile .ico .d { opacity: .3; }
.vcard .accion .flecha { width: 18px; height: 18px; color: var(--vc-tenue); }
.vcard .accion.principal { background: var(--c); color: var(--sobre-c); border-color: transparent; justify-content: center; font-size: 16px; min-height: 56px;
  box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--c) 60%, transparent); }
.vcard .accion.principal > span { flex: 0 1 auto; }
.vcard .accion.principal:hover { background: color-mix(in srgb, var(--c) 88%, #000); }
.vcard .accion.principal .ico { color: var(--sobre-c); width: 22px; height: 22px; }
.vcard .accion.principal .ico .d { opacity: .35; }
.vcard .pie { margin-top: auto; padding: 22px 18px 26px; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--vc-tenue); font-size: 12px; text-decoration: none; font-family: var(--f-texto); }
.vcard .pie .logo img { height: 15px; opacity: .75; }
.vcard[data-fondo="oscuro"] .pie .logo-claro { display: none; }
.vcard[data-fondo="oscuro"] .pie .logo-oscuro { display: inline; }
.vcard:is([data-fondo="claro"], [data-fondo="marca"], [data-fondo="degradado"]) .pie .logo-claro { display: inline; }
.vcard:is([data-fondo="claro"], [data-fondo="marca"], [data-fondo="degradado"]) .pie .logo-oscuro { display: none; }

/* Portada de color (clasica y logo al final) */
.vcard .portada { position: relative; height: 150px; padding: 20px; display: flex; justify-content: center; align-items: flex-start;
  /* el borde superior es el color exacto de la empresa (se une con la barra del navegador); el brillo empieza mas abajo */
  background: linear-gradient(180deg, var(--c) 0, color-mix(in srgb, var(--c) 0%, transparent) 38%), radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--c2) 55%, #fff) 0%, transparent 55%), linear-gradient(160deg, var(--c), color-mix(in srgb, var(--c) 70%, #000)); }
.vcard .portada::after, .vcard .banda::after, .vcard .gafete-cabeza::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1.2px); background-size: 14px 14px;
  mask-image: linear-gradient(180deg, #000, transparent); -webkit-mask-image: linear-gradient(180deg, #000, transparent); pointer-events: none; }
.vcard[data-plantilla="clasica"] .persona, .vcard[data-plantilla="logo-final"] .persona { margin-top: -56px; }
.vcard[data-plantilla="logo-final"] .portada { height: 120px; }

/* Plantilla: logo al final (firma) */
.vcard .firma { margin: 18px 20px 0; padding: 26px 16px 4px; border-top: 1px solid var(--vc-linea); display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--vc-suave); font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.vcard .firma .sin-logo { color: var(--vc-texto); font-size: 20px; }

/* Plantilla: logo central */
.vcard .escenario { position: relative; display: grid; place-items: center; padding: 44px 24px 34px; min-height: 190px;
  background: radial-gradient(90% 120% at 50% 0%, color-mix(in srgb, var(--c2) 14%, transparent), transparent 70%); border-bottom: 1px solid var(--vc-linea); }
.vcard .escenario .sin-logo { color: var(--vc-texto); font-size: 26px; }
.vcard .fila-persona { flex-direction: row; text-align: left; gap: 16px; margin: 20px 20px 0; padding: 0; }
.vcard .fila-persona .textos { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vcard .avatar.chico { width: 76px; height: 76px; border-width: 3px; margin: 0; box-shadow: 0 4px 14px rgba(16,24,40,.14); }
.vcard .avatar.chico .ico-grande { width: 30px; height: 30px; }
.vcard[data-plantilla="logo-central"] .nombre { font-size: 22px; }

/* Plantilla: logo lateral */
.vcard .banda { position: relative; display: flex; align-items: center; gap: 14px; padding: 22px 22px 70px; color: var(--sobre-c);
  background: linear-gradient(180deg, var(--c) 0, color-mix(in srgb, var(--c) 0%, transparent) 45%), linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 72%, var(--c2))); }
.vcard .banda .logo-empresa { max-width: 46%; }
.vcard .banda .logo-empresa img { max-height: 54px; }
.vcard .banda-texto { position: relative; z-index: 1; display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.vcard .banda-texto b { font-size: 16px; overflow-wrap: anywhere; }
.vcard .banda-texto span { font-size: 13px; opacity: .8; }
.vcard .banda .logo-empresa.sin-logo { display: none; }
.vcard[data-plantilla="logo-lateral"] .persona { margin-top: -52px; }

/* Plantilla: carnet */
.vcard .gafete { position: relative; margin: 22px 20px 0; border-radius: 24px; overflow: hidden; background: var(--vc-sup); border: 1px solid var(--vc-linea);
  box-shadow: 0 18px 40px -16px rgba(16,24,40,.28); padding-bottom: 22px; }
.vcard .gafete-cabeza { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 34px 18px 66px; color: var(--sobre-c);
  background: linear-gradient(160deg, var(--c), color-mix(in srgb, var(--c) 70%, #000)); }
.vcard .gafete-cabeza b { position: relative; z-index: 1; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.vcard .gafete-cabeza .logo-empresa img { max-height: 40px; }
.vcard .gafete-cabeza .logo-empresa.sin-logo { display: none; }
.vcard .ranura { position: absolute; z-index: 2; top: 12px; left: 50%; transform: translateX(-50%); width: 58px; height: 9px; border-radius: 9px; background: var(--vc-fondo); box-shadow: inset 0 1px 3px rgba(0,0,0,.35); }
.vcard .foto-carnet { position: relative; z-index: 2; display: grid; place-items: center; width: 150px; height: 186px; margin: -52px auto 0; object-fit: cover; border-radius: 16px;
  border: 4px solid var(--vc-sup); background: var(--vc-sup-2); color: var(--vc-tenue); box-shadow: 0 10px 24px rgba(16,24,40,.2); }
.vcard .foto-carnet .ico-grande { width: 56px; height: 56px; }
.vcard .gafete .persona { margin-top: 16px; }
.vcard[data-plantilla="carnet"] .cargo { margin-top: 4px; padding: 4px 12px; border-radius: 999px; font-size: 13.5px; background: color-mix(in srgb, var(--c2) 13%, var(--vc-sup)); color: color-mix(in srgb, var(--c2) 80%, var(--vc-texto)); }
.vcard[data-plantilla="carnet"][data-fondo="oscuro"] .cargo { color: color-mix(in srgb, var(--c2) 45%, #fff); }

.cargando { display: grid; place-items: center; min-height: 60vh; color: var(--suave); }
.girador { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--linea); border-top-color: var(--acento); }
@media (prefers-reduced-motion: no-preference) {
  .girador { animation: girar .8s linear infinite; }
  @keyframes girar { to { transform: rotate(360deg); } }
  .boton, .accion, .menu button, input, select, tr.clic td { transition: background-color .15s, border-color .15s, box-shadow .15s, color .15s; }
}
/* ---------- Editor de diseno de tarjeta ---------- */
.dos-columnas.diseno { grid-template-columns: minmax(0, 1fr) 400px; }
@media (max-width: 1180px) { .dos-columnas.diseno { grid-template-columns: minmax(0, 1fr); } }
.seccion-diseno { display: flex; flex-direction: column; gap: 12px; padding-top: 18px; border-top: 1px solid var(--linea); }
.segmentado { display: flex; flex-wrap: wrap; gap: 8px; }
.segmentado button { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 14px; font-weight: 550; color: var(--suave); background: var(--superficie);
  border: 1px solid var(--linea-fuerte); border-radius: var(--radio-sm); padding: 9px 14px; min-height: 42px; cursor: pointer; }
.segmentado button:hover { border-color: var(--tenue); color: var(--texto); }
.segmentado button[aria-checked="true"] { border-color: var(--primario); color: var(--texto); box-shadow: inset 0 0 0 1px var(--primario); background: var(--superficie-2); }
.segmentado.fuentes button { flex-direction: column; gap: 2px; min-width: 92px; padding: 10px 12px; }
.segmentado .aa { font-size: 24px; line-height: 1.1; color: var(--texto); font-weight: 700; }
/* Miniaturas de plantillas */
.segmentado.plantillas { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.segmentado.plantillas button { flex-direction: column; padding: 10px; gap: 8px; }
.mini { position: relative; display: block; width: 64px; height: 96px; border-radius: 9px; background: var(--superficie); border: 1px solid var(--linea-fuerte); overflow: hidden; }
.mini i { position: absolute; display: block; }
.mini i:nth-child(1) { left: 0; right: 0; top: 0; height: 30px; background: var(--primario); opacity: .85; }
.mini i:nth-child(2) { left: 24px; top: 20px; width: 16px; height: 16px; border-radius: 50%; background: var(--acento); border: 2px solid var(--superficie); }
.mini i:nth-child(3) { left: 14px; right: 14px; top: 42px; height: 5px; border-radius: 3px; background: var(--tenue); }
.mini i:nth-child(4) { left: 8px; right: 8px; top: 56px; height: 30px; border-radius: 4px; background: repeating-linear-gradient(180deg, var(--linea-fuerte) 0 7px, transparent 7px 11px); }
.mini-clasica i:nth-child(1)::after { content: ""; position: absolute; left: 22px; top: 6px; width: 20px; height: 6px; border-radius: 2px; background: #fff; }
.mini-logo-central i:nth-child(1) { background: transparent; border-bottom: 1px solid var(--linea-fuerte); height: 34px; opacity: 1; }
.mini-logo-central i:nth-child(1)::after { content: ""; position: absolute; left: 18px; top: 8px; width: 28px; height: 18px; border-radius: 4px; background: var(--primario); }
.mini-logo-central i:nth-child(2) { left: 8px; top: 40px; width: 12px; height: 12px; }
.mini-logo-central i:nth-child(3) { left: 24px; right: 10px; top: 44px; }
.mini-logo-lateral i:nth-child(1)::after { content: ""; position: absolute; left: 6px; top: 6px; width: 14px; height: 12px; border-radius: 3px; background: #fff; }
.mini-logo-lateral i:nth-child(1)::before { content: ""; position: absolute; left: 24px; top: 9px; width: 28px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.7); }
.mini-logo-final i:nth-child(1) { height: 24px; }
.mini-logo-final i:nth-child(2) { top: 14px; }
.mini-logo-final i:nth-child(4) { height: 20px; }
.mini-logo-final::after { content: ""; position: absolute; left: 20px; bottom: 5px; width: 24px; height: 8px; border-radius: 2px; background: var(--primario); }
.mini-carnet i:nth-child(1) { height: 26px; }
.mini-carnet i:nth-child(2) { left: 22px; top: 14px; width: 20px; height: 26px; border-radius: 4px; }
.mini-carnet i:nth-child(3) { top: 46px; }
.mini-carnet i:nth-child(4) { top: 58px; }
/* Logo */
.logo-lienzo { min-width: 180px; min-height: 100px; max-width: 260px; display: grid; place-items: center; padding: 12px; border-radius: var(--radio-sm); border: 1px solid var(--linea);
  background: repeating-conic-gradient(#e9ecf1 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.foto-editor .logo-lienzo img { width: auto; height: auto; max-width: 236px; max-height: 90px; border: 0; border-radius: 0; background: none; object-fit: contain; }
.logo-lienzo.oscuro { background: repeating-conic-gradient(#1d2128 0 25%, #2a2f38 0 50%) 0 0 / 16px 16px; border-color: #2a2f38; }
.informe-logo { display: flex; flex-direction: column; gap: 8px; }
.informe-logo:empty { display: none; }
.informe-logo p { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--suave); }
.informe-logo p .ico { color: var(--ok); width: 18px; height: 18px; margin-top: 1px; }
.informe-logo .boton { align-self: flex-start; }
.muestras { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.muestras:empty { display: none; }
.muestra { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--superficie); box-shadow: 0 0 0 1px var(--linea-fuerte); cursor: pointer; padding: 0; }
.muestra:hover { transform: scale(1.08); }
/* Vista previa en un telefono */
.vista-previa { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 1180px) { .vista-previa { position: static; order: -1; } }
.marco-telefono { width: 360px; max-width: 100%; margin: 0 auto; padding: 10px; border-radius: 44px; background: #0d0f13; box-shadow: var(--sombra-lg), inset 0 0 0 1px #2a2e36; }
.pantalla-telefono { height: 700px; max-height: 76vh; border-radius: 35px; overflow-y: auto; overflow-x: hidden; background: #fff; scrollbar-width: none; }
.pantalla-telefono::-webkit-scrollbar { display: none; }
.pantalla-telefono .vcard { min-height: 100%; max-width: none; border: 0; border-radius: 0; box-shadow: none; }

@media print { .lateral, .barra, .acciones-form { display: none !important; } .panel { display: block; } }

/* Alcance del diseno (que empresa se esta editando) */
.ambito { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 18px; border-radius: var(--radio); background: var(--acento-suave); border: 1px solid color-mix(in srgb, var(--acento) 35%, transparent); }
.ambito-texto { flex: 1 1 260px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ambito-texto b { font-size: 18px; font-family: var(--f-titulo); }
.ambito-selector { flex: 0 1 260px; }
.diseno-resumen { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.muestra-mini { width: 22px; height: 22px; border-radius: 7px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); flex: 0 0 auto; }
