:root {
  --mp-bg: #eef4f7;
  --mp-panel: rgba(255, 255, 255, 0.94);
  --mp-ink: #111827;
  --mp-muted: #667085;
  --mp-line: #d9e2ea;
  --mp-green: #07844f;
  --mp-blue: #2563eb;
  --mp-red: #b91c1c;
  --mp-orange: #b45309;
  --mp-slate: #273449;
  --mp-soft: #f8fbfd;
  --mp-shadow: 0 18px 44px rgba(15, 23, 42, 0.1);
  --mp-shadow-hover: 0 24px 58px rgba(15, 23, 42, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 0%, rgba(16, 185, 129, 0.12), transparent 34%),
    radial-gradient(circle at 92% 12%, rgba(37, 99, 235, 0.12), transparent 30%),
    linear-gradient(180deg, #f6fbfd 0%, var(--mp-bg) 48%, #e7f0f4 100%);
  color: var(--mp-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.mp-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px 28px;
  background: #fff;
  border-top: 6px solid var(--mp-green);
  border-bottom: 1px solid var(--mp-line);
}

.mp-topbar strong {
  font-size: 20px;
  letter-spacing: 0.02em;
}

.mp-topbar span {
  color: var(--mp-muted);
  margin-left: 8px;
}

.mp-topbar nav {
  display: flex;
  gap: 10px;
  align-items: center;
}

.mp-topbar nav a {
  padding: 8px 10px;
  border-radius: 8px;
  color: #344054;
  font-weight: 700;
}

.mp-topbar nav a:hover {
  background: #f1f5f9;
}

.mp-container {
  width: min(1480px, calc(100% - 28px));
  margin: 18px auto 42px;
}

.mp-hero,
.mp-project-header,
.mp-panel,
.mp-project-card,
.mp-empty {
  background: var(--mp-panel);
  border: 1px solid var(--mp-line);
  border-radius: 18px;
  box-shadow: var(--mp-shadow);
  backdrop-filter: blur(12px);
}

.mp-hero,
.mp-project-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 28px;
  margin-bottom: 18px;
}

.mp-kicker {
  margin: 0 0 6px;
  color: var(--mp-green);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
}

h1,
h2,
h3 {
  margin-top: 0;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 17px;
}

.mp-hero p,
.mp-project-header p,
.mp-muted {
  color: var(--mp-muted);
}

.mp-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.mp-project-card {
  padding: 20px;
  display: block;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.mp-project-card:hover {
  transform: translateY(-3px);
  border-color: #93c5fd;
  box-shadow: var(--mp-shadow-hover);
}

.mp-code {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: #ecfdf3;
  color: var(--mp-green);
  font-size: 12px;
  font-weight: 900;
}

.mp-progress {
  height: 10px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
  margin: 18px 0 14px;
}

.mp-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--mp-green), var(--mp-blue));
}

.mp-project-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--mp-muted);
}

.mp-project-stats b {
  color: var(--mp-ink);
}

.mp-card-action {
  display: inline-flex;
  margin-top: 14px;
  padding: 9px 12px;
  border-radius: 8px;
  background: #ecfdf3;
  color: var(--mp-green);
  font-weight: 1000;
  font-size: 13px;
}

.mp-header-actions,
.mp-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.mp-primary,
.mp-secondary,
.mp-warning,
.mp-danger,
.mp-dark {
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.mp-primary:hover,
.mp-secondary:hover,
.mp-warning:hover,
.mp-danger:hover,
.mp-dark:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.mp-primary {
  background: var(--mp-green);
  color: white;
}

.mp-secondary {
  background: #e8eef6;
  color: var(--mp-slate);
}

.mp-warning {
  background: #ffedd5;
  color: #9a3412;
}

.mp-danger {
  background: #fee2e2;
  color: var(--mp-red);
}

.mp-dark {
  background: var(--mp-slate);
  color: white;
}

button:disabled {
  opacity: 0.65;
  cursor: progress;
}

.mp-back {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--mp-muted);
  font-weight: 800;
}

.mp-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.mp-stats a {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 253, 0.95));
  border: 1px solid var(--mp-line);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--mp-shadow);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.mp-stats a:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
  box-shadow: var(--mp-shadow-hover);
}

.mp-stats b {
  display: block;
  font-size: 28px;
  color: var(--mp-blue);
}

.mp-stats span {
  color: var(--mp-muted);
  font-size: 13px;
  font-weight: 800;
}

.mp-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.mp-sidebar {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 86px;
}

.mp-panel {
  padding: 20px;
}

.mp-list {
  display: grid;
  gap: 8px;
  max-height: 620px;
  overflow: auto;
}

.mp-list a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--mp-line);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.9);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.mp-list a.active {
  border-color: var(--mp-blue);
  background: #eff6ff;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12);
}

.mp-list a:hover {
  transform: translateX(2px);
  border-color: #b6c6d8;
  background: #ffffff;
}

.mp-list span {
  font-weight: 900;
}

.mp-list small {
  color: var(--mp-muted);
  text-align: right;
}

.mp-daily {
  display: grid;
  gap: 3px;
  padding: 12px 0;
  border-top: 1px solid var(--mp-line);
}

.mp-daily-button {
  width: 100%;
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 12px;
  padding: 12px 10px;
  transition: background 0.16s ease, transform 0.16s ease;
}

.mp-daily-button:hover,
.mp-daily-button:focus-visible {
  background: #eef6ff;
  transform: translateY(-1px);
  outline: none;
}

.mp-daily span,
.mp-daily small {
  color: var(--mp-muted);
}

.mp-daily-bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
  margin-top: 7px;
}

.mp-daily-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mp-green), #84cc16);
  transition: width 0.32s ease, background 0.24s ease;
}

.mp-daily-bar.bad i {
  background: linear-gradient(90deg, #b91c1c, #ef4444);
}

.mp-daily-bar.ok i {
  background: linear-gradient(90deg, var(--mp-green), #84cc16);
}

.mp-goal-copy {
  color: #475467;
  font-size: 12px;
  font-weight: 900;
}

.mp-daily-modal-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  max-height: min(68vh, 760px);
  overflow: auto;
  padding-right: 4px;
}

.mp-daily-modal-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--mp-line);
  border-radius: 16px;
  background: #f8fafc;
  color: inherit;
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.mp-daily-modal-row:hover,
.mp-daily-modal-row:focus-visible {
  transform: translateY(-1px);
  border-color: #93c5fd;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  outline: none;
}

.mp-daily-modal-row.has-incident {
  border-color: #fecaca;
  background: #fff7ed;
}

.mp-daily-modal-main {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.mp-daily-modal-main div:first-child {
  display: grid;
  gap: 4px;
}

.mp-daily-modal-main span,
.mp-daily-modal-main small {
  color: var(--mp-muted);
  font-weight: 800;
}

.mp-daily-modal-thumb {
  width: 74px;
  height: 74px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--mp-line);
  background: #e2e8f0;
  display: grid;
  place-items: center;
  color: var(--mp-muted);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.mp-daily-modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mp-daily-modal-thumb i {
  font-style: normal;
  padding: 4px;
}

.mp-daily-modal-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mp-daily-modal-badges span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  background: #e0f2fe;
  color: #075985;
  font-size: 11px;
  font-weight: 900;
}

.mp-daily-modal-badges .danger {
  background: #fee2e2;
  color: #991b1b;
}


.mp-device-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  margin-right: 8px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #e0f2fe;
  color: #075985;
  font-style: normal;
  font-weight: 900;
  vertical-align: middle;
  flex: 0 0 auto;
}

.mp-device-icon.large {
  width: 40px;
  height: 40px;
  font-size: 22px;
  border-radius: 12px;
}

.mp-device-icon.image {
  padding: 3px;
  background: linear-gradient(180deg, #ffffff, #eef7f4);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.mp-device-icon.image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.mp-device-icon.large.image {
  width: 58px;
  height: 58px;
  padding: 5px;
  border-radius: 16px;
}

.mp-daily-detail {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.mp-daily-detail h3 {
  margin: 0;
  font-size: 14px;
}

.mp-daily-asset {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--mp-line);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.92);
  color: inherit;
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.mp-daily-asset:hover {
  transform: translateY(-1px);
  border-color: #93c5fd;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.mp-daily-asset img,
.mp-daily-asset > i {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: #e2e8f0;
}

.mp-daily-asset img {
  object-fit: cover;
}

.mp-daily-asset > i {
  display: grid;
  place-items: center;
  color: var(--mp-muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.mp-daily-asset span {
  display: grid;
  gap: 2px;
}

.mp-daily-asset small,
.mp-daily-asset em {
  color: var(--mp-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.mp-empty {
  padding: 24px;
  color: var(--mp-muted);
}

.mp-empty.large {
  text-align: center;
  padding: 80px 24px;
}

.mp-asset-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  border-bottom: 1px solid var(--mp-line);
  margin-bottom: 18px;
  padding-bottom: 14px;
}

.mp-badge {
  display: inline-flex;
  white-space: nowrap;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  background: #eef2ff;
  color: #3730a3;
}

.status-ejecutado {
  background: #fef3c7;
  color: #92400e;
}

.status-firmado {
  background: #dcfce7;
  color: #166534;
}

.status-atraso,
.status-no_atendido,
.status-rechazado,
.status-reabierto {
  background: #fee2e2;
  color: #991b1b;
}

.status-pendiente,
.status-programado {
  background: #fef3c7;
  color: #92400e;
}

.mp-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mp-form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 6px;
  color: #344054;
  font-weight: 800;
  font-size: 13px;
}

.mp-help-text {
  display: block;
  margin-top: -2px;
  color: #667085;
  font-size: 11px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 11px 12px;
  background: #fff;
  color: var(--mp-ink);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

textarea {
  min-height: 98px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--mp-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.13);
}

.mp-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.mp-check-item {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid var(--mp-line);
  padding: 12px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.mp-check-item.is-checked {
  border-color: rgba(7, 132, 79, 0.42);
  background: linear-gradient(180deg, #f0fdf4, #ffffff);
  box-shadow: 0 12px 26px rgba(7, 132, 79, 0.08);
}

.mp-check-item.just-checked {
  animation: mpCheckPulse 0.32s ease;
}

.mp-readonly-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.mp-readonly-grid div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--mp-line);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.mp-readonly-grid span {
  color: var(--mp-muted);
  font-weight: 800;
}

.mp-check-item input[type="checkbox"] {
  width: 30px;
  height: 30px;
  accent-color: var(--mp-green);
  cursor: pointer;
  transition: transform 0.16s ease;
}

.mp-check-item input[type="checkbox"]:checked {
  transform: scale(1.06);
}

.mp-internal {
  border: 1px dashed #94a3b8;
  background: #f8fafc;
  border-radius: 14px;
  padding: 10px;
}

.mp-photo-form {
  display: grid;
  grid-template-columns: 160px 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}

.mp-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.mp-gallery figure {
  margin: 0;
  border: 1px solid var(--mp-line);
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
}

.mp-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.mp-gallery figcaption {
  padding: 8px;
  color: var(--mp-muted);
  font-size: 12px;
}

.mp-signature-wrap {
  border: 1px dashed #94a3b8;
  border-radius: 8px;
  background: #fff;
  margin: 14px 0;
  overflow: hidden;
}

#signatureCanvas {
  display: block;
  width: 100%;
  height: 220px;
  touch-action: none;
}

.mp-history {
  display: grid;
  gap: 10px;
}

.mp-history-summary {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.mp-history-summary h3 {
  margin: 0;
  font-size: 16px;
}

.mp-history-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}

.mp-history-gallery a {
  display: grid;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}

.mp-history-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--mp-line);
  background: #e2e8f0;
}

.mp-history-gallery span {
  color: var(--mp-muted);
  font-size: 12px;
  font-weight: 800;
}

.mp-signature-gallery img {
  aspect-ratio: 3 / 1;
  object-fit: contain;
  padding: 10px;
  background: #fff;
}

.mp-history-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.mp-history-checklist div {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--mp-line);
  border-radius: 12px;
  background: #f8fafc;
}

.mp-history-checklist span {
  color: var(--mp-muted);
  font-size: 13px;
  font-weight: 800;
}

.mp-history div {
  border-left: 4px solid var(--mp-blue);
  background: #f8fafc;
  padding: 10px 12px;
  border-radius: 0 8px 8px 0;
}

.mp-history span {
  display: block;
  color: var(--mp-muted);
  font-size: 12px;
  margin-top: 3px;
}

.mp-history p {
  margin: 6px 0 0;
}

.mp-checklist-admin-block {
  border-top: 1px solid var(--mp-line);
  padding: 14px 0;
}

.mp-checklist-admin-block:first-of-type {
  border-top: 0;
}

.mp-checklist-admin-block h3 {
  margin-bottom: 2px;
}

.mp-checklist-admin-block ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.mp-checklist-admin-block li {
  margin: 5px 0;
}

.mp-checklist-admin-block small {
  color: var(--mp-muted);
  font-weight: 800;
}

.mp-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.62);
  z-index: 40;
}

.mp-modal[aria-hidden="false"] {
  display: flex;
}

.mp-modal-card {
  position: relative;
  width: min(720px, 100%);
  max-height: min(760px, 92vh);
  overflow: auto;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.mp-modal-card-wide {
  width: min(980px, 100%);
}

.mp-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  cursor: pointer;
  font-size: 24px;
}

.mp-check-inline {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}

.mp-check-inline input {
  width: 20px;
  height: 20px;
}

.mp-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 120px);
  padding: 14px 18px;
  border-radius: 10px;
  color: white;
  background: var(--mp-green);
  font-weight: 900;
  box-shadow: var(--mp-shadow);
  z-index: 60;
  transition: transform 0.22s ease;
}

.mp-toast.show {
  transform: translate(-50%, 0);
}

.mp-toast.error {
  background: var(--mp-red);
}

.mp-connection-status {
  position: fixed;
  left: 50%;
  top: 18px;
  transform: translate(-50%, -80px);
  z-index: 70;
  max-width: min(620px, calc(100vw - 24px));
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 900;
  box-shadow: var(--mp-shadow);
  transition: transform 0.22s ease;
}

.mp-connection-status.show {
  transform: translate(-50%, 0);
}

.mp-connection-status.online {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.mp-connection-status.offline {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.mp-has-local-draft {
  outline: 2px solid rgba(37, 99, 235, 0.22);
  outline-offset: 4px;
}

.mp-login-body {
  min-height: 100vh;
  background-image:
    linear-gradient(rgba(4, 20, 18, 0.16), rgba(4, 20, 18, 0.34)),
    url("/assets/img/mantenimiento-login-bg.svg");
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  padding: 24px;
}

.mp-login-shell {
  width: min(1060px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 430px;
  gap: 28px;
  align-items: center;
}

.mp-login-shell.single {
  width: min(480px, 100%);
  grid-template-columns: 1fr;
}

.mp-login-card {
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(18px);
  border-radius: 24px;
  padding: 34px;
  color: white;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.25);
}

.mp-login-intro {
  color: white;
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
}

.mp-login-intro img {
  width: 230px;
  max-width: 70%;
  height: auto;
  margin-bottom: 24px;
  filter: drop-shadow(0 14px 32px rgba(0, 0, 0, 0.22));
}

.mp-login-intro .mp-kicker {
  color: #bef264;
}

.mp-login-intro h1 {
  max-width: 680px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.98;
  margin-bottom: 18px;
  color: white;
}

.mp-login-intro p {
  max-width: 620px;
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.mp-login-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.mp-login-points span {
  display: inline-flex;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  font-weight: 900;
}

.mp-login-brand {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 28px;
}

.mp-login-logo {
  width: 72px;
  height: 54px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  padding: 6px;
}

.mp-login-card h1,
.mp-login-card p,
.mp-login-card h2 {
  color: white;
}

.mp-login-brand h1 {
  margin: 0;
  font-size: 22px;
}

.mp-login-brand p {
  margin: 2px 0 0;
  opacity: 0.82;
}

.mp-login-copy {
  opacity: 0.86;
}

.mp-login-form {
  display: grid;
  gap: 12px;
}

.mp-login-form label {
  color: white;
}

.mp-login-form input {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
}

.mp-login-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.mp-login-form button {
  border: 0;
  border-radius: 10px;
  padding: 14px 16px;
  background: linear-gradient(90deg, #bef264, #22c55e);
  color: #052e16;
  font-weight: 1000;
  cursor: pointer;
}

.mp-login-button-link,
.mp-login-secondary-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 10px;
  padding: 14px 16px;
  font-weight: 1000;
  margin-top: 12px;
}

.mp-login-button-link {
  background: linear-gradient(90deg, #bef264, #22c55e);
  color: #052e16;
}

.mp-login-secondary-link {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: white;
}

.mp-alert {
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
  font-weight: 800;
}

.mp-alert.danger {
  background: #fee2e2;
  color: #991b1b;
}

@media (max-width: 980px) {
  .mp-topbar,
  .mp-hero,
  .mp-project-header {
    align-items: stretch;
    flex-direction: column;
  }

  .mp-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mp-layout {
    grid-template-columns: 1fr;
  }

  .mp-sidebar {
    position: static;
  }

  .mp-form-grid,
  .mp-form-grid.two,
  .mp-checklist,
  .mp-photo-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .mp-container {
    width: min(100% - 16px, 1480px);
    margin-top: 10px;
  }

  .mp-topbar {
    padding: 12px 14px;
  }

  .mp-topbar nav {
    flex-wrap: wrap;
  }

  .mp-hero,
  .mp-project-header,
  .mp-panel,
  .mp-project-card {
    padding: 16px;
  }

  .mp-stats {
    gap: 8px;
  }

  .mp-stats a {
    padding: 12px;
  }

  .mp-stats b {
    font-size: 24px;
  }

  input,
  select,
  textarea {
    min-height: 48px;
    font-size: 16px;
  }

  .mp-check-item {
    padding: 14px;
  }

  .mp-check-item span {
    font-size: 15px;
  }

  .mp-list a {
    min-height: 58px;
  }

  .mp-actions button,
  .mp-header-actions button {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .mp-login-shell {
    grid-template-columns: 1fr;
  }

  .mp-login-intro {
    text-align: center;
  }

  .mp-login-intro p,
  .mp-login-intro h1 {
    margin-left: auto;
    margin-right: auto;
  }

  .mp-login-points {
    justify-content: center;
  }
}

.mp-inline-form {
  display: inline-flex;
}

.mp-section-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.mp-access-list {
  display: grid;
  gap: 10px;
}

.mp-access-list.compact {
  max-height: 260px;
  overflow: auto;
  margin-bottom: 16px;
}

.mp-access-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--mp-line);
  border-radius: 8px;
  background: #f8fafc;
}

.mp-access-row div {
  display: grid;
  gap: 2px;
}

.mp-access-row span,
.mp-access-row small {
  color: var(--mp-muted);
  font-weight: 700;
}

.mp-pin-help {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
  color: #344054;
  font-weight: 800;
}

.mp-pin-help span {
  padding: 6px 9px;
  border-radius: 999px;
  background: #ecfdf3;
  color: var(--mp-green);
}

.mp-pin-help small {
  width: 100%;
  color: var(--mp-muted);
}

.mp-asset-admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.mp-asset-admin-row > a {
  min-width: 0;
}

.mp-asset-admin-row.status-pendiente > a,
.mp-asset-admin-row.status-programado > a {
  background: #fff;
  border-color: #e5e7eb;
}

.mp-asset-admin-row.status-ejecutado > a {
  background: #fffbeb;
  border-color: #fcd34d;
}

.mp-asset-admin-row.status-firmado > a {
  background: #ecfdf3;
  border-color: #86efac;
}

.mp-asset-admin-row.status-atraso > a,
.mp-asset-admin-row.status-no_atendido > a,
.mp-asset-admin-row.status-rechazado > a,
.mp-asset-admin-row.status-reabierto > a {
  background: #fef2f2;
  border-color: #fecaca;
}

.mp-asset-admin-row > a.active {
  background: #eff6ff;
  border-color: #2563eb;
}

.mp-status-legend {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  color: var(--mp-muted);
  font-size: 12px;
  font-weight: 800;
}

.mp-status-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mp-status-legend i {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
}

.mp-status-legend .pending {
  background: #fff;
}

.mp-status-legend .green {
  background: #bbf7d0;
  border-color: #86efac;
}

.mp-status-legend .red {
  background: #fecaca;
  border-color: #fca5a5;
}

.mp-status-legend .blue {
  background: #dbeafe;
  border-color: #2563eb;
}

.mp-mobile-return {
  display: flex;
  margin-bottom: 14px;
}

.mp-secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 8px;
  background: #e8eef6;
  color: var(--mp-slate);
  font-weight: 900;
}

.mp-step-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  margin-bottom: 16px;
  border: 1px solid var(--mp-line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 253, 0.94));
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.mp-step-card > h3,
.mp-step-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.mp-step-card h3 span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--mp-green);
  color: #fff;
  font-size: 14px;
}

.mp-step-card p {
  margin-top: 0;
  color: var(--mp-muted);
}

.mp-photo-steps {
  display: grid;
  gap: 12px;
}

@keyframes mpCheckPulse {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.018);
  }
  100% {
    transform: scale(1);
  }
}

.mp-photo-steps .mp-photo-form {
  grid-template-columns: 150px 1fr 1fr auto;
  padding: 12px;
  border: 1px solid var(--mp-line);
  border-radius: 10px;
  background: #f8fafc;
}

.mp-photo-steps strong {
  align-self: center;
}

.mp-bulk-textarea {
  min-height: 260px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre;
  overflow: auto;
}

.mp-access-seed-form {
  margin-bottom: 12px;
}

.mp-danger.compact {
  padding: 8px 10px;
  font-size: 12px;
}

@media (max-width: 700px) {
  body {
    font-size: 15px;
  }

  .mp-topbar {
    position: static;
    padding: 12px 14px;
  }

  .mp-container {
    width: min(100% - 16px, 1480px);
    margin-top: 10px;
  }

  .mp-layout,
  .mp-form-grid,
  .mp-form-grid.two,
  .mp-checklist,
  .mp-readonly-grid,
  .mp-photo-form,
  .mp-photo-steps .mp-photo-form,
  .mp-access-row {
    grid-template-columns: 1fr;
  }

  .mp-sidebar {
    position: static;
  }

  .mp-list {
    max-height: 320px;
  }

  .mp-list a {
    align-items: flex-start;
  }

  .mp-list small {
    text-align: left;
  }

  .mp-panel,
  .mp-project-header,
  .mp-hero {
    padding: 14px;
  }

  .mp-modal {
    padding: 8px;
    align-items: flex-start;
  }

  .mp-modal-card {
    padding: 18px;
    max-height: 94vh;
  }

  .mp-daily-modal-row {
    grid-template-columns: 58px minmax(0, 1fr);
    padding: 10px;
  }

  .mp-daily-modal-thumb {
    width: 58px;
    height: 58px;
    border-radius: 12px;
  }

  .mp-daily-modal-main {
    display: grid;
    gap: 8px;
  }

  .mp-daily-modal-badges {
    justify-content: flex-start;
  }

  .mp-actions,
  .mp-header-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .mp-actions button,
  .mp-header-actions button,
  .mp-header-actions form,
  .mp-header-actions form button {
    width: 100%;
  }

  input,
  select,
  textarea,
  button {
    min-height: 46px;
  }

  #signatureCanvas {
    height: 190px;
  }
}
