/* Fidod · /descargar/ — hub premium de instalación */
body.fd-dl-page {
  background: #F4F8FC;
  min-height: 100vh;
}

.fd-dl {
  position: relative;
  padding: clamp(1.25rem, 3vw, 2.5rem) 0 calc(6.5rem + var(--fd-safe-b));
  overflow: hidden;
}

.fd-dl-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 420px at 12% -8%, rgba(0, 168, 255, 0.18), transparent 60%),
    radial-gradient(700px 380px at 92% 8%, rgba(0, 128, 204, 0.12), transparent 55%),
    radial-gradient(600px 300px at 50% 100%, rgba(86, 186, 253, 0.1), transparent 50%);
}

.fd-dl-shell {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

/* Hero */
.fd-dl-hero {
  text-align: center;
  margin-bottom: clamp(1.4rem, 3vw, 2rem);
}

.fd-dl-kicker {
  margin: 0 0 .55rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fd-blue-deep);
}

.fd-dl-hero h1 {
  margin: 0 0 .65rem;
  font-family: var(--fd-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--fd-ink);
}

.fd-dl-lead {
  margin: 0 auto 1.35rem;
  max-width: 38rem;
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  color: var(--fd-muted);
  line-height: 1.55;
}

.fd-dl-lead strong { color: var(--fd-ink); font-weight: 700; }

/* Progress */
.fd-dl-progress {
  max-width: 28rem;
  margin: 0 auto 1rem;
}

.fd-dl-progress-track {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.fd-dl-progress-bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0080CC, #00A8FF 55%, #56BAFD);
  transition: width .45s cubic-bezier(.22, 1, .36, 1);
}

.fd-dl-progress-label {
  display: block;
  margin-top: .55rem;
  font-size: .86rem;
  font-weight: 600;
  color: #475569;
}

.fd-dl-rail {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .45rem .7rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.fd-dl-rail li {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  font-weight: 600;
  color: #94A3B8;
}

.fd-dl-rail li span {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: #E2E8F0;
  color: #64748B;
  font-size: .72rem;
  font-weight: 800;
}

.fd-dl-rail li.is-done { color: var(--fd-blue-deep); }
.fd-dl-rail li.is-done span {
  background: var(--fd-blue-soft);
  color: var(--fd-blue-deep);
}
.fd-dl-rail li.is-current { color: var(--fd-ink); }
.fd-dl-rail li.is-current span {
  background: var(--fd-blue);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 168, 255, 0.35);
}

/* Stage / panels */
.fd-dl-stage {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(215, 230, 245, 0.95);
  border-radius: 24px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 24px 60px rgba(11, 140, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: clamp(1.15rem, 3vw, 1.85rem);
  min-height: 22rem;
}

.fd-dl-panel[hidden] { display: none !important; }

.fd-dl-panel.is-active {
  animation: fdDlIn .42s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes fdDlIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.fd-dl-panel-head {
  margin-bottom: 1.15rem;
}

.fd-dl-panel-head h2 {
  margin: 0 0 .4rem;
  font-family: var(--fd-display);
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fd-ink);
}

.fd-dl-panel-head p {
  margin: 0;
  color: var(--fd-muted);
  font-size: .98rem;
  line-height: 1.5;
}

/* Cards */
.fd-dl-cards {
  display: grid;
  gap: .75rem;
}

.fd-dl-cards--2 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .fd-dl-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.fd-dl-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .75rem 1rem;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1.5px solid #D7E6F5;
  background: #fff;
  color: inherit;
  cursor: pointer;
  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    transform .2s ease,
    background .2s ease;
}

.fd-dl-card:hover {
  border-color: #9DD4F5;
  box-shadow: 0 10px 28px rgba(0, 128, 204, 0.1);
  transform: translateY(-1px);
}

.fd-dl-card:active { transform: scale(.99); }

.fd-dl-card[aria-pressed="true"],
.fd-dl-card.is-on {
  border-color: var(--fd-blue);
  background: linear-gradient(180deg, #F0F9FF 0%, #fff 70%);
  box-shadow: 0 0 0 3px rgba(0, 168, 255, 0.18);
}

.fd-dl-card.is-featured {
  border-color: #7EC8F0;
  background: linear-gradient(165deg, #F0F9FF, #fff 55%);
}

.fd-dl-card-icon {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 1rem;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(11, 140, 255, 0.2);
}

.fd-dl-device-glyph {
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 1rem;
  background: var(--fd-blue-soft);
  color: var(--fd-blue-deep);
}

.fd-dl-card-body {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  min-width: 0;
}

.fd-dl-card-body strong {
  font-family: var(--fd-display);
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--fd-ink);
}

.fd-dl-card-body em {
  font-style: normal;
  font-size: .9rem;
  font-weight: 600;
  color: var(--fd-blue-deep);
}

.fd-dl-card-body span,
.fd-dl-card > span:last-child {
  font-size: .84rem;
  color: #64748B;
  line-height: 1.35;
}

.fd-dl-card-host {
  grid-column: 2;
  font-size: .78rem !important;
  font-weight: 600;
  color: #94A3B8 !important;
  font-variant-numeric: tabular-nums;
}

.fd-dl-card--device {
  grid-template-columns: auto 1fr;
}

/* Notes */
.fd-dl-note {
  margin: 0 0 1rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: #F0F9FF;
  border: 1px solid #BAE6FD;
  color: #0C4A6E;
  font-size: .94rem;
  line-height: 1.5;
}

.fd-dl-note p { margin: 0 0 .45rem; }
.fd-dl-note p:last-child { margin: 0; }
.fd-dl-note a { font-weight: 700; }

/* Video frame */
.fd-dl-video {
  margin: 0 0 1.25rem;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #D7E6F5;
  background: #0B1220;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.18);
}

.fd-dl-video[hidden] { display: none !important; }

.fd-dl-video-chrome {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .55rem .85rem;
  background: linear-gradient(180deg, #1a2333, #121925);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.fd-dl-video-dots {
  width: 42px;
  height: 10px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 5px 5px, #FF5F57 4px, transparent 5px),
    radial-gradient(circle at 21px 5px, #FEBC2E 4px, transparent 5px),
    radial-gradient(circle at 37px 5px, #28C840 4px, transparent 5px);
  opacity: .9;
}

.fd-dl-video-caption {
  font-size: .78rem;
  font-weight: 600;
  color: #94A3B8;
  letter-spacing: .02em;
}

.fd-dl-video-frame {
  aspect-ratio: 9 / 16;
  max-height: min(62vh, 520px);
  background: #000;
  margin: 0 auto;
  max-width: 320px;
}

@media (min-width: 720px) {
  .fd-dl-video-frame {
    max-width: 280px;
  }
}

.fd-dl-video-player {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.fd-dl-video-dl {
  display: block;
  padding: .7rem 1rem;
  text-align: center;
  font-size: .86rem;
  font-weight: 700;
  color: #7DD3FC;
  background: #121925;
  text-decoration: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.fd-dl-video-dl:hover { color: #fff; text-decoration: none; }

.fd-dl-video-missing {
  margin: 0 0 1rem;
  padding: .85rem 1rem;
  border-radius: 12px;
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  color: #9A3412;
  font-size: .92rem;
}

.fd-dl-video-missing[hidden] { display: none !important; }

/* Trust + steps */
.fd-dl-trust {
  margin: 0 0 1rem;
  padding: .9rem 1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #ECFDF5, #F0F9FF);
  border: 1px solid #A7F3D0;
  color: #065F46;
  font-size: .94rem;
  line-height: 1.45;
}

.fd-dl-trust:empty { display: none; }

.fd-dl-steps {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  counter-reset: dlstep;
}

.fd-dl-steps li {
  position: relative;
  counter-increment: dlstep;
  padding: .85rem .9rem .85rem 3.1rem;
  margin: 0 0 .55rem;
  border-radius: 14px;
  background: #F8FBFE;
  border: 1px solid #E2EEF8;
  color: #334155;
  font-size: .95rem;
  line-height: 1.5;
}

.fd-dl-steps li::before {
  content: counter(dlstep);
  position: absolute;
  left: .75rem;
  top: .85rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--fd-blue);
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  font-family: var(--fd-display);
}

.fd-dl-steps a {
  font-weight: 700;
  word-break: break-all;
}

.fd-dl-steps .fd-dl-mini {
  display: block;
  margin-top: .35rem;
  font-size: .84rem;
  color: #64748B;
}

/* CTA */
.fd-dl-cta-block { margin-top: .5rem; }

.fd-dl-must {
  margin: 0 0 .75rem;
  padding: .75rem .9rem;
  border-radius: 12px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1E3A8A;
  font-size: .9rem;
}

.fd-dl-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: .9rem 1.2rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #1AB0FF, #0088D6);
  color: #fff !important;
  font-weight: 800;
  font-size: 1.02rem;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 136, 214, 0.28);
  transition: transform .15s ease, filter .15s ease;
}

.fd-dl-cta:hover { filter: brightness(1.04); transform: translateY(-1px); }
.fd-dl-cta:active { transform: scale(.99); }

.fd-dl-cta--soft {
  background: #fff;
  color: var(--fd-blue-deep) !important;
  border: 1.5px solid #BAE6FD;
  box-shadow: none;
  margin-top: .75rem;
}

.fd-dl-err {
  margin: .7rem 0 0;
  padding: .7rem .85rem;
  border-radius: 12px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
  font-size: .9rem;
  font-weight: 600;
}

.fd-dl-err[hidden] { display: none !important; }

.fd-dl-checklist {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.fd-dl-checklist li {
  position: relative;
  padding: .55rem .5rem .55rem 1.85rem;
  font-size: .95rem;
  color: #334155;
  border-bottom: 1px solid #EEF4FA;
}

.fd-dl-checklist li::before {
  content: '';
  position: absolute;
  left: .35rem;
  top: .85rem;
  width: .85rem;
  height: .85rem;
  border-radius: 999px;
  background: var(--fd-ok);
  box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px #86EFAC;
}

/* Sticky nav */
.fd-dl-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  gap: .65rem;
  justify-content: center;
  padding: .85rem var(--fd-pad) calc(.85rem + var(--fd-safe-b));
  background: linear-gradient(180deg, rgba(244, 248, 252, 0), rgba(244, 248, 252, 0.92) 28%, #F4F8FC);
  pointer-events: none;
}

.fd-dl-nav-btn {
  pointer-events: auto;
  min-width: min(44vw, 11rem);
  min-height: 50px;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: .98rem;
  cursor: pointer;
  border: none;
  transition: transform .15s ease, opacity .15s ease, box-shadow .15s ease;
}

.fd-dl-nav-btn[hidden] { display: none !important; }

.fd-dl-nav-btn--back {
  background: #fff;
  color: var(--fd-ink);
  border: 1.5px solid #D7E6F5;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.fd-dl-nav-btn--next {
  background: linear-gradient(180deg, #1AB0FF, #0088D6);
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 136, 214, 0.3);
}

.fd-dl-nav-btn--next:disabled {
  opacity: .42;
  cursor: not-allowed;
  box-shadow: none;
}

.fd-dl-nav-btn:not(:disabled):active { transform: scale(.98); }

/* Uso guide */
.fd-dl-uso-kicker {
  margin: 0 0 .35rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fd-blue-deep);
}

.fd-dl-ejemplo {
  margin: 0 0 1rem;
  padding: .9rem 1rem;
  border-radius: 14px;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  color: #78350F;
  font-size: .92rem;
  line-height: 1.45;
}

.fd-dl-ejemplo strong { color: #92400E; }
.fd-dl-ejemplo em { font-style: normal; font-weight: 700; }

.fd-dl-tip {
  margin: .85rem 0 0;
  padding: .85rem 1rem;
  border-radius: 12px;
  background: #F0F9FF;
  border: 1px solid #BAE6FD;
  color: #0C4A6E;
  font-size: .92rem;
  line-height: 1.45;
}

.fd-dl-visual-kicker {
  margin: 1rem 0 .65rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #64748B;
}

.fd-dl-shots {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.1rem;
}

@media (min-width: 720px) {
  .fd-dl-shots {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }
}

.fd-dl-shot {
  margin: 0 0 1rem;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #D7E6F5;
  background: #fff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.fd-dl-shot img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(58vh, 480px);
  object-fit: contain;
  object-position: top;
  background: #F8FBFE;
}

.fd-dl-shot figcaption {
  padding: .75rem .9rem;
  font-size: .88rem;
  line-height: 1.4;
  color: #334155;
  border-top: 1px solid #EEF4FA;
}

.fd-dl-shot figcaption strong { color: var(--fd-ink); }

.fd-dl-two {
  display: grid;
  gap: .85rem;
  margin: 0 0 1rem;
}

@media (min-width: 720px) {
  .fd-dl-two { grid-template-columns: 1fr 1fr; }
}

.fd-dl-callout {
  padding: 1rem;
  border-radius: 16px;
  border: 1.5px solid #D7E6F5;
  background: linear-gradient(180deg, #F8FBFE, #fff);
}

.fd-dl-callout > strong {
  display: block;
  margin-bottom: .65rem;
  font-family: var(--fd-display);
  font-size: 1.05rem;
  color: var(--fd-ink);
}

.fd-dl-callout .fd-dl-steps { margin-bottom: 0; }

.fd-dl-rail[hidden] { display: none !important; }

.fd-dl-rail em {
  font-style: normal;
}

@media (min-width: 720px) {
  .fd-dl-nav {
    position: sticky;
    bottom: 0;
    margin-top: 1.25rem;
    padding: 1rem 0 calc(1rem + var(--fd-safe-b));
    background: transparent;
  }
  .fd-dl-nav-btn { min-width: 10.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .fd-dl-panel.is-active { animation: none; }
  .fd-dl-progress-bar,
  .fd-dl-card,
  .fd-dl-cta,
  .fd-dl-nav-btn { transition: none; }
}

/* Guía de uso (post-Listo) */
.fd-dl-uso-kicker {
  margin: 0 0 .35rem;
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fd-blue-deep);
}

.fd-dl-uso-body {
  margin: 0 0 .5rem;
}

.fd-dl-ejemplo {
  margin: 0 0 1rem;
  padding: .85rem .95rem;
  border-radius: 14px;
  border: 1px solid #F5D78A;
  background: linear-gradient(145deg, #FFFBEB 0%, #FEF3C7 100%);
  color: #78350F;
  font-size: .88rem;
  line-height: 1.45;
}

.fd-dl-ejemplo strong { color: #92400E; }

.fd-dl-tip {
  margin: .85rem 0 0;
  padding: .85rem .95rem;
  border-radius: 14px;
  background: #F0F9FF;
  border: 1px solid #BAE6FD;
  color: #0C4A6E;
  font-size: .92rem;
  line-height: 1.45;
}

.fd-dl-tip strong { color: var(--fd-blue-deep); }

.fd-dl-shots {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.1rem;
}

.fd-dl-shot {
  margin: 0;
}

.fd-dl-shot img {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  margin: 0 auto;
  border-radius: 18px;
  border: 1px solid #D7E6F5;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
  background: #0f172a;
}

.fd-dl-shot figcaption {
  margin: .65rem .15rem 0;
  font-size: .9rem;
  line-height: 1.45;
  color: #334155;
}

.fd-dl-shot figcaption strong {
  color: var(--fd-blue-deep);
}

.fd-dl-shot figcaption em {
  font-style: normal;
  font-weight: 700;
  color: #92400E;
}

@media (min-width: 640px) {
  .fd-dl-shots {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    align-items: start;
  }
  .fd-dl-shot img { max-width: none; }
}
