/* ==========================================================================
   Páginas de apps: ROLAVIScan (rolaviscan.html) y ROLAVICam (rolavicam.html)
   en EN / ES / PT / IT. <main class="ntrip-page viewer-page rs-page">: usan los
   bloques nt- y vw- de cloud-hub.css y agregan aquí lo propio con el prefijo "rs-",
   los marcos de iPhone, Android y iPad del componente de video
   (rv-iphone / rv-android / rv-ipad) y el carrusel de capturas (rs-shots).
   ========================================================================== */

/* ---------- iPhone 16 Pro Max (video vertical) ---------- */
.rv-iphone { width: 100%; max-width: 320px; margin: 0 auto; }
.rv-iphone-body {
  position: relative; padding: 3.4%; border-radius: 16% / 7.4%; background: #0a0a0c;
  box-shadow: 0 0 0 1.5px #a8a29a, 0 0 0 4px #5f5a53, 0 0 0 5px #2c2a27, 0 40px 80px rgba(0, 0, 0, .5);
}
.rv-iphone-screen { position: relative; }
.rv-iphone .rv-video-screen { aspect-ratio: 1320 / 2868; border-radius: 13% / 6%; background: #000; }
.rv-iphone-island { position: absolute; z-index: 3; top: 1.3%; left: 50%; width: 30%; height: 3.6%; transform: translateX(-50%); border-radius: 999px; background: #000; pointer-events: none; }
.rv-iphone-island::after { content: ""; position: absolute; top: 50%; right: 13%; width: 13%; aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%; background: radial-gradient(circle at 40% 40%, #2a3550, #070910 70%); }
.rv-iphone-btn { position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #6e6961, #b8b2a8, #6e6961); }
.rv-iphone-action, .rv-iphone-volup, .rv-iphone-voldown { left: -6px; }
.rv-iphone-power, .rv-iphone-camera { right: -6px; }
.rv-iphone-action { top: 15%; height: 4.4%; }
.rv-iphone-volup { top: 22.5%; height: 8%; }
.rv-iphone-voldown { top: 32%; height: 8%; }
.rv-iphone-power { top: 25%; height: 12%; }
.rv-iphone-camera { top: 58%; height: 7%; background: linear-gradient(90deg, #4c4842, #8f897f, #4c4842); }

/* ---------- Teléfono Android (video vertical) ---------- */
.rv-android { width: 100%; max-width: 300px; margin: 0 auto; }
.rv-android-body {
  position: relative; padding: 2.8%; border-radius: 12% / 5.6%; background: #0a0a0c;
  box-shadow: 0 0 0 1.5px #8c929b, 0 0 0 4px #3f444b, 0 0 0 5px #24272c, 0 40px 80px rgba(0, 0, 0, .5);
}
.rv-android-screen { position: relative; }
.rv-android .rv-video-screen { aspect-ratio: 9 / 20; border-radius: 9.5% / 4.4%; background: #000; }
.rv-android-cam { position: absolute; z-index: 3; top: 1.7%; left: 50%; width: 3.6%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle at 40% 40%, #2a3550, #050608 70%); box-shadow: 0 0 0 2px #000; pointer-events: none; }
.rv-android-btn { position: absolute; right: -6px; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #555a61, #9aa0a8, #555a61); }
.rv-android-power { top: 24%; height: 7%; }
.rv-android-volume { top: 34%; height: 13%; }
.rv-android .rv-video-bar { margin-top: 22px; }

/* ---------- iPad Pro 13" (video horizontal) ---------- */
.rv-ipad { width: 100%; max-width: 980px; margin: 44px auto 0; }
.rv-ipad-body {
  position: relative; padding: 2.5%; border-radius: 4.6% / 6.1%; background: #0a0a0c;
  box-shadow: 0 0 0 1.5px #b3b8bf, 0 0 0 4px #565c64, 0 0 0 5px #2b2f35, 0 40px 90px rgba(11, 27, 51, .3);
}
.rv-ipad-cam { position: absolute; top: 1.05%; left: 50%; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #2a3550, #070910 70%); }
.rv-ipad-screen { position: relative; }
.rv-ipad .rv-video-screen { aspect-ratio: 4 / 3; border-radius: 2.2% / 2.9%; background: #000; }
.rv-iphone .rv-video-bar, .rv-ipad .rv-video-bar { margin-top: 22px; }

/* ---------- Hero ---------- */
.rs-page .nt-hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
.rs-page .nt-hero h1 .vw-title { font-size: clamp(36px, 4.1vw, 58px); }
.rc-page .nt-hero h1 .vw-title { font-size: clamp(34px, 3.7vw, 54px); }
.nt-wordmark .rs-appicon { width: 44px; height: 44px; margin-left: 2px; border-radius: 11px; box-shadow: 0 8px 22px rgba(0, 0, 0, .35); }
.rs-store { display: inline-flex; align-items: center; border-radius: 10px; }
.rs-store img { display: block; width: auto; height: 50px; }
.rs-store-play img { height: 58px; margin: -4px -4px; }
.rs-store:focus-visible { outline: 3px solid #2674ff; outline-offset: 4px; }
.rs-meta { margin-top: 14px; font-size: 13px; color: var(--nt-on-dark-2); }
.rs-meta span { white-space: nowrap; }
.rs-hero-device { position: relative; }
.rs-hero-device::before { content: ""; position: absolute; inset: 0 -20% 10%; background: radial-gradient(ellipse at 50% 45%, rgba(56, 132, 255, .32), transparent 66%); pointer-events: none; }
.rs-hero-device .rv-iphone { position: relative; max-width: 300px; }

/* ---------- Topografía: mapa o AR ---------- */
.rs-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 40px; }
.rs-mode { padding: clamp(24px, 3vw, 34px); border: 1px solid var(--nt-line); border-radius: 22px; background: var(--nt-surface-2); }
.rs-mode-head { display: flex; align-items: center; gap: 14px; }
.rs-mode-head svg { flex: none; width: 46px; height: 46px; padding: 10px; border-radius: 13px; background: var(--nt-brand-50); stroke: var(--nt-brand); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.rs-mode h3 { font-size: 22px; font-weight: 780; letter-spacing: -.01em; color: var(--nt-ink); }
.rs-mode > p { margin-top: 14px; font-size: 15.5px; line-height: 1.6; color: var(--nt-ink-2); }
.rs-mode ul { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.rs-mode li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.5; font-weight: 600; color: var(--nt-ink); }
.rs-mode li svg { flex: none; width: 18px; height: 18px; margin-top: 2px; stroke: var(--nt-fix); fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.rs-mode-arview, .rs-mode-video { border-color: transparent; background: linear-gradient(160deg, #0f2a4d, #0a1a33); box-shadow: 0 24px 60px rgba(11, 27, 51, .25); }
.rs-mode-arview h3, .rs-mode-arview li, .rs-mode-video h3, .rs-mode-video li { color: #fff; }
.rs-mode-arview > p, .rs-mode-video > p { color: var(--nt-on-dark-2); }
.rs-mode-arview .rs-mode-head svg, .rs-mode-video .rs-mode-head svg { background: rgba(90, 160, 255, .16); stroke: #9fd0ff; }
.rs-mode-arview li svg, .rs-mode-video li svg { stroke: #7ee2a8; }
.rs-note { display: flex; align-items: center; gap: 10px; max-width: 880px; margin: 26px auto 0; padding: 14px 18px; border: 1px solid var(--nt-brand-100); border-radius: 12px; background: var(--nt-brand-50); font-size: 15px; line-height: 1.55; color: var(--nt-ink-2); justify-content: center; text-align: center; }

/* ---------- Realidad aumentada (sección oscura con iPhone) ---------- */
.rs-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.rs-points { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.rs-points li { display: flex; align-items: flex-start; gap: 11px; padding: 14px 16px; border: 1px solid var(--nt-line-dark); border-radius: 14px; background: rgba(255, 255, 255, .04); font-size: 15px; line-height: 1.5; font-weight: 600; color: var(--nt-on-dark); }
.rs-points svg { flex: none; width: 18px; height: 18px; margin-top: 2px; stroke: #7ee2a8; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.rs-links { justify-content: flex-start; margin-top: 24px; }
.rs-split-media .rv-iphone { max-width: 290px; }

/* ---------- iPad ---------- */
.rs-page #ipad .nt-points { margin-top: 36px; }

/* ---------- Datos: entrada / salida y ecosistema ---------- */
.rs-io { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 22px; align-items: center; margin-top: 40px; }
.rs-io-col { padding: 24px 24px 26px; border: 1px solid var(--nt-line); border-radius: 20px; background: var(--nt-surface); }
.rs-io-col h3 { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--nt-brand-600); }
.rs-io-out h3 { color: #148a52; }
.rs-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.rs-tags li { padding: 7px 12px; border: 1px solid var(--nt-brand-100); border-radius: 999px; background: var(--nt-brand-50); color: var(--nt-ink); font-size: 13.5px; font-weight: 650; }
.rs-io-out .rs-tags li { border-color: #bfe8d2; background: #ecfaf2; }
.rs-io-arrow { position: relative; display: grid; place-items: center; width: 78px; height: 78px; }
.rs-io-arrow::before { content: ""; position: absolute; left: -22px; right: -22px; top: 50%; height: 2px; background: linear-gradient(90deg, #8fb9ef, #7ee2a8); z-index: 0; }
.rs-io-arrow img { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 10px 24px rgba(11, 27, 51, .22); }
.rs-eco-title { margin-top: 44px; font-size: 19px; font-weight: 760; color: var(--nt-ink); }
.rs-eco { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.rs-eco-card { position: relative; display: block; padding: 20px 46px 22px 20px; border: 1px solid var(--nt-line); border-radius: 16px; background: var(--nt-surface); transition: border-color .2s, transform .2s; }
.rs-eco-card:hover { border-color: #8fb9ef; transform: translateY(-2px); }
.rs-eco-card strong { display: block; font-size: 16px; font-weight: 760; color: var(--nt-ink); }
.rs-eco-card span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.55; color: var(--nt-ink-2); }
.rs-eco-card svg { position: absolute; top: 20px; right: 18px; width: 18px; height: 18px; fill: none; stroke: var(--nt-brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Recursos ---------- */
.rs-res { display: grid; gap: 10px; margin-top: 28px; }
.rs-res-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--nt-line); border-radius: 14px; background: var(--nt-surface-2); transition: border-color .2s; }
.rs-res-item:hover { border-color: #8fb9ef; }
.rs-res-item svg { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 11px; background: var(--nt-brand-50); fill: none; stroke: var(--nt-brand); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.rs-res-item strong { display: block; font-size: 15.5px; font-weight: 720; color: var(--nt-ink); }
.rs-res-item small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 650; letter-spacing: .04em; color: var(--nt-ink-2); }
.rs-page .nt-plan-card .rs-store img { height: 52px; }
.rs-page .nt-plan-card .nt-actions { align-items: center; }

@media (max-width: 1100px) {
  .rs-eco { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 980px) {
  .rs-page .nt-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .rs-hero-device { margin-top: 8px; }
  .rs-split { grid-template-columns: minmax(0, 1fr); }
  .rs-modes { grid-template-columns: minmax(0, 1fr); }
  .rs-io { grid-template-columns: minmax(0, 1fr); }
  .rs-io-arrow { margin: 0 auto; }
  .rs-io-arrow::before { left: 50%; right: auto; top: -22px; bottom: -22px; width: 2px; height: auto; background: linear-gradient(180deg, #8fb9ef, #7ee2a8); }
}
@media (max-width: 520px) {
  .rv-iphone { max-width: 270px; }
  .rv-ipad-body { padding: 2.2%; }
  .rs-store img { height: 46px; }
  .rs-page .nt-hero .nt-actions .rs-store { flex: 1 1 100%; justify-content: center; }
}

/* ---------- Carrusel de capturas tipo GIF (rs-shots) ---------- */
.rs-survey-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 330px); gap: clamp(28px, 5vw, 64px); align-items: center; margin-top: 40px; }
.rs-survey-grid .rs-modes { grid-template-columns: minmax(0, 1fr); margin-top: 0; gap: 18px; }
.rs-mode { transition: box-shadow .35s, border-color .35s, transform .35s; }
.rs-mode.is-current { border-color: #5aa0ff; box-shadow: 0 0 0 3px rgba(47, 127, 224, .22), 0 18px 44px rgba(11, 27, 51, .14); }
.rs-mode-arview.is-current { box-shadow: 0 0 0 3px rgba(126, 226, 168, .55), 0 24px 60px rgba(11, 27, 51, .3); }
.rs-shots { position: relative; width: 100%; max-width: 300px; margin: 0 auto; }
.rs-shots::before { content: ""; position: absolute; inset: 6% -24% 14%; background: radial-gradient(ellipse at 50% 45%, rgba(56, 132, 255, .22), transparent 66%); pointer-events: none; }
.rs-shots .rv-iphone-body { position: relative; }
.rs-shots-screen { position: relative; overflow: hidden; aspect-ratio: 600 / 1304; border-radius: 13% / 6%; background: #000; }
.rs-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s ease; }
.rs-shot.is-active { opacity: 1; }
.rs-shots-bar { margin-top: 22px; text-align: center; }
.rs-shots-ctrl { display: flex; align-items: center; justify-content: center; gap: 14px; }
.rs-shots-dots { display: flex; gap: 6px; }
.rs-shots-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: #c8d5e3; cursor: pointer; transition: width .3s, background .3s; }
.rs-shots-dots button.is-active { width: 22px; background: #1f6fe5; }
.rs-shots-dots button:focus-visible { outline: 3px solid #2674ff; outline-offset: 3px; }
.rs-shots-caption { min-height: 3em; margin-top: 12px; font-size: 13.5px; line-height: 1.5; font-weight: 600; color: var(--nt-ink-2); }

/* ---------- VIO (cuando se pierde el GNSS) ---------- */
.rs-vio { display: flex; align-items: flex-start; gap: 20px; margin-top: 22px; padding: clamp(22px, 3vw, 30px); border-radius: 22px; background: linear-gradient(135deg, #0f2a4d, #0a1a33 70%); box-shadow: 0 24px 60px rgba(11, 27, 51, .22); }
.rs-vio-icon { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 15px; background: rgba(126, 226, 168, .14); }
.rs-vio-icon svg { width: 30px; height: 30px; fill: none; stroke: #7ee2a8; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rs-vio-tag { font-size: 12px; font-weight: 800; letter-spacing: .16em; color: #7ee2a8; }
.rs-vio h3 { margin-top: 6px; font-size: 21px; font-weight: 780; color: #fff; }
.rs-vio p:not(.rs-vio-tag) { margin-top: 8px; max-width: 900px; font-size: 15.5px; line-height: 1.6; color: var(--nt-on-dark-2); }
@media (max-width: 980px) {
  .rs-survey-grid { grid-template-columns: minmax(0, 1fr); }
  .rs-survey-shots { order: -1; }
}
@media (max-width: 520px) {
  .rs-vio { flex-direction: column; gap: 14px; }
  .rs-shots { max-width: 270px; }
}
@media (prefers-reduced-motion: reduce) { .rs-shot, .rs-mode { transition: none; } }

/* ---------- Carrusel en teléfono Android y tarjetas resaltables (ROLAVICam) ---------- */
.rs-shots-android .rs-shots-screen { border-radius: 9.5% / 4.3%; }
.rs-survey-grid-cards { align-items: start; }
.rs-survey-grid-cards .nt-nets { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
.rs-survey-grid-cards .rs-survey-shots { position: sticky; top: 96px; }
.nt-net[data-rs-mode] { transition: border-color .35s, box-shadow .35s; }
.nt-net.is-current { border-color: #5aa0ff; box-shadow: 0 0 0 3px rgba(47, 127, 224, .2), 0 16px 40px rgba(11, 27, 51, .12); }
@media (max-width: 980px) { .rs-survey-grid-cards .rs-survey-shots { position: static; } }
@media (max-width: 640px) { .rs-survey-grid-cards .nt-nets { grid-template-columns: minmax(0, 1fr); } }
