/* Wallet PCJ: Controla tu Dinero — hoja de estilos del sitio público.
   Consume las variables del panel de diseño: apariencia, redondez, espaciado, tipografía y movimiento.
   Los colores de marca salen del propio tema de la aplicación:
   --site-accent = azul de la barra de estado (app/src/main/res/values/styles.xml:6)
   --site-fg y --site-muted = las dos tintas con las que la app pisa sus títulos y su cuerpo. */

:root {
  --site-bg: #f3f6fd;
  --site-fg: #071f55;
  --site-accent: #0828b8;
  --site-on-accent: #ffffff;
  --site-surface: rgba(255, 255, 255, 0.76);
  --site-muted: #496787;
  --site-border: rgba(7, 31, 85, 0.12);
  --site-font: "Segoe UI", Roboto, system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --site-radius: 24px;
  --site-space: 1;
  --site-type: 1;
  --site-motion: 1;

  --azul: #147cf4;
  --verde: #3fae5a;
  --tinta-suave: var(--site-muted);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--site-fg);
  font-family: var(--site-font);
  line-height: 1.62;
  background-color: var(--site-bg);
  background-image:
    radial-gradient(46rem 32rem at 8% -10%, rgba(20, 124, 244, 0.34), transparent 62%),
    radial-gradient(42rem 30rem at 96% 2%, rgba(63, 174, 90, 0.24), transparent 64%),
    radial-gradient(40rem 30rem at 80% 44%, rgba(8, 40, 184, 0.16), transparent 62%),
    radial-gradient(44rem 32rem at 20% 96%, rgba(20, 124, 244, 0.18), transparent 64%);
  background-attachment: fixed;
}

.columna {
  max-width: 720px;
  margin: 0 auto;
  padding: calc(40px * var(--site-space, 1)) calc(22px * var(--site-space, 1)) calc(48px * var(--site-space, 1));
}

/* Marca */
.marca {
  display: flex;
  align-items: center;
  gap: calc(16px * var(--site-space, 1));
  margin-bottom: calc(30px * var(--site-space, 1));
}

.marca img {
  width: 72px;
  height: 72px;
  border-radius: calc(var(--site-radius) * 0.75);
  box-shadow: 0 10px 24px rgba(7, 31, 85, 0.20);
}

.marca-texto { display: flex; flex-direction: column; }

.marca-nombre {
  font-size: calc(24px * var(--site-type, 1));
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1.2;
}

.marca-desarrollador {
  font-size: calc(14px * var(--site-type, 1));
  color: var(--tinta-suave);
}

/* Portada */
h1 {
  font-size: calc(44px * var(--site-type, 1));
  line-height: 1.12;
  font-weight: 750;
  letter-spacing: -0.6px;
  margin: 0 0 calc(18px * var(--site-space, 1));
}

h1 .acento { color: var(--site-accent); }

.entrada {
  font-size: calc(19px * var(--site-type, 1));
  color: var(--tinta-suave);
  margin: 0 0 calc(26px * var(--site-space, 1));
}

/* Botones */
.acciones { display: flex; flex-wrap: wrap; align-items: center; gap: calc(14px * var(--site-space, 1)); }

.boton {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: calc(15px * var(--site-space, 1)) calc(26px * var(--site-space, 1));
  border-radius: calc(var(--site-radius) * 0.6);
  background-image: linear-gradient(135deg, var(--azul), var(--site-accent));
  color: var(--site-on-accent);
  font-size: calc(17px * var(--site-type, 1));
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(8, 40, 184, 0.28);
  transition: transform calc(180ms * var(--site-motion, 1)) ease,
              box-shadow calc(180ms * var(--site-motion, 1)) ease;
}

.boton:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(8, 40, 184, 0.34); }
.boton:active { transform: translateY(0); }
.boton:focus-visible { outline: 3px solid rgba(20, 124, 244, 0.65); outline-offset: 3px; }

.nota {
  font-size: calc(15px * var(--site-type, 1));
  color: var(--tinta-suave);
  margin: calc(14px * var(--site-space, 1)) 0 0;
}

/* Tarjetas */
.tarjeta {
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  padding: calc(26px * var(--site-space, 1)) calc(26px * var(--site-space, 1));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(7, 31, 85, 0.08);
  margin-top: calc(22px * var(--site-space, 1));
  transition: box-shadow calc(200ms * var(--site-motion, 1)) ease,
              transform calc(200ms * var(--site-motion, 1)) ease;
}

.tarjeta:hover { box-shadow: 0 14px 34px rgba(7, 31, 85, 0.13); }

.seccion { margin-top: calc(44px * var(--site-space, 1)); }

h2 {
  font-size: calc(27px * var(--site-type, 1));
  font-weight: 700;
  letter-spacing: -0.2px;
  margin: 0 0 calc(6px * var(--site-space, 1));
}

.seccion .subrayado {
  font-size: calc(16px * var(--site-type, 1));
  color: var(--tinta-suave);
  margin: 0 0 calc(18px * var(--site-space, 1));
}

/* Lista de funciones */
.lista { list-style: none; margin: 0; padding: 0; }

.lista li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: calc(14px * var(--site-space, 1));
  align-items: start;
  padding: calc(16px * var(--site-space, 1)) 0;
  border-top: 1px solid var(--site-border);
}

.lista li:first-child { border-top: 0; padding-top: 0; }
.lista li:last-child { padding-bottom: 0; }

.lista .dibujo {
  width: 44px;
  height: 44px;
  border-radius: calc(var(--site-radius) * 0.58);
  display: grid;
  place-items: center;
  color: var(--site-accent);
  background-image: linear-gradient(140deg, rgba(20, 124, 244, 0.26), rgba(63, 174, 90, 0.20));
  border: 1px solid rgba(8, 40, 184, 0.20);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.lista .dibujo svg { width: 24px; height: 24px; display: block; }

.lista h3 {
  font-size: calc(18px * var(--site-type, 1));
  font-weight: 680;
  margin: 0 0 3px;
}

.lista p { margin: 0; font-size: calc(16px * var(--site-type, 1)); color: var(--tinta-suave); }

/* Destacado */
.destacado {
  border-left: 5px solid var(--azul);
  background: var(--site-surface);
}

.destacado p { margin: 0 0 calc(12px * var(--site-space, 1)); font-size: calc(16px * var(--site-type, 1)); }
.destacado p:last-child { margin-bottom: 0; }

/* Permisos */
.permisos { margin: 0; }

.permisos .par {
  padding: calc(14px * var(--site-space, 1)) 0;
  border-top: 1px solid var(--site-border);
}

.permisos .par:first-child { border-top: 0; padding-top: 0; }

.permisos dt { font-size: calc(17px * var(--site-type, 1)); font-weight: 660; }

.permisos dd {
  margin: 4px 0 0;
  font-size: calc(15.5px * var(--site-type, 1));
  color: var(--tinta-suave);
}

.alinea {
  margin: calc(18px * var(--site-space, 1)) 0 0;
  font-size: calc(15px * var(--site-type, 1));
  color: var(--tinta-suave);
}

/* Documentos legales */
.documento h2 {
  font-size: calc(21px * var(--site-type, 1));
  font-weight: 700;
  letter-spacing: -0.2px;
  margin: calc(30px * var(--site-space, 1)) 0 calc(8px * var(--site-space, 1));
}

.documento h2:first-of-type { margin-top: 0; }

.documento h3 {
  font-size: calc(18px * var(--site-type, 1));
  font-weight: 680;
  margin: calc(24px * var(--site-space, 1)) 0 calc(6px * var(--site-space, 1));
}

.documento p { margin: 0 0 calc(12px * var(--site-space, 1)); font-size: calc(16.5px * var(--site-type, 1)); }

.documento ul {
  margin: 0 0 calc(14px * var(--site-space, 1));
  padding-left: calc(20px * var(--site-space, 1));
}

.documento li { margin-bottom: calc(9px * var(--site-space, 1)); font-size: calc(16px * var(--site-type, 1)); }

.documento code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9em;
  background: rgba(8, 40, 184, 0.08);
  border: 1px solid var(--site-border);
  border-radius: calc(var(--site-radius) * 0.25);
  padding: 1px 6px;
  /* Las ligas de Play y de Google son un solo bloque sin espacios: a 400 px hay que romperlo. */
  overflow-wrap: anywhere;
  word-break: break-all;
}

.documento a { overflow-wrap: anywhere; }

/* Caja de contacto de los documentos legales: la misma que la app pinta en su hoja de Ajustes */
.documento .legal-contact {
  margin: calc(14px * var(--site-space, 1)) 0 calc(12px * var(--site-space, 1));
  padding: calc(16px * var(--site-space, 1)) calc(18px * var(--site-space, 1));
  border: 1px solid var(--site-border);
  border-radius: calc(var(--site-radius) * 0.66);
  background: #ffffff;
  box-shadow: 0 7px 20px rgba(7, 31, 85, 0.08);
  font-size: calc(16px * var(--site-type, 1));
}

.vigencia {
  display: inline-block;
  font-size: calc(14px * var(--site-type, 1));
  font-weight: 600;
  color: var(--site-accent);
  background: rgba(20, 124, 244, 0.12);
  border: 1px solid rgba(8, 40, 184, 0.22);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: calc(18px * var(--site-space, 1));
}

/* Pie */
.pie {
  margin-top: calc(48px * var(--site-space, 1));
  padding-top: calc(22px * var(--site-space, 1));
  border-top: 1px solid var(--site-border);
  font-size: calc(15px * var(--site-type, 1));
  color: var(--tinta-suave);
}

.pie .enlaces { display: flex; flex-wrap: wrap; gap: calc(8px * var(--site-space, 1)) calc(20px * var(--site-space, 1)); margin-bottom: 10px; }

a { color: var(--site-accent); }
a:hover { color: var(--azul); }

/* Enlace de regreso */
.regreso {
  display: inline-block;
  font-size: calc(15px * var(--site-type, 1));
  font-weight: 600;
  text-decoration: none;
  margin-bottom: calc(18px * var(--site-space, 1));
}

/* Pantallas pequeñas */
@media (max-width: 560px) {
  h1 { font-size: calc(36px * var(--site-type, 1)); }
  .marca img { width: 60px; height: 60px; }
  .tarjeta { padding: calc(22px * var(--site-space, 1)) calc(18px * var(--site-space, 1)); }
  .boton { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .boton:hover { transform: none; }
}
