/* ==========================================================================
   Inicio (index.html en EN / ES / PT / IT)
   <main class="ntrip-page viewer-page hm-page">: usa los bloques nt- y vw- de
   cloud-hub.css, los marcos y carruseles de apps.css, y agrega aquí lo propio
   con el prefijo "hm-".
   ========================================================================== */

/* ---------- Hero ---------- */
.hm-page .nt-hero { padding-bottom: 0; }
.hm-hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
.hm-page .nt-hero h1 .vw-title { font-size: clamp(36px, 4.1vw, 58px); }
.hm-devices { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: end; max-width: 520px; margin: 0 auto; padding: 10px 0 0; }
.hm-devices::before { content: ""; position: absolute; inset: 0 -12% 6%; background: radial-gradient(ellipse at 50% 45%, rgba(56, 132, 255, .34), transparent 64%); pointer-events: none; }
.hm-dev { position: relative; }
.hm-dev .rv-iphone, .hm-dev .rv-android { max-width: none; }
.hm-dev-cam { z-index: 1; margin-right: -10%; transform: translateY(26px); }
.hm-dev-scan { z-index: 2; margin-left: -10%; }
.hm-dev-cam .rv-android-body { transform: rotate(-4deg); }
.hm-dev-scan .rv-iphone-body { transform: rotate(3deg); }
.hm-dev .rv-video-bar { margin-top: 20px; gap: 6px 10px; font-size: 12px; }
.hm-dev .rv-video-yt, .hm-dev .rv-video-status { display: none; }
.hm-dev .rv-video-caption { color: var(--nt-on-dark-2); font-weight: 600; }
.hm-devices-wrap { position: relative; }
.hm-fix { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 12px; width: fit-content; max-width: 100%; margin: 0 auto 22px; padding: 10px 18px; border: 1px solid rgba(126, 226, 168, .35); border-radius: 999px; background: rgba(8, 22, 40, .7); box-shadow: 0 14px 34px rgba(0, 0, 0, .3); }
.hm-fix i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--nt-fix-lit); box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: nt-pulse 1.9s infinite; }
.hm-fix strong { font-size: 13.5px; font-weight: 800; letter-spacing: .06em; color: #7ee2a8; }
.hm-fix span { font-size: 13px; font-weight: 600; color: var(--nt-on-dark); font-variant-numeric: tabular-nums; }
.hm-stats { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr) minmax(0, 1.25fr) minmax(0, .95fr); margin: clamp(40px, 6vw, 70px) 0 0; padding: 26px 0 30px; border-top: 1px solid var(--nt-line-dark); }
.hm-stats div { padding: 0 20px; border-left: 1px solid var(--nt-line-dark); }
.hm-stats div:first-child { padding-left: 0; border-left: 0; }
.hm-stats dt { font-size: clamp(22px, 2.3vw, 33px); padding-bottom: .06em; font-weight: 800; letter-spacing: -.035em; line-height: 1; background: linear-gradient(180deg, #ffffff, #9fd0ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.hm-stats dd { margin: 8px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--nt-on-dark-2); }
.hm-nw { white-space: nowrap; }

/* ---------- Ecosistema ---------- */
.hm-pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.hm-pillar { position: relative; display: flex; flex-direction: column; padding: 26px 24px 24px; border: 1px solid var(--nt-line); border-radius: 22px; background: var(--nt-surface); transition: transform .25s, border-color .25s, box-shadow .25s; }
.hm-pillar:hover { transform: translateY(-4px); border-color: #8fb9ef; box-shadow: 0 20px 44px rgba(11, 27, 51, .12); }
.hm-pillar-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: linear-gradient(160deg, #1f6fe5, #0f3f8f); box-shadow: 0 10px 22px rgba(31, 111, 229, .28); }
.hm-pillar-icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.hm-pillar-icon.hm-icon-rx svg { width: 32px; height: 32px; }   /* silueta del RL-HL01 */
.hm-pillar h3 { margin-top: 18px; font-size: 20px; font-weight: 780; color: var(--nt-ink); }
.hm-pillar-names { margin-top: 6px; font-size: 12.5px; font-weight: 750; letter-spacing: .04em; color: var(--nt-brand-600); }
.hm-pillar p { margin-top: 12px; flex: 1; font-size: 14.5px; line-height: 1.6; color: var(--nt-ink-2); }
.hm-pillar-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 14px; font-weight: 750; color: var(--nt-brand); }
.hm-pillar-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.hm-pillar:hover .hm-pillar-link svg { transform: translateX(3px); }

/* ---------- Receptores ---------- */
.hm-receivers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.hm-rx { overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--nt-line); border-radius: 24px; background: var(--nt-surface); box-shadow: 0 1px 2px rgba(11, 27, 51, .06); }
.hm-rx-media { aspect-ratio: 1448 / 814; background: #0b2440; }
.hm-rx-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hm-rx-body { display: flex; flex: 1; flex-direction: column; padding: 26px 28px 26px; }
.hm-rx h3 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--nt-ink); }
.hm-rx p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--nt-ink-2); }
.hm-rx ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin: 18px 0 0; padding: 0; list-style: none; }
.hm-rx li { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; line-height: 1.45; font-weight: 600; color: var(--nt-ink); }
.hm-rx li svg { flex: none; width: 17px; height: 17px; margin-top: 1px; stroke: var(--nt-fix); fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.hm-rx-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; margin-top: auto; padding-top: 22px; }
.hm-price { font-size: 28px; font-weight: 800; letter-spacing: -.03em; color: var(--nt-ink); }
.hm-rx-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.hm-rx-links a { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; color: var(--nt-ink-2); }
.hm-rx-links a.hm-link-strong { padding: 10px 16px; border-radius: 999px; background: var(--nt-ink); color: #fff; }
.hm-rx-links svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hm-rx-links a:not(.hm-link-strong):hover { color: var(--nt-brand-600); }

/* ---------- Apps (sección oscura con carruseles) ---------- */
.hm-app { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: clamp(32px, 6vw, 90px); align-items: center; margin-top: 56px; }
.hm-app-cam { grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); }
.hm-app-cam .hm-app-phone { order: 2; }
.hm-app-head { display: flex; align-items: center; gap: 16px; }
.hm-app-head img { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
.hm-app-head h3 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.02em; color: #fff; }
.hm-app-head span { display: block; margin-top: 2px; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: #9fc8ff; }
.hm-app-copy > p { margin-top: 18px; max-width: 560px; font-size: 16.5px; line-height: 1.6; color: var(--nt-on-dark-2); }
.hm-app .rs-points { max-width: 560px; }
.hm-app-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 26px; }
.nt-dark .rs-shots-caption { color: var(--nt-on-dark-2); }
.nt-dark .rs-shots-dots button { background: rgba(160, 190, 235, .35); }
.nt-dark .rs-shots-dots button.is-active { background: #7ee2a8; }
.nt-dark .rs-shots .rv-video-toggle { background: rgba(255, 255, 255, .06); color: #eaf2ff; border-color: rgba(160, 190, 235, .45); }

/* ---------- Flujo ---------- */
.hm-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 44px 0 0; padding: 0; list-style: none; text-align: left; counter-reset: none; }
.hm-flow li { position: relative; padding: 24px 22px 22px; border: 1px solid var(--nt-line); border-radius: 20px; background: var(--nt-surface-2); }
.hm-flow li::after { content: ""; position: absolute; top: 38px; right: -14px; width: 10px; height: 10px; border-top: 2px solid #8fb9ef; border-right: 2px solid #8fb9ef; transform: rotate(45deg); }
.hm-flow li:last-child::after { display: none; }
.hm-flow b { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #1f6fe5; color: #fff; font-size: 13px; font-weight: 800; }
.hm-flow h3 { margin-top: 14px; font-size: 19px; font-weight: 780; color: var(--nt-ink); }
.hm-flow p { margin-top: 8px; font-size: 14.5px; line-height: 1.55; color: var(--nt-ink-2); }
.hm-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.hm-tags span { padding: 4px 10px; border-radius: 999px; background: var(--nt-brand-50); color: var(--nt-brand-600); font-size: 12px; font-weight: 750; }
.hm-page #workflow .nt-laptop { margin-top: 48px; }

/* ---------- Galería en campo ---------- */
.hm-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 210px; grid-auto-flow: dense; gap: 14px; margin-top: 40px; }
.hm-shot { margin: 0; }
.hm-portrait { grid-row: span 2; }
.hm-landscape { grid-column: span 2; }
.hm-shot button { position: relative; display: block; width: 100%; height: 100%; padding: 0; overflow: hidden; border: 0; border-radius: 18px; background: #0b2440; cursor: zoom-in; text-align: left; }
.hm-shot img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.hm-contain img { object-fit: contain; }
.hm-shot button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 16, 30, 0) 45%, rgba(6, 16, 30, .82)); pointer-events: none; }
.hm-shot button:hover img { transform: scale(1.04); }
.hm-shot button:focus-visible { outline: 3px solid #2674ff; outline-offset: 3px; }
.hm-shot-text { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 16px; }
.hm-shot-tag { display: inline-block; padding: 4px 10px; border-radius: 999px; background: rgba(126, 226, 168, .18); color: #a7f0c6; font-size: 11.5px; font-weight: 750; letter-spacing: .04em; }
.hm-shot-title { display: block; margin-top: 8px; font-size: 16px; line-height: 1.35; font-weight: 750; color: #fff; }
.hm-shot-zoom { position: absolute; z-index: 1; top: 12px; right: 12px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(6, 16, 30, .55); opacity: 0; transition: opacity .25s; }
.hm-shot-zoom svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.hm-shot button:hover .hm-shot-zoom, .hm-shot button:focus-visible .hm-shot-zoom { opacity: 1; }
.hm-lightbox { width: min(1100px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: 18px; background: #06101e; color: #fff; }
.hm-lightbox::backdrop { background: rgba(3, 9, 18, .82); }
.hm-lightbox img { display: block; width: 100%; max-height: 78vh; object-fit: contain; background: #000; }
.hm-lightbox p { padding: 14px 20px 18px; font-size: 14.5px; line-height: 1.55; color: #c9d6e8; }
.hm-lightbox-close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.hm-lightbox-close:focus-visible { outline: 3px solid #2674ff; outline-offset: 2px; }

/* ---------- Aplicaciones ---------- */
.hm-uses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 38px; }
.hm-use { padding: 24px 24px 26px; border: 1px solid var(--nt-line); border-top: 3px solid #1f6fe5; border-radius: 0 0 18px 18px; background: var(--nt-surface); }
.hm-use h3 { font-size: 19px; font-weight: 780; color: var(--nt-ink); }
.hm-use-tools { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 750; letter-spacing: .03em; color: var(--nt-brand-600); }
.hm-use ul { display: grid; gap: 9px; margin: 16px 0 0; padding: 0 0 0 18px; }
.hm-use li { font-size: 14.5px; line-height: 1.55; color: var(--nt-ink-2); }
.hm-use li::marker { color: #1f6fe5; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hm-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-uses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-flow li::after { display: none; }
}
@media (max-width: 980px) {
  .hm-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hm-devices-wrap { margin-top: 18px; }
  .hm-devices { max-width: 440px; padding: 10px 6% 0; }
  .hm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
  .hm-stats dt { font-size: clamp(20px, 5.2vw, 28px); }
  .hm-stats div:nth-child(3) { padding-left: 0; border-left: 0; }
  .hm-receivers { grid-template-columns: minmax(0, 1fr); }
  .hm-app, .hm-app-cam { grid-template-columns: minmax(0, 1fr); }
  .hm-app-cam .hm-app-phone { order: 0; }
  .hm-app-phone { max-width: 290px; margin: 0 auto; width: 100%; }
  .hm-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 190px; }
}
@media (max-width: 640px) {
  .hm-pillars, .hm-uses, .hm-flow { grid-template-columns: minmax(0, 1fr); }
  .hm-rx ul { grid-template-columns: minmax(0, 1fr); }
  .hm-devices { max-width: 340px; padding: 10px 4% 0; }
  .hm-dev-cam { margin-right: -14%; }
  .hm-dev-scan { margin-left: -14%; }
  .hm-fix { padding: 8px 14px; }
  .hm-fix span { font-size: 12px; }
  .hm-gallery { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 230px; }
  .hm-portrait { grid-row: span 2; }
  .hm-landscape { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-fix i { animation: none; }
  .hm-shot img, .hm-pillar { transition: none; }
}
