/* ==========================================================================
   Pantalla de REPOSO (atracción) — 1920 × 1080 completos (sin riel ni pie)
   Panel blanco a la izquierda (logos GAMT y Move a color) y
   carrusel de fotos a la derecha. Solo se animan transform y opacity.
   Único ámbar fuerte de la vista: el botón .btn-amber "Explorar".
   ========================================================================== */
.screen--reposo { background: var(--bg-1); cursor: pointer; }

/* ---------------------------------------------------------------- panel izquierdo */
.screen--reposo .rep-panel {
  position: absolute; left: 0; top: 0; width: 640px; height: 1080px; z-index: 2;
  background: var(--bg-1);
  padding: 52px 56px 100px;
  display: flex; flex-direction: column;
}

/* Logos: GAMT a color + separador + Move a color (con aire alrededor) */
.screen--reposo .rep-logos { display: flex; align-items: center; flex: none; }
.screen--reposo .rep-logos__gamt { width: 210px; height: auto; display: block; flex: none; }
.screen--reposo .rep-logos__sep { width: 1px; height: 72px; background: var(--border-1); margin: 0 30px; flex: none; }
.screen--reposo .rep-logos__move { width: 196px; height: auto; display: block; flex: none; }
.screen--reposo .rep-logos__web {
  margin-left: auto; padding-left: 38px; align-self: flex-end; margin-bottom: 6px;
  font: 500 15px/1 var(--font-mono); letter-spacing: .02em; color: var(--fg-2); white-space: nowrap;
}

/* Texto principal */
/* El aire alrededor del logo de Move (≥ 1/3 de su alto = 37 px) lo dan el relleno del panel y el padding-top del texto */
.screen--reposo .rep-texto { margin: auto 0; padding: 44px 0 40px; }
.screen--reposo .rep-eyebrow { font-size: 14px; letter-spacing: .18em; }
.screen--reposo .rep-titulo {
  font: 800 70px/1.0 var(--font-display); letter-spacing: -.012em; color: var(--fg-brand);
  margin: 22px 0 26px; text-wrap: balance;
}
.screen--reposo .rep-sub { font: 400 22px/1.5 var(--font-sans); color: var(--fg-2); max-width: 528px; text-wrap: pretty; }
.screen--reposo .rep-cta { margin-top: 42px; }
.screen--reposo .rep-cta:active { transform: translateY(1px); }

/* "Toque la pantalla para comenzar" con anillos teal */
.screen--reposo .rep-toque { display: flex; align-items: center; gap: 18px; margin-top: 34px; font: 500 19px/1.2 var(--font-sans); color: var(--fg-2); }
.screen--reposo .rep-toque__anim { position: relative; width: 28px; height: 28px; flex: none; }
.screen--reposo .rep-toque__anim::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--gamt-teal); }
.screen--reposo .rep-toque__anim i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--gamt-teal); opacity: 0; animation: repToque 2.2s var(--ease-out) infinite; }
.screen--reposo .rep-toque__anim i + i { animation-delay: 1.1s; }
@keyframes repToque { 0% { transform: scale(.55); opacity: .95; } 100% { transform: scale(2.1); opacity: 0; } }

/* Ficha de dato real (sin ámbar) */
.screen--reposo .rep-dato {
  flex: none; background: var(--bg-2); border: 1px solid var(--border-1); border-radius: var(--radius-lg);
  padding: 18px 24px 18px;
}
.screen--reposo .rep-dato__cab { display: flex; align-items: center; justify-content: space-between; }
.screen--reposo .rep-dato__etq { font: 600 13px/1.2 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-teal); }
.screen--reposo .rep-dato__puntos { display: flex; gap: 8px; }
.screen--reposo .rep-dato__puntos i { width: 8px; height: 8px; border-radius: 50%; background: var(--gamt-navy); opacity: .18; transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.screen--reposo .rep-dato__puntos i.is-on { opacity: 1; transform: scale(1.25); }
.screen--reposo .rep-dato__cuerpo {
  display: grid; grid-template-columns: 176px 1fr; gap: 22px; align-items: center;
  margin-top: 12px; min-height: 82px;
}
.screen--reposo .rep-dato__valor b {
  display: block; font: 500 54px/1 var(--font-mono); font-feature-settings: "tnum" 1, "zero" 1;
  color: var(--gamt-navy); letter-spacing: -.01em; white-space: nowrap;
}
.screen--reposo .rep-dato__valor small { display: block; margin-top: 8px; font: 500 15px/1.1 var(--font-mono); color: var(--fg-2); white-space: nowrap; }
.screen--reposo .rep-dato__txt { font: 400 17px/1.45 var(--font-sans); color: var(--fg-1); text-wrap: pretty; }
.screen--reposo .rep-dato__fuente { display: flex; align-items: center; gap: 8px; margin-top: 12px; font: 500 13px/1.2 var(--font-sans); color: var(--fg-2); letter-spacing: .02em; }
.screen--reposo .rep-dato__fuente svg { width: 16px; height: 16px; color: var(--fg-teal); flex: none; }
.screen--reposo .rep-dato__cuerpo, .screen--reposo .rep-dato__fuente {
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.screen--reposo .rep-dato.is-out .rep-dato__cuerpo,
.screen--reposo .rep-dato.is-out .rep-dato__fuente { opacity: 0; transform: translateY(8px); }

/* Firma clara al pie del panel */
.screen--reposo .rep-firma { position: absolute; left: 64px; right: 64px; bottom: 44px; }

/* Entrada escalonada del panel cada vez que se activa el reposo */
.screen--reposo.is-active .rep-texto > *,
.screen--reposo.is-active .rep-dato { animation: repSube 700ms var(--ease-out) both; }
.screen--reposo.is-active .rep-texto > :nth-child(2) { animation-delay: 80ms; }
.screen--reposo.is-active .rep-texto > :nth-child(3) { animation-delay: 160ms; }
.screen--reposo.is-active .rep-texto > :nth-child(4) { animation-delay: 240ms; }
.screen--reposo.is-active .rep-texto > :nth-child(5) { animation-delay: 320ms; }
.screen--reposo.is-active .rep-dato { animation-delay: 400ms; }
@keyframes repSube { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- escena de fotos (derecha) */
.screen--reposo .rep-escena {
  position: absolute; left: 640px; top: 0; width: 1280px; height: 1080px; overflow: hidden;
  background: var(--gamt-navy);
}
.screen--reposo .rep-fotos { position: absolute; inset: 0; }
.screen--reposo .rep-foto {
  position: absolute; inset: 0; overflow: hidden;
  opacity: 0; visibility: hidden;
  transition: opacity 1400ms var(--ease-in-out);
}
.screen--reposo .rep-foto.is-on { opacity: 1; visibility: visible; z-index: 2; }
.screen--reposo .rep-foto.is-prev { opacity: 1; visibility: visible; z-index: 1; transition: none; }
.screen--reposo .rep-foto.is-sin { transition: none; }
.screen--reposo .rep-foto img {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: 50% 50%;
  transform: scale(var(--z0, 1));
}
/* Zoom lento tipo Ken Burns (solo transform) */
.screen--reposo .rep-foto img.is-kb { animation: repKb var(--kb, 9000ms) linear forwards; will-change: transform; }
@keyframes repKb { from { transform: scale(var(--z0, 1)); } to { transform: scale(var(--z1, 1.08)); } }

/* Lecturas ilustrativas sobre la foto */
.screen--reposo .rep-lecturas { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.screen--reposo .rep-lect { position: absolute; width: 0; height: 0; opacity: 0; transition: opacity var(--dur-slow) var(--ease-out); }
.screen--reposo .rep-lect.is-on { opacity: 1; }
.screen--reposo .rep-lect__punto {
  position: absolute; left: -10px; top: -10px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--gamt-teal); border: 3px solid #fff; box-shadow: var(--shadow-2);
}
.screen--reposo .rep-lect__anillo {
  position: absolute; left: -10px; top: -10px; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid #fff; opacity: 0;
}
.screen--reposo .rep-lect.is-on .rep-lect__anillo { animation: repAnillo 2s var(--ease-out) infinite; }
.screen--reposo .rep-lect.is-on .rep-lect__anillo + .rep-lect__anillo { animation-delay: 1s; }
@keyframes repAnillo { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.4); opacity: 0; } }

.screen--reposo .rep-lect__ficha {
  position: absolute; white-space: nowrap; padding: 11px 16px 12px; border-radius: 12px;
  box-shadow: var(--inset-1), var(--shadow-3);
  opacity: 0; transform: translateY(8px);
  transition: opacity var(--dur-slow) var(--ease-out) 120ms, transform var(--dur-slow) var(--ease-out) 120ms;
}
.screen--reposo .rep-lect.is-on .rep-lect__ficha { opacity: 1; transform: none; }
.screen--reposo .rep-lect--der .rep-lect__ficha { left: 22px; bottom: 18px; }
.screen--reposo .rep-lect--izq .rep-lect__ficha { right: 22px; bottom: 18px; }
.screen--reposo .rep-lect--der-abajo .rep-lect__ficha { left: 22px; top: 18px; }
.screen--reposo .rep-lect--izq-abajo .rep-lect__ficha { right: 22px; top: 18px; }
.screen--reposo .rep-lect__ficha b { display: block; font: 600 12px/1.2 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.78); margin-bottom: 7px; }
.screen--reposo .rep-lect__ficha span { display: flex; align-items: baseline; gap: 6px; }
.screen--reposo .rep-lect__ficha em { font: 500 28px/1 var(--font-mono); font-style: normal; font-feature-settings: "tnum" 1, "zero" 1; color: var(--gamt-mint); letter-spacing: .01em; }
.screen--reposo .rep-lect__ficha small { font: 500 15px/1 var(--font-mono); color: rgba(255,255,255,.66); }
/* El signo de grado va pegado a la cifra y a su tamaño (a 15 px quedaba suelto y diminuto) */
.screen--reposo .rep-lect__ficha small.is-grado { font-size: 28px; margin-left: -6px; }

/* Chip del sector de la foto (abajo a la izquierda) con progreso del carrusel */
.screen--reposo .rep-sector {
  position: absolute; left: 40px; bottom: 40px; z-index: 4;
  display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center;
  width: 420px; padding: 16px 22px 16px 16px;
  background: var(--bg-1); border-radius: var(--radius-lg); box-shadow: var(--shadow-3);
}
.screen--reposo .rep-sector__ico, .screen--reposo .rep-sector__txt > span { transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.screen--reposo .rep-sector.is-out .rep-sector__ico, .screen--reposo .rep-sector.is-out .rep-sector__txt > span { opacity: 0; transform: translateY(6px); }
.screen--reposo .rep-sector__txt b { display: block; font: 600 12px/1.2 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2); }
.screen--reposo .rep-sector__txt > span { display: block; margin-top: 4px; font: 700 24px/1.15 var(--font-display); color: var(--fg-brand); white-space: nowrap; }
.screen--reposo .rep-sector__prog { grid-column: 1 / -1; display: flex; gap: 6px; margin-top: 14px; }
.screen--reposo .rep-sector__prog i { flex: 1; height: 4px; border-radius: 2px; background: var(--neutral-200); overflow: hidden; }
.screen--reposo .rep-sector__prog u { display: block; height: 100%; background: var(--gamt-teal); transform: scaleX(0); transform-origin: 0 50%; }
.screen--reposo .rep-sector__prog i.is-hecho u { transform: scaleX(1); }
.screen--reposo .rep-sector__prog i.is-on u { animation: repProg var(--dur, 7000ms) linear forwards; }
@keyframes repProg { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Rótulos abajo a la derecha: crédito y "Lecturas ilustrativas" */
.screen--reposo .rep-rotulos { position: absolute; right: 40px; bottom: 40px; z-index: 4; display: flex; align-items: center; gap: 8px; }
.screen--reposo .rep-rotulos .ilustrativo { background: var(--bg-1); box-shadow: var(--shadow-2); padding: 9px 12px; }
.screen--reposo .rep-credito {
  font: 500 13px/1 var(--font-sans); color: var(--fg-2); background: var(--bg-1);
  padding: 9px 12px; border-radius: var(--radius-sm); box-shadow: var(--shadow-2);
}

/* Minería: la pieza instrumentada "se enciende" (trazo teal con halo blanco, solo opacity y transform) */
.screen--reposo .rep-trazo { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: scale(var(--z0, 1)); pointer-events: none; }
.screen--reposo .rep-trazo.is-kb { animation: repKb var(--kb, 9000ms) linear forwards; will-change: transform; }
.screen--reposo .rep-trazo polyline { fill: none; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity 700ms var(--ease-out); }
.screen--reposo .rep-trazo__halo { stroke: var(--gamt-navy); stroke-width: 11; }
.screen--reposo .rep-trazo__linea { stroke: var(--gamt-mint); stroke-width: 5; }
.screen--reposo .rep-trazo.is-lit .rep-trazo__halo { opacity: .5; }
.screen--reposo .rep-trazo.is-lit .rep-trazo__linea { opacity: 1; animation: repLate 1.6s var(--ease-in-out) 700ms infinite; }
@keyframes repLate { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* Etiqueta de aplicación propuesta por GAMT en el chip del sector (ámbar silencioso) */
.screen--reposo .rep-sector__txt b { display: flex; align-items: center; gap: 10px; }
.screen--reposo .rep-sector__etq { font-style: normal; }
.screen--reposo .rep-sector__prop {
  font: 600 12px/1 var(--font-mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase;
  color: var(--fg-brand); background: var(--gamt-amber-wash); border: 1px solid var(--gamt-amber-edge);
  padding: 4px 7px; border-radius: var(--radius-sm);
}
.screen--reposo .rep-sector__prop[hidden] { display: none; }
.screen--reposo .rep-sector__etq { font-style: normal; }

/* Panel de 640 px: la web va en su propia línea, bajo los logos */
.screen--reposo .rep-logos { flex-wrap: wrap; }
.screen--reposo .rep-logos__web { flex-basis: 100%; margin: 18px 0 0; padding: 0; align-self: auto; }

/* Panel de 640 px: tipografía algo más compacta para que el dato real no toque la firma */
.screen--reposo .rep-titulo { font-size: 64px; margin: 18px 0 22px; }
.screen--reposo .rep-sub { font-size: 20px; }
.screen--reposo .rep-texto { padding: 34px 0 28px; }
.screen--reposo .rep-cta { margin-top: 34px; }
.screen--reposo .rep-toque { margin-top: 28px; }
.screen--reposo .rep-dato__cuerpo { grid-template-columns: 150px 1fr; column-gap: 20px; }
.screen--reposo .rep-dato__txt { font-size: 16px; }
.screen--reposo .rep-firma { left: 56px; right: 56px; }

/* Explorar con la indicación de toque al lado, en dos líneas */
.screen--reposo .rep-accion { display: flex; align-items: center; gap: 28px; margin-top: 34px; }
.screen--reposo .rep-accion .rep-cta { margin-top: 0; flex: none; }
.screen--reposo .rep-accion .rep-toque { margin-top: 0; max-width: 220px; line-height: 1.3; }

/* QR de la feria (img/qr-expomant.svg → gamtgroup.com/expomant): tarjeta propia entre la acción y el dato,
   misma familia que la ficha de dato. 132 px = 4 px por módulo (33 × 33): nítido. Sin ámbar (el único es Explorar). */
.screen--reposo .rep-qr { flex: none; display: grid; grid-template-columns: 132px 1fr; gap: 24px; align-items: center; margin: 0 0 16px; padding: 14px 24px 14px 14px; background: var(--bg-2); border: 1px solid var(--border-1); border-radius: var(--radius-lg); }
.screen--reposo .rep-qr__img { width: 132px; height: 132px; display: block; border-radius: var(--radius-md); }
.screen--reposo .rep-qr__txt { display: flex; flex-direction: column; gap: 10px; }
.screen--reposo .rep-qr__etq { font: 600 13px/1.2 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-teal); }
.screen--reposo .rep-qr__tit { font: 600 21px/1.3 var(--font-sans); color: var(--fg-1); text-wrap: balance; }
.screen--reposo .rep-qr__web { font: 500 15px/1.2 var(--font-mono); letter-spacing: .02em; color: var(--fg-2); }
.screen--reposo.is-active .rep-qr { animation: repSube 700ms var(--ease-out) both; animation-delay: 310ms; }
