/* pikmile.com · colores de la sección 0.1 y diseño del prototipo aprobado (etapa 1). */
:root {
  --asphalt: #16233b;
  --amber: #f2a900;
  --bg: #f4f5f2;
  --surface: #ffffff;
  --text: #16233b;
  --muted: #5e6878;
  --line: #e1e4dd;
  --chip: #e9ece5;
  --primary: #16233b;
  --on-primary: #ffffff;
  --danger: #b83a26;
  --danger-bg: #fbedea;
  --on-danger: #ffffff;
  --warn-bg: #fff4d6;
  --warn-text: #6b4b00;
  --display: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --body:
    -apple-system, BlinkMacSystemFont, 'SF Pro Text', Roboto, 'Segoe UI', system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1626;
    --surface: #17213a;
    --text: #eef0ec;
    --muted: #9aa4b4;
    --line: #25304c;
    --chip: #1f2a45;
    --primary: #f2a900;
    --on-primary: #16233b;
    --danger: #f08a76;
    --danger-bg: #3a1f22;
    --warn-bg: #3a2f12;
    --warn-text: #f5d37a;
    --on-danger: #1a0e0c;
    color-scheme: dark;
  }
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
}
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.shead {
  background: var(--asphalt);
  color: #fff;
}
.shead .in {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.slogo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: #fff;
}
.slogo img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: block;
}
.slogo b {
  font: 700 20px var(--display);
}
.shead nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}
.shead nav a {
  text-decoration: none;
  opacity: 0.9;
}
.lng {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #fff;
  border-radius: 7px;
  padding: 2px 8px;
  font: 600 13px var(--body);
  cursor: pointer;
}

main {
  flex: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 24px;
}
h1 {
  font: 700 clamp(26px, 5vw, 40px)/1.15 var(--display);
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
.lead {
  color: var(--muted);
  max-width: 62ch;
  margin: 12px 0 0;
}
.pill {
  display: inline-block;
  margin-top: 18px;
  background: var(--amber);
  color: var(--asphalt);
  font-weight: 700;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 999px;
}
.feat {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 32px;
}
.feat div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.feat b {
  font-weight: 700;
}
.feat span {
  color: var(--muted);
  font-size: 14px;
}
.disc {
  color: var(--muted);
  font-size: 13px;
  margin-top: 24px;
}

.doc {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.muted {
  color: var(--muted);
  font-size: 14px;
}
.pending {
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--surface);
  border: 1px dashed var(--muted);
  border-radius: 14px;
  padding: 16px;
  color: var(--muted);
}

.steps {
  display: flex;
  gap: 8px;
}
.steps b {
  flex: 1;
  text-align: center;
  font-size: 14px;
  padding: 9px;
  border-radius: 12px;
  background: var(--chip);
  color: var(--muted);
}
.steps b.on {
  background: var(--primary);
  color: var(--on-primary);
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  border-radius: 14px;
  border: 0;
  width: 100%;
  cursor: pointer;
  font: 600 15px var(--body);
  background: var(--primary);
  color: var(--on-primary);
}
.btn.sec {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn.apple {
  background: #000;
  color: #fff;
}
.btn.danger {
  background: var(--danger);
  color: var(--on-danger);
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
input {
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: 0 12px;
  font: 15px var(--body);
  width: 100%;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.warn {
  background: var(--warn-bg);
  color: var(--warn-text);
  border-radius: 14px;
  padding: 14px;
  font-size: 14px;
}
.error {
  background: var(--danger-bg);
  color: var(--danger);
  border-radius: 14px;
  padding: 14px;
  font-size: 14px;
}
.ok {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}
ul {
  margin: 6px 0;
  padding-left: 20px;
}
[hidden] {
  display: none !important;
}

.sfoot {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.sfoot .in {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: space-between;
}
.sfoot a {
  text-decoration: none;
}

/* Documentos legales: un artículo por idioma; se muestra el del idioma elegido. */
html[lang='en'] [data-lang='es'],
html[lang='es'] [data-lang='en'] {
  display: none;
}
.legal {
  gap: 12px;
  line-height: 1.6;
}
.legal h2 {
  font-size: 19px;
  margin: 18px 0 0;
}
.legal h3 {
  font-size: 15px;
  margin: 6px 0 0;
}
.legal p,
.legal ul {
  margin: 0;
}
.legal ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.legal .callout {
  background: var(--surface);
  border-radius: 14px;
  padding: 14px 16px;
}
.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px;
  border-bottom: 1px solid var(--surface);
}
.legal th {
  background: var(--surface);
}
.legal .callout ul {
  margin-top: 6px;
}

/* Cabecera en pantallas angostas: el menú en español (Calculadora, Ayuda, Privacidad) no debe desbordar. */
@media (max-width: 480px) {
  .shead .in {
    padding: 12px 14px;
    gap: 10px;
  }
  .shead nav {
    gap: 10px;
    font-size: 13px;
  }
}

/* Página /open (destino del correo de bienvenida): insignias oficiales de las tiendas. */
.getapp {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.getapp .badge {
  display: inline-flex;
}
.getapp .badge img {
  display: block;
  height: 46px;
  width: auto;
}
.getapp .badge.gp img {
  height: 68px;
  margin: -11px -8px;
}
