/* Portal de Mis Viáticos. Hereda la estructura de lumbre.lat y la recolorea
   con el verde azulado y el ámbar de la app. */

:root {
  --navy: #0e5e56;
  --navy-hi: #177a6f;
  --navy-lo: #072e2a;
  --free: #0f8a4f;
  --free-hi: #0c7543;
  --ink: #17211f;
  --muted: #5f6d69;
  --line: #dde4e1;
  --bg: #f5f7f6;
  --card: #ffffff;
  --bg-alt: #eef3f1;
  --bg-alt2: #e8efec;
  --bg-alt3: #e1eae6;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(10, 40, 36, .08), 0 8px 24px rgba(10, 40, 36, .08);
}

html.tema-oscuro {
  --navy: #66b3a8;
  --navy-hi: #7fc7bc;
  --navy-lo: #0b1a18;
  --free: #35b57f;
  --free-hi: #2b9d6c;
  --ink: #e9efec;
  --muted: #a4b2ad;
  --line: #34423e;
  --bg: #161d1b;
  --card: #202824;
  --bg-alt: #252e2a;
  --bg-alt2: #29332f;
  --bg-alt3: #2d3833;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 22px rgba(0, 0, 0, .45);
}

.hero {
  background:
    radial-gradient(circle at 84% 10%, rgba(255, 182, 72, .16), transparent 40%),
    linear-gradient(120deg, var(--navy-lo), var(--navy) 62%, var(--navy-hi));
}

/* La rejilla del hero comparte el div con .envoltura; sin este padding el
   shorthand de la rejilla anula el margen lateral y el texto toca el borde. */
.hero__rejilla { padding: 42px 20px 46px; }

.btn--descarga { background: var(--free); color: #fff; }
.btn--descarga:hover { background: var(--free-hi); }

.icono-app {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  flex: none;
  box-shadow: var(--shadow);
}

.hero__nota {
  color: #d3e6e1;
  font-size: 13px;
  margin: 16px 0 0;
}

.hero__telefono { justify-self: center; }

.telefono {
  width: min(292px, 100%);
  margin: 0 auto;
  padding: 9px;
  border-radius: 40px;
  background: #0b1311;
  box-shadow: 0 22px 55px rgba(0, 0, 0, .38);
}

.telefono__leyenda {
  margin: 10px 0 0;
  color: #c6dbd5;
  font-size: 12px;
  text-align: center;
}

.pantallas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 8px 0 4px;
}

.pantalla { text-align: center; }
.pantalla .telefono { width: min(250px, 100%); }
.pantalla figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}
.pantalla figcaption strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.recuadro--privacidad {
  border-left: 4px solid var(--free);
  background: #f0f7f3;
}

html.tema-oscuro .recuadro--privacidad { background: #1b2a25; }

.lista--simple {
  margin: 0 0 14px;
  padding-left: 20px;
  color: #3d4b47;
}
.lista--simple li { margin-bottom: 6px; }

html.tema-oscuro .lista--simple,
html.tema-oscuro .producto__cuerpo p,
html.tema-oscuro dd { color: var(--muted); }
html.tema-oscuro .pasos span,
html.tema-oscuro .lista--rasgos span,
html.tema-oscuro .faq p { color: var(--muted); }
html.tema-oscuro .pasos li,
html.tema-oscuro .lista--rasgos li,
html.tema-oscuro .recuadro { border-color: var(--line); }
html.tema-oscuro .nota--alerta {
  background: #322a1e;
  border-color: #6b5326;
  color: #f0d5a8;
}
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); }
html.tema-oscuro .baner span { color: rgba(255, 255, 255, .85); }
html.tema-oscuro .icono-app { box-shadow: 0 8px 22px rgba(0, 0, 0, .5); }

/* La base fija el fondo de .marco en blanco; en tema oscuro el texto es
   claro y quedaría ilegible. */
.marco { background: var(--card); }

/* El hash y el identificador del paquete no tienen espacios: sin esto su
   ancho mínimo ensancha la columna del producto y desborda en móvil. */
.nota--hash code { overflow-wrap: anywhere; }
.compra__datos span:last-child { overflow-wrap: anywhere; }

/* ---------- Pasos y preguntas ---------- */
.pasos {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  counter-reset: paso;
  display: grid;
  gap: 10px;
}
.pasos li {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 16px 13px 52px;
}
.pasos li::before {
  counter-increment: paso;
  content: counter(paso);
  position: absolute;
  left: 15px;
  top: 14px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}
.pasos strong { display: block; margin-bottom: 3px; }
.pasos span { color: #3d4b47; font-size: 15px; }
html.tema-oscuro .pasos span { color: var(--muted); }

.faq {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 16px;
  margin: 0 0 10px;
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq summary:hover { color: var(--navy); }
.faq p { margin: 8px 0 0; color: #3d4b47; font-size: 14.5px; }
html.tema-oscuro .faq p { color: var(--muted); }
html.tema-oscuro .faq { background: var(--card); }

/* ---------- Recreación de pantallas de la app ---------- */
/* No son capturas: son una maqueta HTML con la misma paleta y jerarquía
   que la app, para que el visitante vea la forma de la interfaz. */
.pantalla-app {
  aspect-ratio: 9 / 18.2;
  background: #f7f8f7;
  color: #17211f;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 33px;
  font-size: 11px;
  line-height: 1.35;
  text-align: left;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.app__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 15px 8px;
}
.app__marca { font-weight: 800; font-size: 13px; color: #0e5e56; letter-spacing: -.2px; }
.app__avatar {
  width: 23px; height: 23px; border-radius: 50%;
  background: #0e5e56; color: #fff; display: grid; place-items: center;
  font-size: 9px; font-weight: 700;
}
.app__cuerpo {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 2px 12px 8px;
  overflow: hidden;
}
.app__hola { color: #5f6d69; font-size: 9.5px; }
.app__titulo { font-size: 16px; font-weight: 800; letter-spacing: -.4px; margin: -2px 0 2px; }
.app__seccion {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: 10px; font-weight: 700; color: #17211f; margin-top: 1px;
}
.app__seccion small { color: #0e5e56; font-weight: 600; font-size: 9px; }
.app__tarjeta {
  background: #fff;
  border: 1px solid #e3e7e5;
  border-radius: 12px;
  padding: 9px 10px;
}
.app__fila { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.app__etiqueta { font-size: 9px; color: #5f6d69; }
.app__valor { font-weight: 700; font-size: 11.5px; }
.app__valor--chico { font-size: 10px; }
.app__monto { font-weight: 800; font-size: 13px; letter-spacing: -.3px; }
.app__chip {
  display: inline-flex; align-items: center; gap: 4px;
  border-radius: 999px; padding: 3px 8px;
  background: #e7f1ee; color: #0e5e56; font-size: 8.5px; font-weight: 700;
}
.app__chip--ambar { background: #fff2dc; color: #8a5a12; }
.app__chip--rojo { background: #fdecec; color: #a33a3a; }
.app__barra {
  height: 5px; border-radius: 999px; background: #e8efec; overflow: hidden; margin: 6px 0 4px;
}
.app__barra span { display: block; height: 100%; border-radius: 999px; background: #0e5e56; }
.app__barra span.ambar { background: #e39a2d; }
.app__lineas { display: grid; gap: 4px; margin-top: 4px; }
.app__linea {
  display: flex; justify-content: space-between; gap: 8px;
  font-size: 9px; color: #5f6d69;
}
.app__linea b { color: #17211f; font-weight: 700; }
.app__boton {
  background: #0e5e56; color: #fff; text-align: center;
  border-radius: 10px; padding: 8px; font-weight: 700; font-size: 10px;
}
.app__boton--fant {
  background: #fff; color: #0e5e56; border: 1px solid #0e5e56;
}
.app__acciones { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.app__tabs {
  display: flex; justify-content: space-around; align-items: center;
  border-top: 1px solid #e3e7e5; padding: 6px 4px 9px; background: #fff;
  font-size: 7.5px; color: #7b8783; text-align: center;
}
.app__tabs span { display: grid; gap: 2px; justify-items: center; }
.app__tabs i {
  width: 15px; height: 15px; border-radius: 5px; background: #cfd8d4; display: block;
  font-style: normal;
}
.app__tabs .activo { color: #0e5e56; font-weight: 700; }
.app__tabs .activo i { background: #0e5e56; }
.app__campo {
  background: #f1f3f2; border-radius: 10px; padding: 9px 10px;
}
.app__campo-caption { font-size: 8.5px; color: #5f6d69; }
.app__campo-valor { font-size: 19px; font-weight: 800; letter-spacing: -.6px; }
.app__mini { display: flex; gap: 6px; }
.app__foto {
  flex: 1; aspect-ratio: 4 / 3; border-radius: 8px;
  background: linear-gradient(135deg, #cfe0da, #9fc3b8);
  position: relative; overflow: hidden;
}
.app__foto::after {
  content: ""; position: absolute; inset: 28% 20% 16%;
  border-radius: 3px; background: #f6f1e4; box-shadow: 0 1px 0 rgba(0,0,0,.12);
}
.app__foto--dos { background: linear-gradient(135deg, #e6dcc4, #c4b28a); }
.app__seg {
  display: flex; border: 1px solid #d5ddda; border-radius: 8px; overflow: hidden;
}
.app__seg span { flex: 1; text-align: center; padding: 5px 2px; font-size: 8px; color: #5f6d69; }
.app__seg .activo { background: #0e5e56; color: #fff; font-weight: 700; }
.app__aviso {
  display: flex; gap: 6px; align-items: flex-start;
  background: #fff7e8; border: 1px solid #f0dcb4; color: #7a5517;
  border-radius: 9px; padding: 6px 8px; font-size: 8.5px;
}
.app__total {
  font-size: 22px; font-weight: 800; letter-spacing: -.7px; color: #0e5e56;
}
.app__nota { font-size: 8px; color: #7b8783; }

@media (max-width: 940px) {
  .hero__telefono { margin-top: 8px; }
  .pantallas { grid-template-columns: 1fr; }
  .pantalla .telefono { width: min(280px, 100%); }
  .producto { grid-template-columns: minmax(0, 1fr); }
  .producto__cuerpo, .compra { min-width: 0; }
}

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