/* Grabación con GPS (carreras-app.js). Valores de DESIGN.md: superficie #0b0d0e, borde #1c2023, cian #00e5f0, dorado #d4a843.
   Tarjetas 22px, botones 14px (48px el principal, 44px los demás), letra de etiquetas Barlow Condensed. */
.gps-grabar { margin: 0 0 16px; padding: 16px; background: #0b0d0e; border: 1px solid #1c2023; border-radius: 22px; display: grid; gap: 12px; }
.gps-grabar-txt b { display: block; font-family: 'Barlow Condensed', sans-serif; font-size: 20px; letter-spacing: .06em; text-transform: uppercase; color: #f2f0eb; font-weight: 700; }
.gps-grabar-txt span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: #a39e94; }
.gps-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 14px; border: 1.5px solid #00e5f0; background: transparent; color: #00e5f0;
  font-family: 'Barlow Condensed', sans-serif; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; cursor: pointer; }
.gps-btn-p { min-height: 48px; background: #00e5f0; color: #000; border-color: #00e5f0; }
.gps-btn-s { border-color: #2a2f33; color: #f2f0eb; }
.gps-btn-t { border-color: transparent; text-decoration: underline; }
.gps-btn:disabled { opacity: .5; cursor: default; }
.gps-btn:focus-visible, .gps-x:focus-visible, .gps-check input:focus-visible, #gpsRadio:focus-visible { outline: 2px solid #00e5f0; outline-offset: 2px; }
.gps-estado { margin: 0; min-height: 0; font-size: 13px; line-height: 1.45; color: #00e5f0; }
.gps-estado:empty { display: none; }
.gps-err { color: #ff8a1f !important; }

.gps-overlay { position: fixed; inset: 0; z-index: 100000; background: #000; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: max(16px, env(safe-area-inset-top)) 16px calc(120px + env(safe-area-inset-bottom)); }
.gps-panel { max-width: 560px; margin: 0 auto; color: #f2f0eb; font-size: 14px; line-height: 1.5; }
.gps-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.gps-cab h2 { margin: 0; font-family: 'Bebas Neue', 'Barlow Condensed', sans-serif; font-weight: 400; font-size: 28px; letter-spacing: 1px; color: #fff; }
.gps-x { width: 44px; height: 44px; border-radius: 22px; border: 0; background: rgba(255,255,255,.1); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.gps-caja { background: #0b0d0e; border: 1px solid #1c2023; border-radius: 22px; padding: 16px; margin-bottom: 14px; display: grid; gap: 12px; }
.gps-caja h3 { margin: 0; font-family: 'Barlow Condensed', sans-serif; font-size: 18px; letter-spacing: .06em; text-transform: uppercase; color: #d4a843; font-weight: 700; }
.gps-caja p { margin: 0; }
.gps-peq { font-size: 13px; color: #a39e94; }
.gps-fila { display: flex; flex-wrap: wrap; gap: 8px; }
.gps-check { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.gps-check input { width: 22px; height: 22px; accent-color: #00e5f0; flex: none; }
#gpsRadioBox { display: grid; gap: 8px; }
#gpsRadioBox[hidden] { display: none; }
#gpsRadio { width: 100%; min-height: 44px; accent-color: #00e5f0; }
.gps-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gps-lista li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid #1c2023; }
.gps-lista li:first-child { border-top: 0; }
.gps-lista b { display: block; font-size: 15px; }
.gps-lista span { display: block; font-size: 12px; color: #a39e94; }
.gps-btn-curso { background: #d4a843; border-color: #d4a843; color: #000; text-align: center; line-height: 1.25; padding-top: 6px; padding-bottom: 6px; }

.gps-corta { margin: 0 0 14px; padding: 12px 14px; border: 1px solid #d4a843; border-radius: 16px; background: #0b0d0e; display: grid; gap: 10px; color: #f2f0eb; font-size: 13px; line-height: 1.45; }

/* Resultado por tramos (carrera grabada desde una sesión) y botón «Iniciar con GPS» de la pantalla de ejecución */
.trp-gps { box-sizing: border-box; width: 100%; max-width: 100%; display: grid; gap: 10px; margin: 18px 0 6px; padding: 14px; background: #0b0d0e; border: 1px solid #1c2023; border-radius: 22px; }
.trp-gpst b { display: block; font-family: 'Barlow Condensed', sans-serif; font-size: 18px; letter-spacing: .06em; text-transform: uppercase; color: #d4a843; }
.trp-gpst span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: #a39e94; }
.trp-gps .trv-gps-btn { width: 100%; }
.gps-tramos { margin: 0 0 12px; padding: 12px 14px; background: #0b0d0e; border: 1px solid #1c2023; border-radius: 22px; }
.gps-tramos h4 { margin: 0 0 6px; font-family: 'Barlow Condensed', sans-serif; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: #d4a843; font-weight: 700; }
.gps-tramos ul { list-style: none; margin: 0; padding: 0; }
.gps-tr { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 8px 0; border-top: 1px solid #1c2023; }
.gps-tr:first-child { border-top: 0; }
.gps-tr b { display: block; font-size: 14px; color: #f2f0eb; }
.gps-tr span { display: block; font-size: 12px; color: #a39e94; }
.gps-tr-r { text-align: right; flex: none; }
.gps-tr-ok .gps-tr-r span { color: #27ae60; }
.gps-tr-rapido .gps-tr-r span, .gps-tr-lento .gps-tr-r span { color: #ff8a1f; }
