/* Página de descarga de Android (/android/, 26/10/2026): la ficha de la app al estilo de
   Android (icono, datos y botón verde) y los avisos de la instalación dibujados como en el
   móvil, con lo que hay que pulsar resaltado. Va aparte de estilo.css: solo la usa esta página. */

/* ── La ficha ─────────────────────────────────────────────────────────── */
.descarga .ficha-app { padding: 24px; }
.descarga .app-cabecera { display: flex; align-items: center; gap: 16px; }
.descarga .app-icono { width: 80px; height: 80px; border-radius: 22px; flex: none; box-shadow: 0 1px 4px rgba(0, 34, 48, 0.25); }
.descarga .ficha-app .app-nombre { font-size: 26px; font-weight: 800; line-height: 1.1; color: var(--tinta); }
.descarga .ficha-app .app-sub { margin-top: 4px; font-size: 15px; color: var(--dim); }

.descarga .app-datos { display: flex; margin: 22px 0; padding: 0; list-style: none; gap: 0; }
.descarga .app-datos li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 6px; text-align: center; }
.descarga .app-datos li::before { content: none; }
.descarga .app-datos li + li { border-left: 1px solid var(--borde); }
.descarga .app-datos b { font-size: 16px; color: var(--tinta); white-space: nowrap; }
.descarga .app-datos span { font-size: 13px; color: var(--dim); }

/* El verde y el azul oscuro de la marca Android. */
.boton-android {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 24px;
  border-radius: 999px; background: #3DDC84; color: #073042; font-size: 17px; font-weight: 700; text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease;
}
.boton-android:hover { background: #34C878; }
.boton-android:active { transform: scale(0.98); }
.boton-android:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; }
.boton-android svg { width: 26px; height: 26px; flex: none; }
.descarga .ficha-app .app-actualizada { margin-top: 12px; text-align: center; font-size: 13px; color: var(--dim); }

/* ── Los avisos de la instalación ────────────────────────────────────── */
.descarga .aviso-instalar { background: #FFF4D6; color: #5A4300; border-radius: 16px; padding: 14px 16px; }
@media (prefers-color-scheme: dark) { .descarga .aviso-instalar { background: #3A3010; color: #F5DE9A; } }

.pasos { list-style: none; margin: 20px 0 16px; padding: 0; display: grid; gap: 28px; counter-reset: paso; }
.pasos > li { counter-increment: paso; display: grid; gap: 12px; }
@media (min-width: 640px) { .pasos > li { grid-template-columns: 1fr 300px; gap: 24px; align-items: center; } }
.paso-texto { position: relative; padding-left: 44px; }
.paso-texto::before {
  content: counter(paso); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--azul); color: #FFFFFF; display: grid; place-items: center; font-weight: 800; font-size: 16px;
}
.paso-texto h3 { font-size: 18px; margin-bottom: 4px; }

/* Lo de dentro imita el móvil: letra de Android y colores de sus diálogos. */
.pantallita {
  background: #DDE3EA; border-radius: 20px; padding: 18px 14px; display: grid; gap: 10px; place-content: center;
  font-family: Roboto, "Google Sans", system-ui, sans-serif; min-height: 150px;
}
.pantallita p { margin: 0; }
.dialogo { background: #F3F6FC; border-radius: 24px; padding: 18px 18px 10px; width: min(272px, 100%); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12); }
.dialogo .d-titulo { font-size: 17px; color: #1F1F1F; margin-bottom: 8px; line-height: 1.3; }
.dialogo .d-texto { font-size: 14px; color: #444746; line-height: 1.4; }
.dialogo .d-app { display: flex; align-items: center; gap: 10px; font-size: 16px; color: #1F1F1F; margin-bottom: 10px; }
.dialogo .d-app img { border-radius: 8px; }
.dialogo .d-detalles { margin-top: 10px; font-size: 14px; }
.d-botones { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 4px; margin-top: 14px; }
.d-botones span, .d-detalles span { font-size: 14px; font-weight: 500; color: #0B57D0; padding: 8px 12px; border-radius: 999px; }

/* La descarga terminada: la barra oscura de Chrome. */
.barra {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: min(272px, 100%);
  background: #303134; color: #E8EAED; border-radius: 12px; padding: 10px 10px 10px 14px; font-size: 13px;
}
.barra .pulsa { color: #A8C7FA; font-weight: 500; font-size: 14px; padding: 8px 12px; border-radius: 999px; }

/* La fila de Ajustes con su interruptor encendido. */
.ajuste {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: min(272px, 100%);
  background: #FFFFFF; border-radius: 16px; padding: 14px 16px; font-size: 15px; color: #1F1F1F;
}
.interruptor { position: relative; width: 46px; height: 28px; border-radius: 999px; background: #0B57D0; flex: none; }
.interruptor::after { content: ''; position: absolute; right: 4px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; }

/* Lo que hay que pulsar: resaltado, con su orden si hay dos. */
.pulsa { position: relative; background: #D3E3FD; outline: 2px solid #0B57D0; outline-offset: 1px; animation: latido 1.6s ease-in-out infinite; }
.barra .pulsa { background: rgba(168, 199, 250, 0.18); outline-color: #A8C7FA; }
.pulsa[data-n]::before {
  content: attr(data-n); position: absolute; top: -10px; left: -10px; width: 20px; height: 20px; border-radius: 50%;
  background: #3DDC84; color: #073042; font: 700 12px/20px Roboto, system-ui, sans-serif; text-align: center;
}
.interruptor.pulsa { outline-offset: 3px; }
@keyframes latido { 50% { outline-offset: 4px; } }
@media (prefers-reduced-motion: reduce) { .pulsa { animation: none; } }

/* La app ya en el móvil. */
.fondo-movil { background: linear-gradient(160deg, #2585B4 0%, #075777 60%, #002230 100%); }
.en-inicio { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.en-inicio img { border-radius: 50%; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); }
.en-inicio span { color: #FFFFFF; font-size: 13px; }
