/* Páginas de descarga iCard. Se carga DESPUÉS de los CSS de la landing
   (../../assets/app/*.css) y reutiliza su paleta: tinta #1d1d1f, gris #6e6e73,
   azul #0071e3, fondo lavado --lg-wash y tarjetas de vidrio --lg-fill. */

.dl-page {
  background: var(--lg-wash, #f5f5f7);
  color: #1d1d1f;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
}
.dl-page * { box-sizing: border-box; }
.dl-page img { max-width: 100%; height: auto; }

/* Header: misma barra y logo grande que la landing */
.dl-page .site-header { position: sticky; top: 0; z-index: 50; height: auto; }
.dl-page .header-inner {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1120px; min-height: 76px; height: auto; margin: 0 auto; padding: 10px 20px; gap: 12px;
}
.dl-page .logo .brand-logo-frame { width: 150px; height: 50px; }
.dl-page .header-actions { display: flex; align-items: center; gap: 10px; }
.dl-page .header-actions .button { min-height: 40px; padding: 0 16px; font-size: 13px; border-radius: 999px; gap: 8px; white-space: nowrap; }

.dl-wrap { width: min(100%, 1040px); margin: 0 auto; padding: 0 18px; }

/* Hero */
.dl-hero { padding: 40px 0 28px; text-align: center; }
.dl-eyebrow { display: block; color: #758298; letter-spacing: .15em; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.dl-hero h1 {
  margin: 14px auto 14px; max-width: 760px;
  font-size: clamp(36px, 8vw, 64px); line-height: 1.06; letter-spacing: -.045em; font-weight: 700;
}
.dl-hero h1 span {
  color: #8492a9; -webkit-text-fill-color: transparent;
  background: linear-gradient(110deg, #68768c, #a7b4c8 70%, #8b96a9);
  -webkit-background-clip: text; background-clip: text;
}
.dl-lead { color: #6e6e73; font-size: 18px; line-height: 1.5; max-width: 600px; margin: 0 auto 26px; }

/* Botón de descarga (mismo estilo que .offer-cta de la landing) */
.dl-cta {
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px;
  width: 100%; max-width: 520px; min-height: 76px; margin: 0 auto; padding: 14px 26px;
  border-radius: 999px; background: linear-gradient(#2c8cff 0%, #0071e3 60%); color: #fff;
  text-decoration: none; font-size: 20px; font-weight: 700; letter-spacing: -.01em;
  box-shadow: 0 18px 34px -16px #0071e3b3, inset 0 1px 0 #ffffff59;
  transition: transform .15s, background .2s;
}
.dl-cta:hover { background: linear-gradient(#4a9bff 0%, #0077ed 60%); transform: translateY(-1px); }
.dl-cta small { font-size: 13px; font-weight: 500; opacity: .9; }
.dl-cta-meta { color: #6e6e73; font-size: 13px; line-height: 1.6; margin: 12px auto 0; max-width: 520px; }
.dl-cta-meta code { font-size: 12px; }
.dl-other { margin-top: 14px; font-size: 14px; }
.dl-other a, .dl-link { color: #0066cc; font-weight: 600; text-decoration: none; }
.dl-other a:hover, .dl-link:hover { text-decoration: underline; }

/* Secciones */
.dl-section { padding: 34px 0; }
.dl-section > .dl-wrap > h2, .dl-h2 {
  margin: 0 0 8px; font-size: clamp(28px, 6vw, 42px); line-height: 1.1; letter-spacing: -.04em; font-weight: 650;
}
.dl-sub { color: #6e6e73; font-size: 17px; line-height: 1.5; margin: 0 0 22px; max-width: 680px; }

.dl-card {
  background: var(--lg-fill, #ffffffd0); border: 1px solid var(--lg-edge, #fff);
  box-shadow: var(--lg-shadow, 0 10px 30px -20px #1c264e52);
  -webkit-backdrop-filter: var(--lg-blur); backdrop-filter: var(--lg-blur);
  border-radius: 24px; padding: 22px 20px;
}
.dl-card h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -.02em; }
.dl-card p, .dl-card li { font-size: 16px; line-height: 1.6; color: #3a3a3c; }
.dl-card p { margin: 0 0 10px; }
.dl-card p:last-child { margin-bottom: 0; }

.dl-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }

/* Requisitos */
.dl-req, .dl-card .dl-req { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dl-req li { display: flex; gap: 14px; align-items: flex-start; }
.dl-req .dl-ico {
  flex: 0 0 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: #e8f0fe; color: #0071e3; font-size: 20px;
}
.dl-req strong { display: block; font-size: 16px; }
.dl-req span { color: #6e6e73; font-size: 15px; line-height: 1.5; }

/* Pasos numerados */
.dl-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: paso; }
.dl-steps > li { counter-increment: paso; min-width: 0; }
.dl-grid > *, .dl-faq > * { min-width: 0; }
.dl-steps > li > .dl-card { position: relative; padding-top: 22px; }
.dl-step-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.dl-step-head::before {
  content: counter(paso); flex: 0 0 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: #1d1d1f; color: #fff; font-weight: 700; font-size: 15px;
}
.dl-step-head h3 { margin: 0; }
.dl-card ol, .dl-card ul { margin: 0 0 10px; padding-left: 22px; }
.dl-card ol li, .dl-card ul li { margin-bottom: 6px; }

.dl-figure { margin: 14px 0 4px; }
.dl-figure img {
  display: block; width: 100%; border-radius: 16px; border: 1px solid #00000012;
  background: #fff; box-shadow: 0 12px 30px -22px #1c264e80;
}
.dl-figure.tall img { max-width: 420px; margin: 0 auto; }
.dl-figure figcaption { color: #6e6e73; font-size: 13px; text-align: center; margin-top: 8px; }
.dl-placeholder {
  border: 2px dashed #b9c3d3; border-radius: 16px; padding: 28px 18px; text-align: center;
  color: #4a5568; background: #ffffffa6; font-weight: 600; line-height: 1.5;
}

/* Avisos */
.dl-note { border-radius: 16px; padding: 14px 16px; font-size: 15px; line-height: 1.55; margin: 12px 0 0; }
.dl-note strong { display: block; margin-bottom: 2px; }
.dl-note.info { background: #eaf2ff; border: 1px solid #c7dafc; color: #1a3a6b; }
.dl-note.ok { background: #e9f7ef; border: 1px solid #bfe5cf; color: #14532d; }
.dl-warn {
  background: #fff6d6; border: 1px solid #f0d77a; color: #4a3d00;
  border-radius: 20px; padding: 18px 18px; font-size: 16px; line-height: 1.55;
}
.dl-warn strong.dl-warn-title { display: flex; gap: 10px; align-items: center; font-size: 18px; margin-bottom: 6px; color: #3d3200; }
.dl-warn p { margin: 0; color: #4a3d00; }

/* Tabla iOS */
.dl-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.dl-table th, .dl-table td { text-align: left; padding: 11px 8px; border-bottom: 1px solid #e2e5eb; vertical-align: top; line-height: 1.45; }
.dl-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #758298; }
.dl-table tr:last-child td { border-bottom: 0; }
.dl-yes { color: #157a52; font-weight: 700; }
.dl-no { color: #b42318; font-weight: 700; }

/* Caja de comando copiable */
.dl-code { display: flex; align-items: stretch; gap: 0; margin: 10px 0; border-radius: 14px; overflow: hidden; border: 1px solid #2c2c2e; }
.dl-code code {
  flex: 1; min-width: 0; background: #1d1d1f; color: #f5f5f7; padding: 14px; font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow-x: auto; white-space: nowrap;
}
.dl-code button {
  flex: 0 0 auto; border: 0; background: #0071e3; color: #fff; font: 600 14px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding: 0 16px; cursor: pointer; min-width: 92px;
}
.dl-code button:active { background: #005bbf; }

/* Pills de nombres de botones/menús */
.dl-ui { font-weight: 650; color: #1d1d1f; }
.dl-page code { overflow-wrap: anywhere; }
.dl-page main { overflow-x: clip; }

/* Hub: tarjetas grandes */
.dl-choose { display: grid; gap: 16px; grid-template-columns: 1fr; }
.dl-os {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-decoration: none; color: #1d1d1f; text-align: left;
  padding: 26px 22px; border-radius: 28px; transition: transform .15s;
}
.dl-os:hover { transform: translateY(-2px); }
.dl-os svg { width: 52px; height: 52px; margin-bottom: 6px; }
.dl-os h2 { margin: 0; font-size: 30px; letter-spacing: -.04em; }
.dl-os p { margin: 0; color: #6e6e73; font-size: 15px; line-height: 1.5; }
.dl-os .dl-os-go {
  margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px;
  background: #0071e3; color: #fff; font-weight: 700; font-size: 16px;
}

/* Acordeón (mismo patrón que el FAQ de la landing) */
.dl-faq { display: grid; gap: 10px; }
.dl-faq details { border-radius: 20px; padding: 0 18px; }
.dl-faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 60px; font-size: 17px; font-weight: 600;
}
.dl-faq summary::-webkit-details-marker { display: none; }
.dl-faq summary .glyph-plus { flex: 0 0 auto; color: #6e6e73; font-size: 26px; transition: transform .2s; }
.dl-faq details[open] summary .glyph-plus { transform: rotate(45deg); }
.dl-faq .dl-faq-body { padding: 0 0 18px; }
.dl-faq .dl-faq-body p, .dl-faq .dl-faq-body li { font-size: 16px; line-height: 1.6; color: #3a3a3c; }

/* CTA final */
.dl-final { text-align: center; padding: 40px 0 46px; }
.dl-final h2 { margin: 0 0 18px; font-size: clamp(28px, 6vw, 42px); letter-spacing: -.04em; }

/* Pie */
.dl-footer { border-top: 1px solid #d2d2d7; padding: 26px 0 40px; color: #6e6e73; font-size: 13px; line-height: 1.6; text-align: center; }
.dl-footer p { margin: 4px 0; }

@media (min-width: 720px) {
  .dl-hero { padding: 70px 0 40px; }
  .dl-card { padding: 28px 30px; }
  .dl-grid.two { grid-template-columns: 1fr 1fr; }
  .dl-choose { grid-template-columns: 1fr 1fr; }
  .dl-os { padding: 36px 32px; }
  .dl-section { padding: 48px 0; }
  .dl-figure.wide-desktop img { max-width: 820px; margin: 0 auto; }
}
@media (max-width: 420px) {
  .dl-page .logo .brand-logo-frame { width: 120px; height: 42px; }
  .dl-page .header-actions .button { font-size: 12px; padding: 0 12px; }
  .dl-cta { font-size: 18px; }
}

/* Emojis de Apple como imagen (iguales en Android/Windows) */
.dl-page img.emo { display: inline-block; width: 1.25em; height: 1.25em; max-width: none; vertical-align: middle; margin: -.15em .05em 0; }
.dl-req .dl-ico img.emo { width: 24px; height: 24px; margin: 0; }
.dl-warn .dl-figure { margin-top: 12px; }
