/* Portal de Mis Servicios, sobre la estructura y el estilo de lumbre.lat.
   El acento verde azulado es el de la app; la llama ámbar es la firma de Lumbre. */

:root {
  --navy: #00696b;
  --navy-hi: #0a8c8e;
  --navy-lo: #003b3d;
  --free: #0c7543;
  --ink: #172a2b;
  --muted: #5a6b6c;
  --line: #dde7e6;
  --bg: #f5f8f7;
  --card: #ffffff;
  --bg-alt: #f0f5f4;
  --bg-alt2: #eaf1f0;
  --bg-alt3: #e4edec;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(10, 43, 44, .08), 0 8px 24px rgba(10, 43, 44, .08);
}

html.tema-oscuro {
  --navy: #4db3b6;
  --navy-hi: #63c4c6;
  --navy-lo: #082224;
  --free: #3fa374;
  --ink: #e6efee;
  --muted: #a3b6b5;
  --line: #334645;
  --bg: #121a1b;
  --card: #1b2627;
  --bg-alt: #202b2c;
  --bg-alt2: #243031;
  --bg-alt3: #283536;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 22px rgba(0, 0, 0, .45);
}

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

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

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

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

.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 8px 24px rgba(0, 20, 21, .3);
}

.hero__tarjeta--app h2 { font-size: 22px; }
.hero__tarjeta--app p { color: #3f5151; }
html.tema-oscuro .hero__tarjeta--app p { color: var(--muted); }

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

.marca__app {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex: none;
  display: block;
}

.rejilla--cinco { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.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; }

.icono--ruta { background: linear-gradient(150deg, #0a8c8e, #00696b); }
.icono--tareas { background: linear-gradient(150deg, #2f8f5c, #1b6540); }
.icono--material { background: linear-gradient(150deg, #c07a2b, #8a4f13); }
.icono--pendientes { background: linear-gradient(150deg, #b4552d, #7d321a); }
.icono--saldo { background: linear-gradient(150deg, #6b5bb5, #433880); }

.aviso-estado {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid #b45309;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  margin: 26px 0 0;
}

.aviso-estado__icono {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #fdf1dc;
  color: #8a4f13;
}
html.tema-oscuro .aviso-estado__icono { background: #3a3020; color: #f0c886; }
.aviso-estado__icono svg { width: 22px; height: 22px; }
.aviso-estado h2 { margin: 0 0 4px; font-size: 17px; }
.aviso-estado p { margin: 0; font-size: 14px; color: var(--muted); }
.aviso-estado a { font-weight: 600; }

/* Vistas ilustrativas: recreación HTML/CSS, no capturas. */
.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;
}
.vistas figcaption strong { display: block; color: var(--ink); font-size: 14.5px; }

.movil {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 278px;
  margin: 0 auto;
  aspect-ratio: 9 / 18.8;
  overflow: hidden;
  background: #f7faf9;
  color: #16302f;
  border: 7px solid #0b2b2c;
  border-radius: 30px;
  font-size: 10px;
  line-height: 1.25;
  box-shadow: 0 18px 40px rgba(10, 43, 44, .18);
}

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

.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;
  font-weight: 800;
  font-size: 12px;
  padding: 2px 2px 0;
}
.m-cab small { font-weight: 600; font-size: 9px; color: #657a79; }

.m-fechas {
  display: flex;
  gap: 4px;
  font-size: 7.5px;
  font-weight: 700;
  color: #657a79;
}
.m-fechas span {
  flex: 1;
  text-align: center;
  padding: 4px 0;
  border-radius: 7px;
  background: #fff;
  border: 1px solid #dce8e7;
}
.m-fechas span.act { background: #00696b; border-color: #00696b; color: #fff; }

.m-dia {
  background: #00696b;
  color: #fff;
  border-radius: 14px;
  padding: 8px 9px 5px;
}
.m-dia__cab {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}
.m-dia__cab b { font-size: 11px; font-weight: 800; }
.m-dia__cab em {
  font-style: normal;
  font-size: 7.5px;
  font-weight: 700;
  background: rgba(255, 255, 255, .2);
  border-radius: 999px;
  padding: 2px 6px;
  white-space: nowrap;
}
.m-fila {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3.5px 0;
}
.m-fila + .m-fila { border-top: 1px solid rgba(255, 255, 255, .14); }
.m-fila svg { width: 11px; height: 11px; flex: none; opacity: .9; }
.m-fila div { flex: 1; min-width: 0; }
.m-fila small { display: block; font-size: 7px; opacity: .82; font-weight: 600; }
.m-fila b {
  display: block;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m-fila i { font-style: normal; opacity: .7; font-size: 10px; }

.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: #00696b; }

.m-tarjeta {
  background: #fff;
  border: 1px solid #dce8e7;
  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: 7px;
  font-weight: 700;
  background: #e4efee;
  color: #3f5a59;
  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: #1b6540; white-space: nowrap; }
.m-item b.deuda { color: #8a2f2f; }
.m-pie { font-size: 7.5px; color: #657a79; margin: 0; padding: 0 1px; }

.m-aviso {
  background: #fdf1dc;
  border: 1px solid #f2ddb8;
  border-radius: 9px;
  padding: 5px 7px;
  font-size: 7.5px;
  color: #7a4a12;
  font-weight: 600;
}

.m-pedido {
  background: #fff;
  border: 1px solid #dce8e7;
  border-radius: 11px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.m-pedido__folio {
  width: 26px;
  height: 26px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e4efee;
  color: #005456;
  font-size: 7px;
  font-weight: 800;
}
.m-pedido div { flex: 1; min-width: 0; }
.m-pedido b { display: block; font-size: 8.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-pedido small { display: block; font-size: 7px; color: #657a79; }
.m-pedido__total { font-size: 9px; font-weight: 800; color: #16302f; white-space: nowrap; }
.m-pedido__total.deuda { color: #8a2f2f; }

.m-chip {
  align-self: flex-start;
  font-size: 7.5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 7px;
  background: #e4f0e7;
  color: #356047;
  white-space: nowrap;
}
.m-chip--azul { background: #e3edf6; color: #355c8a; }
.m-chip--ambar { background: #f7ebd7; color: #8a5a12; }

.m-nav {
  flex: none;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #fff;
  border-top: 1px solid #dce8e7;
  padding: 5px 4px 7px;
  font-size: 6.8px;
  font-weight: 600;
  color: #657a79;
  text-align: center;
}
.m-nav span { display: grid; gap: 2px; }
.m-nav span::before {
  content: "";
  width: 12px;
  height: 12px;
  margin: 0 auto;
  border-radius: 4px;
  border: 1.4px solid currentColor;
}
.m-nav span.act { color: #00696b; font-weight: 800; }
.m-nav span.act::before { background: #d9eceb; border-color: #00696b; }

.m-fab {
  position: absolute;
  right: 10px;
  bottom: 44px;
  background: #00696b;
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  border-radius: 999px;
  padding: 7px 10px;
  box-shadow: 0 6px 14px rgba(0, 80, 82, .3);
}

.m-resumen {
  background: #fff;
  border: 1px solid #dce8e7;
  border-radius: 11px;
  padding: 7px 8px;
  display: grid;
  gap: 4px;
  font-size: 8px;
}
.m-resumen div { display: flex; justify-content: space-between; }
.m-resumen div.total {
  border-top: 1px solid #dce8e7;
  padding-top: 4px;
  font-size: 9px;
  font-weight: 800;
}
.m-resumen div.total b { color: #8a2f2f; }

.m-botones { display: flex; gap: 5px; margin-top: auto; }
.m-botones span {
  flex: 1;
  text-align: center;
  font-size: 8px;
  font-weight: 700;
  border-radius: 8px;
  padding: 6px 2px;
  border: 1px solid #00696b;
  color: #00696b;
}
.m-botones span.solido { background: #00696b; color: #fff; }

.m-agenda {
  background: #fff;
  border: 1px solid #dce8e7;
  border-radius: 11px;
  padding: 6px 7px;
  display: grid;
  gap: 5px;
}
.m-agenda__dia {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  font-size: 7.5px;
}
.m-agenda__hora { flex: none; width: 27px; font-weight: 800; color: #00696b; }
.m-agenda__bloque { flex: 1; min-width: 0; border-left: 2px solid #0a8c8e; padding-left: 6px; }
.m-agenda__bloque b { display: block; font-size: 8px; }
.m-agenda__bloque small { display: block; font-size: 7px; color: #657a79; }
.m-agenda__bloque.sin { border-left-color: #b45309; }
.m-agenda__bloque.sin b { color: #8a4f13; }

.instalar .nota--alerta { margin-top: 10px; }

/* Preguntas frecuentes */
.faq {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 16px;
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 26px 14px 0;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 11px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-alt3);
  color: var(--navy);
  font-size: 16px;
  font-weight: 700;
}
.faq[open] summary::after { content: "−"; }
.faq p { margin: 0 0 14px; color: var(--muted); }

.recuadro--privacidad {
  border-left: 4px solid var(--free);
  background: #f2f8f4;
}
html.tema-oscuro .recuadro--privacidad { background: #1d2b23; }
html.tema-oscuro .recuadro--aviso { background: var(--bg-alt2); border-left-color: #d9743a; }
html.tema-oscuro .recuadro { border-color: var(--line); }
html.tema-oscuro .marco { background: var(--card); }

html.tema-oscuro .ficha__resumen,
html.tema-oscuro .producto__cuerpo p,
html.tema-oscuro .faq p,
html.tema-oscuro dd,
html.tema-oscuro .lista--rasgos span { color: var(--muted); }
html.tema-oscuro .lista--rasgos li { border-color: var(--line); }
html.tema-oscuro .nota--alerta { background: #3a3020; border-color: #6b5326; color: #f0d5a8; }
html.tema-oscuro .nota--ok { background: #1d2b23; border-color: #335745; color: #bfe4cc; }
html.tema-oscuro .nota--hash code { background: var(--bg-alt3); color: var(--ink); }
html.tema-oscuro .miga a { color: var(--muted); }
html.tema-oscuro .btn--fant { color: var(--ink); }
html.tema-oscuro .btn--fant:hover { color: #fff; background: var(--navy); border-color: var(--navy); }

.nota--hash code { overflow-wrap: anywhere; word-break: break-all; }
.compra__datos span:last-child { overflow-wrap: anywhere; }

.btn--deshabilitado {
  opacity: .62;
  cursor: not-allowed;
  filter: saturate(.55);
}

.descarga {
  background:
    radial-gradient(600px 260px at 88% -20%, rgba(255, 182, 72, .18), transparent 65%),
    linear-gradient(120deg, var(--navy-lo), var(--navy));
}

html.tema-oscuro .hero--app,
html.tema-oscuro .descarga {
  background:
    radial-gradient(600px 260px at 88% -20%, rgba(255, 182, 72, .12), transparent 65%),
    linear-gradient(120deg, #082224, #004c4e 65%, #00696b);
}
html.tema-oscuro .hero p { color: #d6e6e5; }
html.tema-oscuro .hero__nota { color: #b6d7d5; }
html.tema-oscuro .sello { color: #d9eeed; }
html.tema-oscuro .baner { background: #082224; color: #cfe4e3; }
html.tema-oscuro .baner span { color: #94b6b5; }
html.tema-oscuro .cabera,
html.tema-oscuro .pie { background: #082224; }
html.tema-oscuro .nav a:hover,
html.tema-oscuro .nav button:hover,
html.tema-oscuro .nav__tema:hover { background: #0a8c8e; border-color: #0a8c8e; }
html.tema-oscuro .recuadro--privacidad { background: #1d2b23; }
html.tema-oscuro .aviso-estado { border-color: var(--line); border-left-color: #b45309; }

@media (max-width: 940px) {
  .hero__tarjeta--app { grid-template-columns: 84px minmax(0, 1fr); }
  .app-icono { width: 84px; height: 84px; border-radius: 20px; }
  .pantallas { grid-template-columns: 1fr; }
  .producto { grid-template-columns: minmax(0, 1fr); }
  .producto__cuerpo, .compra { min-width: 0; }
  .aviso-estado { flex-direction: row; }
}

@media (max-width: 640px) {
  .compra__botones .btn { width: 100%; }
  .producto__cab { align-items: flex-start; }
  .producto__cab h1 { font-size: 26px; }
  .hero__telefono { margin-top: 8px; }
  .pantalla .telefono { width: 100%; }
}
