:root {
  --green-900: #1e3a22;
  --green-800: #24512a;
  --green-700: #3b693c;
  --green-500: #6ead3b;
  --green-100: #e7f3dc;
  --green-050: #f4f7f2;
  --ink: #1c241c;
  --muted: #3e4d40;
  --line: #d5e0d4;
  --surface: #ffffff;
  --yellow: #f6d600;
  --yellow-ink: #1c241c;
  --red: #de3d25;
  --red-ink: #9e2414;
  --shadow: 0 10px 30px rgba(30, 58, 34, 0.08);
  --radius: 16px;
  --font: "Source Sans 3", "Segoe UI", sans-serif;
  --display: "Manrope", "Segoe UI", sans-serif;
  --header: 72px;
  --sidebar: 248px;
  --control-borde: #A3878B;
  --cereza: #C8102E;
  --cereza-oscuro: #9E0C24;
  --cereza-suave: #FFF5F5;
  --cereza-borde: #F2C9CE;
  --cereza-chip: #FDE7EA;
  --error-texto: #8A1C1C;
}

/* El atributo hidden debe ganar a cualquier display de componente (p. ej. .btn). */
[hidden] { display: none !important; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--green-050);
  touch-action: manipulation;
  overflow-x: clip;
}

img, svg, canvas, video { max-width: 100%; }

button, input, select, textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--green-500);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: #fff;
  padding: 0.6rem 0.8rem;
  z-index: 20;
}

.skip:focus { top: 0.6rem; }

.app { min-height: 100vh; display: flex; }

.sidebar {
  width: var(--sidebar);
  flex: 0 0 var(--sidebar);
  background: linear-gradient(180deg, #3b693c 0%, #2d5730 55%, #1e3a22 100%);
  color: #fff;
  padding: 1.2rem 0.9rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand { display: flex; gap: 0.7rem; align-items: center; padding: 0.2rem 0.4rem; }
.brand strong { display: block; font-family: var(--display); font-size: 1.15rem; }
.brand small { display: block; opacity: 0.85; }

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.nav { display: flex; flex-direction: column; gap: 0.35rem; }

.nav a {
  color: #fff;
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.75rem;
  border-radius: 12px;
  font-weight: 600;
}

.nav a:hover { background: rgba(255, 255, 255, 0.1); }
.nav a[aria-current="page"] { background: #fff; color: var(--green-900); }
.nav .nav-ico { width: 20px; height: 20px; opacity: 0.9; }
.nav a[aria-current="page"] .nav-ico { opacity: 1; color: var(--cereza); }

.sidebar-note {
  margin-top: auto;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.75rem;
  font-size: 0.92rem;
}

.workspace { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.7rem 1.2rem;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(8px);
}

.topbar-user { display: flex; flex-direction: column; min-width: 0; }
.topbar-user strong { font-family: var(--display); }
.topbar-user span { color: var(--muted); font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; }

.topbar-actions, .rol-box { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; justify-content: flex-end; }

.rol-box label { display: flex; flex-direction: column; gap: 0.15rem; font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.rol-box select, .field input, .field select, .field textarea, .filters input, .filters select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0.45rem 0.7rem;
}

.contenido { padding: 1.4rem 1.3rem 3rem; max-width: 1180px; width: 100%; }

h1, h2, h3 { font-family: var(--display); line-height: 1.2; margin: 0; }
h1 { font-size: 2rem; }
h2 { font-size: 1.35rem; }

.lead { color: var(--muted); max-width: 68ch; margin: 0.4rem 0 0; }

.hero {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 1.2rem;
}

.btn {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 0.45rem 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  background: #fff;
  color: var(--green-900);
}

.btn:hover { filter: brightness(0.97); }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-800); }
.btn-lime { background: var(--green-100); color: var(--green-900); }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-danger { background: #fff; color: var(--red-ink); border-color: #f0c2ba; }
.btn-yellow { background: var(--yellow); color: var(--yellow-ink); }
.btn[disabled], fieldset:disabled .btn { opacity: 0.55; cursor: not-allowed; }

.kpis, .modulos, .charts { display: grid; gap: 0.9rem; }
.kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 1rem; }
.modulos { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 1rem 0; }
.charts { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card, .modulo, .aviso, .diagrama, .panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card { padding: 1rem 1.05rem; }
.card span { display: block; color: var(--muted); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; }
.card strong { display: block; margin-top: 0.35rem; font-family: var(--display); font-size: 1.55rem; font-variant-numeric: tabular-nums; }
.card em { display: block; margin-top: 0.25rem; font-style: normal; color: var(--muted); font-size: 0.92rem; }
.card-verde { box-shadow: inset 4px 0 0 var(--green-700); }
.card-lima { box-shadow: inset 4px 0 0 var(--green-500); }
.card-amarillo { box-shadow: inset 4px 0 0 var(--yellow); }
.card-rojo { box-shadow: inset 4px 0 0 var(--red); }

.modulo { padding: 1.1rem; display: flex; flex-direction: column; gap: 0.45rem; color: inherit; text-decoration: none; }
.modulo:hover { border-color: var(--green-500); }
.modulo small { color: var(--muted); }

.aviso {
  padding: 0.9rem 1rem;
  margin: 0 0 1rem;
  background: #fff8d6;
  border-color: #ead56a;
}

.aviso strong { font-family: var(--display); }

.diagrama { padding: 1rem; margin-top: 1rem; }
.diagrama img { width: 100%; height: auto; border-radius: 12px; background: #fff; cursor: zoom-in; }
.diagrama figcaption { color: var(--muted); margin-top: 0.6rem; }

.seccion-head, .filters, .form-actions, .modal-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.filters { align-items: flex-end; margin: 0.8rem 0; }
.filters label, .field { display: flex; flex-direction: column; gap: 0.25rem; font-weight: 700; font-size: 0.92rem; min-width: 0; }
.filters label { min-width: min(160px, 100%); flex: 1 1 160px; }
.field input, .field select, .field textarea, .filters input, .filters select, .drop input { width: 100%; max-width: 100%; }

.panel { padding: 1rem 1.1rem 1.2rem; }
.bloque { margin-top: 1.2rem; }
.bloque h2 { margin-bottom: 0.7rem; padding-bottom: 0.35rem; border-bottom: 1px solid var(--line); }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
.span-2 { grid-column: span 2; }
.span-4 { grid-column: span 4; }

.field textarea { min-height: 96px; resize: vertical; }
.field small, .contador, .ayuda-campo { color: var(--muted); font-weight: 400; }
.contador-mal { color: var(--red-ink); font-weight: 700; }
.error { color: var(--red-ink); min-height: 1.1em; font-weight: 700; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--red); }

.calculos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.8rem;
}

.calculo { background: var(--green-050); border-radius: 12px; padding: 0.75rem; }
.calculo span { color: var(--muted); font-size: 0.85rem; font-weight: 700; }
.calculo strong { display: block; font-variant-numeric: tabular-nums; font-size: 1.25rem; }

.drops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; }
.drop {
  border: 1.5px dashed var(--line);
  border-radius: 14px;
  padding: 0.9rem;
  background: #fbfcfb;
  min-height: 148px;
}
.drop strong { display: block; margin-bottom: 0.35rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; max-width: 100%; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.7rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
th { font-size: 0.82rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--muted); background: #f7faf6; }

.folios { display: grid; gap: 0.8rem; }
.folio {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: var(--shadow);
  min-width: 0;
}
.folio-top { display: flex; justify-content: space-between; gap: 0.7rem; align-items: flex-start; flex-wrap: wrap; }
.folio-top strong { display: block; font-family: var(--display); font-size: 1.15rem; }
.folio-top span { color: var(--muted); }
.folio-desc { margin: 0.45rem 0 0; overflow-wrap: anywhere; }
.folio-datos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.65rem 1rem; margin: 0.85rem 0; }
.folio-datos div { min-width: 0; }
.folio-datos dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.folio-datos dd { margin: 0.15rem 0 0; overflow-wrap: anywhere; }
.firmas-mini { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.8rem; }
.chip {
  display: inline-flex;
  gap: 0.35rem;
  align-items: baseline;
  flex-wrap: wrap;
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  font-size: 0.86rem;
  max-width: 100%;
}
.chip b { font-size: 0.75rem; letter-spacing: 0.03em; text-transform: uppercase; }
.chip-ok { background: var(--green-100); color: var(--green-900); }
.chip-pend { background: #fde8e4; color: var(--red-ink); }
.chip-opc { background: #eef1ee; color: var(--muted); }
.firma-linea {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.firma-linea strong, .firma-linea b { display: block; }
.firma-linea span { color: var(--muted); overflow-wrap: anywhere; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
}
.badge i { width: 0.55rem; height: 0.55rem; border-radius: 50%; display: inline-block; }
.badge-rojo { background: #fde8e4; color: var(--red-ink); }
.badge-rojo i { background: var(--red); }
.badge-amarillo { background: var(--yellow); color: var(--yellow-ink); }
.badge-amarillo i { background: #8a7300; }
.badge-verde { background: var(--green-100); color: var(--green-900); }
.badge-verde i { background: var(--green-700); }
.badge-borrador, .badge-cancelado { background: #eef1ee; color: var(--muted); }
.badge-borrador i, .badge-cancelado i { background: var(--muted); }

.leyenda { display: flex; gap: 0.8rem; flex-wrap: wrap; color: var(--muted); font-size: 0.92rem; }

.chart-box { height: 280px; position: relative; }
.chart-box canvas { width: 100% !important; height: 100% !important; }

dialog {
  border: 0;
  border-radius: 18px;
  padding: 0;
  width: min(860px, calc(100vw - 1.5rem));
  max-height: min(88dvh, 900px);
  max-width: calc(100vw - 1.5rem);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  color: var(--ink);
}

dialog[open] { display: flex; flex-direction: column; }

dialog::backdrop { background: rgba(20, 28, 20, 0.55); }

.modal-head, .modal-body, .modal-actions { padding: 1rem 1.15rem; }
.modal-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; border-bottom: 1px solid var(--line); }
.modal-body { overflow: auto; max-height: min(62dvh, 640px); }
.modal-actions { border-top: 1px solid var(--line); display: flex; justify-content: flex-end; background: #f7faf6; }

#modal-diagrama { width: min(1100px, calc(100vw - 1.5rem)); }
#modal-diagrama img { width: 100%; height: auto; }

.hueco-grupo { margin: 1rem 0; }
.hueco {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.hueco input { width: 1.15rem; height: 1.15rem; margin-top: 0.25rem; accent-color: var(--green-700); }
.progreso-huecos { margin: 0.3rem 0 0; color: var(--muted); }

.toasts {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 30;
  max-width: min(360px, calc(100vw - 2rem));
}

.toast {
  background: var(--green-900);
  color: #fff;
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  box-shadow: var(--shadow);
}

.vacio { padding: 1.4rem; text-align: center; color: var(--muted); }

.acciones { display: flex; flex-wrap: wrap; gap: 0.35rem; }

@media (max-width: 1200px) {
  .grid, .folio-datos { grid-template-columns: 1fr 1fr; }
  .span-4 { grid-column: span 2; }
  .drops { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .app { flex-direction: column; }
  .sidebar {
    position: sticky;
    top: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    flex: 0 0 auto;
    z-index: 6;
    flex-direction: row;
    align-items: center;
    overflow: hidden;
    padding: 0.6rem;
    gap: 0.6rem;
  }
  .sidebar-note, .brand small { display: none; }
  .brand { flex: 0 1 auto; min-width: 0; }
  .nav {
    flex: 1 1 auto;
    flex-direction: row;
    flex-wrap: wrap;
    min-width: 0;
    max-width: 100%;
  }
  .nav a {
    flex: 1 1 7.2rem;
    min-width: 0;
    white-space: normal;
    justify-content: center;
    text-align: center;
  }
  .kpis, .modulos, .charts, .calculos { grid-template-columns: 1fr 1fr; }
  .topbar { align-items: stretch; flex-direction: column; }
  .topbar-actions, .rol-box { width: 100%; justify-content: stretch; }
  .rol-box label { flex: 1 1 180px; }
  .rol-box select { width: 100%; }
  .firma-linea { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 680px) {
  .sidebar { flex-direction: column; align-items: stretch; overflow: hidden; width: 100%; max-width: 100%; min-width: 0; }
  .nav {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .nav a {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    justify-content: center;
    text-align: center;
    padding: 0.4rem 0.25rem;
    font-size: 0.95rem;
    line-height: 1.2;
  }
  .filters { flex-direction: column; align-items: stretch; width: 100%; }
  .filters label, .rol-box label { flex: 0 0 auto; width: 100%; }
  .topbar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .topbar-actions > .rol-box { grid-column: 1 / -1; }
  .topbar-actions > .btn { width: auto; }
  .rol-box { flex-direction: column; align-items: stretch; }
  .topbar-user span { overflow: visible; text-overflow: unset; overflow-wrap: anywhere; }
  h1 { font-size: 1.55rem; }
  .kpis, .modulos, .charts, .grid, .drops, .calculos, .folio-datos, .span-2, .span-4 { grid-template-columns: 1fr; }
  .span-2, .span-4 { grid-column: auto; }
  .hero, .seccion-head { flex-direction: column; align-items: stretch; }
  .contenido { padding: 1rem 0.85rem 2.5rem; }
  .form-actions, .modal-actions { flex-direction: column; align-items: stretch; }
  .form-actions .btn, .modal-actions .btn, .acciones .btn { width: 100%; }
  .chart-box { height: 220px; }
  dialog {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
  }
  .modal-body { max-height: none; flex: 1; }
  .card strong { font-size: 1.35rem; overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:active { transform: none; }
}

@media print {
  body.imprimiendo * { visibility: hidden; }
  body.imprimiendo #modal-fi,
  body.imprimiendo #modal-fi * { visibility: visible; }
  body.imprimiendo #modal-fi {
    position: absolute;
    inset: 0;
    width: 100%;
    max-height: none;
    box-shadow: none;
  }
  .no-imprimir { display: none !important; }
}

.aviso:empty { display: none; }

.fila-mia td { background: #eef6e8; font-weight: 600; }

.preview { margin-top: 0.5rem; border: 1px solid #d5e0d4; border-radius: 8px; padding: 0.5rem; background: #fff; }
.preview img { display: block; max-width: 100%; max-height: 180px; margin: 0 auto; object-fit: contain; border-radius: 6px; }
.preview object { display: block; width: 100%; height: 220px; border: 0; }
.preview-nota { margin: 0; color: #5b6b5d; font-size: 0.9rem; }
.preview-acciones { margin: 0.4rem 0 0; font-size: 0.9rem; }

/* Registro: diseño R1 (acento cereza, íconos Lucide del sprite #iconos) */
.ico {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#form-registro fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
#form-registro .bloque {
  margin-top: 20px;
  padding: 20px 24px;
  background: var(--cereza-suave);
  border: 1px solid var(--cereza-borde);
  border-left: 4px solid var(--cereza);
  border-radius: 12px;
}
#form-registro .bloque:first-child { margin-top: 0; }
#form-registro .bloque h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cereza-borde);
  color: var(--cereza-oscuro);
  font-weight: 700;
  font-size: 1.2rem;
}
#form-registro .ico-chip {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cereza-chip);
  color: var(--cereza);
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}
#form-registro .bloque > .lead { margin: -4px 0 14px; }

#form-registro .grid { gap: 16px 18px; }
#form-registro .field { gap: 6px; }
#form-registro .field-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
}
#form-registro .field-label .ico,
#form-registro .drop-titulo .ico { color: var(--cereza); }

#form-registro .field input,
#form-registro .field select,
#form-registro .field textarea {
  background: #fff;
  border: 1px solid var(--control-borde);
  border-radius: 8px;
  min-height: 44px;
  padding: 10px 12px;
  font-weight: 400;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
#form-registro .field textarea { min-height: 110px; }
#form-registro .field input[readonly] { background: #FBF8F8; }
#form-registro .field input:hover,
#form-registro .field select:hover,
#form-registro .field textarea:hover { border-color: #B8979B; }
#form-registro .field input:focus-visible,
#form-registro .field select:focus-visible,
#form-registro .field textarea:focus-visible,
#form-registro .drop input:focus-visible {
  outline: 2px solid var(--cereza);
  outline-offset: 1px;
  box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.12);
}
#form-registro .field [aria-invalid="true"],
#form-registro .field [aria-invalid="true"]:hover { border-color: var(--error-texto); }

#form-registro .error { color: var(--error-texto); font-weight: 600; font-size: 0.88rem; }
#form-registro .error:not(:empty) { display: flex; align-items: flex-start; gap: 6px; }
#form-registro .error:not(:empty)::before {
  content: "";
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  margin-top: 0.2em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4M12 16h.01'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4M12 16h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}

#form-registro .calculos { gap: 14px; margin-top: 18px; }
#form-registro .calculo {
  background: #fff;
  border: 1px solid var(--cereza-borde);
  border-radius: 12px;
  padding: 12px 14px;
}
#form-registro .calculo .field-label { color: var(--muted); font-weight: 700; }
#form-registro .calculo strong { margin-top: 4px; color: var(--ink); }

#form-registro .drops { gap: 14px; }
#form-registro .drop {
  background: #fff;
  border: 1.5px dashed var(--cereza-borde);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color 150ms ease;
}
#form-registro .drop:hover { border-color: var(--cereza); }
#form-registro .drop-titulo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-weight: 700;
}
#form-registro .drop p { margin: 6px 0 0; overflow-wrap: anywhere; }
#form-registro .form-actions { margin-top: 20px; }

@media (max-width: 680px) {
  #form-registro .bloque { padding: 16px; }
  #form-registro .bloque h2 { font-size: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  #form-registro .field input,
  #form-registro .field select,
  #form-registro .field textarea,
  #form-registro .drop { transition: none; }
}

/* Pie de página de la plataforma */
.app-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.3rem;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
}
.app-footer img { width: 20px; height: 20px; flex: 0 0 auto; }
@media print { .app-footer { display: none; } }
