/* Pantalla seleccion FBO — estructura; temas dia/noche en day-night-shell.css */
.page.pg-fbo {
  overflow: hidden;
  min-height: 100vh;
  max-height: 100vh;
}

.pg-fbo {
  display: flex;
}
.pg-fbo .fbowrap {
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 22px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.pg-fbo .fbohdr {
  text-align: center;
  margin-bottom: 26px;
}

.pg-fbo .fbobrand {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.01em;
  transition: color .4s;
}

.pg-fbo .fbobrand span {
  font-size: .6em;
  transition: color .4s;
}

.pg-fbo .fbowelcome {
  font-size: 13px;
  margin-top: 6px;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-weight: 600;
  transition: color .4s;
}

.pg-fbo .fbocard {
  border-radius: 20px;
  padding: 30px 26px 28px;
  text-align: left;
  transition: all .6s;
}

.pg-fbo .fbotitle {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 5px;
  text-align: center;
  letter-spacing: -.01em;
  transition: color .4s;
}

.pg-fbo .fbosub {
  font-size: 13px;
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.5;
  transition: color .4s;
}

.pg-fbo .fbolabel {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 8px;
  transition: color .4s;
}

.pg-fbo .fboselwrap {
  position: relative;
}

.pg-fbo .fboselwrap::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid #5B9BD5;
  border-bottom: 2px solid #5B9BD5;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.pg-fbo .fbosel {
  width: 100%;
  height: 50px;
  border-radius: 12px;
  padding: 0 40px 0 15px;
  font-size: 15px;
  outline: none;
  cursor: pointer;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
  transition: all .4s;
}

.pg-fbo .fbosel:focus {
  border-color: #5B9BD5;
  box-shadow: 0 0 0 3px rgba(91, 155, 213, .15);
}

.pg-fbo .fbobtn {
  width: 100%;
  height: 52px;
  margin-top: 20px;
  background: linear-gradient(135deg, #6BA8DC, #5B9BD5);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: .01em;
  box-shadow: 0 6px 16px rgba(91, 155, 213, .24);
  transition: transform .15s, box-shadow .15s;
}

.pg-fbo .fbobtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(46, 108, 164, .30);
}

.pg-fbo .fbobtn:active {
  transform: translateY(0);
}

.master-pin-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 42, 74, .55);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.master-pin-box {
  background: #fff;
  border-radius: 18px;
  padding: 26px 24px;
  max-width: 340px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}

.master-pin-title {
  font-size: 16px;
  font-weight: 700;
  color: #0E1A2B;
  margin-bottom: 6px;
}

.master-pin-reason {
  font-size: 12px;
  color: #5A6B7F;
  margin-bottom: 14px;
  line-height: 1.4;
}

.master-pin-input {
  width: 100%;
  box-sizing: border-box;
  height: 44px;
  font-size: 18px;
  letter-spacing: .2em;
  text-align: center;
  border: 1px solid #DCE6F0;
  border-radius: 10px;
  font-family: inherit;
}

.master-pin-err {
  color: #C7402E;
  font-size: 12px;
  min-height: 16px;
  margin-top: 8px;
}

.master-pin-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.master-pin-btn {
  flex: 1;
  height: 42px;
  border-radius: 10px;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.master-pin-btn-cancel {
  background: #F1F5F9;
  color: #5A6478;
}

.master-pin-btn-ok {
  background: #2E6CA4;
  color: #fff;
}

/* Solo viewports bajos (horizontal movil/tablet): scroll; escritorio sin cambios */
@media (orientation: landscape) and (max-height: 520px) {
  .page.pg-fbo {
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    align-items: flex-start;
    justify-content: flex-start;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .pg-fbo {
    overflow: visible;
    justify-content: flex-start;
    align-items: center;
  }

  .pg-fbo .fbowrap {
    padding: 12px 18px 16px;
  }

  .pg-fbo .fbohdr {
    margin-bottom: 12px;
  }

  .pg-fbo .fbobrand {
    font-size: 20px;
  }

  .pg-fbo .fbowelcome {
    font-size: 11px;
    margin-top: 4px;
    letter-spacing: .2em;
  }

  .pg-fbo .fbocard {
    padding: 18px 18px 16px;
  }

  .pg-fbo .fbocard h2 {
    font-size: 17px;
    margin-bottom: 4px;
  }

  .pg-fbo .fbocard p {
    font-size: 12px;
    margin-bottom: 14px;
  }

  .pg-fbo .fbolabel {
    font-size: 10px;
    margin-bottom: 6px;
  }

  .pg-fbo .fboselect {
    padding: 11px 14px;
    font-size: 14px;
    margin-bottom: 12px;
  }

  .pg-fbo .fbobtn {
    padding: 12px;
    font-size: 14px;
  }

  .pg-fbo .fbolink {
    margin-top: 12px;
    font-size: 12px;
  }
}
