/* MediControl · página de descarga y de invitación.
   Paleta de la app (lib/core/constants/app_colors.dart). Pensada para
   personas mayores: letra grande, alto contraste, botones amplios. */

:root {
  --primario: #13517A;
  --primario-oscuro: #09304B;
  --primario-claro: #4B8AB3;
  --acento: #E61C38;
  --fondo: #F4F7F9;
  --superficie: #FFFFFF;
  --borde: #E9EEF2;
  --texto: #2C3E50;
  --texto-suave: #5E6E70;
  --exito: #1E8E4E;
  --aviso: #B86E00;
  --radio: 20px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 19px;
  line-height: 1.55;
}

a { color: var(--primario); }

:focus-visible { outline: 4px solid var(--acento); outline-offset: 3px; border-radius: 8px; }

.contenedor { width: min(720px, 100% - 32px); margin-inline: auto; }

/* --- Cabecera ------------------------------------------------------------ */
.cabecera {
  background: linear-gradient(160deg, var(--primario) 0%, var(--primario-oscuro) 100%);
  color: #fff;
  padding: 40px 0 72px;
  text-align: center;
}
.marca { display: inline-flex; align-items: center; gap: 14px; }
.marca img { width: 64px; height: 64px; border-radius: 50%; background: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.marca span { font-size: 30px; font-weight: 800; letter-spacing: .3px; }
.cabecera h1 { font-size: clamp(30px, 6vw, 42px); line-height: 1.2; margin: 28px 0 12px; }
.cabecera p { font-size: 21px; margin: 0 auto; max-width: 30ch; color: #E3EEF6; }

/* --- Tarjetas ------------------------------------------------------------ */
main { margin-top: -44px; padding-bottom: 48px; }
.tarjeta {
  background: var(--superficie);
  border: 1.5px solid var(--borde);
  border-radius: var(--radio);
  padding: 28px 24px;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(19, 81, 122, .08);
  animation: aparecer .5s ease-out both;
}
.tarjeta:nth-child(2) { animation-delay: .06s; }
.tarjeta:nth-child(3) { animation-delay: .12s; }
.tarjeta:nth-child(4) { animation-delay: .18s; }
.tarjeta h2 { font-size: 26px; margin: 0 0 12px; color: var(--primario-oscuro); }
.centro { text-align: center; }

@keyframes aparecer { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tarjeta { animation: none; } }

/* --- Botones ------------------------------------------------------------- */
.boton {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; min-height: 64px; padding: 16px 20px;
  border: 0; border-radius: 16px;
  font: inherit; font-size: 22px; font-weight: 700; text-decoration: none;
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease;
}
.boton:active { transform: scale(.98); }
.boton-principal { background: var(--acento); color: #fff; box-shadow: 0 8px 20px rgba(230, 28, 56, .3); }
.boton-secundario { background: var(--superficie); color: var(--primario); border: 2px solid var(--primario-claro); margin-top: 12px; }
.boton svg { width: 30px; height: 30px; flex: none; }
.nota { font-size: 17px; color: var(--texto-suave); margin: 12px 0 0; }

/* --- Pasos --------------------------------------------------------------- */
.pasos { list-style: none; padding: 0; margin: 0; counter-reset: paso; }
.pasos li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--borde); }
.pasos li:first-child { border-top: 0; }
.pasos .icono { width: 56px; height: 56px; border-radius: 16px; background: #E8F1F8; display: grid; place-items: center; }
.pasos .icono svg { width: 30px; height: 30px; }
.pasos strong { display: block; font-size: 20px; }

.huella { font-family: ui-monospace, Consolas, monospace; font-size: 15px; word-break: break-all; background: var(--fondo); border-radius: 12px; padding: 12px; }
.aviso { display: flex; gap: 12px; align-items: flex-start; background: #FEF5E7; border: 1.5px solid #F7D9A8; border-radius: 16px; padding: 16px; color: #5C3B00; }
.aviso svg { width: 28px; height: 28px; flex: none; }
.lista-simple { padding-left: 22px; margin: 8px 0 0; }

/* --- Página /unirse ------------------------------------------------------ */
.invita-icono { width: 96px; height: 96px; margin: 0 auto 8px; border-radius: 50%; background: #E8F1F8; display: grid; place-items: center; }
.invita-icono svg { width: 52px; height: 52px; }
.estado { display: none; }
.estado.visible { display: block; }

footer { text-align: center; font-size: 16px; color: var(--texto-suave); padding: 8px 0 40px; }
