@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: dark;
  --ink: #050b12;
  --ink-2: #08121d;
  --panel: #0b1721;
  --panel-2: #0e1d2a;
  --panel-3: #102334;
  --line: #1c3243;
  --line-soft: rgba(151, 178, 201, 0.12);
  --text: #f1f5f8;
  --muted: #90a2b3;
  --muted-2: #637789;
  --blue: #087bff;
  --blue-soft: rgba(8, 123, 255, 0.14);
  --gold: #c89a4a;
  --gold-soft: rgba(200, 154, 74, 0.14);
  --green: #2dd3a1;
  --green-soft: rgba(45, 211, 161, 0.13);
  --red: #ff4e68;
  --red-soft: rgba(255, 78, 104, 0.13);
  --orange: #ffb53d;
  --radius: 14px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  --sidebar: 272px;
  font-family: "DM Sans", "Segoe UI", sans-serif;
  background: var(--ink);
  color: var(--text);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(33, 53, 70, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 53, 70, 0.07) 1px, transparent 1px),
    var(--ink);
  background-size: 48px 48px;
}

body.modal-open {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

button {
  color: inherit;
}

img {
  max-width: 100%;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.boot-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  gap: 18px;
}

.brand-mark {
  font: 400 42px/1 Georgia, serif;
  letter-spacing: -0.08em;
}

.boot-line {
  width: 62px;
  height: 2px;
  overflow: hidden;
  background: var(--line);
}

.boot-line::after {
  content: "";
  display: block;
  width: 50%;
  height: 100%;
  background: var(--blue);
  animation: loading 0.8s ease-in-out infinite alternate;
}

@keyframes loading {
  to {
    transform: translateX(100%);
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: currentColor;
}

.eyebrow.gold {
  color: var(--gold);
}

.subtle {
  color: var(--muted);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  padding: 6px 10px;
  border-radius: 99px;
  color: #7be6c4;
  background: var(--green-soft);
  font-size: 15px;
  font-weight: 700;
}

.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.status.warning {
  color: var(--orange);
  background: rgba(255, 181, 61, 0.12);
}

.status.danger {
  color: var(--red);
  background: var(--red-soft);
}

.status.info {
  color: #55a5ff;
  background: var(--blue-soft);
}

.btn {
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text);
  background: rgba(9, 19, 29, 0.72);
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  transition: 0.2s ease;
}

.btn:hover {
  border-color: #34526a;
  background: var(--panel-2);
  transform: translateY(-1px);
}

.btn.primary {
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: 0 12px 28px rgba(8, 123, 255, 0.2);
}

.btn.primary:hover {
  background: #2189ff;
}

.btn.gold {
  border-color: var(--gold);
  color: #080f16;
  background: var(--gold);
}

.btn.ghost {
  border-color: transparent;
  background: transparent;
}

.btn.danger {
  border-color: rgba(255, 78, 104, 0.35);
  color: var(--red);
  background: var(--red-soft);
}

.btn.icon-only {
  width: 42px;
  padding: 0;
}

.btn.small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 15px;
}

.btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.field {
  display: grid;
  gap: 8px;
}

.field > span,
.field > label {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.field input,
.field select,
.field textarea,
.search-input {
  width: 100%;
  min-height: 43px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  color: var(--text);
  background: rgba(5, 11, 18, 0.78);
  padding: 0 13px;
  transition: 0.2s ease;
}

.field textarea {
  min-height: 112px;
  padding-top: 12px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.search-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}

.field input::placeholder,
.field textarea::placeholder,
.search-input::placeholder {
  color: var(--muted-2);
}

.input-wrap {
  position: relative;
}

.input-wrap > .icon {
  position: absolute;
  z-index: 1;
  left: 13px;
  top: 50%;
  color: var(--muted);
  transform: translateY(-50%);
}

.input-wrap > input {
  padding-left: 40px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(11, 23, 33, 0.93);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.card-header {
  min-height: 60px;
  padding: 17px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.card-header h3,
.card-header p {
  margin: 0;
}

.card-header h3 {
  font-size: 19px;
}

.card-header p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 15px;
}

.card-body {
  padding: 20px;
}

/* Public site */
.public-site {
  min-height: 100vh;
  background: var(--ink);
}

.public-nav {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  padding: 0 clamp(20px, 5.5vw, 88px);
  display: flex;
  align-items: center;
  gap: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(5, 11, 18, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  cursor: pointer;
}

.brand .monogram {
  font: 400 30px/1 Georgia, serif;
  letter-spacing: -0.08em;
}

.brand .wordmark {
  display: grid;
  gap: 3px;
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.brand .wordmark small {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.3em;
}

.public-links {
  margin-left: auto;
  display: flex;
  align-items: stretch;
  height: 100%;
}

.public-links a {
  position: relative;
  padding: 0 19px;
  display: grid;
  place-items: center;
  color: #c5ced6;
  font-size: 16px;
  cursor: pointer;
}

.public-links a::after {
  content: "";
  position: absolute;
  left: 19px;
  right: 19px;
  bottom: -1px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.public-links a:hover,
.public-links a.active {
  color: white;
}

.public-links a.active::after {
  transform: scaleX(1);
}

.public-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  /* Ancla las acciones al extremo derecho, también cuando el menú
     se convierte en desplegable y deja de ocupar espacio. */
  margin-left: auto;
}

.menu-button {
  display: none;
}

.hero-home {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #03080d;
}

.hero-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #050b12 3%, rgba(5, 11, 18, 0.94) 24%, rgba(5, 11, 18, 0.28) 58%, rgba(5, 11, 18, 0.52)),
    linear-gradient(0deg, rgba(5, 11, 18, 0.58), transparent 45%),
    url("../assets/fotografias/hero-prime.webp") 62% 48% / cover no-repeat;
  filter: saturate(0.8) contrast(1.05);
}

.hero-home::after,
.public-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent calc(25% - 1px), rgba(255,255,255,.04) 25%, transparent calc(25% + 1px)),
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(255,255,255,.04) 50%, transparent calc(50% + 1px)),
    linear-gradient(90deg, transparent calc(75% - 1px), rgba(255,255,255,.04) 75%, transparent calc(75% + 1px));
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(650px, 90%);
  margin: 72px 0 0 clamp(24px, 10.8vw, 175px);
}

.hero-copy h1 {
  margin: 18px 0 20px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(44px, 5.2vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.hero-copy > p {
  max-width: 510px;
  margin: 0 0 28px;
  color: #a8b5c0;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.case-float {
  position: absolute;
  z-index: 3;
  right: 7vw;
  bottom: 76px;
  width: 255px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: rgba(7, 15, 22, 0.82);
  backdrop-filter: blur(14px);
}

.case-float b {
  display: block;
  margin: 12px 0 7px;
  font-size: 24px;
}

.case-float p {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.metrics-strip {
  position: relative;
  z-index: 4;
  min-height: 82px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, #09141f, #0d1e2b);
}

.metric-strip-item {
  padding: 19px 4vw;
  display: flex;
  align-items: center;
  gap: 16px;
  border-right: 1px solid var(--line);
}

.metric-strip-item:last-child {
  border: 0;
}

.metric-icon {
  width: 38px;
  height: 38px;
  border: 1px solid #304556;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--blue);
}

.metric-strip-item b {
  display: block;
  font-size: 19px;
}

.metric-strip-item small {
  color: var(--muted);
  font-size: 13px;
}

.public-section {
  width: min(1360px, 90vw);
  margin: auto;
  padding: 88px 0;
}

.section-heading {
  margin-bottom: 36px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.section-heading h2 {
  max-width: 720px;
  margin: 10px 0 0;
  font: 700 clamp(33px, 4vw, 52px)/1.05 "Manrope", sans-serif;
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 530px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  position: relative;
  min-height: 320px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(4, 10, 15, 0.98), rgba(4, 10, 15, 0.08)),
    var(--card-image) center / cover;
  filter: grayscale(0.25);
  transition: 0.35s ease;
}

.service-card:hover::before {
  transform: scale(1.04);
  filter: grayscale(0);
}

.service-card > * {
  position: relative;
  z-index: 1;
}

.service-card span {
  color: var(--blue);
  font: 700 15px/1 "Manrope", sans-serif;
}

.service-card h3 {
  min-height: 56px;
  margin: 13px 0 18px;
  font: 600 26px/1.2 "Manrope", sans-serif;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
}

.method-step {
  min-height: 190px;
  padding: 28px;
  border-right: 1px solid var(--line);
}

.method-step:last-child {
  border: 0;
}

.method-step span {
  color: var(--blue);
  font-size: 15px;
}

.method-step h3 {
  margin: 34px 0 10px;
  font-size: 21px;
}

.method-step p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.insight-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 18px;
}

.insight-card {
  min-height: 270px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
}

.insight-card.featured {
  min-height: 390px;
  grid-row: span 2;
  background:
    linear-gradient(0deg, rgba(5, 11, 18, 0.98), rgba(5, 11, 18, 0.05)),
    url("../assets/fotografias/palacio-justicia-lima.webp") center / cover;
}

.insight-card h3 {
  margin: 10px 0;
  font: 600 24px/1.25 "Manrope", sans-serif;
}

.insight-card small,
.insight-card p {
  color: var(--muted);
}

.consult-band {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  overflow: hidden;
  border: 1px solid #355166;
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(5, 11, 18, 0.96), rgba(5, 11, 18, 0.62)),
    url("../assets/fotografias/consulta-prime.webp") right / cover;
}

.consult-copy,
.consult-form {
  padding: clamp(26px, 4vw, 52px);
}

.consult-copy {
  border-right: 1px solid var(--line);
}

.consult-copy h2 {
  margin: 14px 0;
  font: 700 clamp(32px, 4vw, 45px)/1.05 "Manrope", sans-serif;
}

.consult-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.form-grid .wide {
  grid-column: 1 / -1;
}

.public-footer {
  padding: 52px max(5vw, 24px) 20px;
  border-top: 1px solid var(--line);
  background: #040a10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
}

.footer-col h4 {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-col a,
.footer-col p {
  display: block;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.footer-bottom {
  margin-top: 44px;
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 13px;
}

.footer-author a {
  color: var(--gold);
  font-weight: 600;
}

.footer-author a:hover {
  text-decoration: underline;
}

.footer-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 10px;
  color: #25d366;
  font-weight: 600;
}

.footer-wa svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

/* Botones flotantes de contacto (llamada y WhatsApp). */
.contacto-flotante {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 11px;
}

.flotante {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 19px 13px 15px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.flotante svg {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
}

.flotante:hover {
  transform: translateY(-2px);
}

.flotante.wa-float {
  background: #25d366;
  color: #05300f;
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.32);
}

.flotante.wa-float:hover {
  box-shadow: 0 18px 40px rgba(37, 211, 102, 0.42);
}

.flotante.llamar {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 14px 34px rgba(8, 123, 255, 0.34);
}

.flotante.llamar:hover {
  box-shadow: 0 18px 40px rgba(8, 123, 255, 0.44);
}

@media (max-width: 640px) {
  .contacto-flotante {
    right: 14px;
    bottom: 14px;
    gap: 10px;
  }

  .flotante {
    padding: 13px;
  }

  .flotante span {
    display: none;
  }
}

/* Llamada en la barra superior. */
.header-tel {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.header-tel svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

@media (max-width: 1180px) {
  .header-tel span {
    display: none;
  }
}

@media (max-width: 820px) {
  .header-tel {
    display: none;
  }
}

/* Llamada y WhatsApp en la tarjeta de la oficina. */
.contacto-botones {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.contacto-botones .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contacto-botones svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.contacto-botones .llamar-btn {
  border-color: transparent;
  background: var(--blue);
  color: #fff;
}

.contacto-botones .wa-btn {
  border-color: transparent;
  background: #25d366;
  color: #05300f;
}

.footer-tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 2px;
  color: var(--blue);
  font-weight: 600;
}

.footer-tel svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

/* ---------- Accesibilidad ---------- */

/* Enlace para saltar la navegación: solo visible al enfocarlo con el teclado. */
.salto-contenido {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: 0 0 10px 10px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  transition: top 0.18s ease;
}

.salto-contenido:focus {
  top: 0;
}

/* Foco visible y uniforme en todo lo que se puede alcanzar con el teclado. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Sobre fondos azules el contorno se ve en dorado para mantener el contraste. */
.btn.primary:focus-visible,
.chip.activo:focus-visible,
.dia.activo:focus-visible,
.hora.activo:focus-visible {
  outline-color: var(--gold);
}

/* Quien prefiera menos movimiento no ve animaciones de entrada. */
@media (prefers-reduced-motion: reduce) {
  .asistente-panel,
  .install-prompt {
    animation: none;
  }
}

/* ---------- Asistente legal ---------- */
.flotante.asistente {
  border: 0;
  background: var(--gold);
  color: #2a1c05;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(200, 154, 74, 0.32);
}

.flotante.asistente:hover {
  box-shadow: 0 18px 40px rgba(200, 154, 74, 0.44);
}

.asistente-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 120;
  width: min(390px, calc(100vw - 28px));
  max-height: min(620px, calc(100vh - 40px));
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  animation: asistente-in 0.24s ease;
}

/* Animación propia: el panel se ancla a la derecha, no está centrado. */
@keyframes asistente-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

.asistente-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.asistente-head b {
  display: block;
  font-size: 16px;
}

.asistente-head small {
  color: var(--muted-2);
  font-size: 13px;
}

.asistente-mensajes {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.burbuja {
  max-width: 88%;
  padding: 12px 15px;
  border-radius: 14px;
  background: var(--panel-2);
  border: 1px solid var(--line-soft);
}

.burbuja p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}

.burbuja.mia {
  align-self: flex-end;
  border-color: transparent;
  background: var(--blue);
  color: #fff;
}

.burbuja-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.asistente-sugerencias {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 18px 14px;
}

.asistente-sugerencias .chip {
  padding: 8px 13px;
  font-size: 13px;
}

.asistente-form {
  display: flex;
  gap: 9px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}

.asistente-form input {
  flex: 1 1 auto;
  min-width: 0;
}

.asistente-nota {
  margin: 0;
  padding: 0 18px 14px;
  color: var(--muted-2);
  font-size: 12px;
}

@media (max-width: 640px) {
  .asistente-panel {
    right: 14px;
    left: 14px;
    bottom: 14px;
    width: auto;
    max-height: calc(100vh - 28px);
  }
}

/* ---------- Testimonios ---------- */
.testimonio-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
}

.testimonio {
  position: relative;
  padding: 30px 26px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.comillas {
  position: absolute;
  top: 8px;
  left: 22px;
  color: var(--gold);
  font: 400 54px/1 Georgia, serif;
  opacity: 0.5;
}

.testimonio p {
  margin: 14px 0 20px;
  font-size: 16px;
  line-height: 1.62;
}

.testimonio footer b {
  display: block;
  font-size: 15px;
}

.testimonio footer small {
  display: block;
  margin-bottom: 8px;
  color: var(--muted-2);
  font-size: 14px;
}

/* ---------- Preguntas frecuentes ---------- */
.faq-grupo {
  margin-bottom: 34px;
}

.faq-grupo h3 {
  margin: 0 0 14px;
  font-size: 19px;
  color: var(--gold);
}

.faq-item {
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--blue);
  font-size: 21px;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
}

/* ---------- Mapa del sitio ---------- */
.mapa-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
}

.mapa-col h3 {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

.mapa-col a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  font-size: 15px;
  cursor: pointer;
}

.mapa-col a:hover {
  color: var(--blue);
}

/* ---------- Pagos y firma ---------- */
.firma-lista {
  display: grid;
  gap: 12px;
}

.firma-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.firma-item > div {
  flex: 1 1 auto;
  min-width: 0;
}

.firma-item b {
  display: block;
  font-size: 16px;
}

.firma-item small {
  color: var(--muted);
  font-size: 14px;
}

.estado-firmado {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
}

.estado-firmado svg {
  width: 16px;
  height: 16px;
}

.footer-legales a {
  color: var(--muted-2);
  cursor: pointer;
}

.footer-legales a:hover {
  color: var(--blue);
}

/* ---------- Métricas y agenda en el panel ---------- */
.metricas-card,
.citas-web-card {
  grid-column: span 12;
}

.metricas-kpis {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.metricas-kpis > div {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
}

.metricas-kpis small {
  display: block;
  color: var(--muted-2);
  font-size: 13px;
}

.metricas-kpis b {
  display: block;
  margin-top: 4px;
  font-size: 25px;
}

.agenda-item.nueva {
  position: relative;
}

.estado-cita {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.estado-cita.gold { background: var(--gold-soft); color: var(--gold); }
.estado-cita.green { background: var(--green-soft); color: var(--green); }
.estado-cita.red { background: var(--red-soft); color: var(--red); }

.acciones-cita {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
}

.acciones-cita .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.acciones-cita svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.agenda-item.nueva {
  flex-wrap: wrap;
}

.etiqueta-web {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
}

/* ---------- Reserva de citas ---------- */
.agenda-layout {
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr);
  align-items: start;
}

.agenda-paso {
  display: flex;
  gap: 18px;
  padding: 24px 0;
  border-top: 1px solid var(--line-soft);
}

.agenda-paso:first-child {
  border-top: 0;
  padding-top: 0;
}

.agenda-paso > div {
  flex: 1 1 auto;
  min-width: 0;
}

.agenda-paso h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

.paso-num {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.chip {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease;
}

.chip:hover {
  border-color: var(--blue);
  color: var(--text);
}

.chip.activo {
  border-color: transparent;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
}

.dia-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
}

.dia {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.dia:hover:not(:disabled) {
  border-color: var(--blue);
  transform: translateY(-2px);
}

.dia small {
  color: var(--muted-2);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dia b {
  font-size: 22px;
  line-height: 1.1;
}

.dia span {
  color: var(--muted);
  font-size: 13px;
}

.dia em {
  margin-top: 3px;
  color: var(--green);
  font-size: 12px;
  font-style: normal;
}

.dia.activo {
  border-color: transparent;
  background: var(--blue);
  color: #fff;
}

.dia.activo small,
.dia.activo span,
.dia.activo em {
  color: rgba(255, 255, 255, 0.86);
}

.dia.lleno,
.dia:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.dia.lleno em {
  color: var(--red);
}

.hora-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
}

.hora {
  padding: 13px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.hora small {
  display: block;
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 400;
}

.hora:hover:not(:disabled) {
  border-color: var(--blue);
}

.hora.activo {
  border-color: transparent;
  background: var(--blue);
  color: #fff;
}

.hora.ocupada,
.hora:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.agenda-resumen {
  position: sticky;
  top: 96px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.btn.wide,
.btn[disabled] {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.cita-lista {
  display: grid;
  gap: 12px;
}

.cita-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.cita-fecha {
  flex: 0 0 auto;
  width: 56px;
  padding: 8px 0;
  text-align: center;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
}

.cita-fecha b {
  display: block;
  font-size: 21px;
  line-height: 1;
}

.cita-fecha small {
  font-size: 12px;
  text-transform: uppercase;
}

.cita-datos {
  flex: 1 1 auto;
  min-width: 0;
}

.cita-datos b {
  display: block;
  font-size: 16px;
}

.cita-datos small {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.cita-codigo {
  color: var(--gold) !important;
  font-weight: 600;
}

/* ---------- Evaluación previa ---------- */
.evaluador {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 0.9fr);
  align-items: start;
}

.evaluador form,
.evaluador-salida {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.evaluador-salida h3 {
  margin: 8px 0 0;
  font-size: 23px;
}

.aviso-urgente {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  padding: 13px 16px;
  border-radius: 10px;
  background: rgba(255, 181, 61, 0.13);
  color: var(--orange);
  font-size: 14px;
}

.aviso-urgente svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

/* ---------- Seguimiento de expediente ---------- */
.seguimiento-form {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  align-items: end;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.aviso-error {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--red-soft);
  color: var(--red);
  font-size: 15px;
}

.aviso-error svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.expediente-ficha {
  margin-top: 26px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.etapas {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 26px 0;
}

.etapa {
  flex: 1 1 118px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  text-align: center;
}

.etapa::before {
  content: "";
  position: absolute;
  top: 17px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: var(--line);
}

.etapa:first-child::before {
  display: none;
}

.etapa.hecha::before {
  background: var(--green);
}

.etapa-punto {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--panel-2);
  color: var(--muted-2);
  font-size: 14px;
  font-weight: 700;
}

.etapa-punto svg {
  width: 17px;
  height: 17px;
}

.etapa.hecha .etapa-punto {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
}

.etapa.actual .etapa-punto {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.etapa small {
  color: var(--muted);
  font-size: 13px;
}

.etapa.hecha small {
  color: var(--text);
}

.proxima-accion {
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  background: var(--panel-2);
}

.proxima-accion b {
  display: block;
  margin-top: 6px;
  font-size: 18px;
}

.proxima-accion small {
  color: var(--muted);
  font-size: 14px;
}

.movimientos {
  margin-top: 26px;
}

.movimiento {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
}

.movimiento:first-of-type {
  border-top: 0;
}

.mov-num {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
}

.movimiento b {
  font-size: 16px;
}

.movimiento p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

/* ---------- Calculadoras ---------- */
.calc-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 0.95fr);
  align-items: start;
}

.calc-form,
.calc-resultado {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.calc-form h3 {
  margin: 0 0 6px;
  font-size: 21px;
}

.calc-total {
  display: block;
  margin-top: 8px;
  font-size: 34px;
  line-height: 1.1;
  color: var(--green);
}

.header-agenda,
.header-ingresar {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.header-agenda svg,
.header-ingresar svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

/* Los accesos del encabezado se reducen por etapas antes de pasar al menú. */
@media (max-width: 1320px) {
  .header-tel span {
    display: none;
  }
}

@media (max-width: 1180px) {
  .header-agenda span {
    display: none;
  }
}

@media (max-width: 1060px) {
  .header-ingresar span {
    display: none;
  }
}

/* Accesos dentro del menú desplegable. */
.menu-acciones {
  display: none;
}

@media (max-width: 1024px) {
  .menu-acciones {
    display: grid;
    gap: 10px;
    padding: 18px 24px 22px;
    border-top: 1px solid var(--line-soft);
  }

  .menu-acciones .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
  }

  .menu-acciones svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
  }
}

@media (max-width: 980px) {
  .agenda-layout,
  .evaluador,
  .calc-layout {
    grid-template-columns: 1fr;
  }

  .agenda-resumen {
    position: static;
  }
}

@media (max-width: 900px) {
  .header-agenda,
  .header-ingresar {
    display: none;
  }
}

@media (max-width: 820px) {
  .etapa::before {
    display: none;
  }

  .etapa {
    flex: 1 1 84px;
  }
}

@media (max-width: 640px) {
  .agenda-paso {
    gap: 12px;
  }

  .cita-item {
    flex-wrap: wrap;
    gap: 12px;
  }
}

/* Tarjetas de publicaciones y casos: con foto y llamada a leer. */
.insight-card,
.caso-card {
  cursor: pointer;
  overflow: hidden;
}

.insight-resumen {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.insight-leer {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
}

.insight-leer svg {
  width: 15px;
  height: 15px;
  transition: transform 0.18s ease;
}

.insight-card:hover .insight-leer svg,
.caso-card:hover .insight-leer svg {
  transform: translateX(4px);
}

.caso-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(295px, 1fr));
}

.caso-card {
  display: flex;
  flex-direction: column;
  padding: 30px;
  min-height: 300px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.caso-card:hover {
  transform: translateY(-3px);
  border-color: var(--blue);
}

.caso-cifra {
  display: block;
  margin: 14px 0 6px;
  font-size: 38px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.caso-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.caso-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.caso-card .insight-leer {
  margin-top: auto;
  padding-top: 16px;
}

.caso-resumen {
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* Artículo: entradilla, datos y cierre. */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--muted-2);
  font-size: 14px;
}

.article-lead {
  margin: 0 0 28px;
  color: var(--text);
  font-size: 19px;
  line-height: 1.6;
}

.article-cierre {
  margin-top: 36px;
  padding: 24px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  background: var(--panel);
}

.article-cierre p {
  margin: 0 0 16px;
}

.article-aside a b {
  margin-right: 7px;
  color: var(--gold);
}

/* Aviso de instalación (botón en Android, instrucciones en iPhone). */
.install-prompt {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 120;
  width: min(430px, calc(100vw - 28px));
  transform: translateX(-50%);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  box-shadow: var(--shadow);
  animation: install-in 0.28s ease;
}

@keyframes install-in {
  from {
    opacity: 0;
    transform: translate(-50%, 14px);
  }
}

.install-body {
  display: flex;
  align-items: center;
  gap: 14px;
}

.install-body img {
  border-radius: 12px;
  flex: 0 0 auto;
}

.install-body b {
  display: block;
  font-size: 16px;
}

.install-body small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.install-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

@media (max-width: 640px) {
  .install-prompt {
    bottom: 84px;
  }
}

/* Caja de accesos de la demostración. */
.demo-access {
  margin-top: 26px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
}

.demo-access h3 {
  margin: 0 0 16px;
  font-size: 15px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold);
}

.demo-account {
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
}

.demo-account:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.demo-account-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.demo-account-head b {
  font-size: 16px;
}

.demo-account-head small {
  color: var(--muted-2);
  font-size: 13px;
}

.cred-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  font-size: 15px;
}

.cred-label {
  min-width: 92px;
  color: var(--muted-2);
  font-size: 13px;
}

.cred-value {
  flex: 1 1 auto;
  word-break: break-all;
}

.cred-copy {
  flex: 0 0 auto;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-3);
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}

.cred-copy:hover {
  border-color: var(--blue);
  color: var(--text);
}

.demo-account .btn.small {
  margin-top: 10px;
}

.demo-author {
  margin: 18px 0 0;
  text-align: center;
  color: var(--muted-2);
  font-size: 13px;
}

.demo-author a {
  color: var(--gold);
  font-weight: 600;
}

.public-hero {
  position: relative;
  min-height: 550px;
  padding: 150px 7vw 75px;
  display: flex;
  align-items: end;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5,11,18,.98) 5%, rgba(5,11,18,.76) 48%, rgba(5,11,18,.3)),
    var(--hero-image) center 35% / cover;
}

.public-hero.compact {
  min-height: 410px;
}

.public-hero-content {
  position: relative;
  z-index: 1;
  max-width: 790px;
}

.public-hero h1 {
  margin: 15px 0;
  font: 700 clamp(40px, 6vw, 72px)/1.02 "Manrope", sans-serif;
  letter-spacing: -0.045em;
}

.public-hero p {
  max-width: 620px;
  margin: 0;
  color: #afbdc8;
  font-size: 21px;
  line-height: 1.7;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.bento-card {
  min-height: 230px;
  padding: 30px;
  grid-column: span 4;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.bento-card.wide {
  grid-column: span 8;
}

.bento-card.tall {
  min-height: 480px;
  grid-row: span 2;
}

.bento-card h3 {
  margin: 15px 0 10px;
  font: 600 25px/1.2 "Manrope", sans-serif;
}

.bento-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.person-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
}

.person-card img {
  width: 100%;
  aspect-ratio: 0.82;
  display: block;
  object-fit: cover;
  object-position: top;
  filter: saturate(0.72);
  transition: 0.3s;
}

.person-card:hover img {
  filter: saturate(1);
  transform: scale(1.015);
}

.person-card div {
  padding: 18px;
}

.person-card h3,
.person-card p {
  margin: 0;
}

.person-card p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 16px;
}

.profile-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 0;
  border: 1px solid var(--line);
}

.profile-layout img {
  width: 100%;
  height: 100%;
  min-height: 600px;
  object-fit: cover;
}

.profile-content {
  padding: clamp(32px, 5vw, 70px);
}

.profile-content h2 {
  margin: 15px 0 8px;
  font: 700 clamp(38px, 5vw, 60px)/1 "Manrope", sans-serif;
}

.profile-content .role {
  color: var(--gold);
}

.profile-content p {
  color: var(--muted);
  line-height: 1.8;
}

.timeline-public {
  border-left: 1px solid var(--line);
}

.timeline-public article {
  position: relative;
  padding: 0 0 38px 35px;
}

.timeline-public article::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 6px var(--blue-soft);
}

.timeline-public h3,
.timeline-public p {
  margin: 0;
}

.timeline-public p {
  margin-top: 7px;
  color: var(--muted);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 70px;
}

.article-body {
  color: #b4c0c9;
  font-family: Georgia, serif;
  font-size: 22px;
  line-height: 1.9;
}

.article-body h2 {
  color: var(--text);
  font-family: "Manrope", sans-serif;
  line-height: 1.2;
}

.article-aside {
  position: sticky;
  top: 100px;
  align-self: start;
  padding: 22px;
  border-left: 1px solid var(--line);
}

.article-aside a {
  display: block;
  padding: 9px 0;
  color: var(--muted);
  font-size: 16px;
}

.auth-page {
  min-height: 100vh;
  padding: 100px 5vw 45px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(90deg, rgba(5,11,18,.98), rgba(5,11,18,.72)),
    url("../assets/fotografias/firma-contrato.webp") center / cover;
}

.auth-card {
  width: min(480px, 100%);
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid #2a4255;
  border-radius: 14px;
  background: rgba(5, 11, 18, 0.91);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.auth-card h1 {
  margin: 24px 0 8px;
  font: 700 34px/1.08 "Manrope", sans-serif;
}

.auth-card > p {
  margin: 0 0 28px;
  color: var(--muted);
}

.auth-card form {
  display: grid;
  gap: 15px;
}

.auth-note {
  margin-top: 22px;
  padding-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

.success-page {
  min-height: 100vh;
  padding: 110px 24px 50px;
  display: grid;
  place-items: center;
  text-align: center;
  background: radial-gradient(circle at 50% 40%, rgba(8, 123, 255, 0.14), transparent 35%), var(--ink);
}

.success-orb {
  width: 95px;
  height: 95px;
  margin: 0 auto 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(45, 211, 161, 0.45);
  border-radius: 50%;
  color: var(--green);
  background: var(--green-soft);
}

.success-orb .icon {
  width: 42px;
  height: 42px;
}

.success-page h1 {
  max-width: 700px;
  margin: 0 auto 14px;
  font: 700 clamp(35px, 6vw, 60px)/1.08 "Manrope", sans-serif;
}

.success-page p {
  max-width: 610px;
  margin: auto;
  color: var(--muted);
  line-height: 1.7;
}

.track-card {
  width: min(650px, 100%);
  margin: 38px auto;
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.track-card div {
  padding: 10px;
  border-right: 1px solid var(--line);
}

.track-card div:last-child {
  border: 0;
}

.track-card small,
.track-card b {
  display: block;
}

.track-card small {
  margin-bottom: 7px;
  color: var(--muted);
}

/* Product shell */
.app-shell {
  min-height: 100vh;
  padding-left: var(--sidebar);
}

.sidebar {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line-soft);
  background: rgba(3, 9, 14, 0.98);
}

.sidebar-head {
  height: 82px;
  padding: 0 25px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
}

.sidebar-label {
  padding: 19px 28px 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.sidebar-nav {
  padding: 8px 12px 20px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.sidebar-nav a {
  min-height: 44px;
  margin: 3px 0;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #98a8b7;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.18s;
}

.sidebar-nav a .nav-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #61788d;
}

.sidebar-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.025);
}

.sidebar-nav a.active {
  border-color: var(--blue);
  color: var(--text);
  background: var(--blue-soft);
}

.sidebar-nav a.active .nav-dot {
  background: var(--blue);
  box-shadow: 0 0 12px var(--blue);
}

.sidebar-user {
  margin: auto 20px 18px;
  padding: 20px 4px 0;
  display: flex;
  align-items: center;
  gap: 11px;
  border-top: 1px solid var(--line);
}

.avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--blue);
  font-size: 15px;
  font-weight: 800;
}

.sidebar-user b,
.sidebar-user small {
  display: block;
}

.sidebar-user b {
  font-size: 16px;
}

.sidebar-user small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.app-topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: 82px;
  padding: 0 28px 0 44px;
  display: flex;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 18, 29, 0.92);
  backdrop-filter: blur(16px);
}

.app-title {
  min-width: 0;
}

.app-title small {
  display: block;
  margin-bottom: 4px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-title h1 {
  margin: 0;
  overflow: hidden;
  font: 700 clamp(25px, 2.2vw, 27px)/1.1 "Manrope", sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-subtitle {
  color: var(--muted);
  font-size: 15px;
}

.topbar-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 9px;
}

.global-search {
  width: 220px;
  min-height: 42px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: rgba(3, 9, 14, 0.64);
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
}

.topbar-avatar {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #51a1ff;
  background: var(--blue-soft);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.topbar-notification {
  position: relative;
}

.topbar-notification::after {
  content: "";
  position: absolute;
  right: 9px;
  top: 8px;
  width: 7px;
  height: 7px;
  border: 2px solid var(--ink-2);
  border-radius: 50%;
  background: var(--red);
}

.mobile-sidebar-button {
  display: none;
}

.app-main {
  width: min(100%, 1500px);
  margin: auto;
  padding: 32px 36px 70px;
}

.app-toolbar {
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.app-toolbar .input-wrap {
  min-width: min(320px, 100%);
}

.app-toolbar .btn:first-of-type {
  margin-left: auto;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.kpi-card {
  min-height: 118px;
  padding: 17px;
  grid-column: span 3;
  display: flex;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
}

.kpi-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #58a4ff;
  background: var(--blue-soft);
}

.kpi-icon.red {
  color: var(--red);
  background: var(--red-soft);
}

.kpi-icon.green {
  color: var(--green);
  background: var(--green-soft);
}

.kpi-icon.gold {
  color: var(--gold);
  background: var(--gold-soft);
}

.kpi-copy {
  min-width: 0;
}

.kpi-copy small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.kpi-copy strong {
  display: block;
  margin: 3px 0 5px;
  font: 700 31px/1 "Manrope", sans-serif;
}

.trend {
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.trend.down {
  color: var(--red);
}

.chart-card {
  min-height: 350px;
  grid-column: span 8;
}

.risk-card {
  grid-column: span 4;
  background: rgba(3, 9, 14, 0.95);
}

.chart-area {
  position: relative;
  height: 245px;
  margin: 8px 18px 15px;
  overflow: hidden;
}

.chart-area svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart-labels {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.risk-list {
  padding: 27px 22px;
  display: grid;
  gap: 30px;
}

.risk-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  font-size: 15px;
  font-weight: 700;
}

.risk-row .bar {
  height: 7px;
  grid-column: 1 / -1;
  overflow: hidden;
  border-radius: 20px;
  background: #263e52;
}

.risk-row .bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.risk-row:nth-child(2) .bar span {
  background: var(--gold);
}

.risk-row:nth-child(3) .bar span {
  background: var(--red);
}

.activity-card {
  grid-column: span 9;
}

.next-card {
  grid-column: span 3;
}

.action-list {
  padding: 12px;
  display: grid;
  gap: 8px;
}

.action-item {
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel-2);
  cursor: pointer;
}

.action-item .number {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.action-item:nth-child(2) .number {
  background: var(--gold);
}

.action-item b,
.action-item small {
  display: block;
}

.action-item b {
  font-size: 15px;
}

.action-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.table-card {
  overflow: hidden;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 16px;
}

.data-table th {
  padding: 14px 16px;
  color: var(--muted);
  background: var(--panel-3);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.data-table td {
  padding: 15px 16px;
  border-top: 1px solid var(--line);
  color: #d3dce4;
}

.data-table tbody tr {
  transition: 0.17s;
}

.data-table tbody tr:hover {
  background: rgba(8, 123, 255, 0.04);
}

.data-table .main-cell {
  color: var(--text);
  font-weight: 700;
}

.table-actions {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}

.table-actions button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.table-actions button:hover {
  color: var(--text);
  background: var(--panel-3);
}

.table-footer {
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.pagination {
  display: flex;
  gap: 4px;
}

.pagination button {
  width: 27px;
  height: 27px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.pagination button.active {
  border-color: var(--blue);
  color: white;
  background: var(--blue);
}

.case-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
}

.case-summary {
  padding: 25px;
  display: grid;
  grid-template-columns: 1fr repeat(3, auto);
  align-items: center;
  gap: 28px;
}

.case-code {
  color: var(--blue);
  font-size: 15px;
  font-weight: 800;
}

.case-summary h2 {
  margin: 7px 0 4px;
  font: 700 27px/1.2 "Manrope", sans-serif;
}

.case-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.case-stat {
  padding-left: 26px;
  border-left: 1px solid var(--line);
}

.case-stat small,
.case-stat b {
  display: block;
}

.case-stat small {
  color: var(--muted);
  font-size: 12px;
}

.case-stat b {
  margin-top: 6px;
  font-size: 17px;
}

.tab-strip {
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.tab-strip button {
  min-width: max-content;
  padding: 15px 18px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
}

.tab-strip button.active {
  border-bottom-color: var(--blue);
  color: white;
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.detail-list div {
  padding: 17px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-list div:nth-child(2n) {
  border-right: 0;
}

.detail-list small,
.detail-list b {
  display: block;
}

.detail-list small {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.detail-list b {
  font-size: 16px;
}

.progress-ring {
  width: 112px;
  height: 112px;
  margin: 25px auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--blue) 0 72%, var(--panel-3) 72%);
}

.progress-ring::after {
  content: "72%";
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--panel);
  font-size: 25px;
  font-weight: 800;
}

.legal-timeline {
  position: relative;
  padding: 10px 0 10px 28px;
}

.legal-timeline::before {
  content: "";
  position: absolute;
  left: 38px;
  top: 30px;
  bottom: 30px;
  width: 1px;
  background: var(--line);
}

.timeline-entry {
  position: relative;
  padding: 19px 20px 19px 55px;
}

.timeline-entry::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 6px;
  top: 25px;
  width: 9px;
  height: 9px;
  border: 3px solid var(--panel);
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}

.timeline-entry time {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.timeline-entry h3 {
  margin: 6px 0;
  font-size: 17px;
}

.timeline-entry p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
}

.calendar-head {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.calendar-head h2 {
  margin: 0;
  font-size: 21px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-top: 1px solid var(--line);
}

.day-label {
  min-height: 35px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.calendar-day {
  min-height: 98px;
  padding: 9px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.calendar-day:nth-child(7n) {
  border-right: 0;
}

.calendar-day.outside {
  opacity: 0.35;
}

.calendar-day.today {
  color: white;
  background: var(--blue-soft);
}

.calendar-day > span:first-child {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 13px;
}

.calendar-day.today > span:first-child {
  background: var(--blue);
}

.calendar-event {
  margin-top: 6px;
  padding: 5px 6px;
  overflow: hidden;
  border-left: 2px solid var(--blue);
  border-radius: 3px;
  color: #bcd8f5;
  background: var(--blue-soft);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agenda-list {
  padding: 8px 18px 18px;
}

.agenda-item {
  padding: 14px 0;
  display: grid;
  grid-template-columns: 47px 1fr;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.agenda-item time {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.agenda-item b,
.agenda-item small {
  display: block;
}

.agenda-item b {
  font-size: 15px;
}

.agenda-item small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.document-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  overflow: hidden;
}

.folder-list {
  padding: 14px;
  border-right: 1px solid var(--line);
}

.folder-item {
  padding: 12px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 7px;
  color: var(--muted);
  cursor: pointer;
  font-size: 15px;
}

.folder-item.active,
.folder-item:hover {
  color: white;
  background: var(--blue-soft);
}

.file-grid {
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.file-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel-2);
  cursor: pointer;
}

.file-card .file-type {
  width: 40px;
  height: 45px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  color: #ff6b70;
  background: var(--red-soft);
}

.file-card b,
.file-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-card b {
  font-size: 15px;
}

.file-card small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

.drop-zone {
  min-height: 126px;
  margin-top: 18px;
  display: grid;
  place-items: center;
  border: 1px dashed #37536a;
  border-radius: 10px;
  color: var(--muted);
  background: rgba(8, 123, 255, 0.025);
  cursor: pointer;
  text-align: center;
  font-size: 15px;
}

.drop-zone.dragover {
  border-color: var(--blue);
  color: white;
  background: var(--blue-soft);
}

.viewer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  min-height: 680px;
}

.document-viewer {
  padding: 32px;
  display: grid;
  place-items: start center;
  overflow: auto;
  background: #1b2530;
}

.paper {
  width: min(720px, 100%);
  min-height: 900px;
  padding: 75px 70px;
  color: #202936;
  background: #f4f2eb;
  box-shadow: 0 10px 45px rgba(0, 0, 0, 0.45);
  font-family: Georgia, serif;
  font-size: 17px;
  line-height: 1.8;
}

.paper h2 {
  text-align: center;
}

.paper .highlight {
  background: rgba(255, 205, 50, 0.38);
}

.comment-panel {
  padding: 20px;
  border-left: 1px solid var(--line);
}

.comment {
  margin-bottom: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.comment b,
.comment small {
  font-size: 13px;
}

.comment small {
  float: right;
  color: var(--muted);
}

.comment p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.signature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
}

.signature-preview {
  min-height: 650px;
  padding: 32px;
  display: grid;
  place-items: center;
  background: #18232c;
}

.signature-preview .paper {
  min-height: 560px;
  padding: 55px;
}

.signature-panel {
  padding: 25px;
}

.signature-panel h2 {
  margin-top: 0;
}

.signature-steps {
  margin: 25px 0;
  display: grid;
  gap: 14px;
}

.signature-step {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 11px;
  align-items: center;
  color: var(--muted);
  font-size: 15px;
}

.signature-step span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--green);
  background: var(--green-soft);
}

.signature-box {
  margin: 20px 0;
  padding: 28px;
  border: 1px dashed #3d566b;
  border-radius: 8px;
  color: #c0c8d0;
  font: italic 30px/1 "Brush Script MT", cursive;
  text-align: center;
}

.message-layout {
  min-height: 650px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  overflow: hidden;
}

.conversation-list {
  border-right: 1px solid var(--line);
}

.conversation-search {
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.conversation {
  padding: 15px;
  display: flex;
  gap: 11px;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
}

.conversation.active {
  background: var(--blue-soft);
}

.conversation .avatar {
  width: 36px;
  height: 36px;
}

.conversation b,
.conversation small,
.conversation p {
  display: block;
  margin: 0;
}

.conversation b {
  font-size: 15px;
}

.conversation small,
.conversation p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.chat {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
}

.chat-head {
  padding: 15px 19px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid var(--line);
}

.chat-head b,
.chat-head small {
  display: block;
}

.chat-head b {
  font-size: 16px;
}

.chat-head small {
  color: var(--green);
  font-size: 12px;
}

.chat-messages {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  background: rgba(3, 9, 14, 0.58);
}

.bubble {
  width: max-content;
  max-width: 70%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px 10px 10px 2px;
  color: #ced7df;
  background: var(--panel-2);
  font-size: 15px;
  line-height: 1.55;
}

.bubble.me {
  align-self: flex-end;
  border-color: rgba(8, 123, 255, 0.34);
  border-radius: 10px 10px 2px 10px;
  background: var(--blue-soft);
}

.bubble time {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.chat-compose {
  padding: 14px;
  display: flex;
  gap: 9px;
  border-top: 1px solid var(--line);
}

.chat-compose input {
  flex: 1;
}

.task-board,
.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(240px, 1fr));
  gap: 14px;
  overflow-x: auto;
}

.kanban-column {
  min-height: 520px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(5, 11, 18, 0.5);
}

.kanban-column.dragover {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.kanban-title {
  padding: 7px 4px 14px;
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 800;
}

.kanban-title span {
  color: var(--muted);
}

.kanban-card {
  margin-bottom: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  cursor: grab;
}

.kanban-card:active {
  cursor: grabbing;
}

.kanban-card b,
.kanban-card small {
  display: block;
}

.kanban-card b {
  font-size: 15px;
}

.kanban-card small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.kanban-card strong {
  display: block;
  margin: 18px 0 8px;
  font-size: 22px;
}

.probability {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

.probability b {
  color: var(--blue);
}

.mini-progress {
  height: 6px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 10px;
  background: #263e52;
}

.mini-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.task-list {
  display: grid;
  gap: 9px;
}

.task-item {
  padding: 14px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
}

.task-check {
  width: 21px;
  height: 21px;
  padding: 0;
  border: 1px solid #426078;
  border-radius: 5px;
  display: grid;
  place-items: center;
  color: white;
  background: transparent;
  cursor: pointer;
}

.task-item.done {
  opacity: 0.56;
}

.task-item.done .task-check {
  border-color: var(--green);
  background: var(--green);
}

.task-item.done b {
  text-decoration: line-through;
}

.task-item b,
.task-item small {
  display: block;
}

.task-item b {
  font-size: 15px;
}

.task-item small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.finance-grid,
.report-grid,
.settings-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.finance-summary {
  padding: 25px;
  grid-column: span 4;
}

.finance-summary small {
  color: var(--muted);
}

.finance-summary strong {
  display: block;
  margin: 9px 0;
  font: 700 32px/1 "Manrope", sans-serif;
}

.finance-summary .delta {
  color: var(--green);
  font-size: 15px;
}

.finance-main {
  grid-column: span 8;
}

.finance-full,
.report-main {
  grid-column: 1 / -1;
}

.bar-chart {
  height: 240px;
  padding: 25px;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 16px;
}

.bar-item {
  flex: 1;
  max-width: 65px;
  display: grid;
  place-items: end center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.bar-item span {
  width: 100%;
  min-height: 10px;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(var(--blue), #09529f);
}

.form-card {
  width: min(100%, 1000px);
  margin: auto;
}

.form-section {
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.form-section:last-child {
  border: 0;
}

.form-section h3 {
  margin: 0 0 18px;
  font-size: 18px;
}

.form-section .form-grid {
  grid-template-columns: repeat(2, 1fr);
}

.notification-list {
  display: grid;
}

.notification-item {
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.notification-item.unread {
  background: rgba(8, 123, 255, 0.04);
}

.notification-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--blue);
  background: var(--blue-soft);
}

.notification-item b,
.notification-item p {
  margin: 0;
}

.notification-item b {
  font-size: 16px;
}

.notification-item p,
.notification-item time {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.settings-nav {
  grid-column: span 3;
  padding: 10px;
}

.settings-nav button {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-size: 15px;
}

.settings-nav button.active,
.settings-nav button:hover {
  color: white;
  background: var(--blue-soft);
}

.settings-content {
  grid-column: span 9;
}

.setting-row {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.setting-row b,
.setting-row small {
  display: block;
}

.setting-row b {
  font-size: 15px;
}

.setting-row small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.switch {
  width: 42px;
  height: 23px;
  padding: 3px;
  border: 0;
  border-radius: 30px;
  background: #294053;
  cursor: pointer;
}

.switch span {
  display: block;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: white;
  transition: 0.2s;
}

.switch.on {
  background: var(--blue);
}

.switch.on span {
  transform: translateX(19px);
}

.deadline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.deadline-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: 9px;
  background: var(--panel);
}

.deadline-card.danger {
  border-top-color: var(--red);
}

.deadline-card.warning {
  border-top-color: var(--gold);
}

.deadline-card time {
  color: var(--muted);
  font-size: 12px;
}

.deadline-card h3 {
  margin: 15px 0 6px;
  font-size: 17px;
}

.deadline-card p {
  margin: 0 0 17px;
  color: var(--muted);
  font-size: 13px;
}

.countdown {
  font-size: 28px;
  font-weight: 800;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.evidence-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.evidence-card .hash {
  margin: 15px 0;
  padding: 9px;
  overflow: hidden;
  border-radius: 5px;
  color: var(--muted);
  background: var(--ink);
  font-family: monospace;
  font-size: 12px;
  text-overflow: ellipsis;
}

.camera-frame {
  position: relative;
  min-height: 570px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background:
    linear-gradient(rgba(5, 11, 18, 0.36), rgba(5, 11, 18, 0.62)),
    url("../assets/fotografias/firma-contrato.webp") center / cover;
}

.camera-corners {
  width: min(550px, 72%);
  aspect-ratio: 1.4;
  border: 2px solid rgba(255, 255, 255, 0.66);
  box-shadow: 0 0 0 2000px rgba(0, 0, 0, 0.28);
}

.camera-button {
  position: absolute;
  bottom: 25px;
  width: 64px;
  height: 64px;
  border: 5px solid white;
  border-radius: 50%;
  background: var(--blue);
  cursor: pointer;
}

.report-card {
  min-height: 210px;
  padding: 21px;
  grid-column: span 4;
}

.report-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.report-card .big-number {
  display: block;
  margin: 22px 0 8px;
  font: 700 32px/1 "Manrope", sans-serif;
}

.donut {
  width: 115px;
  height: 115px;
  margin: 15px auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--blue) 0 68%, var(--gold) 68% 86%, var(--green) 86%);
}

.donut::after {
  content: "68%";
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--panel);
  font-weight: 800;
}

.matrix {
  overflow-x: auto;
}

.matrix .data-table td:not(:first-child),
.matrix .data-table th:not(:first-child) {
  text-align: center;
}

.permission-check {
  width: 19px;
  height: 19px;
  margin: auto;
  display: grid;
  place-items: center;
  border-radius: 5px;
  color: var(--green);
  background: var(--green-soft);
}

.permission-check.off {
  color: var(--muted-2);
  background: var(--panel-3);
}

.audit-log {
  position: relative;
  padding-left: 28px;
}

.audit-row {
  position: relative;
  padding: 14px 16px;
  border-left: 1px solid var(--line);
}

.audit-row::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 21px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

.audit-row b {
  font-size: 15px;
}

.audit-row p {
  margin: 5px 0 0;
  color: var(--muted);
  font: 12px/1.5 monospace;
}

.offline-panel {
  max-width: 760px;
  margin: auto;
  padding: 50px;
  text-align: center;
}

.offline-orb {
  width: 100px;
  height: 100px;
  margin: 0 auto 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  background: var(--blue-soft);
}

.offline-orb .icon {
  width: 42px;
  height: 42px;
}

.sync-list {
  margin: 28px 0;
  display: grid;
  text-align: left;
}

.sync-row {
  padding: 13px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.empty-state {
  min-height: 350px;
  padding: 40px;
  display: grid;
  place-items: center;
  text-align: center;
}

.empty-state .icon {
  width: 45px;
  height: 45px;
  margin-bottom: 12px;
  color: var(--blue);
}

.empty-state h3 {
  margin: 0 0 7px;
}

.empty-state p {
  max-width: 430px;
  margin: 0 auto 18px;
  color: var(--muted);
}

/* Mobile product preview */
.mobile-product-page {
  min-height: 100vh;
  padding: 36px;
  display: grid;
  grid-template-columns: 280px minmax(360px, 450px) 300px;
  align-items: start;
  justify-content: center;
  gap: 28px;
  background:
    radial-gradient(circle at 50% 25%, rgba(8, 123, 255, 0.14), transparent 30%),
    var(--ink);
}

.mobile-index {
  position: sticky;
  top: 36px;
  max-height: calc(100vh - 72px);
  overflow: auto;
}

.mobile-index .brand {
  margin-bottom: 24px;
}

.mobile-index h2 {
  margin: 0 0 18px;
  font-size: 19px;
}

.mobile-index a {
  padding: 8px 0;
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}

.mobile-index a.active {
  color: white;
}

.mobile-index a span {
  color: var(--blue);
}

.phone {
  width: 100%;
  min-height: 820px;
  overflow: hidden;
  border: 6px solid #182b3a;
  border-radius: 42px;
  background: var(--ink);
  box-shadow: 0 45px 100px rgba(0, 0, 0, 0.55);
}

.phone-status {
  height: 36px;
  padding: 0 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #c8d3dc;
  font-size: 12px;
}

.phone-status::after {
  content: "●  5G  ▮";
  letter-spacing: 0.08em;
}

.phone-head {
  min-height: 70px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.phone-head h1 {
  margin: 0;
  font-size: 22px;
}

.phone-head small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.phone-body {
  min-height: 645px;
  padding: 19px 17px 85px;
}

.phone .card {
  border-radius: 12px;
}

.phone .kpi-card {
  min-height: 95px;
  padding: 13px;
  grid-column: span 6;
}

.phone .kpi-copy strong {
  font-size: 24px;
}

.phone .dashboard-grid {
  gap: 10px;
}

.phone .file-grid {
  grid-template-columns: repeat(2, 1fr);
}

.phone .calendar-layout,
.phone .case-grid,
.phone .signature-layout,
.phone .viewer-layout {
  grid-template-columns: 1fr;
}

.phone .calendar-day {
  min-height: 49px;
  padding: 4px;
}

.phone .calendar-event {
  display: none;
}

.phone .case-summary {
  grid-template-columns: 1fr;
  gap: 12px;
}

.phone .case-stat {
  padding: 0;
  border: 0;
}

.phone .detail-list {
  grid-template-columns: 1fr;
}

.phone .detail-list div {
  border-right: 0;
}

.phone .message-layout {
  min-height: 600px;
  grid-template-columns: 1fr;
}

.phone .conversation-list {
  display: none;
}

.phone .bubble {
  max-width: 85%;
}

.phone .deadline-grid,
.phone .evidence-grid,
.phone .finance-grid,
.phone .report-grid {
  grid-template-columns: 1fr;
}

.phone .finance-summary,
.phone .finance-main,
.phone .report-card {
  grid-column: 1;
}

.phone .table-card {
  overflow-x: auto;
}

.phone .data-table {
  min-width: 590px;
}

.phone .form-section .form-grid {
  grid-template-columns: 1fr;
}

.phone .form-section .wide {
  grid-column: 1;
}

.phone .kanban-board,
.phone .task-board {
  grid-template-columns: 280px 280px 280px;
}

.phone .signature-preview,
.phone .document-viewer,
.phone .comment-panel {
  display: none;
}

.phone-nav {
  position: absolute;
  z-index: 10;
  left: 6px;
  right: 6px;
  bottom: 5px;
  height: 72px;
  padding: 9px 12px 14px;
  display: flex;
  justify-content: space-around;
  border-top: 1px solid var(--line);
  border-radius: 0 0 35px 35px;
  background: rgba(7, 15, 23, 0.97);
}

.phone-wrap {
  position: relative;
}

.phone-nav button {
  min-width: 55px;
  border: 0;
  display: grid;
  place-items: center;
  gap: 4px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
}

.phone-nav button.active {
  color: var(--blue);
}

.phone-nav .icon {
  width: 20px;
  height: 20px;
}

.mobile-context {
  position: sticky;
  top: 36px;
}

.mobile-context h3 {
  margin: 0 0 12px;
}

.mobile-context p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.module-switcher {
  padding: 16px;
}

.module-switcher button {
  width: 100%;
  min-height: 39px;
  margin: 4px 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
}

.module-switcher button:hover {
  color: white;
  border-color: var(--blue);
}

/* Dialogs, drawers and feedback */
.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  padding: 20px;
  display: grid;
  place-items: center;
  background: rgba(1, 5, 9, 0.78);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.17s ease;
}

.modal {
  width: min(560px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  border: 1px solid #2b465d;
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
  animation: modalIn 0.2s ease;
}

.modal.wide {
  width: min(900px, 100%);
}

@keyframes fadeIn {
  from { opacity: 0; }
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
}

.modal-head {
  min-height: 66px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.modal-head h2 {
  margin: 0;
  font-size: 21px;
}

.modal-body {
  padding: 21px;
}

.modal-foot {
  padding: 15px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  border-top: 1px solid var(--line);
}

.search-results {
  margin-top: 15px;
  display: grid;
  gap: 7px;
}

.search-result {
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  cursor: pointer;
}

.search-result:hover {
  border-color: var(--blue);
}

.search-result b,
.search-result small {
  display: block;
}

.search-result b {
  font-size: 15px;
}

.search-result small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.drawer {
  position: fixed;
  z-index: 110;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(410px, 100%);
  border-left: 1px solid var(--line);
  background: var(--ink-2);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.36);
  animation: drawerIn 0.25s ease;
}

@keyframes drawerIn {
  from { transform: translateX(100%); }
}

.drawer-head {
  height: 74px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.drawer-head h2 {
  margin: 0;
  font-size: 21px;
}

.toast-region {
  position: fixed;
  z-index: 200;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 9px;
  pointer-events: none;
}

.toast {
  min-width: 280px;
  max-width: 390px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #2a465c;
  border-radius: 10px;
  color: #dce6ed;
  background: rgba(11, 23, 33, 0.97);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.35);
  animation: toastIn 0.25s ease;
  font-size: 15px;
}

.toast .icon {
  color: var(--green);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px); }
}

/* Responsive */
@media (max-width: 1180px) {
  .public-links a {
    padding-inline: 11px;
  }

  .public-links a::after {
    left: 11px;
    right: 11px;
  }

  .public-nav .btn {
    display: none;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mobile-product-page {
    grid-template-columns: minmax(360px, 450px) 280px;
  }

  .mobile-index {
    display: none;
  }

  .activity-card {
    grid-column: span 8;
  }

  .next-card {
    grid-column: span 4;
  }

  .kpi-card {
    grid-column: span 6;
  }
}

@media (max-width: 900px) {
  :root {
    --sidebar: 0px;
  }

  .public-nav {
    padding-inline: 20px;
  }

  .public-links {
    position: fixed;
    inset: 72px 0 auto;
    height: auto;
    padding: 15px 20px 25px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid var(--line);
    background: rgba(5, 11, 18, 0.98);
  }

  .public-links.open {
    display: flex;
  }

  .public-links a {
    min-height: 46px;
    display: flex;
  }

  .public-links a::after {
    display: none;
  }

  .menu-button {
    display: inline-flex !important;
  }

  .case-float {
    display: none;
  }

  .hero-copy {
    margin-left: 7vw;
  }

  .metrics-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric-strip-item:nth-child(2) {
    border-right: 0;
  }

  .consult-band,
  .profile-layout,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .consult-copy {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .profile-layout img {
    max-height: 620px;
  }

  .article-aside {
    display: none;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sidebar {
    width: 280px;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.5);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .mobile-sidebar-button {
    display: inline-flex;
  }

  .app-topbar {
    padding-left: 20px;
  }

  .app-subtitle {
    display: none;
  }

  .chart-card,
  .risk-card,
  .activity-card,
  .next-card {
    grid-column: 1 / -1;
  }

  .case-grid,
  .calendar-layout,
  .viewer-layout,
  .signature-layout {
    grid-template-columns: 1fr;
  }

  .viewer-layout .comment-panel {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .settings-nav,
  .settings-content {
    grid-column: 1 / -1;
  }

  .mobile-product-page {
    grid-template-columns: minmax(340px, 450px);
  }

  .mobile-context {
    display: none;
  }
}

@media (max-width: 680px) {
  .public-nav {
    height: 64px;
  }

  .public-links {
    top: 64px;
  }

  .public-actions .btn.ghost {
    display: none;
  }

  .hero-home {
    min-height: 720px;
  }

  .hero-home::before {
    background:
      linear-gradient(0deg, #050b12 5%, rgba(5,11,18,.83) 52%, rgba(5,11,18,.3)),
      url("../assets/fotografias/hero-prime.webp") 58% center / cover;
  }

  .hero-copy {
    align-self: end;
    width: auto;
    margin: 0 23px 50px;
  }

  .hero-copy h1 {
    font-size: clamp(37px, 12vw, 56px);
  }

  .metrics-strip {
    grid-template-columns: 1fr;
  }

  .metric-strip-item {
    min-height: 65px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .public-section {
    width: min(92vw, 1360px);
    padding: 62px 0;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .service-grid,
  .method-grid,
  .insight-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .method-step {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .insight-card.featured {
    min-height: 330px;
    grid-row: auto;
  }

  .form-grid,
  .form-section .form-grid {
    grid-template-columns: 1fr;
  }

  .form-grid .wide {
    grid-column: 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .public-hero {
    min-height: 470px;
    padding: 120px 24px 52px;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-card,
  .bento-card.wide {
    grid-column: 1;
  }

  .track-card {
    grid-template-columns: 1fr;
  }

  .track-card div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .app-topbar {
    min-height: 72px;
    padding: 0 14px;
  }

  .global-search,
  .topbar-avatar {
    display: none;
  }

  .app-main {
    padding: 20px 14px 55px;
  }

  .app-toolbar {
    align-items: stretch;
  }

  .app-toolbar .input-wrap {
    min-width: 100%;
  }

  .app-toolbar .btn:first-of-type {
    margin-left: 0;
  }

  .kpi-card {
    grid-column: 1 / -1;
  }

  .case-summary {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .case-stat {
    padding: 0;
    border: 0;
  }

  .detail-list {
    grid-template-columns: 1fr;
  }

  .detail-list div {
    border-right: 0;
  }

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

  .folder-list {
    display: flex;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .folder-item {
    min-width: max-content;
  }

  .file-grid {
    grid-template-columns: 1fr;
  }

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

  .conversation-list {
    display: none;
  }

  .deadline-grid,
  .evidence-grid {
    grid-template-columns: 1fr;
  }

  .finance-summary,
  .finance-main,
  .report-card {
    grid-column: 1 / -1;
  }

  .notification-item {
    grid-template-columns: 40px 1fr;
  }

  .notification-item time {
    display: none;
  }

  .mobile-product-page {
    min-height: 100vh;
    padding: 0;
    display: block;
  }

  .phone-wrap {
    width: 100%;
  }

  .phone {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .phone-body {
    min-height: calc(100vh - 105px);
  }

  .phone-nav {
    position: fixed !important;
    inset: auto 0 0 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-radius: 0;
  }

  .phone-nav button {
    min-width: 0;
    width: 100%;
  }

  .paper {
    padding: 35px 25px;
  }

  .toast-region {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .toast {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
