/* Control Electoral Daule — estilos base. Móvil primero.
   Idea: una hoja de escrutinio. Tinta azul de bolígrafo sobre papel blanco,
   casillas numéricas como el acta impresa, sellos para los estados y el
   amarillo de campaña usado solo como resaltador de nuestra candidata. */
:root {
  --tinta: #0f2257;        /* azul bolígrafo: texto fuerte, barra, botón principal */
  --tinta-osc: #091740;
  --texto: #1b2236;
  --texto-2: #3d4762;
  --texto-3: #5a6480;      /* 5.6:1 sobre blanco */
  --fondo: #e7eaf0;
  --papel: #ffffff;
  --linea: #c6ccd8;
  --linea-suave: #e2e6ed;
  --borde-campo: #7f89a3;  /* 3.5:1: se ve al sol */
  --amarillo: #f5c400;     /* campaña */
  --resaltador: #ffe17a;
  --resaltador-suave: #fff4c2;
  --verde: #0b6b3d;
  --verde-fondo: #e3f3ea;
  --rojo: #b3261e;
  --rojo-fondo: #fbe9e7;
  --ambar: #7a5000;
  --ambar-fondo: #fff1cc;
  --azul-fondo: #e6ecf8;
  --radio: 6px;
  --display: "Bahnschrift", "DIN Alternate", "DIN Condensed", "Avenir Next Condensed", "Roboto Condensed", "sans-serif-condensed", "Arial Narrow", system-ui, sans-serif;
  --fuente: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--fuente); font-size: 16px; line-height: 1.5; color: var(--texto); background: var(--fondo); -webkit-tap-highlight-color: rgba(15, 34, 87, .12); }
a { color: var(--tinta); text-underline-offset: .18em; }
h1, h2, h3 { font-family: var(--display); font-stretch: 87.5%; color: var(--tinta); font-weight: 700; }
h1 { font-size: 1.95rem; line-height: 1.1; margin: .4rem 0 .8rem; letter-spacing: -.005em; }
h2 { font-size: 1.3rem; line-height: 1.2; margin: 0 0 .75rem; }
h3 { font-size: 1.08rem; line-height: 1.25; margin: 0 0 .5rem; }
h1 .sub, h2 .sub { display: block; font-family: var(--fuente); font-stretch: normal; font-size: .95rem; font-weight: 500; color: var(--texto-2); margin-top: .25rem; letter-spacing: 0; }
h2 small { font-family: var(--fuente); font-stretch: normal; font-weight: 400; font-size: .85rem; }
small { color: var(--texto-3); }
code { font-family: var(--mono); font-size: .9em; background: var(--azul-fondo); padding: .05em .35em; border-radius: 3px; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--tinta); outline-offset: 2px; }
.oculto-accesible { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.centrado { text-align: center; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ----- barra superior ----- */
.barra { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: .6rem; padding: .55rem 1rem; padding-top: max(.55rem, env(safe-area-inset-top)); background: var(--tinta); color: #fff; flex-wrap: wrap; border-bottom: 4px solid var(--amarillo); }
.marca { display: flex; align-items: center; gap: .65rem; color: #fff; text-decoration: none; margin-right: auto; min-width: 0; }
.marca-foto { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid var(--amarillo); background: #fff; flex: none; }
.marca-texto { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.marca-texto strong { font-family: var(--display); font-stretch: 87.5%; font-size: 1.12rem; font-weight: 700; letter-spacing: .005em; white-space: nowrap; }
.marca-texto small { color: #c3cce4; font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barra-subir { display: inline-flex; align-items: center; min-height: 42px; padding: 0 .85rem; border-radius: var(--radio); background: var(--amarillo); color: var(--tinta-osc); font-weight: 700; text-decoration: none; font-size: .95rem; white-space: nowrap; }
.menu-btn { display: inline-flex; align-items: center; gap: .45rem; min-height: 42px; background: transparent; border: 1.5px solid rgba(255,255,255,.45); color: #fff; border-radius: var(--radio); font: inherit; font-size: .92rem; font-weight: 600; padding: 0 .75rem; cursor: pointer; }
.menu-btn .menu-raya { display: inline-grid; gap: 3px; }
.menu-btn .menu-raya i { display: block; width: 16px; height: 2px; background: currentColor; }
.nav { display: none; width: 100%; flex-direction: column; padding: .4rem 0 .2rem; }
.nav.abierto { display: flex; }
.nav a, .nav .enlace { color: #e3e8f5; text-decoration: none; padding: .8rem .4rem; font-size: 1rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.nav a:hover, .nav .enlace:hover { color: #fff; }
.nav a.activo { color: #fff; font-weight: 700; box-shadow: inset 4px 0 0 var(--amarillo); padding-left: .9rem; }
.nav a.nav-destacado { color: var(--amarillo); font-weight: 700; }
.nav-usuario { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem 1.2rem; padding: .7rem .4rem .3rem; font-size: .9rem; color: #c3cce4; }
.nav-usuario > span { width: 100%; }
.nav-usuario a, .nav-usuario .enlace { padding: .4rem 0; border: 0; font-size: .92rem; }
.nav-usuario form { margin: 0; }
@media (min-width: 960px) {
  .menu-btn, .barra-subir { display: none; }
  .nav { display: flex; flex-direction: row; align-items: center; width: auto; padding: 0; gap: .15rem; }
  .nav a { border: 0; padding: .5rem .65rem; font-size: .95rem; }
  .nav a.activo { box-shadow: inset 0 -3px 0 var(--amarillo); padding-left: .65rem; }
  .nav a.nav-destacado { background: var(--amarillo); color: var(--tinta-osc); border-radius: var(--radio); margin: 0 .3rem; }
  .nav a.nav-destacado.activo { box-shadow: inset 0 -3px 0 var(--tinta-osc); }
  .nav-usuario { padding: 0 0 0 .9rem; margin-left: .4rem; border-left: 1px solid rgba(255,255,255,.25); gap: .9rem; font-size: .85rem; }
  .nav-usuario > span { width: auto; }
}

/* ----- layout ----- */
.contenedor { max-width: 1180px; margin: 0 auto; padding: 1rem; padding-bottom: max(2rem, env(safe-area-inset-bottom)); }
.contenedor.estrecho { max-width: 580px; }
.contenedor.ancho { max-width: 1280px; }
.titulo-fila { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; margin-bottom: .4rem; }
.titulo-fila h1 { margin-bottom: .4rem; }
.meta { color: var(--texto-2); font-size: .9rem; margin: 0 0 1rem; }
.tarjeta { background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio); padding: 1.1rem; margin-bottom: 1rem; }
.vacio { color: var(--texto-2); text-align: center; padding: 2.2rem 1rem; }
.ayuda { color: var(--texto-2); font-size: .9rem; }
.fila-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.alineado-arriba { align-items: start; }
@media (max-width: 640px) { .fila-2.alineado-arriba { grid-template-columns: 1fr; } }

/* ----- formularios ----- */
.formulario { display: flex; flex-direction: column; gap: 1rem; }
.formulario.compacto { gap: .55rem; }
.formulario > h2 { margin: .6rem 0 -.2rem; padding-top: 1rem; border-top: 2px solid var(--tinta); }
.formulario > h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
label { display: flex; flex-direction: column; gap: .35rem; font-weight: 600; font-size: .95rem; color: var(--texto); }
label small { font-weight: 400; }
input, select, textarea { font: inherit; font-size: 16px; color: var(--texto); background: #fff; border: 1.5px solid var(--borde-campo); border-radius: var(--radio); padding: .65rem .75rem; width: 100%; min-height: 48px; }
select { padding-right: 2rem; }
input::placeholder, textarea::placeholder { color: #7a839b; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--tinta); box-shadow: 0 0 0 3px #ffd84d; }
input[type=checkbox] { width: 24px; height: 24px; min-height: 0; flex: none; margin: 0; accent-color: var(--tinta); }
input[type=file] { padding: .5rem; }
textarea { resize: vertical; }
.check { flex-direction: row; align-items: center; gap: .4rem; font-weight: 500; white-space: nowrap; }
.en-linea { display: inline-flex; gap: .45rem; align-items: center; flex-wrap: wrap; margin: .3rem 0; }
.en-linea input { width: auto; flex: 1; min-width: 160px; }
details.opcional { border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); padding: .2rem 0; }
details.opcional summary { cursor: pointer; color: var(--tinta); font-size: .95rem; font-weight: 600; padding: .7rem 0; min-height: 44px; }
details.opcional summary::marker { color: var(--texto-3); }
details.opcional[open] { display: flex; flex-direction: column; gap: .8rem; padding-bottom: 1rem; }

/* ----- botones ----- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; font: inherit; font-size: .98rem; font-weight: 600; text-decoration: none; color: var(--tinta); background: #fff; border: 1.5px solid var(--tinta); border-radius: var(--radio); padding: .6rem 1.05rem; min-height: 48px; cursor: pointer; touch-action: manipulation; }
.btn:hover { background: var(--azul-fondo); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .65; cursor: progress; transform: none; }
.btn + .btn { margin-left: .4rem; }
.btn-primario { background: var(--tinta); color: #fff; }
.btn-primario:hover { background: var(--tinta-osc); }
.btn-exito { background: var(--verde); border-color: var(--verde); color: #fff; }
.btn-exito:hover { background: #08552f; }
.btn-peligro { color: var(--rojo); border-color: var(--rojo); }
.btn-peligro:hover { background: var(--rojo-fondo); }
.btn-grande { min-height: 58px; width: 100%; font-family: var(--display); font-stretch: 87.5%; font-size: 1.28rem; font-weight: 700; letter-spacing: .01em; }
.btn-chico { min-height: 38px; padding: .3rem .75rem; font-size: .88rem; border-width: 1px; }
.enlace { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* ----- avisos ----- */
.aviso { border-radius: 0 var(--radio) var(--radio) 0; padding: .75rem .95rem; margin: 0 0 1rem; font-size: .95rem; border-left: 5px solid; }
.aviso.compacto { padding: .45rem .75rem; font-size: .88rem; }
.aviso a { margin-right: .6rem; font-weight: 600; }
.aviso-info { background: var(--azul-fondo); border-color: var(--tinta); }
.aviso-exito { background: var(--verde-fondo); border-color: var(--verde); color: #063d22; }
.aviso-alerta { background: var(--ambar-fondo); border-color: #d19a00; color: #4d3200; }
.aviso-error { background: var(--rojo-fondo); border-color: var(--rojo); color: #6e130d; }
.credencial-datos { font-size: 1.05rem; margin: .3rem 0 0; }
.credencial-datos code { font-size: 1.1rem; background: #fff; }

/* ----- estados: sellos ----- */
.estado { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 700; padding: .22rem .6rem; border: 1.5px solid currentColor; border-radius: 4px; background: #fff; white-space: nowrap; line-height: 1.3; }
.estado::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; flex: none; }
.estado-procesando { color: #3a3fa0; }
.estado-por_revisar { color: var(--ambar); background: var(--ambar-fondo); }
.estado-aceptada { color: var(--verde); }
.estado-conflicto { color: var(--rojo); background: var(--rojo-fondo); }
.estado-rechazada { color: #5b6478; }
.estado-rechazada::before { border-radius: 0; height: 2px; }

/* ----- login ----- */
.pantalla-login { background: var(--tinta); min-height: 100vh; min-height: 100dvh; border-top: 6px solid var(--amarillo); }
.login-caja { max-width: 420px; margin: 0 auto; padding: max(2.2rem, 6vh) 1.1rem 1.5rem; }
.login-cabecera { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .2rem 1rem; color: #fff; margin-bottom: 1.4rem; }
.login-foto { grid-row: span 3; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: top; border: 4px solid var(--amarillo); background: #fff; display: block; }
.login-candidata { margin: 0; color: var(--amarillo); font-family: var(--display); font-stretch: 87.5%; font-weight: 700; font-size: 1.15rem; line-height: 1.15; }
.login-cabecera h1 { color: #fff; font-size: 1.9rem; margin: 0; line-height: 1.05; }
.login-cabecera p { color: #c3cce4; margin: 0; font-size: .95rem; }
.pantalla-login .tarjeta { border: 0; border-radius: var(--radio); padding: 1.3rem 1.2rem; }
.pie-login { color: #c3cce4; font-size: .85rem; margin-top: 1rem; }

/* ----- subir ----- */
.consejos { font-size: .95rem; }
.consejos p { margin: 0 0 .5rem; }
.consejos ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .45rem; }
.consejos li { position: relative; padding-left: 1.7rem; }
.consejos li::before { content: ""; position: absolute; left: .15rem; top: .3rem; width: .55rem; height: .9rem; border: solid var(--verde); border-width: 0 3px 3px 0; transform: rotate(40deg); }
.consejos li.consejo-prohibido { color: #6e130d; }
.consejos li.consejo-prohibido::before { border: 0; width: 1.05rem; height: 1.05rem; top: .2rem; left: 0; transform: none; border-radius: 50%; background: linear-gradient(45deg, transparent 43%, var(--rojo) 43%, var(--rojo) 57%, transparent 57%); box-shadow: inset 0 0 0 2.5px var(--rojo); }
.foto-zona { display: flex; flex-direction: column; gap: .6rem; }
.foto-boton { position: relative; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; min-height: 200px; border-radius: var(--radio); padding: 2rem 1rem; background: var(--tinta); cursor: pointer; text-align: center; color: #fff; font-size: 1.15rem; font-weight: 700; }
.foto-boton:hover { background: var(--tinta-osc); }
#foto:focus-visible + .foto-preview, .foto-zona:focus-within .foto-boton { outline: 3px solid var(--amarillo); outline-offset: 2px; }
.visor { position: absolute; inset: 14px; pointer-events: none; }
.visor i { position: absolute; width: 26px; height: 26px; border: 0 solid var(--amarillo); }
.visor i:nth-child(1) { top: 0; left: 0; border-width: 4px 0 0 4px; }
.visor i:nth-child(2) { top: 0; right: 0; border-width: 4px 4px 0 0; }
.visor i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 4px 4px; }
.visor i:nth-child(4) { bottom: 0; right: 0; border-width: 0 4px 4px 0; }
.foto-icono { position: relative; width: 60px; height: 44px; border: 3px solid #fff; border-radius: 9px; }
.foto-icono::before { content: ""; position: absolute; top: -9px; left: 14px; width: 18px; height: 7px; border: 3px solid #fff; border-bottom: 0; border-radius: 4px 4px 0 0; }
.foto-icono::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -12px 0 0 -12px; border: 3px solid var(--amarillo); border-radius: 50%; }
.foto-preview { width: 100%; max-height: 440px; object-fit: contain; border-radius: var(--radio); border: 1px solid var(--linea); background: #f4f5f8; }

/* ----- revisión ----- */
.revision { display: grid; gap: 1rem; }
@media (min-width: 960px) {
  .revision { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
  .revision-foto { position: sticky; top: 80px; }
}
.foto-marco { background: #1b2236; border-radius: var(--radio); overflow: auto; max-height: 75vh; cursor: zoom-in; touch-action: pan-x pan-y pinch-zoom; }
.foto-marco img { display: block; width: 100%; height: auto; }
.foto-marco.zoom { cursor: zoom-out; }
.foto-marco.zoom img { width: 220%; max-width: none; }
.revision-foto .ayuda { margin: .4rem 0 0; }
.procesando { text-align: center; padding: 2rem 1.1rem; }
.spinner { width: 48px; height: 48px; border: 5px solid var(--linea-suave); border-top-color: var(--tinta); border-radius: 50%; margin: 0 auto 1rem; animation: girar .9s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
.cuadre { border-radius: 0 var(--radio) var(--radio) 0; padding: .75rem .9rem; font-weight: 700; font-size: .98rem; border-left: 5px solid; margin-top: -.3rem; }
.cuadre.ok { background: var(--verde-fondo); color: var(--verde); }
.cuadre.mal { background: var(--rojo-fondo); color: var(--rojo); }
.cuadre.neutro { background: #eef0f5; color: var(--texto-2); border-color: var(--borde-campo); }
.confirmar { flex-direction: row; align-items: flex-start; gap: .7rem; font-weight: 400; background: var(--azul-fondo); border-radius: var(--radio); padding: .85rem; cursor: pointer; }
.acciones-secundarias { display: flex; flex-direction: column; gap: .6rem; }
.acciones-secundarias > form:not(.tarjeta) { margin: 0; }
.resumen-mesa { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 0 0 1rem; border: 1px solid var(--linea); border-radius: var(--radio); overflow: hidden; }
.resumen-mesa div { padding: .55rem .7rem; border-bottom: 1px solid var(--linea-suave); }
.resumen-mesa div:nth-child(odd) { border-right: 1px solid var(--linea-suave); }
.resumen-mesa dt { font-size: .8rem; color: var(--texto-3); }
.resumen-mesa dd { margin: 0; font-weight: 700; }
.novedades { border: 0; border-top: 1px solid var(--linea); padding: .8rem 0 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.novedades legend { font-weight: 700; font-size: .98rem; padding: 0 0 .3rem; }
.check-largo { flex-direction: row; align-items: flex-start; gap: .6rem; font-weight: 400; font-size: .95rem; padding: .2rem 0; }

/* ----- formulario con forma de acta CNE ----- */
.hoja-acta { border: 2px solid var(--texto); border-radius: 3px; background: #fff; }
.fila-acta { flex-direction: row; align-items: center; gap: .65rem; padding: .5rem .6rem; border-bottom: 1px solid #b9bfcc; font-weight: 400; min-height: 64px; cursor: text; }
.fila-acta:last-child { border-bottom: 0; }
.fila-acta-total { background: #f1f3f8; border-bottom: 2px solid var(--texto); }
.fila-acta-n { flex: none; width: 2.1rem; height: 2.1rem; display: grid; place-items: center; border: 1.5px solid var(--texto); border-radius: 2px; font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums; background: #fff; }
.fila-acta-txt { flex: 1; display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.fila-acta-txt strong { font-size: .95rem; overflow-wrap: anywhere; }
.fila-acta-txt small { font-size: .78rem; }
.fila-acta input { width: 96px; flex: none; text-align: center; font-family: var(--display); font-size: 1.65rem; font-weight: 700; letter-spacing: .14em; padding: .2rem .3rem; min-height: 50px; font-variant-numeric: tabular-nums; border: 2px solid var(--texto); border-radius: 2px; color: var(--tinta); }
.fila-acta input.vacio { border-style: dashed; border-color: var(--rojo); background: #fff7f6; }
.fila-acta-seccion { margin: 0; padding: .45rem .6rem; background: var(--texto); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .03em; text-align: center; }
@media (max-width: 400px) {
  .fila-acta { gap: .5rem; padding: .45rem .5rem; }
  .fila-acta input { width: 80px; font-size: 1.45rem; letter-spacing: .08em; }
  .fila-acta-n { width: 1.8rem; height: 1.8rem; font-size: .9rem; }
}
.fila-acta.voto-nuestra { background: var(--resaltador); }
.fila-acta.voto-nuestra .fila-acta-txt::before { content: "★ Nuestra candidata"; font-size: .78rem; font-weight: 700; color: var(--tinta); }

/* ----- tablas ----- */
.tabla-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -.25rem; }
.tabla { width: 100%; border-collapse: collapse; font-size: .94rem; }
.tabla th { text-align: left; font-size: .84rem; color: var(--texto-2); font-weight: 700; padding: .55rem .55rem; border-bottom: 2px solid var(--tinta); white-space: nowrap; }
.tabla td { padding: .6rem .55rem; border-bottom: 1px solid var(--linea-suave); vertical-align: middle; }
.tabla th.num { text-align: right; }
.tabla td.num { font-variant-numeric: tabular-nums; }
.tabla-densa td { padding: .38rem .55rem; font-size: .86rem; }
.fila-nuestra td { background: var(--resaltador-suave); font-weight: 700; }
.fila-inactiva td { color: var(--texto-3); }
.acciones { display: flex; gap: .3rem; flex-wrap: wrap; }
.acciones form { margin: 0; }
.buscador { margin-bottom: .7rem; }

/* ----- lista de actas: un libro de registro ----- */
.filtros { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.filtros select { width: auto; flex: 1; min-width: 170px; }
.lista-actas { display: flex; flex-direction: column; background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio); overflow: hidden; }
.item-acta { display: grid; grid-template-columns: 1fr; gap: .35rem; padding: .85rem 1rem; color: var(--texto); text-decoration: none; border-bottom: 1px solid var(--linea-suave); }
.item-acta:last-child { border-bottom: 0; }
.item-acta:hover { background: #f5f7fb; }
.item-acta > .estado { justify-self: start; }
.item-principal { display: flex; flex-direction: column; min-width: 0; }
.item-principal strong { font-size: 1.02rem; color: var(--tinta); }
.item-principal span { color: var(--texto-2); font-size: .9rem; }
.item-meta { display: flex; flex-wrap: wrap; gap: .15rem 1rem; font-size: .84rem; color: var(--texto-3); }
.marca-alerta { color: var(--ambar); font-weight: 700; }
@media (min-width: 760px) {
  .item-acta { grid-template-columns: 130px 1fr auto; align-items: center; gap: .3rem 1rem; }
  .item-meta { flex-direction: column; align-items: flex-end; text-align: right; }
}

/* ----- pestañas ----- */
.pestanas { display: flex; gap: .4rem; flex-wrap: wrap; }
.pestanas a { padding: .5rem .85rem; min-height: 40px; border-radius: var(--radio); border: 1.5px solid var(--tinta); color: var(--tinta); text-decoration: none; font-size: .9rem; font-weight: 600; }
.pestanas a.activo { background: var(--tinta); color: #fff; }
.ultimas { list-style: none; margin: 0; padding: 0; }
.ultimas li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .2rem 1rem; padding: .55rem 0; border-bottom: 1px solid var(--linea-suave); font-size: .92rem; }

/* ----- configuración ----- */
.dignidad { border: 1px solid var(--linea); border-radius: var(--radio); padding: .85rem; margin-bottom: .85rem; }
.dignidad-inactiva { opacity: .6; }
.dignidad-cabecera { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .4rem; }
.dignidad-cabecera form { margin: 0; }
.fila-edicion { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.fila-edicion input { width: auto; flex: 1; min-width: 140px; min-height: 40px; padding: .4rem .55rem; }
.fila-edicion .input-orden { flex: 0 0 64px; min-width: 0; text-align: center; }
.fila-edicion.nuevo { margin-top: .6rem; padding-top: .6rem; border-top: 1px dashed var(--linea); }
.importar { margin: 1rem 0; padding: .85rem; background: #f3f5f9; border-radius: var(--radio); }
.fila-form { display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) { .fila-form { grid-template-columns: 1fr 1fr 1.4fr auto; align-items: end; } .fila-form h2 { grid-column: 1 / -1; margin: 0; } }

/* ----- pie: IT Cloud Ecuador ----- */
.pie { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: 1.5rem 1rem max(1.5rem, env(safe-area-inset-bottom)); margin-top: 1rem; color: var(--texto-3); font-size: .8rem; }
.pie img { height: 30px; width: auto; display: block; }
.pie-oscuro { color: #c3cce4; }
