/* Portal de Mi Tesorería, sobre el estilo de lumbre.lat. */

.hero--app {
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(200, 155, 60, .18), transparent 60%),
    linear-gradient(120deg, var(--navy-lo), var(--navy) 58%, var(--navy-hi));
}

.hero--app h1 { max-width: 18ch; }

.sello {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  color: #d8eadf;
  font-size: 12.5px;
  letter-spacing: .3px;
}

.hero__nota {
  margin: 14px 0 0;
  font-size: 13px;
  color: #a9c9b6;
}

.hero__tarjeta--app {
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
}

.app-icono {
  width: 104px;
  height: 104px;
  border-radius: 24px;
  box-shadow: 0 10px 26px rgba(6, 24, 16, .24);
}

.hero__tarjeta--app h2 { font-size: 22px; }

.hero__tarjeta--app .hero__meta span {
  background: var(--bg-alt3);
  border-radius: 999px;
  padding: 2px 9px;
}

/* ---------- Seis preguntas ---------- */
.rejilla--seis { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.ficha--pregunta { padding: 17px; }
.ficha--pregunta h3 {
  font-size: 16px;
  margin: 4px 0 4px;
  line-height: 1.3;
}
.ficha--pregunta p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  flex: 1;
}
.ficha--pregunta .icono { width: 42px; height: 42px; border-radius: 11px; }
.ficha--pregunta .icono svg { width: 24px; height: 24px; }

/* ---------- Honestidad ---------- */
.honesto {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: start;
}
.honesto__lista {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.honesto__lista li {
  position: relative;
  padding: 11px 14px 11px 42px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  color: #37473c;
}
html.tema-oscuro .honesto__lista li { color: #c6d6cb; }
.honesto__lista li::before {
  content: "×";
  position: absolute;
  left: 14px;
  top: 12px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e8e4d8;
  color: #5b6b60;
  font-size: 14px;
  font-weight: 800;
}
html.tema-oscuro .honesto__lista li::before { background: #2f4237; color: #c6d6cb; }

/* ---------- Vistas ilustrativas ---------- */
.vistas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.vistas figure {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 14px 4px;
}

.vistas figcaption {
  padding: 12px 4px 10px;
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
}

.movil {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  aspect-ratio: 9 / 18.6;
  overflow: hidden;
  background: #f6f7f5;
  color: #16211b;
  border: 7px solid #0d1b14;
  border-radius: 30px;
  font-size: 10px;
  line-height: 1.25;
  box-shadow: 0 18px 40px rgba(10, 25, 18, .18);
}

.movil__estado {
  flex: none;
  display: flex;
  justify-content: space-between;
  padding: 5px 12px 2px;
  font-size: 8px;
  font-weight: 700;
  color: #5d6f63;
}

.movil__cuerpo {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 2px 10px 6px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.m-cab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 800;
  font-size: 12px;
  padding: 2px 2px 0;
}
.m-cab small { font-weight: 600; font-size: 8.5px; color: #5d6f63; text-align: right; }

.m-saludo { padding: 0 2px; }
.m-saludo b { display: block; font-size: 12px; font-weight: 800; }
.m-saludo small { display: block; font-size: 8px; color: #5d6f63; }

.m-hero {
  background: linear-gradient(150deg, #14532d, #1e7a46);
  color: #fff;
  border-radius: 14px;
  padding: 9px 10px;
  display: grid;
  gap: 3px;
}
.m-hero small { font-size: 7.4px; opacity: .85; font-weight: 600; }
.m-hero b { font-size: 16px; font-weight: 800; letter-spacing: -.3px; }
.m-hero__meta {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-top: 3px;
  padding-top: 5px;
  border-top: 1px solid rgba(255,255,255,.2);
  font-size: 7px;
}
.m-hero__meta b { display: block; font-size: 9px; }

.m-titulo {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 1px 2px -2px;
  font-size: 10px;
  font-weight: 800;
}
.m-titulo span { font-size: 8px; font-weight: 700; color: #14532d; }

.m-acciones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}
.m-accion {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  border: 1px solid #dde4dc;
  border-radius: 10px;
  padding: 6px 7px;
  font-size: 7.6px;
  font-weight: 700;
}
.m-accion i {
  flex: none;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 6px;
  background: #d9eddd;
}
.m-accion svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: #14532d;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.m-tarjeta {
  background: #fff;
  border: 1px solid #dde4dc;
  border-radius: 11px;
  padding: 7px 8px;
  display: grid;
  gap: 4px;
}
.m-tarjeta__cab {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  font-weight: 800;
}
.m-tarjeta__cab em {
  font-style: normal;
  font-size: 6.8px;
  font-weight: 700;
  background: #eaf0e4;
  color: #38543f;
  border-radius: 999px;
  padding: 2px 5px;
  white-space: nowrap;
}
.m-item {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 8px;
}
.m-item span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-item b { font-weight: 700; color: #14532d; white-space: nowrap; }
.m-item b.pend { color: #9a6212; }
.m-item b.rojo { color: #b03838; }
.m-pie { font-size: 7.5px; color: #5d6f63; margin: 0; padding: 0 1px; }

.m-chips { display: flex; gap: 4px; flex-wrap: wrap; }
.m-chip {
  font-size: 7.5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 7px;
  background: #e4f0e7;
  color: #2e7d5b;
}
.m-chip--azul { background: #e3edf6; color: #355c8a; }
.m-chip--ambar { background: #f7ebd7; color: #8a5a12; }

.m-cuenta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: #fff;
  border: 1px solid #dde4dc;
  border-radius: 10px;
  padding: 6px 8px;
  font-size: 8.4px;
}
.m-cuenta div { display: grid; }
.m-cuenta small { font-size: 7px; color: #5d6f63; }
.m-cuenta b { font-size: 9px; }

.m-venc {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #dde4dc;
  border-radius: 10px;
  padding: 5px 7px;
}
.m-venc__dia {
  flex: none;
  width: 22px;
  text-align: center;
  font-size: 7px;
  font-weight: 800;
  color: #b03838;
}
.m-venc div { flex: 1; min-width: 0; }
.m-venc b { display: block; font-size: 8.4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-venc small { display: block; font-size: 7px; color: #5d6f63; }
.m-venc em { font-style: normal; font-size: 8px; font-weight: 800; }

.m-aviso {
  display: flex;
  gap: 6px;
  align-items: center;
  background: #fbf3e2;
  border: 1px solid #ead8ae;
  border-radius: 10px;
  padding: 5px 7px;
  font-size: 7.2px;
  color: #6d5314;
}
.m-aviso b { color: #9a6f1f; }

.m-tabs { display: flex; gap: 8px; font-size: 8px; font-weight: 700; color: #5d6f63; padding: 0 2px; }
.m-tabs span.act { color: #14532d; border-bottom: 2px solid #14532d; padding-bottom: 2px; }

.m-fila {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  background: #fff;
  border: 1px solid #dde4dc;
  border-radius: 10px;
  padding: 6px 7px;
}
.m-fila__icono {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: #e4f0e7;
  border: 1.2px solid #2e7d5b;
}
.m-fila div { flex: 1; min-width: 0; display: grid; gap: 1px; }
.m-fila b { font-size: 8.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-fila small { font-size: 7px; color: #5d6f63; }
.m-fila em { font-style: normal; font-size: 8.2px; font-weight: 800; white-space: nowrap; }
.m-fila em.rojo { color: #b03838; }

.m-concil {
  background: #fff;
  border: 1px solid #dde4dc;
  border-radius: 10px;
  padding: 7px 8px;
  display: grid;
  gap: 3px;
  font-size: 8px;
}
.m-concil div { display: flex; justify-content: space-between; }
.m-concil div.ok b { color: #2e7d5b; }
.m-concil div.total {
  border-top: 1px solid #dde4dc;
  padding-top: 4px;
  font-size: 8.6px;
  font-weight: 800;
}

.m-nav {
  flex: none;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #fff;
  border-top: 1px solid #dde4dc;
  padding: 5px 4px 7px;
  font-size: 6.8px;
  font-weight: 600;
  color: #5d6f63;
  text-align: center;
}
.m-nav span { display: grid; justify-items: center; gap: 2px; }
.m-nav svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.m-nav span.act { color: #14532d; font-weight: 800; }
.m-nav span.act svg { stroke-width: 2.4; }

.vistas__nota { margin-top: 14px; }

/* ---------- Pasos ---------- */
.pasos {
  list-style: none;
  counter-reset: paso;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.pasos li {
  counter-increment: paso;
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 18px 64px;
  box-shadow: var(--shadow);
}

.pasos li::before {
  content: counter(paso);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}

.pasos strong { display: block; margin-bottom: 4px; }
.pasos span { color: var(--muted); font-size: 14px; }

/* ---------- Privacidad ---------- */
.privacidad {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr);
  gap: 24px;
  align-items: start;
}
.privacidad p { margin-top: 0; }

.lista-check {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 9px;
}
.lista-check li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
}
.lista-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #0c7543;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.recuadro { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.recuadro--aviso { border-left: 4px solid #d9862f; background: #fffaf3; }
html.tema-oscuro .recuadro--aviso { background: var(--bg-alt2); }
.recuadro--aviso h3 { margin-top: 0; }

/* ---------- Descarga ---------- */
.descarga {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  background: linear-gradient(120deg, var(--navy-lo), var(--navy));
  color: #fff;
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow);
}
.descarga__icono { width: 76px; height: 76px; border-radius: 17px; flex: none; }
.descarga__texto { flex: 1 1 320px; }
.descarga h2 { margin: 0 0 6px; font-size: 24px; }
.descarga p { margin: 0 0 6px; color: #d8eadf; font-size: 14.5px; }
.descarga .nota { color: #a9c9b6; }
.descarga .nota--hash code {
  overflow-wrap: anywhere;
  word-break: break-all;
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .18);
  color: #eaf3ec;
}

/* Tema oscuro: franjas verdes fijas para conservar contraste */
html.tema-oscuro .hero,
html.tema-oscuro .hero--app {
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(200, 155, 60, .14), transparent 60%),
    linear-gradient(120deg, #0a1f16, #14532d 58%, #1e7a46);
}
html.tema-oscuro .hero p { color: #d8eadf; }
html.tema-oscuro .hero__nota { color: #a9c9b6; }
html.tema-oscuro .descarga { background: linear-gradient(120deg, #0a1f16, #14532d); }
html.tema-oscuro .baner { background: #0a1f16; color: #cfe3d6; }
html.tema-oscuro .baner span { color: #a9c9b6; }
html.tema-oscuro .pasos li::before { background: #14532d; }
html.tema-oscuro .cabera,
html.tema-oscuro .pie { background: #0a1f16; }
html.tema-oscuro .nav a:hover,
html.tema-oscuro .nav button:hover,
html.tema-oscuro .nav__tema:hover { background: #1e7a46; border-color: #1e7a46; }
html.tema-oscuro .btn--mar { background: #14532d; }
html.tema-oscuro .btn--mar:hover { background: #1e7a46; }
html.tema-oscuro .marca small { color: #a9c9b6; }

@media (max-width: 940px) {
  .privacidad { grid-template-columns: 1fr; }
  .honesto { grid-template-columns: 1fr; }
  .hero__tarjeta--app { grid-template-columns: 84px minmax(0, 1fr); }
  .app-icono { width: 84px; height: 84px; border-radius: 19px; }
  .rejilla--seis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .rejilla--seis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .descarga { padding: 22px; }
  .descarga__icono { width: 62px; height: 62px; }
  .movil { max-width: 262px; }
  .baner__lista { gap: 4px 16px; }
  .baner__lista span:first-child { display: none; }
}

@media (max-width: 400px) {
  .rejilla--seis { grid-template-columns: 1fr; }
}
