/* ============================================================
   StairReward — Urbanova × adidas
   Desktop-First CSS with Mobile Breakpoints
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Outfit:wght@300;400;500;600;700;800&family=Barlow+Condensed:wght@400;500;600;700;800&family=Lora:ital,wght@0,400;0,500;1,400&display=swap');

/* ============================================================
   0. Design Tokens
   ============================================================ */
:root {
  --color-navy:        #040000; /* Negro adidas */
  --color-navy-light:  #1C1C1E; /* Gris oscuro adidas */
  --color-green:       #F15C67; /* Coral Urbanova */
  --color-green-dark:  #951A2D; /* Scarlet adidas */
  --color-green-pale:  #FEEFF0; /* Coral pálido para fondo de fila activa / notificaciones */
  --color-blue:        #00327E; /* Azul Urbanova */
  --color-white:       #ffffff;
  --color-light-bg:    #F4F4F6; /* Gris Urbanova */
  --color-text-dark:   #040000; /* Negro adidas para textos sobre fondos claros */
  --color-text-muted:  #898A8D; /* Cool Grey 8C adidas */
  --color-border:      #dddddd;
  --font-heading:      'Outfit', sans-serif; /* Fallback para F37 Gruffy (Urbanova) */
  --font-body:         'Libre Franklin', sans-serif; /* Fallback para adidasFG (Franklin Gothic) */
  --font-serif:        'Lora', serif; /* Fallback para Denton (adidas serif) */
  --radius-card:       12px;
  --radius-btn:        8px;
  --shadow-card:       0 4px 20px rgba(0,0,0,0.15);
  --transition:        0.3s ease;
}

/* ============================================================
   1. Global Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: var(--font-body);
  background: var(--color-navy);
  color: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.client-only-body { /* No constraint */ }

a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; background: none; }
input, select, textarea { font-family: inherit; outline: none; }

.text-green { color: #00c853 !important; }
.text-blue { color: var(--color-blue) !important; }
.text-dark { color: var(--color-text-dark) !important; }

/* ============================================================
   2. App Container & Screen System
   ============================================================ */
.app-container {
  width: 100%;
  min-height: 100vh;
}

.mobile-screen-view {
  display: none;
  min-height: 100vh;
  width: 100%;
  flex-direction: column;
}
.mobile-screen-view.active {
  display: flex;
}

/* ============================================================
   3. Logo Styles & Navigation
   ============================================================ */
.logo-urbanova-img {
  height: 28px;
  width: auto;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}
.logo-adidas-img {
  height: 26px;
  width: auto;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}
/* Screen-1 navbar: bigger logos */
#screen-1 .logo-urbanova-img {
  height: 38px;
}
#screen-1 .logo-adidas-img {
  height: 34px;
}
.logo-light {
  filter: brightness(0) invert(1);
}

.mobile-header-logos,
.mobile-header-logos-sm,
.mobile-header-logos-static {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mobile-header-logos-static {
  padding: 20px 40px;
}
.success-logos {
  justify-content: center;
  padding-top: 30px;
}

.navbar-x {
  font-size: 18px;
  font-weight: 300;
  opacity: 0.8;
}

.top-navbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  z-index: 10;
}

/* ============================================================
   4. SCREEN 1 — Welcome Landing (01 Bienvenida)
   ============================================================ */
#screen-1 {
  position: relative;
  background-image: url('../assets/portada.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  justify-content: space-between;
}
#screen-1::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5, 15, 35, 0.7);
  clip-path: polygon(0 0, 100% 0, 0 65%);
  z-index: 1;
}
.cover-stripe-bg {
  display: none;
}
.welcome-layout {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  padding: 80px 30px 30px;
  z-index: 5;
}
.welcome-action-box {
  margin-top: 36px; /* Bajar el botón */
}
.welcome-content {
  margin-top: 40px;
}
.welcome-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 3.2rem;
  line-height: 1.05;
  color: white;
  margin-bottom: 16px;
  letter-spacing: -1px;
}
.welcome-tagline {
  font-size: 1.1rem;
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.7);
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
}
.welcome-tagline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 40px;
  height: 2px;
  background-color: var(--color-green);
}
.welcome-subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  font-style: italic;
  color: rgba(255,255,255,0.85);
  line-height: 1.4;
  margin-bottom: 20px;
}
.btn-comenzar-welcome {
  background: var(--color-green);
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-weight: 750;
  font-size: 15px;
  padding: 12px 36px;
  border-radius: 50px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0,212,85,0.3);
}
.btn-comenzar-welcome:hover {
  background: var(--color-green-dark);
  transform: translateY(-2px);
}
.welcome-badge-section {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  flex-direction: column; /* Stack vertically */
  align-items: flex-start; /* Align left */
  gap: 8px; /* Spacing between lines */
  padding-bottom: 10px; /* Raise slightly */
}
.wellness-badge {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 4px;
  color: white;
  text-transform: uppercase;
}
.by-adidas {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 14px;
  font-weight: 500;
}

/* ============================================================
   5. SCREEN 2 — Unified Autenticación Split Layout (Mockup Exact Match)
   ============================================================ */
#screen-2 {
  position: relative;
  background-color: #ffffff;
  min-height: 100vh;
  width: 100%;
}

.auth-split-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.auth-left-panel {
  width: 50%;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 80px;
}

.auth-right-panel {
  width: 50%;
  background-image: url('../assets/login_building.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
}

.auth-form-wrapper {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.auth-logos {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 50px;
  width: 100%;
}

.auth-logos .logo-urbanova-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  filter: brightness(0); /* Make Urbanova logo black */
}

.auth-logos .logo-adidas-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  filter: brightness(0); /* Make logo black/dark navy */
}

.auth-x {
  font-size: 24px;
  font-weight: 300;
  color: #001C46;
}

.auth-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 3.2rem;
  color: #001C46; /* Dark blue/navy */
  line-height: 1.1;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.auth-subtitle {
  font-size: 1.25rem;
  color: #4a5568;
  margin-bottom: 40px;
  line-height: 1.4;
  font-weight: 400;
}

.auth-form {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.auth-input-group {
  margin-bottom: 24px;
  width: 100%;
}

.auth-input-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #001C46;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.auth-input-wrapper {
  position: relative;
  width: 100%;
}

.auth-input-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #001C46;
  font-size: 16px;
  opacity: 0.9;
}

.auth-input {
  width: 100%;
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  padding: 16px 16px 16px 50px;
  font-size: 15px;
  color: #001C46;
  background-color: #ffffff;
  transition: border-color 0.2s ease;
}

.auth-input::placeholder {
  color: #a0aec0;
}

.auth-input:focus {
  border-color: #001C46;
  outline: none;
}

.auth-field-error {
  color: #e53e3e;
  font-size: 13px;
  margin-top: 8px;
  font-weight: 500;
}

.auth-info-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 35px;
  width: 100%;
}

.auth-info-note .info-icon-circle {
  color: #00327E;
  font-size: 18px;
  line-height: 1;
  margin-top: 2px;
}

.auth-info-note .info-text {
  font-size: 12px;
  color: #718096;
  font-weight: 500;
  line-height: 1.4;
}

.btn-auth-iniciar {
  width: 100%;
  padding: 18px;
  background-color: #00a852; /* Green from previous version */
  color: #ffffff;
  border: none;
  border-radius: 50px;
  font-weight: 750;
  font-size: 18px;
  font-family: var(--font-heading);
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-auth-iniciar:hover {
  background-color: #009045;
}

.auth-checkboxes-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 25px;
  width: 100%;
}

.auth-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13.5px;
  color: #001C46;
  font-weight: 500;
  line-height: 1.35;
}

.auth-checkbox-label a {
  color: #004b87;
  text-decoration: none;
  font-weight: 700;
}

.auth-checkbox-label a:hover {
  text-decoration: underline;
}

.auth-custom-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #001c46;
  margin-top: 1px;
  flex-shrink: 0;
  cursor: pointer;
}

.auth-helper-subtext {
  font-size: 12px;
  color: #001C46;
  font-weight: 600;
  text-align: center;
  width: 100%;
  margin-top: 15px;
  line-height: 1.4;
}

.auth-required-legend {
  font-size: 11px;
  color: #001C46;
  font-weight: 600;
  text-align: center;
  width: 100%;
  margin-top: 6px;
}
.mobile-error-text {
  background: #ffe0e0;
  color: #c00;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  margin-top: 10px;
}

/* ============================================================
   6. SCREEN 3 — Dominio No Autorizado (03 Dominio error)
   ============================================================ */
.error-domain-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--color-white);
  padding: 40px;
  text-align: center;
}
.error-domain-card {
  max-width: 450px;
}
.error-shield-icon {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 30px;
  color: #e74c3c;
  font-size: 80px;
}
.error-exclamation {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 36px;
  color: white;
}
.error-domain-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--color-navy);
  margin-bottom: 16px;
}
.error-domain-sub {
  font-size: 15px;
  color: var(--color-text-muted);
  margin-bottom: 40px;
}
.btn-error-understood {
  padding: 14px 50px;
  border: none;
  background: var(--color-green);
  border-radius: var(--radius-btn);
  color: white;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(0, 200, 83, 0.3);
  transition: var(--transition);
  cursor: pointer;
}
.btn-error-understood:hover {
  background: #00e676;
  color: white;
}

/* ============================================================
   7. SCREEN 4 — Registro Exitoso (04 Registro éxito)
   ============================================================ */
.success-screen-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-image: url('../assets/fondos_varios.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  padding: 40px;
}
.success-content {
  text-align: center;
  z-index: 2;
  max-width: 500px;
}
.success-check-circle {
  width: 100px;
  height: 100px;
  border: 4px solid var(--color-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.success-check-circle i {
  font-size: 44px;
  color: var(--color-green);
}
.success-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.5rem;
  color: white;
  margin-bottom: 24px;
  letter-spacing: 1px;
}
.success-card-white {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 30px;
  width: 100%;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}
.company-detected-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: none;
  padding: 0;
  margin-bottom: 0;
  text-align: left;
}
.company-icon-box {
  width: 48px;
  height: 72px;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.company-icon-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.company-info {
  display: flex;
  flex-direction: column;
}
.company-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #718096;
}
.company-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 24px;
  color: #001C46;
  margin-top: 2px;
}
.success-card-divider {
  border: 0;
  border-top: 1.5px solid #e2e8f0;
  margin: 18px 0;
  width: 100%;
}
.success-bullets-list {
  text-align: left;
  margin-bottom: 0;
}
.success-bullets-list.text-dark .bullet-item {
  color: #001C46;
  font-weight: 600;
  font-size: 13.5px;
}
.bullet-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 12px;
}
.bullet-item:last-child {
  margin-bottom: 0;
}
.bullet-item i {
  color: var(--color-green);
  font-size: 16px;
}
.btn-comenzar {
  width: 100%;
  padding: 16px;
  background: var(--color-green);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 16px;
}
.btn-comenzar:hover {
  background: var(--color-green-dark);
}
.session-saved-text {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* ============================================================
   8. SCREEN 5 & 8 — Escanear QR (05 & 08 Scan)
   ============================================================ */
.scan-screen-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-image: url('../assets/fondos_varios.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.scan-main-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
  max-width: 600px;
  width: 100%;
}
.scan-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  color: white;
  margin: 24px 0 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.scan-desc {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.25rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 30px;
  line-height: 1.35;
  font-weight: 500;
}
.scan-footer-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.85);
  text-align: left;
  line-height: 1.4;
}
.info-number-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid white;
  font-size: 11px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}
.qr-scanner-controls-box {
  display: block; /* Show simulator controls by default for easy mobile testing */
}
.scan-back-link {
  display: block;
  margin-top: 32px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  text-align: center;
}
.scan-back-link:hover {
  color: var(--color-white);
  text-decoration: underline;
}
.qr-camera-scanner-container {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto 24px;
}
#qr-camera-reader-in,
#qr-camera-reader-out {
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  overflow: hidden;
}
#qr-camera-reader-in video,
#qr-camera-reader-out video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
.qr-scanner-frame-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
}
.corner {
  position: absolute;
  width: 36px;
  height: 36px;
  border-color: #00d455;
  border-style: solid;
  border-width: 0;
}
.corner.top-left { top: 0; left: 0; border-top-width: 5px; border-left-width: 5px; }
.corner.top-right { top: 0; right: 0; border-top-width: 5px; border-right-width: 5px; }
.corner.bottom-left { bottom: 0; left: 0; border-bottom-width: 5px; border-left-width: 5px; }
.corner.bottom-right { bottom: 0; right: 0; border-bottom-width: 5px; border-right-width: 5px; }
.scan-bar {
  position: absolute;
  left: 5%;
  width: 90%;
  height: 4px;
  background: #00d455;
  box-shadow: 0 0 15px #00d455, 0 0 5px #00d455, 0 0 30px rgba(0, 212, 85, 0.5);
  animation: scan-line 2.5s ease-in-out infinite;
}
.scan-footer-info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-top: 16px;
  text-align: center;
}

/* ============================================================
   9. SCREEN 6 — Confirmar Inicio (06 Confirmar inicio)
   ============================================================ */
.confirm-start-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--color-white);
  padding: 40px;
  text-align: center;
  color: var(--color-text-dark);
}
.confirm-start-card {
  max-width: 450px;
  width: 100%;
}
.confirm-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}
.confirm-floor-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 4.5rem;
  color: var(--color-navy);
  margin-bottom: 8px;
}
.confirm-desc {
  font-size: 16px;
  color: var(--color-text-dark);
  margin-bottom: 24px;
}
.warning-badge-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f0f4f8;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 40px;
  text-align: left;
  font-size: 13px;
  color: #4a5568;
  line-height: 1.4;
}
.warning-badge-box i {
  color: #00327E;
  font-size: 16px;
}
.confirm-action-container {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}
.btn-iniciar-recorrido-circle {
  width: 170px !important;
  height: 170px !important;
  border-radius: 50% !important;
  background: #00a852 !important; /* Rich Green */
  color: #ffffff !important;
  font-family: var(--font-heading) !important;
  font-weight: 800 !important;
  font-size: 18px !important;
  border: 4px solid #001c46 !important; /* Urbanova Navy border */
  box-shadow: 0 0 0 3px #ffffff, 0 8px 30px rgba(0, 168, 82, 0.45) !important; /* White inner contour ring + green shadow */
  line-height: 1.2 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  animation: pulse-vibrate 1.5s infinite ease-in-out !important; /* Vibrant pulsing like a GIF */
  margin: 0 auto 16px !important;
  cursor: pointer !important;
  transition: var(--transition) !important;
}
.btn-iniciar-recorrido-circle:hover {
  transform: scale(1.08) !important;
  background: #009045 !important;
  box-shadow: 0 0 0 3px #ffffff, 0 8px 35px rgba(0, 144, 69, 0.6) !important;
}
.btn-cancel-link {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 15px;
  color: var(--color-text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
}
.btn-cancel-link:hover {
  color: var(--color-text-dark);
}

/* ============================================================
   10. SCREEN 7 — Recorrido Activo (07 Recorrido activo)
   ============================================================ */
.climb-active-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--color-white);
  padding: 40px;
  text-align: center;
  color: var(--color-text-dark);
}
.climb-active-card {
  max-width: 450px;
  width: 100%;
}
.climb-status-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 14px;
  color: var(--color-text-dark);
  background: #f0f0f0;
  padding: 6px 16px;
  border-radius: 50px;
}
.timer-digits-green {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 3.5rem;
  color: var(--color-green);
  margin-bottom: 8px;
}
.climb-in-progress-text {
  font-size: 15px;
  color: var(--color-text-muted);
  margin-bottom: 40px;
}
.btn-cancel-climb-red {
  width: 100%;
  padding: 16px;
  background: transparent;
  border: 2px solid #e74c3c;
  color: #e74c3c;
  border-radius: var(--radius-btn);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 1.5px;
  transition: var(--transition);
  margin-bottom: 20px;
}
.btn-cancel-climb-red:hover {
  background: #e74c3c;
  color: white;
}
.climb-max-limit-text {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* ============================================================
   11. SCREEN 9 — Confirmar Finalización (09 Conf Finalización)
   ============================================================ */
.confirm-finalize-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--color-white);
  padding: 40px;
  text-align: center;
  color: var(--color-text-dark);
}
.confirm-finalize-card {
  max-width: 450px;
  width: 100%;
}
.finalize-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--color-navy);
  margin-bottom: 30px;
}
.finalize-data-grid {
  background: var(--color-light-bg);
  border-radius: var(--radius-card);
  padding: 24px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.finalize-data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.finalize-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--color-text-muted);
}
.finalize-val {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--color-navy);
}
.finalize-hint {
  font-size: 15px;
  color: var(--color-text-muted);
  margin-bottom: 30px;
}
.btn-finalizar-recorrido-green {
  width: 100%;
  padding: 16px;
  background: var(--color-green);
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 1px;
  border-radius: var(--radius-btn);
  transition: var(--transition);
  margin-bottom: 20px;
}
.btn-finalizar-recorrido-green:hover {
  background: var(--color-green-dark);
}

/* ============================================================
   12. SCREEN 10 — Recorrido No Válido (10 Errores)
   ============================================================ */
.error-screen-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--color-white);
  padding: 40px;
  text-align: center;
  color: var(--color-text-dark);
}
.error-body-card {
  max-width: 450px;
  width: 100%;
}
.error-x-circle {
  width: 100px;
  height: 100px;
  border: 4px solid #e74c3c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
}
.error-x-circle i {
  font-size: 48px;
  color: #e74c3c;
}
.error-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--color-navy);
  margin-bottom: 12px;
}
.error-desc {
  font-size: 16px;
  color: var(--color-text-muted);
  margin-bottom: 40px;
}
.btn-error-understood-green {
  padding: 14px 60px;
  border: none;
  background: var(--color-green);
  color: white;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 16px;
  border-radius: var(--radius-btn);
  box-shadow: 0 4px 15px rgba(0, 200, 83, 0.3);
  transition: var(--transition);
  cursor: pointer;
}
.btn-error-understood-green:hover {
  background: #00e676;
  color: white;
}

/* ============================================================
   13. SCREEN 11 — Recorrido Exitoso (11 Éxito)
   ============================================================ */
.route-success-points-box {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 4rem;
  color: var(--color-green);
  margin-bottom: 24px;
}

/* ============================================================
   14. SCREEN 12 — Ranking (12 Ranking)
   ============================================================ */
.ranking-screen-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-navy);
}
.ranking-navbar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-navy);
  padding: 20px;
  height: 60px;
  flex-shrink: 0;
  position: relative !important;
}
.ranking-header-title-box {
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: white;
  padding: 10px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.update-sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
.ranking-tabs,
.winners-tabs {
  display: flex;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  padding: 4px;
  border-radius: 50px;
  width: fit-content;
  margin: 16px auto;
}
.ranking-tab,
.winners-tab {
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  background: transparent;
  transition: var(--transition);
}
.ranking-tab.active,
.winners-tab.active {
  background: white;
  color: var(--color-navy);
}

/* Podium Section */
.podium-section {
  background: var(--color-navy);
  padding: 20px 40px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.podium-container {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  max-width: 600px;
  width: 100%;
}
.podium-card {
  background: white;
  border-radius: 16px 16px 0 0;
  padding: 20px 16px 16px;
  text-align: center;
  position: relative;
  flex: 1;
  transition: var(--transition);
}
.podium-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 15px;
  color: white;
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
}
.badge-gold { background: var(--color-green); }
.badge-silver { background: #90a4ae; }
.badge-bronze { background: #ff9800; }
.podium-card-body { padding-top: 10px; }
.podium-company-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 15px;
  color: var(--color-text-dark);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.podium-points {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--color-text-dark);
  display: block;
}
.podium-pts-label {
  font-size: 12px;
  color: var(--color-text-muted);
}
.podium-first {
  min-height: 180px;
  transform: scale(1.05);
  z-index: 2;
}
.podium-second {
  min-height: 150px;
}
.podium-third {
  min-height: 130px;
}

/* Leaderboard */
.leaderboard-section {
  flex: 1;
  background: white;
  border-radius: 24px 24px 0 0;
  padding: 30px 40px 100px;
}
.leaderboard-list {
  display: flex;
  flex-direction: column;
}
.leaderboard-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}
.leaderboard-row.my-row {
  background: var(--color-green-pale);
  padding: 16px 12px;
  border-radius: 8px;
}
.lb-pos {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--color-text-dark);
  width: 40px;
}
.lb-company {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--color-text-dark);
  flex: 1;
}
.lb-company-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--color-navy);
}
.lb-pts {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--color-green-dark);
}

/* ============================================================
   15. SCREEN 13 — Ganadores (13 Ganadores)
   ============================================================ */
.winners-screen-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-navy);
}
.winners-body {
  flex: 1;
  background: white;
  border-radius: 24px 24px 0 0;
  padding: 30px 40px 100px;
}
.winners-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.winner-item-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: white;
}
.winner-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-green-pale);
  color: var(--color-green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.winner-info-details {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.win-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--color-text-dark);
}
.win-comp {
  font-size: 12px;
  color: var(--color-text-muted);
}
.win-prize {
  font-weight: 600;
  font-size: 13px;
  color: var(--color-blue);
  margin-top: 4px;
}
.winner-type-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-navy);
  background: #f0f0f0;
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: uppercase;
}
.winners-privacy-note {
  font-size: 12px;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 20px;
}

/* ============================================================
   16. SCREEN 14 — Profile
   ============================================================ */
.profile-card-details {
  text-align: center;
  background: white;
  border-radius: var(--radius-card);
  padding: 30px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
}
.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--color-blue);
  margin: 0 auto 16px;
}
.profile-email-lbl {
  color: var(--color-text-muted) !important;
  font-size: 14px;
}
.company-badge-box {
  margin-top: 12px;
}
.company-badge-text {
  background: var(--color-green-pale);
  color: var(--color-green-dark);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}
.profile-points-balance {
  background: white;
  border-radius: var(--radius-card);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
}
.pts-lbl {
  display: block;
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}
.pts-val {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 3rem;
  color: var(--color-green-dark);
  display: block;
}

/* ============================================================
   17. Bottom Navigation Bar
   ============================================================ */
.mobile-nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  background: white;
  border-top: 1px solid #eee;
  z-index: 100;
  padding: 8px 0;
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
  font-size: 11px;
  color: var(--color-text-muted);
  background: none;
  transition: var(--transition);
}
.nav-item i {
  font-size: 18px;
}
.nav-item.active {
  color: var(--color-green-dark);
}
.nav-item:hover {
  color: var(--color-navy);
}

/* ============================================================
   18. Common Buttons & Decorations
   ============================================================ */
.btn {
  font-family: var(--font-heading);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn-mobile-danger {
  background: #e74c3c;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
}
.btn-sm {
  font-size: 12px;
  padding: 6px 12px;
}
.btn-block-mobile {
  width: 100%;
  display: block;
}

.floating-admin-link {
  display: none !important; /* Hidden in production */
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  z-index: 1000;
  opacity: 0.4;
  transition: var(--transition);
  text-decoration: none;
}
.floating-admin-link:hover {
  opacity: 1;
}

@keyframes scan-line {
  0%, 100% { top: 0; }
  50% { top: calc(100% - 3px); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ============================================================
   19. ADMIN / CMS STYLING & SIDEBAR GRID
   ============================================================ */
.admin-only-body {
  background: #f8fafc;
  color: #1e293b;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.admin-sidebar-layout {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

.cms-sidebar {
  width: 240px;
  background-image: url('../assets/fondos_varios.webp');
  background-size: cover;
  background-position: center;
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
  height: 100%;
}

.admin-nav-btn {
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  border: none;
  background: transparent;
  text-align: left;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-nav-btn i {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.admin-nav-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.admin-nav-btn.active {
  background: #F15C67 !important;
  color: white !important;
}
.admin-nav-btn.active:hover {
  background: #d44353 !important;
}

.admin-main-content {
  flex: 1;
  height: 100%;
  overflow-y: auto;
  background: #f8fafc;
  padding: 40px;
}

/* CMS Table Wrapper style */
.cms-table-wrapper {
  background: white;
}

.cms-table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.cms-table-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: #001c46;
  letter-spacing: 0.5px;
}

.cms-table-actions {
  display: flex;
  gap: 8px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrapper i {
  position: absolute;
  left: 12px;
  color: #94a3b8;
  font-size: 12px;
}

.search-input-wrapper input {
  padding: 8px 12px 8px 32px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 12px;
  width: 150px;
  outline: none;
  transition: all 0.2s;
}

.search-input-wrapper input:focus {
  border-color: #00a852;
}

.cms-btn-primary {
  background: #001c46;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.cms-btn-primary:hover {
  background: #002e6e;
}

.cms-btn-secondary {
  background: white;
  color: #001c46;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.cms-btn-secondary:hover {
  background: #f8fafc;
}

.cms-table {
  width: 100%;
  border-collapse: collapse;
}

.cms-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  font-size: 11px;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cms-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 12px;
  color: #334155;
  vertical-align: middle;
}

.cms-table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  font-size: 11px;
  color: #64748b;
}

.cms-pagination {
  display: flex;
  align-items: center;
  gap: 4px;
}

.page-btn {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  padding: 0;
}

.page-btn.active {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.page-btn:hover:not(.active) {
  background: #f8fafc;
}

/* Export section styling */
.cms-export-card {
  background: white;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.export-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

.cms-export-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #00a852;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  transition: all 0.2s;
}

.cms-export-btn.btn-excel {
  color: #00a852;
  background: white;
}

.cms-export-btn.btn-excel:hover {
  background: rgba(0, 168, 82, 0.04);
}

.cms-export-btn.btn-csv {
  color: #00a852;
  background: white;
}

.cms-export-btn.btn-csv:hover {
  background: rgba(0, 168, 82, 0.04);
}

.cms-export-btn i {
  font-size: 18px;
}

/* Right Section styling */
.cms-bonus-card, .cms-raffle-card {
  background: white;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  margin-bottom: 24px;
}

.card-subtitle {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 12px;
  color: #001c46;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 12px;
}

.add-bonus-floor-row {
  margin-top: 12px;
  text-align: left;
}

.add-bonus-link {
  color: #00a852;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.add-bonus-link:hover {
  text-decoration: underline;
}

.raffle-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 16px;
}

.raffle-select-group {
  margin-bottom: 16px;
}

.raffle-select-group label {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  display: block;
  margin-bottom: 6px;
}

.next-raffle-info {
  font-size: 12px;
  color: #334155;
  margin-bottom: 20px;
}

.next-raffle-info .raffle-date {
  font-weight: 700;
}

.btn-draw {
  background: #00a852;
  width: 100%;
  padding: 12px;
  font-size: 13px;
}

.btn-draw:hover {
  background: #008f45;
}

.raffle-footer {
  margin-top: 12px;
  text-align: center;
}

.view-history-link {
  color: #00a852;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
}

.view-history-link:hover {
  text-decoration: underline;
}

/* Modal styles */
.cms-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 28, 70, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cms-modal-content {
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.cms-modal-header {
  padding: 16px 24px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cms-modal-header h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: #001c46;
  margin: 0;
}

.close-modal-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #94a3b8;
  cursor: pointer;
}

.cms-modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cms-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.raffle-result-inner {
  margin-top: 16px;
  padding: 16px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
}

.drawing-anim {
  text-align: center;
  color: #166534;
  font-size: 13px;
  font-weight: 600;
}

.winner-display {
  text-align: center;
}

.badge-status {
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  display: inline-block;
}
.badge-status.exito {
  background: #e8f5e9;
  color: #2e7d32;
}
.badge-status.fallido {
  background: #ffe0e0;
  color: #c00;
}
.badge-optional {
  font-size: 11px;
  font-weight: 700;
  color: #00a852;
  margin-left: 6px;
  background: #e8f5e9;
  padding: 2px 6px;
  border-radius: 4px;
}
.card-cms {
  background: white;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #e2e8f0;
}
.card-cms h3 {
  font-family: 'Outfit', sans-serif;
  color: #001c46;
  font-weight: 800;
  font-size: 15px;
  margin-top: 0;
  margin-bottom: 12px;
}
.cms-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.cms-metric-card {
  background: #f8fafc;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cms-metric-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #e8f5e9;
  color: #00a852;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.cms-metric-value {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: #001c46;
  line-height: 1.2;
}
.cms-metric-label {
  font-size: 11px;
  color: #64748b;
}
/* Adjust layout for smaller screens */
@media (max-width: 1024px) {
  .cms-grid-container {
    grid-template-columns: 1fr;
  }
}
/* Blank placeholder *//* ============================================================
   20. RESPONSIVE — Mobile (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  /* Navbar */
  .navbar-links { display: none; }
  .top-navbar { padding: 24px 24px; }
  .logo-urbanova-img { height: 42px; }
  .logo-adidas-img { height: 36px; }
  .navbar-x { font-size: 24px; }
  .wellness-badge { font-size: 16px; font-weight: 700; letter-spacing: 3px; }
  .welcome-badge-logos .logo-adidas-img { height: 34px; }
  .by-adidas .logo-adidas-img { height: 28px; }

  /* Welcome Screen */
  .welcome-layout { padding: 80px 24px 24px; }
  .welcome-title { font-size: 2.5rem; line-height: 1.05; }
  .welcome-subtitle { font-size: 1rem; line-height: 1.35; font-style: italic; }

  /* Auth — Mobile: Spacious form layout overlaying a faded building background (Mockup Perfect Fit) */
  #screen-2 {
    background-image: linear-gradient(to right, #ffffff 50%, rgba(255, 255, 255, 0.45) 76%, transparent 100%),
                      url('../assets/login_building.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: none; /* Hide by default on mobile */
    min-height: 100vh;
    width: 100%;
    padding: 0;
    overflow: hidden;
  }
  #screen-2.active {
    display: flex; /* Only show when active */
  }
  #screen-2::before {
    display: none;
  }
  .auth-split-layout {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    width: 100%;
    z-index: 2;
  }
  .auth-left-panel {
    width: 84%; /* Centered panel taking 84% of the screen width */
    margin: 0 auto; /* Center horizontally with equal margins */
    background-color: transparent; /* Transparent so the underlying screen-2 gradient shows through! */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Center content wrapper inside the panel */
    padding: 30px 0; /* No horizontal padding needed as margins handle it */
    border-radius: 0;
    box-shadow: none;
    min-height: 100vh;
  }
  .auth-right-panel {
    display: none; /* Hide the right panel because background is on screen-2 */
  }
  .auth-form-wrapper {
    align-items: center; /* Center content wrapper */
    max-width: 100%;
    width: 100%;
    text-align: center; /* Center text */
  }
  .auth-logos {
    margin-bottom: 25px;
    justify-content: flex-start; /* Align logos to the left corner of the centered form */
    width: 100%;
  }
  .auth-logos .logo-urbanova-img {
    height: 42px; /* Enlarge logos */
    filter: brightness(0) !important; /* Force Urbanova logo black */
  }
  .auth-logos .logo-adidas-img {
    height: 36px; /* Enlarge logos */
    filter: brightness(0) !important; /* Force logo black */
  }
  .auth-title {
    font-size: 2.3rem; /* Enlarge title */
    text-align: center; /* Center title */
    width: 100%;
    margin-bottom: 8px;
    color: #001C46;
    font-weight: 800;
  }
  .auth-subtitle {
    font-size: 1.15rem; /* Enlarge subtitle */
    text-align: center; /* Center subtitle */
    width: 100%;
    margin-bottom: 25px;
    color: #4a5568;
    line-height: 1.35;
  }
  .auth-input-group {
    margin-bottom: 18px;
    width: 100%;
    text-align: left; /* Keep labels/inputs left-aligned inside the group */
  }
  .auth-input-label {
    font-size: 12px; /* Enlarge input label */
    margin-bottom: 8px;
    font-weight: 700;
    color: #001C46;
  }
  .auth-input {
    padding: 16px 16px 16px 48px; /* Larger, more spacious padding! */
    font-size: 16px; /* Enlarge input text */
    border-radius: 8px;
    background-color: #ffffff; /* Solid white background for inputs */
    border: 1.5px solid #ddd;
    color: #0d1b2a;
  }
  .auth-input-icon {
    left: 16px;
    font-size: 17px;
    color: #888;
  }
  .btn-auth-iniciar {
    padding: 16px;
    font-size: 18px; /* Enlarge button text */
    border-radius: 50px; /* Keep pill shape style */
    font-weight: 800;
  }
  .auth-checkboxes-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
    width: 100%;
    text-align: left; /* Align text of checkboxes left */
    align-items: flex-start;
  }
  .auth-checkbox-label {
    font-size: 12px;
    line-height: 1.35;
    color: #001C46;
  }
  .auth-checkbox-label a {
    color: #004b87;
    font-weight: 700;
  }
  .auth-custom-checkbox {
    width: 16px;
    height: 16px;
  }
  .auth-helper-subtext {
    font-size: 11px;
    margin-top: 12px;
    color: #001C46;
    font-weight: 600;
  }
  .auth-required-legend {
    font-size: 10px;
    margin-top: 5px;
    color: #001C46;
    font-weight: 600;
  }

  /* Scan & Confirmation */
  .success-title {
    font-size: 1.7rem !important;
    white-space: nowrap !important;
    margin-bottom: 20px !important;
  }
  .success-card-white {
    padding: 20px 18px !important;
    margin-bottom: 24px !important;
  }
  .scan-screen-layout {
    align-items: flex-start !important;
    padding-top: 65px !important;
  }
  .scan-main-column {
    padding: 10px 20px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }
  .scan-title {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: 2.1rem !important;
    white-space: nowrap !important;
    margin-top: 10px !important;
    margin-bottom: 20px !important;
    letter-spacing: 0.5px !important;
    font-weight: 800 !important;
  }
  .scan-desc {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: 1.2rem !important;
    line-height: 1.3 !important;
    margin-bottom: 20px !important;
    font-weight: 500 !important;
  }
  .qr-camera-scanner-container {
    width: 250px !important;
    height: 250px !important;
    margin: 0 auto 15px !important;
  }
  .scan-footer-info {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    margin-top: 10px !important;
    font-size: 11px !important;
    color: rgba(255, 255, 255, 0.75) !important;
    text-align: left !important;
    line-height: 1.4 !important;
    width: 100% !important;
    max-width: 250px !important;
  }
  .info-number-circle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 16px !important;
    height: 16px !important;
    border-radius: 50% !important;
    border: 1px solid rgba(255, 255, 255, 0.75) !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    color: rgba(255, 255, 255, 0.75) !important;
    margin-top: 2px !important;
    flex-shrink: 0 !important;
  }
  .qr-scanner-controls-box {
    margin-top: 15px !important;
    padding: 10px !important;
    max-width: 250px !important;
  }
  .scan-back-link {
    margin-top: 16px !important;
    font-size: 1.35rem !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.85) !important;
  }
  .confirm-start-layout {
    align-items: flex-start !important;
    padding-top: 80px !important;
    min-height: 100% !important;
    background: var(--color-white) !important;
  }
  .confirm-start-card {
    text-align: left !important;
    width: 100% !important;
    max-width: 290px !important;
    margin: 0 auto !important;
  }
  .confirm-label {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    color: #718096 !important;
    margin-bottom: 8px !important;
    text-align: left !important;
    display: block !important;
  }
  .confirm-floor-title {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 800 !important;
    font-size: 4.8rem !important;
    color: #001C46 !important;
    margin-top: 0 !important;
    margin-bottom: 8px !important;
    line-height: 1.1 !important;
    text-align: left !important;
  }
  .confirm-desc {
    font-size: 14.5px !important;
    color: #4a5568 !important;
    margin-bottom: 24px !important;
    line-height: 1.35 !important;
    text-align: left !important;
  }
  .warning-badge-box {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    background: #f0f4f8 !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    margin: 0 0 30px !important; /* Left-aligned! */
    text-align: left !important;
    font-size: 13px !important;
    color: #4a5568 !important;
    line-height: 1.4 !important;
    width: 100% !important;
    max-width: 290px !important;
  }
  /* Circular button styles now defined globally */
  .btn-cancel-link {
    display: block !important;
    margin: 24px auto 0 !important;
    background: none !important;
    border: none !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.2rem !important;
    color: #001C46 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
  }
  .top-navbar .logo-urbanova-img {
    height: 38px !important;
  }
  .top-navbar .logo-adidas-img {
    height: 32px !important;
  }
  #screen-6, #screen-7, #screen-9 {
    background: var(--color-white) !important;
  }
  
  /* Screen 7 - Recorrido Activo Layout and Card overrides */
  .climb-active-layout {
    align-items: flex-start !important;
    padding-top: 80px !important;
    min-height: 100% !important;
    background: var(--color-white) !important;
  }
  .climb-active-card-wrapper {
    width: 100% !important;
    max-width: 290px !important;
    margin: 0 auto !important;
  }
  .climb-status-title {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 800 !important;
    font-size: 1.5rem !important;
    color: #001C46 !important;
    background: none !important;
    padding: 0 !important;
    margin-bottom: 12px !important;
    text-transform: uppercase !important;
  }
  .climb-status-title i {
    font-size: 1.3rem !important;
  }
  .climb-active-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 20px 18px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
    text-align: left !important;
    width: 100% !important;
    display: block !important;
  }
  .climb-active-card .confirm-label {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    color: #718096 !important;
    margin-bottom: 4px !important;
    display: block !important;
  }
  .climb-active-card .confirm-floor-title {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 800 !important;
    font-size: 3.5rem !important;
    color: #001C46 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    text-align: left !important;
  }
  .climb-card-divider {
    border: 0 !important;
    border-top: 1px solid #e2e8f0 !important;
    margin: 12px 0 !important;
    width: 100% !important;
  }
  .climb-active-card .timer-digits-green {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 800 !important;
    font-size: 3.8rem !important;
    color: var(--color-green) !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    text-align: left !important;
    line-height: 1.1 !important;
  }
  .climb-in-progress-text {
    font-size: 14px !important;
    color: #718096 !important;
    margin-top: 8px !important;
    margin-bottom: 20px !important;
    text-align: left !important;
  }
  .btn-finalizar-recorrido-green {
    display: block !important;
    width: 100% !important;
    max-width: 250px !important;
    margin: 0 auto 12px !important;
    padding: 12px 18px !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.25rem !important;
    border-radius: 50px !important;
    background: var(--color-green) !important;
    color: #ffffff !important;
    border: none !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
  }
  .btn-cancel-climb-red {
    display: block !important;
    width: 100% !important;
    max-width: 250px !important;
    margin: 0 auto !important;
    padding: 12px 18px !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.25rem !important;
    border-radius: 50px !important;
    background: transparent !important;
    color: #e53e3e !important;
    border: 2px solid #e53e3e !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
  }
  .climb-max-limit-text {
    font-size: 11px !important;
    color: #a0aec0 !important;
    margin-top: 15px !important;
    text-align: center !important;
  }

  /* Ranking & Winners */
  .podium-container { gap: 6px; }
  .podium-card { padding: 16px 8px; }
  .podium-points { font-size: 1.1rem; }
  .leaderboard-section { padding: 20px 20px 100px; }

  /* CMS layout collapses on mobile */
  .admin-sidebar-layout { grid-template-columns: 1fr; }
  .admin-sidebar { padding: 15px; }
  .admin-main-content { padding: 20px; }
}

/* QR Code Grid and Print/Download styling */
.qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 16px;
  max-height: 480px;
  overflow-y: auto;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}
.qr-grid-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  transition: all 0.2s;
}
.qr-grid-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.qr-grid-card-checkbox {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #00c853;
}
.qr-grid-code {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr-grid-label {
  font-size: 11px;
  font-weight: 700;
  color: #001c46;
  font-family: 'Outfit', sans-serif;
}
.qr-grid-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.qr-grid-btn:hover {
  background: #cbd5e1;
  color: #0f172a;
}
/* Print styling to make physical QR codes print beautifully */
@media print {
  body * {
    visibility: hidden;
  }
  #qr-preview-code, #qr-preview-code * {
    visibility: visible;
  }
  #qr-preview-code {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
  }
}


/* ----- Client Simulator Widget ----- */
.client-simulator-widget {
  position: fixed;
  top: 80px;
  right: 20px;
  width: 260px;
  background: rgba(30, 45, 61, 0.96);
  border: 2px solid var(--color-green);
  border-radius: 12px;
  padding: 16px;
  z-index: 1000;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  color: white;
}
@media (max-width: 768px) {
  .client-simulator-widget {
    display: none; /* Hide on real mobile views */
  }
}

@keyframes pulse-vibrate {
  0% { transform: scale(1); }
  15% { transform: scale(1.05); }
  30% { transform: scale(1.02); }
  45% { transform: scale(1.06); }
  60% { transform: scale(1); }
  100% { transform: scale(1); }
}

/* ============================================================
   Redesigned Screen 11 (Success) Styles
   ============================================================ */
.success-new-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 24px 24px;
  background: #ffffff !important;
  min-height: 100vh;
  width: 100%;
  color: #001c46 !important;
}

.success-checkmark-outer-wrapper {
  margin-top: 5px;
  margin-bottom: 16px;
}

.success-checkmark-ring-2 {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(0, 168, 82, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 168, 82, 0.15);
}

.success-checkmark-ring-1 {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(0, 168, 82, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 168, 82, 0.25);
}

.success-checkmark-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid #00a852;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 168, 82, 0.2);
}

.success-checkmark-circle i {
  color: #00a852;
  font-size: 32px;
}

.success-new-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.2rem;
  color: #001c46 !important;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.success-new-subtitle {
  font-size: 1.15rem;
  color: #718096;
  font-weight: 500;
}

.success-new-points {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 3.5rem;
  color: #00a852 !important;
  margin-top: -5px;
  margin-bottom: 34px;
}

.success-floors-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  width: 100%;
  max-width: 290px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  align-items: center;
}

.floor-col {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.floor-icon-box {
  color: #00a852;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
}

.floor-info-box {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.floor-label {
  font-size: 10px;
  font-weight: 700;
  color: #a0aec0;
  letter-spacing: 0.5px;
}

.floor-value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: #001c46 !important;
  line-height: 1.1;
}

.floor-divider-line {
  background: #e2e8f0;
  height: 36px;
  width: 1px;
}

.success-stats-rows {
  width: 100%;
  max-width: 290px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.stats-icon-text {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stats-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.stats-icon-circle.green-circle {
  background: rgba(0, 168, 82, 0.1);
  color: #00a852;
}

.stats-label {
  font-size: 13.5px;
  font-weight: 600;
  color: #4a5568;
}

.stats-value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: #001c46 !important;
}

.success-info-alert-box {
  background: #f0f7ff;
  border-radius: 12px;
  padding: 16px;
  width: 100%;
  max-width: 290px;
  border: 1px solid #e1effe;
  margin-bottom: 30px;
  text-align: left;
}

.alert-bullet {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #00327e;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
}

.alert-bullet i {
  color: #00327e;
  font-size: 14px;
  margin-top: 2px;
  flex-shrink: 0;
}

.alert-line-divider {
  border: 0;
  border-top: 1px solid #d1e5ff;
  margin: 10px 0;
}

.btn-finalizar-recorrido-new {
  width: 100%;
  max-width: 290px;
  padding: 16px;
  background: #00a852 !important;
  color: #ffffff !important;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0, 168, 82, 0.3);
  transition: background 0.2s ease, transform 0.1s ease;
  margin-bottom: 20px;
}

.btn-finalizar-recorrido-new:hover {
  background: #009045 !important;
  transform: translateY(-1px);
}

.btn-finalizar-recorrido-new:active {
  transform: translateY(0);
}

/* ============================================================
   Redesigned Screen 12 (Ranking) Styles (Mockup Exact Match)
   ============================================================ */
#screen-12 {
  background: url('/assets/fondos_varios.webp') no-repeat center center !important;
  background-size: cover !important;
}

.ranking-screen-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: transparent !important;
}

.ranking-navbar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  padding: 20px;
  height: 60px;
  flex-shrink: 0;
}

.ranking-header-title-box {
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: #ffffff !important;
  background: transparent !important;
  padding: 10px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ranking-tabs {
  display: flex;
  justify-content: center;
  background: rgba(255,255,255,0.15) !important;
  padding: 3px;
  border-radius: 50px;
  width: calc(100% - 32px);
  margin: 16px auto;
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
}

.ranking-tab {
  padding: 8px 14px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.7) !important;
  background: transparent;
  transition: var(--transition);
  flex: 1;
  text-align: center;
}

.ranking-tab.active {
  background: #ffffff !important;
  color: #001c46 !important;
}

.podium-section {
  background: rgba(0, 28, 70, 0.5) !important;
  padding: 20px 40px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.podium-card {
  background: #ffffff !important;
  border-radius: 16px 16px 0 0;
  border: 1px solid #e2e8f0;
  border-bottom: none;
  padding: 20px 16px 16px;
  text-align: center;
  position: relative;
  flex: 1;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
}

.podium-company-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 15px;
  color: #001c46 !important; /* Dark text */
  margin-bottom: 8px;
  text-transform: uppercase;
}

.podium-points {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: #001c46 !important; /* Dark text */
  display: block;
}

.podium-pts-label {
  font-size: 12px;
  color: #a0aec0 !important;
}

/* Bottom Navigation Bar styled for ranking screens (class added by JS) */
.mobile-nav-bar.ranking-active {
  background: rgba(0, 28, 70, 0.85) !important;
  border-top: 1px solid rgba(255,255,255,0.15) !important;
  backdrop-filter: blur(10px);
}

.mobile-nav-bar.ranking-active .nav-item {
  color: rgba(255, 255, 255, 0.6) !important;
}

.mobile-nav-bar.ranking-active .nav-item.active {
  color: #00a852 !important;
}

.mobile-nav-bar.ranking-active .nav-item:hover {
  color: #ffffff !important;
}

/* Table Headers for Leaderboard list */
.leaderboard-headers {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  font-size: 11px;
  font-weight: 700;
  color: #a0aec0;
  border-bottom: 2px solid #e2e8f0;
  text-transform: uppercase;
  margin-bottom: 8px;
  background: transparent !important;
}
.header-pos {
  width: 40px;
}
.header-company {
  flex: 1;
  padding-left: 48px; /* Offset to align with company name (36px logo + 12px gap) */
}
.header-pts {
  text-align: right;
}

/* Custom Podium Badge Colors matching the Mockup */
.badge-gold { background: #00c853 !important; }
.badge-silver { background: #5c7cfa !important; }
.badge-bronze { background: #ff922b !important; }


/* Force profile page header logos to be rendered in black */
#screen-14 .logo-urbanova-img,
#screen-14 .logo-adidas-img {
  filter: brightness(0) !important;
}

/* ============================================================
   Unified Brand Button Styles (UX/OX Co-Branded)
   ============================================================ */
.btn-comenzar-welcome,
.btn-auth-iniciar,
.btn-error-understood,
.btn-comenzar,
.btn-finalizar-recorrido-green,
.btn-error-understood-green,
.btn-finalizar-recorrido-new,
#success-finish-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 290px !important;
  height: auto !important;
  min-height: 52px !important;
  padding: 14px 28px !important;
  background: var(--color-green) !important; /* Coral Urbanova */
  color: #ffffff !important;
  border-radius: 50px !important; /* Unified Pill-shape */
  border: none !important;
  font-family: var(--font-heading) !important;
  font-weight: 800 !important;
  font-size: 16px !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  box-shadow: 0 4px 15px rgba(241, 92, 103, 0.3) !important;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease !important;
  cursor: pointer !important;
  margin: 0 auto 16px !important;
}

.btn-comenzar-welcome:hover,
.btn-auth-iniciar:hover,
.btn-error-understood:hover,
.btn-comenzar:hover,
.btn-finalizar-recorrido-green:hover,
.btn-error-understood-green:hover,
.btn-finalizar-recorrido-new:hover,
#success-finish-btn:hover {
  background: var(--color-green-dark) !important; /* Scarlet adidas */
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(149, 26, 45, 0.4) !important;
}

.btn-comenzar-welcome:active,
.btn-auth-iniciar:active,
.btn-error-understood:active,
.btn-comenzar:active,
.btn-finalizar-recorrido-green:active,
.btn-error-understood-green:active,
.btn-finalizar-recorrido-new:active,
#success-finish-btn:active {
  transform: translateY(0) !important;
}

@media (min-width: 768px) {
  /* Welcome Screen layout adjustments for desktop with seamless image blending */
  #screen-1 {
    background-image: none !important;
    background-color: #00122e !important;
    z-index: 0;
  }
  
  #screen-1::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    width: 48vw !important;
    max-width: 100% !important;
    background-image: url('../assets/portada.webp') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    clip-path: none !important;
    z-index: 1 !important;
  }

  #screen-1::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 48vw !important;
    max-width: 100% !important;
    background: linear-gradient(to right, #00122e 0%, rgba(0, 18, 46, 0) 30%) !important;
    z-index: 2 !important;
    pointer-events: none !important;
  }

  #screen-1 .top-navbar {
    left: 5% !important;
    padding-left: 0 !important;
    max-width: 700px !important;
    margin-top: 30px !important;
  }

  #screen-1 .welcome-layout {
    position: relative !important;
    z-index: 10 !important;
    max-width: 700px !important;
    margin: 0 auto 0 5% !important;
    padding: 120px 0 60px 0 !important;
  }

  #screen-1 .welcome-title {
    font-size: 5rem !important;
    line-height: 1.0 !important;
    margin-bottom: 24px !important;
    letter-spacing: -2px !important;
  }

  #screen-1 .welcome-subtitle {
    font-size: 1.6rem !important;
    line-height: 1.35 !important;
    margin-bottom: 36px !important;
  }

  #screen-1 .wellness-badge {
    font-size: 20px !important;
    letter-spacing: 5px !important;
  }

  #screen-1 .by-adidas {
    font-size: 18px !important;
  }

  #screen-1 .text-green {
    color: #00c853 !important; /* Vibrant green from the mock-up */
  }

  /* Center other layout components for high readability on desktop */
  .success-new-layout,
  .error-screen-layout,
  .error-domain-layout,
  .confirm-start-card,
  .climb-active-card-wrapper,
  .confirm-finalize-card {
    max-width: 540px !important;
    margin: 120px auto 40px auto !important;
    background: #ffffff !important;
    border-radius: 24px !important;
    box-shadow: 0 15px 50px rgba(0,0,0,0.3) !important;
    padding: 40px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
  }

  /* Layout transparency and background adjustments for confirmation/active screens */
  .confirm-start-layout,
  .climb-active-layout,
  .confirm-finalize-layout {
    background: transparent !important;
    min-height: 100vh !important;
  }
  
  #screen-6, #screen-7, #screen-9 {
    background: radial-gradient(circle at top right, #00327E, #040000 75%) !important;
  }

  /* Invert navbar logos to white on dark backgrounds */
  #screen-6 .logo-urbanova-img,
  #screen-6 .logo-adidas-img,
  #screen-7 .logo-urbanova-img,
  #screen-7 .logo-adidas-img {
    filter: brightness(0) invert(1) !important;
  }
  #screen-6 .navbar-x,
  #screen-7 .navbar-x {
    color: #ffffff !important;
  }

  /* Align navbar logos to the content left edge on desktop */
  #screen-1 .top-navbar {
    left: 10% !important;
    padding-left: 0 !important;
    max-width: 500px !important;
  }

  #screen-5 .top-navbar,
  #screen-6 .top-navbar,
  #screen-7 .top-navbar,
  #screen-8 .top-navbar {
    left: 50% !important;
    transform: translateX(-50%) !important;
    max-width: 540px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Wide screen dashboard-like layouts for desktop versions of key lists */
  #screen-12, #screen-13 {
    position: relative !important;
    background: radial-gradient(circle at top right, #00122e, #040000 75%) !important;
  }

  .ranking-screen-layout,
  .winners-screen-layout,
  .profile-screen-layout {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
  }

  /* Header navbar with inline tabs on desktop */
  .ranking-navbar {
    height: auto !important;
    min-height: 140px !important;
    width: 100% !important;
    padding: 24px 80px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: transparent !important;
    position: relative !important;
  }

  .ranking-navbar .navbar-logos {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
  }

  #screen-12 .ranking-header-title-box,
  #screen-13 .ranking-header-title-box {
    display: block !important;
    text-align: center !important;
    margin-bottom: 25px !important;
  }

  .ranking-tabs {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    margin: 0 auto !important;
    max-width: 450px !important;
    width: 100% !important;
    z-index: 10;
  }

  .podium-section {
    min-height: 280px !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    background: transparent !important;
    padding: 40px 0 0 0 !important;
    border-right: none !important;
  }

  .podium-container {
    max-width: 800px !important;
    width: 100% !important;
    margin: 0 auto !important;
    gap: 24px !important;
  }

  .podium-card {
    max-width: 220px !important;
    flex: 1 !important;
  }

  .leaderboard-body {
    max-width: 1200px !important;
    margin: 0 auto !important;
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr 1.5fr !important;
    gap: 30px !important;
    padding: 0 40px !important;
    flex: 1 !important;
  }

  .leaderboard-section {
    background: #ffffff !important; /* Clean white background like mockup */
    padding: 60px 80px 100px !important;
    border-radius: 24px 24px 0 0 !important;
    margin-top: 20px !important;
    flex: 1 !important;
  }

  .leaderboard-table {
    max-width: 1000px !important;
    width: 100% !important;
    margin: 0 auto !important;
  }

  .winners-body {
    background: transparent !important;
    border-radius: 0 !important;
    padding: 60px 80px 100px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    width: 100% !important;
    flex: 1 !important;
    display: grid !important;
    grid-template-columns: 1fr 1.5fr !important;
    gap: 30px !important;
  }
  .winners-body .winners-container {
    grid-column: 2 !important;
  }

  /* Split Profile layout into two columns on desktop */
  .profile-screen-layout {
    background: #ffffff !important;
    color: var(--color-text-dark) !important;
  }
  .profile-screen-layout .profile-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 40px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    width: 100% !important;
  }
  .profile-screen-layout .profile-body h2 {
    grid-column: 1 / -1;
    margin-bottom: 20px;
    color: var(--color-navy) !important;
  }
  .profile-screen-layout .profile-card-details {
    grid-column: 1;
    margin-bottom: 0;
    border: 1px solid #edf2f7;
  }
  .profile-screen-layout .profile-points-balance {
    grid-column: 2;
    margin-top: 0 !important;
    height: fit-content;
  }
  .profile-screen-layout .recent-activity-section {
    grid-column: 2;
  }
  .profile-screen-layout .active-checkin-profile-card {
    grid-column: 2;
  }
  .profile-screen-layout .profile-menu-links {
    grid-column: 1;
    margin-top: 20px !important;
  }

  .client-only-body {
    background: radial-gradient(circle at top right, #00327E, #040000 75%) !important;
  }
}

/* Global Logo Sizes - Uniform and enlarged across all screens */
.logo-urbanova-img {
  height: 48px !important;
  width: auto !important;
}
.logo-adidas-img {
  height: 42px !important;
  width: auto !important;
}
.navbar-x, .auth-x {
  font-size: 24px !important;
}

/* Global override to hide the bottom nav bar on all devices */
.mobile-nav-bar {
  display: none !important;
}

/* Hamburger Menu Icon Styles */
.hamburger-menu {
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
  font-size: 20px;
  transition: var(--transition);
  position: absolute !important;
  right: 20px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 15;
}
.hamburger-menu:hover {
  background: rgba(255, 255, 255, 0.2);
}
@media (min-width: 768px) {
  .hamburger-menu {
    right: 80px !important;
  }
}

/* Hamburger Dropdown Menu Styles */
.hamburger-dropdown {
  display: none;
  position: fixed;
  top: 70px;
  right: 20px;
  background: #00122e;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 9999;
  overflow: hidden;
  width: 180px;
}
.hamburger-dropdown.active {
  display: flex;
  flex-direction: column;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 600;
  border: none;
  background: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  width: 100%;
  text-align: left;
  transition: background 0.2s;
  cursor: pointer;
}
.dropdown-item:last-child {
  border-bottom: none;
}
.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1);
}
.dropdown-item i {
  font-size: 16px;
  color: #00c853;
  width: 20px;
  text-align: center;
}
@media (min-width: 768px) {
  .hamburger-dropdown {
    top: 80px;
    right: 80px;
    width: 220px;
  }
}

/* Styling for Leaderboard & Lists on White Background (Mockup Match) */
#ranking-list-container {
  color: var(--color-text-dark) !important;
}

#ranking-list-container .lb-pts {
  color: var(--color-navy) !important; /* Dark points in list like mockup */
}

/* Empty / Loading / Error messages inside lists */
#ranking-list-container > div[style*="color:#fff"],
#ranking-list-container > div[style*="color: #fff"] {
  color: var(--color-text-dark) !important;
}

/* Table Headers Styling visibility */
.leaderboard-headers {
  color: #718096 !important;
  border-bottom: 2px solid #edf2f7 !important;
}

/* 1. PRIZES VIEW OVERRIDES */
/* Prize Cards */
#ranking-list-container > div[style*="background:linear-gradient"],
#ranking-list-container > div[style*="background: linear-gradient"] {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02) !important;
}

/* Title of the prize */
#ranking-list-container div[style*="color:#fff"],
#ranking-list-container div[style*="color: #fff"] {
  color: var(--color-navy) !important;
}

/* Description of the prize */
#ranking-list-container p[style*="color:rgba(255,255,255,0.7)"],
#ranking-list-container p[style*="color: rgba(255,255,255,0.7)"] {
  color: #4a5568 !important;
}

/* Requirement box */
#ranking-list-container div[style*="background:rgba(255,255,255,0.06)"],
#ranking-list-container div[style*="background: rgba(255,255,255,0.06)"] {
  background: #edf2f7 !important;
  color: #4a5568 !important;
  border: 1px solid #e2e8f0 !important;
}

/* 2. WINNERS VIEW OVERRIDES */
/* Winner Rows */
#ranking-list-container > div[style*="border-bottom:1px solid rgba(255,255,255,0.08)"],
#ranking-list-container > div[style*="border-bottom: 1px solid rgba(255,255,255,0.08)"] {
  border-bottom: 1px solid #edf2f7 !important;
}

/* Winner Name */
#ranking-list-container div[style*="color:#fff"],
#ranking-list-container div[style*="color: #fff"] {
  color: var(--color-navy) !important;
}

/* Winner Company details */
#ranking-list-container div[style*="color:rgba(255,255,255,0.5)"],
#ranking-list-container div[style*="color: rgba(255,255,255,0.5)"] {
  color: #718096 !important;
}

/* Winner Date */
#ranking-list-container div[style*="color:rgba(255,255,255,0.4)"],
#ranking-list-container div[style*="color: rgba(255,255,255,0.4)"] {
  color: #a0aec0 !important;
}

/* Navigation Back Button Styles */
.back-button {
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
  font-size: 18px;
  transition: var(--transition);
  position: absolute !important;
  left: 20px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 15;
}
.back-button:hover {
  background: rgba(255, 255, 255, 0.2);
}
@media (min-width: 768px) {
  .back-button {
    left: 80px !important;
    top: 32px !important; /* aligned with top row of column stack */
    transform: translateY(-50%) !important;
  }
  .hamburger-menu {
    top: 32px !important; /* aligned with top row of column stack */
    transform: translateY(-50%) !important;
  }
}

/* Center podium card text content */
.podium-card {
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

/* Table Headers & Rows Flex Overrides */
.leaderboard-headers {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  padding: 12px 8px !important;
  box-sizing: border-box !important;
}

.leaderboard-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  padding: 12px 8px !important;
  box-sizing: border-box !important;
}

/* Company view column widths */
.leaderboard-headers.type-company .header-pos,
.leaderboard-row.type-company .lb-pos {
  width: 60px !important;
  flex-shrink: 0;
}
.leaderboard-headers.type-company .header-company,
.leaderboard-row.type-company .lb-company {
  flex: 1 !important;
  min-width: 0;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
.leaderboard-headers.type-company .header-pts,
.leaderboard-row.type-company .lb-pts {
  width: 90px !important;
  text-align: right !important;
  flex-shrink: 0;
}

/* People view column widths */
.leaderboard-headers.type-people .header-pos,
.leaderboard-row.type-people .lb-pos {
  width: 50px !important;
  flex-shrink: 0;
}
.leaderboard-headers.type-people .header-name,
.leaderboard-row.type-people .lb-name {
  flex: 1.5 !important;
  min-width: 0;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
.leaderboard-headers.type-people .header-company,
.leaderboard-row.type-people .lb-company {
  flex: 1 !important;
  min-width: 0;
}
.leaderboard-headers.type-people .header-pts,
.leaderboard-row.type-people .lb-pts {
  width: 80px !important;
  text-align: right !important;
  flex-shrink: 0;
}

/* Winners view column widths */
.leaderboard-headers.type-winners .header-winner,
.leaderboard-row.type-winners .lb-winner {
  flex: 1.3 !important;
  min-width: 0;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
.leaderboard-headers.type-winners .header-company,
.leaderboard-row.type-winners .lb-company {
  flex: 1 !important;
  min-width: 0;
}
.leaderboard-headers.type-winners .header-pts,
.leaderboard-row.type-winners .lb-pts {
  width: 65px !important;
  text-align: center !important;
  flex-shrink: 0;
}
.leaderboard-headers.type-winners .header-prize,
.leaderboard-row.type-winners .lb-prize {
  flex: 1.2 !important;
  min-width: 0;
}
.leaderboard-headers.type-winners .header-date,
.leaderboard-row.type-winners .lb-date {
  width: 80px !important;
  text-align: right !important;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .leaderboard-headers {
    font-size: 10px !important;
    padding: 8px 4px !important;
  }
  .leaderboard-row {
    font-size: 11px !important;
    padding: 10px 4px !important;
  }
  .lb-company-logo {
    width: 24px !important;
    height: 24px !important;
    font-size: 9px !important;
  }
  .lb-winner img, .lb-winner div {
    width: 26px !important;
    height: 26px !important;
  }
}


/* ============================================================
   GLOBAL PROFILE SCREEN STYLES (Mockup Target)
   ============================================================ */
.profile-screen-layout {
  background: #ffffff !important;
  color: var(--color-navy) !important;
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
}

.profile-screen-layout .ranking-navbar {
  background: transparent !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

.profile-screen-layout .back-button,
.profile-screen-layout .hamburger-menu {
  color: var(--color-navy) !important;
  background: transparent !important;
  box-shadow: none !important;
}

.profile-screen-layout .profile-body {
  padding: 0 20px 40px 20px !important;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.profile-screen-layout .profile-body h2 {
  color: var(--color-navy) !important;
  font-size: 28px !important;
  margin-bottom: 5px;
  text-align: left;
  font-weight: 700;
}

.profile-screen-layout .profile-card-details {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #f0f0f0;
}

.profile-screen-layout .profile-avatar {
  width: 60px;
  height: 60px;
  background: #f0f4f8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--color-navy);
  margin-bottom: 15px;
}

.profile-screen-layout #profile-name-lbl {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 5px;
}

.profile-screen-layout #profile-email-lbl {
  font-size: 13px;
  color: #888;
  margin-bottom: 15px;
}

.profile-screen-layout .company-badge-box {
  background: #ffeaec;
  color: #d32f2f;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.profile-screen-layout .profile-points-balance {
  background: #ffffff;
  border-radius: 16px;
  padding: 25px 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #f0f0f0;
}

.profile-screen-layout .pts-lbl {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.profile-screen-layout .pts-val {
  font-size: 42px;
  font-weight: 800;
  color: #9d2235;
}

.profile-screen-layout .recent-activity-section {
  margin-top: 10px;
}

.profile-screen-layout .recent-activity-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-screen-layout .recent-activity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid #f0f0f0;
  padding: 20px 10px;
}

.profile-screen-layout .activity-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.profile-screen-layout .activity-col:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: #f0f0f0;
}

.profile-screen-layout .activity-icon-circle {
  width: 36px;
  height: 36px;
  background: #f0f4f8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-navy);
  font-size: 14px;
  margin-bottom: 10px;
}

.profile-screen-layout .activity-label {
  font-size: 11px;
  color: #888;
  margin-bottom: 5px;
}

.profile-screen-layout .activity-val-main {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 2px;
}

.profile-screen-layout .activity-val-main.red-text {
  color: #9d2235;
}

.profile-screen-layout .activity-val-sub {
  font-size: 11px;
  color: #666;
}

.profile-screen-layout .profile-menu-links {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-screen-layout .menu-link-item {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--color-navy);
}

.profile-screen-layout .menu-link-left {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 15px;
  font-weight: 600;
}

.profile-screen-layout .menu-link-left i {
  font-size: 18px;
}

.profile-screen-layout .menu-link-chevron {
  color: #aaa;
  font-size: 14px;
}


/* ============================================================
   WINNERS TABLE OVERLAPPING & COMPRESSION FIXES
   ============================================================ */
.leaderboard-headers.type-winners .header-company {
  padding-left: 0 !important; /* Remove ranking logo offset inheritance */
}

@media (max-width: 480px) {
  /* Ensure all spans inside type-winners wrap text if squeezed and don't overlap */
  .leaderboard-headers.type-winners span,
  .leaderboard-row.type-winners > span {
    font-size: 9px !important;
    white-space: normal !important;
    word-break: break-word !important;
    line-height: 1.2 !important;
    padding: 2px !important;
    display: flex !important;
    align-items: center !important;
  }

  .leaderboard-row.type-winners {
    padding: 10px 2px !important;
  }

  /* Optimize flex shares for 5 columns on narrow screens */
  .leaderboard-headers.type-winners .header-winner,
  .leaderboard-row.type-winners .lb-winner {
    flex: 1.1 !important;
    min-width: 0 !important;
    gap: 4px !important;
  }

  .leaderboard-headers.type-winners .header-company,
  .leaderboard-row.type-winners .lb-company {
    flex: 0.9 !important;
    min-width: 0 !important;
    padding-left: 0 !important;
  }

  .leaderboard-headers.type-winners .header-pts,
  .leaderboard-row.type-winners .lb-pts {
    width: 42px !important;
    text-align: center !important;
    flex-shrink: 0 !important;
  }

  .leaderboard-headers.type-winners .header-prize,
  .leaderboard-row.type-winners .lb-prize {
    flex: 1.2 !important;
    min-width: 0 !important;
  }

  .leaderboard-headers.type-winners .header-date,
  .leaderboard-row.type-winners .lb-date {
    width: 58px !important;
    text-align: right !important;
    flex-shrink: 0 !important;
    justify-content: flex-end !important;
  }

  /* Make sure the winner badge avatar is slightly smaller on mobile to save space */
  .leaderboard-row.type-winners .lb-winner img,
  .leaderboard-row.type-winners .lb-winner div {
    width: 22px !important;
    height: 22px !important;
  }
}


/* ============================================================
   REDESIGNED WELCOME SCREEN (Mockup Target)
   ============================================================ */
.welcome-title-new {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 3.2rem;
  line-height: 1.05;
  color: white;
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.welcome-title-underline {
  width: 70px;
  height: 2px;
  background-color: var(--color-green);
  margin-bottom: 25px;
}

.welcome-headline-new {
  font-family: var(--font-heading);
  font-weight: 750;
  font-size: 2.2rem;
  line-height: 1.15;
  color: white;
  margin-bottom: 25px;
}

.welcome-wellness-box {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.welcome-wellness-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

.welcome-wellness-box .welcome-subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.35;
  margin-bottom: 0 !important;
}

.welcome-layout .btn-comenzar-welcome {
  background: #ec5262 !important;
  color: #ffffff !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  font-size: 18px !important;
  padding: 14px 44px !important;
  border-radius: 50px !important;
  letter-spacing: 0.5px !important;
  text-transform: none !important;
  box-shadow: 0 4px 15px rgba(236, 82, 98, 0.4) !important;
  width: 80% !important;
  max-width: 280px !important;
  margin: 0 auto !important;
  display: block !important;
}

.welcome-layout .btn-comenzar-welcome:hover {
  background: #d44353 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(236, 82, 98, 0.6) !important;
}

.welcome-layout .btn-comenzar-welcome:active {
  transform: scale(0.98) !important;
}

.welcome-badge-section-new {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: auto;
  margin-bottom: 15px;
  width: 100%;
}

.footer-challenge-line {
  flex: 1;
  height: 1px;
  background: var(--color-green);
  opacity: 0.5;
}

.wellness-badge-new {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.8);
}

.by-adidas-new {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  margin-bottom: 10px;
}

.by-adidas-new img {
  height: 14px;
}

/* Adjustments for Welcome elements on desktop views */
@media (min-width: 768px) {
  .welcome-title-new {
    font-size: 4rem;
  }
  .welcome-headline-new {
    font-size: 2.8rem;
  }
  .welcome-layout .btn-comenzar-welcome {
    margin: 0 !important;
  }
}


/* ============================================================
   WELCOME SCREEN CLARITY & SPACING OVERRIDES
   ============================================================ */

/* Force welcome screen dark overlay to cover 100% of the screen on mobile (removes clip-path) */
@media (max-width: 768px) {
  #screen-1::before {
    clip-path: none !important;
    background: linear-gradient(
      to bottom, 
      rgba(0, 18, 46, 0.85) 0%, 
      rgba(0, 18, 46, 0.65) 50%, 
      rgba(0, 18, 46, 0.9) 100%
    ) !important;
    z-index: 1 !important;
  }
}

/* Correct the separator and footer line colors to be actual green (since --color-green is mapped to coral red in this project) */
.welcome-title-underline {
  background-color: #00D27F !important; /* Real vibrant green */
}

.footer-challenge-line {
  background: #00D27F !important; /* Real vibrant green */
  opacity: 0.7 !important;
}

/* Mobile viewport adjustments for cleaner spacing and smaller text (prevents squeezing) */
@media (max-width: 480px) {
  .welcome-layout {
    padding: 70px 24px 20px 24px !important;
    justify-content: flex-start !important;
    gap: 25px !important;
  }

  .welcome-content {
    margin-top: 20px !important;
    display: flex;
    flex-direction: column;
    gap: 0 !important;
  }

  .welcome-title-new {
    font-size: 2.6rem !important;
    line-height: 1.1 !important;
    margin-bottom: 8px !important;
  }

  .welcome-title-underline {
    margin-bottom: 20px !important;
  }

  .welcome-headline-new {
    font-size: 1.7rem !important;
    line-height: 1.25 !important;
    margin-bottom: 20px !important;
  }

  .welcome-wellness-box {
    margin-bottom: 25px !important;
    gap: 12px !important;
  }

  .welcome-wellness-icon {
    width: 50px !important;
    height: 50px !important;
  }
  
  .welcome-wellness-icon svg {
    width: 28px !important;
    height: 28px !important;
  }

  .welcome-wellness-box .welcome-subtitle {
    font-size: 0.95rem !important;
    line-height: 1.35 !important;
  }

  .welcome-action-box {
    margin-top: 15px !important;
    margin-bottom: 10px !important;
  }

  .welcome-layout .btn-comenzar-welcome {
    font-size: 16px !important;
    padding: 12px 36px !important;
  }

  .welcome-badge-section-new {
    margin-top: auto !important;
    margin-bottom: 8px !important;
  }
}


/* ============================================================
   WELCOME SCREEN - 100% PERFECT MOCKUP ALIGNMENT
   ============================================================ */

/* Disable old clip-path overlay on mobile and apply left-to-right dark blue gradient overlay */
#screen-1::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(
    to right, 
    rgba(5, 15, 35, 0.95) 0%, 
    rgba(5, 15, 35, 0.8) 45%, 
    rgba(5, 15, 35, 0.4) 65%,
    rgba(5, 15, 35, 0.1) 100%
  ) !important;
  clip-path: none !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

/* Base welcome layout spacing on mobile */
.welcome-layout {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  flex: 1 !important;
  padding: 60px 24px 20px 24px !important;
  z-index: 5 !important;
}

.welcome-content {
  margin-top: 35px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  text-align: left !important;
}

/* Title text */
.welcome-title-new {
  font-family: var(--font-heading) !important;
  font-weight: 800 !important;
  font-size: 2.8rem !important;
  line-height: 1.05 !important;
  color: #ffffff !important;
  margin-bottom: 12px !important;
  letter-spacing: -1px !important;
  text-transform: none !important;
}

.welcome-title-underline {
  width: 60px !important;
  height: 3px !important;
  background-color: #00D27F !important; /* Real green line */
  margin-bottom: 25px !important;
  border-radius: 2px !important;
}

/* Sub-headline: Sube tu nivel, suma puntos. */
.welcome-headline-new {
  font-family: var(--font-heading) !important;
  font-weight: 800 !important;
  font-size: 1.9rem !important;
  line-height: 1.2 !important;
  color: #ffffff !important;
  margin-bottom: 25px !important;
  letter-spacing: -0.5px !important;
}

.welcome-headline-new .text-green {
  color: #00D27F !important;
}

/* Wellness box (Icon + tag line) */
.welcome-wellness-box {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 35px !important;
}

.welcome-wellness-icon {
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 50px !important;
  height: 50px !important;
}

.welcome-wellness-box .welcome-subtitle {
  font-size: 1.05rem !important;
  font-weight: 400 !important;
  font-style: italic !important;
  color: rgba(255, 255, 255, 0.8) !important;
  line-height: 1.35 !important;
  margin-bottom: 0 !important;
}

.welcome-wellness-box .welcome-subtitle .text-green {
  color: #00D27F !important;
}

/* Comenzar Button alignment */
.welcome-action-box {
  width: 100% !important;
  margin-top: 10px !important;
  display: flex !important;
  justify-content: center !important;
}

.welcome-layout .btn-comenzar-welcome {
  background: #ec5262 !important; /* Target coral red */
  color: #ffffff !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  font-size: 18px !important;
  padding: 14px 0 !important;
  border-radius: 50px !important;
  letter-spacing: 0.5px !important;
  text-transform: none !important;
  box-shadow: 0 4px 15px rgba(236, 82, 98, 0.3) !important;
  width: 100% !important;
  max-width: 270px !important;
  text-align: center !important;
  display: block !important;
}

.welcome-layout .btn-comenzar-welcome:hover {
  background: #d44353 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(236, 82, 98, 0.5) !important;
}

/* Footer layout */
.welcome-badge-section-new {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  margin-top: 40px !important;
  margin-bottom: 12px !important;
  width: 100% !important;
}

.footer-challenge-line {
  flex: 1 !important;
  height: 1px !important;
  background: #00D27F !important; /* Green line style */
  opacity: 0.5 !important;
}

.wellness-badge-new {
  font-family: var(--font-body) !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 2px !important;
  color: rgba(255, 255, 255, 0.8) !important;
}

.by-adidas-new {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 16px !important;
  margin-bottom: 5px !important;
  width: 100% !important;
}

.by-adidas-new img {
  height: 14px !important;
}

/* Desktop overrides to make sure it looks great on desktop too */
@media (min-width: 768px) {
  #screen-1::before {
    display: none !important; /* Use desktop split layout overlay instead */
  }
  .welcome-title-new {
    font-size: 4rem !important;
  }
  .welcome-headline-new {
    font-size: 2.8rem !important;
  }
  .welcome-action-box {
    justify-content: flex-start !important;
  }
}

.welcome-wellness-icon-img {
  width: 50px !important;
  height: 50px !important;
  object-fit: contain !important;
}


/* Spacing adjustments to push Comenzar button and Wellness Challenge footer down */
@media (max-width: 480px) {
  .welcome-layout {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important; /* Forces items to distribute all the way down */
    padding: 60px 24px 30px 24px !important; /* Bottom padding pushes Adidas logo slightly higher from home bar */
    height: 100% !important;
  }
  
  .welcome-content {
    margin-top: 15px !important;
    flex-grow: 0 !important;
  }

  .welcome-action-box {
    margin-top: auto !important; /* Pushes the button to fill space */
    margin-bottom: 25px !important;
  }
  
  .welcome-badge-section-new {
    margin-top: 0 !important;
    margin-bottom: 15px !important;
  }

  .by-adidas-new {
    margin-bottom: 0 !important;
  }
}


/* ============================================================
   WELCOME SCREEN STRETCH AND POSITION FIX (100% MOCKUP MATCH)
   ============================================================ */

#screen-1 {
  background-position: center bottom !important; /* Pin stairs to the bottom */
}

@media (max-width: 768px) {
  /* Force welcome-layout to fill the viewport height by using absolute positioning */
  .welcome-layout {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 70px 24px 15px 24px !important; /* Reduced bottom padding from 40px to 15px to push things lower */
    height: auto !important;
    box-sizing: border-box !important;
  }

  .welcome-content {
    margin-top: 25px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  /* Ensure Comenzar button is pushed to the bottom */
  .welcome-action-box {
    margin-top: auto !important;
    margin-bottom: 12px !important; /* Reduced margin from 25px to 12px */
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    z-index: 10 !important;
  }

  .welcome-badge-section-new {
    margin-top: 0 !important;
    margin-bottom: 0px !important; /* Reduced margin from 15px to 0px */
    z-index: 10 !important;
  }

  .by-adidas-new {
    margin-bottom: 0 !important;
    z-index: 10 !important;
  }
}


/* ============================================================
   DESKTOP WELCOME SCREEN REFINEMENTS (LOGO ALIGNMENT, IMAGE & SCALE)
   ============================================================ */

@media (min-width: 768px) {
  /* 1. Restore the climber image on the right */
  #screen-1::before {
    display: block !important;
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    width: 48vw !important;
    max-width: 100% !important;
    background-image: url('../assets/portada.webp') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    clip-path: none !important;
    z-index: 1 !important;
    pointer-events: none !important;
  }

  /* 2. Align logos with the text (left: 5%) */
  #screen-1 .top-navbar {
    left: 5% !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    max-width: 700px !important;
    top: 30px !important;
  }

  /* 3. Scale up welcome layout typography and button on desktop */
  .welcome-title-new {
    font-size: 4.8rem !important;
    line-height: 1.0 !important;
    margin-bottom: 20px !important;
    letter-spacing: -2px !important;
  }

  .welcome-title-underline {
    width: 90px !important;
    height: 4px !important;
    margin-bottom: 30px !important;
  }

  .welcome-headline-new {
    font-size: 2.2rem !important;
    line-height: 1.25 !important;
    margin-bottom: 30px !important;
    letter-spacing: -0.5px !important;
  }

  .welcome-wellness-box {
    gap: 20px !important;
    margin-bottom: 45px !important;
  }

  .welcome-wellness-icon {
    width: 60px !important;
    height: 60px !important;
  }

  .welcome-wellness-icon-img {
    width: 60px !important;
    height: 60px !important;
  }

  .welcome-wellness-box .welcome-subtitle {
    font-size: 1.35rem !important;
    line-height: 1.35 !important;
  }

  .welcome-action-box {
    justify-content: flex-start !important;
  }

  .welcome-layout .btn-comenzar-welcome {
    font-size: 20px !important;
    padding: 16px 0 !important;
    width: 100% !important;
    max-width: 300px !important;
    margin: 0 !important;
    box-shadow: 0 4px 15px rgba(236, 82, 98, 0.3) !important;
  }
}


/* ============================================================
   X LOGO SEPARATOR VERTICAL CENTER ALIGNMENT
   ============================================================ */
.navbar-logos, 
.auth-logos, 
.welcome-badge-logos, 
.by-adidas {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
}

.navbar-x, 
.auth-x {
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1 !important;
  transform: translateY(3px) !important; /* Push it down to center with logo height */
  font-weight: 300 !important;
}

/* ============================================================
   ADMIN DASHBOARD PREMIUM DESIGN SYSTEM ALIGNMENT
   ============================================================ */
.admin-only-body {
  font-family: var(--font-body), sans-serif !important;
  background: #f8fafc !important;
}

/* Active sidebar button color: Corporate Coral */
.admin-nav-btn.active {
  background: #F15C67 !important;
  font-weight: 600 !important;
}
.admin-nav-btn.active:hover {
  background: #d44353 !important;
}

/* Sidebar navigation buttons */
.admin-nav-btn {
  font-family: var(--font-body), sans-serif !important;
  border-radius: 8px !important;
  margin: 4px 8px !important;
  width: calc(100% - 16px) !important;
  font-weight: 500 !important;
}

/* Table elements styling */
.cms-table-title {
  font-family: var(--font-body), sans-serif !important;
  color: var(--color-navy) !important;
}

.cms-table th {
  font-family: var(--font-body), sans-serif !important;
  font-weight: 700 !important;
  color: var(--color-navy) !important;
  text-transform: uppercase !important;
  font-size: 11px !important;
  letter-spacing: 0.5px !important;
}

.cms-table td {
  font-family: var(--font-body), sans-serif !important;
  font-size: 13px !important;
}

/* Buttons style */
.cms-btn-primary {
  background: var(--color-navy) !important;
  font-family: var(--font-body), sans-serif !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  transition: var(--transition) !important;
}

.cms-btn-primary:hover {
  background: #0e2246 !important;
  transform: translateY(-1px) !important;
}

.cms-btn-secondary {
  font-family: var(--font-body), sans-serif !important;
  color: var(--color-navy) !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  transition: var(--transition) !important;
}

.cms-btn-secondary:hover {
  background: #f1f5f9 !important;
  color: var(--color-navy) !important;
}

/* Pagination */
.cms-pagination button {
  font-family: var(--font-body), sans-serif !important;
  border-radius: 6px !important;
}

.cms-pagination span {
  font-family: var(--font-body), sans-serif !important;
}

/* Modal header font */
.cms-modal-header h3 {
  font-family: var(--font-body), sans-serif !important;
  color: var(--color-navy) !important;
}

.card-cms h3 {
  font-family: var(--font-body), sans-serif !important;
}


/* ============================================================
   UPDATED LOGO X SEPARATOR VERTICAL CENTER ALIGNMENT
   ============================================================ */
.navbar-x, 
.auth-x {
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1 !important;
  transform: translateY(6px) !important; /* Center character perfectly */
  font-weight: 300 !important;
}

/* ============================================================
   ADMIN DASHBOARD CMS COLOR SYSTEM ALIGNMENT
   ============================================================ */
.cms-sidebar {
  width: 240px !important;
  background: linear-gradient(180deg, #00122e 0%, #000c20 100%) !important; /* Match site navy blue */
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.15) !important;
}

/* Match Eliminar button with corporate Coral Red */
button[onclick*="deleteUser"], 
button[id*="delete"], 
button[onclick*="deleteSelected"], 
button.btn-danger,
.cms-table-actions button[onclick*="delete"] {
  background: #F15C67 !important; /* Corporate Coral */
  color: white !important;
  border-radius: 8px !important;
  border: none !important;
}

button[onclick*="deleteUser"]:hover, 
button[id*="delete"]:hover, 
button[onclick*="deleteSelected"]:hover {
  background: #d44353 !important;
}

/* Ensure + Nuevo usuario uses corporate Navy Blue */
.cms-table-actions button[onclick*="openNewUserModal"] {
  background: #00122e !important;
  color: white !important;
  border-radius: 8px !important;
}

/* Apply background image for ranking screens everywhere */
#screen-12, #screen-13 {
  background: url('../assets/fondos_varios.webp') no-repeat center center !important;
  background-size: cover !important;
}


/* Hides empty podium cards properly, bypassing display:flex !important */
.podium-card.hidden-podium-card {
  display: none !important;
}

/* Trophy bounce animation for premium raffle drawing */
@keyframes trophyBounce {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.1); }
  100% { transform: translateY(0) scale(1); }
}

.winner-display-trophy {
  font-size: 40px;
  margin-bottom: 10px;
  display: inline-block;
  animation: trophyBounce 0.8s infinite ease-in-out;
}


/* Force the update-sub to always render below the main ranking title */
.update-sub {
  display: block !important;
  margin-top: 6px !important;
}
