/* Selector territorial premium, añadido como capa reversible. */
:root {
  --selector-navy: #102f43;
  --selector-blue: #1d5578;
  --selector-gold: #c59435;
  --selector-soft: #edf3f6;
  --selector-line: #cbd8df;
}

/* Selector de sedes completo en una sola pantalla para notebooks. */
@media (min-width: 701px) and (max-height: 820px) {
  html, body { height:100%; }
  body { min-height:100dvh; overflow:hidden; }
  .topbar { min-height:92px!important; height:92px; flex:0 0 92px; }
  .topbar-inner { min-height:92px!important; height:92px; padding-block:5px!important; }
  .topbar-logo-izq img { height:72px!important; }
  .topbar-logo-der img { width:68px!important; height:68px!important; }
  .hero {
    flex:1 1 auto!important;
    min-height:0!important;
    height:calc(100dvh - 92px)!important;
    margin:0!important;
    padding:12px 0!important;
    overflow:hidden!important;
  }
  .hero-inner {
    height:100%!important;
    min-height:0!important;
    padding:0!important;
  }
  .selector-intro,
  .selector-panel { min-height:0!important; height:100%!important; }
  .selector-intro { padding:32px 38px!important; }
  .selector-intro h1 { font-size:36px!important; line-height:1.12!important; }
  .selector-intro p { margin-top:10px!important; }
  .selector-metrics { margin-top:24px!important; }
  .selector-panel { padding:34px 42px!important; }
  .selector-panel-head { margin-bottom:22px!important; padding-bottom:20px!important; }
  .footer { display:none!important; }
}

body {
  background: linear-gradient(180deg, #edf2f5 0, #f7f9fa 55%, #eef2f4 100%);
  overflow-x: hidden;
}

#toast:not(.show) {
  visibility: hidden;
  pointer-events: none;
}

.topbar-inner,
.topbar-textos,
.topbar-derecha,
.hero,
.hero-inner,
.selector-intro,
.selector-panel,
.guided-access,
.guided-field,
.custom-department {
  min-width: 0;
}

.topbar {
  border-top: 4px solid var(--selector-navy);
  border-bottom: 1px solid #c8d4db;
  box-shadow: 0 3px 15px #102f4315;
}

.hero {
  width: min(1260px, 94%);
  margin: 34px auto 46px;
  overflow: visible;
  border: 0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 25px 65px #102f4320;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(360px, 0.88fr) minmax(520px, 1.12fr);
  min-height: 500px;
  overflow: hidden;
  padding: 0;
  border-radius: inherit;
}

.selector-intro {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 48px;
  border-radius: 22px 0 0 22px;
  background: var(--selector-navy) url("../img/portada.jpeg") center/cover
    no-repeat;
  color: #fff;
  text-align: left;
}

.selector-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #102f4340, #0b273bd9 55%, #071e2fef);
}

.selector-intro > * {
  position: relative;
  z-index: 1;
}

.selector-eyebrow {
  align-self: flex-start;
  margin-bottom: 15px;
  padding: 6px 10px;
  border: 1px solid #ffffff54;
  border-radius: 99px;
  background: #ffffff13;
  color: #f0c36a;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero .selector-intro h1 {
  max-width: 520px;
  margin: 0 0 15px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font-family: Lora, Georgia, serif;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.12;
  text-shadow: 0 2px 10px #061a28a8;
}

.selector-intro > p {
  max-width: 530px;
  margin: 0;
  color: #dfebf1;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  line-height: 1.65;
}

.selector-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-top: 30px;
  border: 1px solid #ffffff2d;
  border-radius: 9px;
  background: #ffffff20;
}

.selector-metrics article {
  min-width: 0;
  padding: 12px;
  background: #08273cb8;
}

.selector-metrics strong,
.selector-metrics span {
  display: block;
}

.selector-metrics strong {
  color: #fff;
  font-size: 20px;
}

.selector-metrics span {
  margin-top: 2px;
  color: #bdcdd6;
  font-size: 8px;
  line-height: 1.3;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.selector-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 46px;
  text-align: left;
}

.selector-panel-head {
  display: grid;
  gap: 5px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #d7e0e5;
}

.selector-panel-head > span {
  color: var(--selector-gold);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.selector-panel-head > strong {
  color: var(--selector-navy);
  font-family: Lora, Georgia, serif;
  font-size: 27px;
}

.selector-panel-head > small {
  color: #6f818b;
  font-size: 11px;
}

.guided-access {
  width: 100%;
  margin: 0;
  grid-template-columns: 1fr 30px 1fr;
  gap: 12px;
  align-items: end;
}

.guided-field {
  gap: 8px;
}

.guided-field label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #415c6c;
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.guided-field label > span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e3eaee;
  color: #71838d;
  font-size: 9px;
}

.guided-field.current label > span,
.guided-field.complete label > span {
  background: var(--selector-navy);
  color: #fff;
}

.guided-field.complete label > span {
  background: #157353;
}

.custom-department-trigger,
.guided-field select {
  height: 50px;
  border: 1px solid #b8c9d3;
  border-radius: 8px;
  background: #f8fafb;
  color: #273f4e;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
}

.custom-department-trigger {
  padding: 0 14px;
}

.guided-field select {
  padding: 0 12px;
}

.guided-field.current .custom-department-trigger,
.guided-field.current select {
  border-color: #7399b0;
  box-shadow: 0 0 0 3px #1d557812;
}

.custom-department-menu {
  top: calc(100% + 7px);
  max-height: 300px;
  padding: 6px;
  border-color: #9db5c4;
  border-radius: 8px;
  box-shadow: 0 16px 35px #102f4330;
}

.custom-department-menu button {
  min-height: 37px;
  border-radius: 5px;
  font-family: "DM Sans", sans-serif;
}

.custom-department-menu button:hover,
.custom-department-menu button:focus,
.custom-department-menu button[aria-selected="true"] {
  background: var(--selector-soft);
  color: var(--selector-navy);
}

.guided-arrow {
  height: 50px;
  color: #8ba0ac;
}

.guided-button {
  grid-column: 1 / -1;
  display: flex;
  width: 100%;
  height: 51px;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding: 0 17px;
  border: 0;
  border-radius: 8px;
  background: var(--selector-navy);
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-shadow: none;
  box-shadow: 0 8px 17px #102f4324;
}

.guided-button:hover:not(:disabled) {
  background: var(--selector-blue);
  color: #fff;
}

.guided-button:disabled {
  background: #b9c4ca;
  box-shadow: none;
}

.guided-button b {
  font-size: 17px;
}

.selector-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px solid #d4dfe5;
  border-radius: 7px;
  background: #f7f9fa;
  color: #687b86;
}

.selector-status > span {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  flex: none;
  border-radius: 50%;
  background: #dde9f0;
  color: var(--selector-blue);
  font-size: 10px;
  font-weight: 900;
}

.selector-status p {
  margin: 0;
  font-size: 10px;
  line-height: 1.4;
}

.selector-status.ready {
  border-color: #bad9cd;
  background: #eff8f4;
  color: #315e4e;
}

.selector-status.ready > span {
  background: #157353;
  color: #fff;
}

.footer {
  margin-top: auto;
  border-top: 1px solid #c7d3da;
  background: var(--selector-navy);
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .selector-intro {
    min-height: 360px;
    border-radius: 22px 22px 0 0;
  }

  .selector-panel {
    min-height: 430px;
  }
}

@media (max-width: 700px) {
  .topbar-inner {
    width: 100%;
  }

  .topbar-textos > div {
    overflow-wrap: anywhere;
  }

  .topbar-logo-der {
    display: none;
  }

  .hero {
    width: min(94%, 480px);
    margin-top: 18px;
    border-radius: 15px;
  }

  .selector-intro {
    min-height: 330px;
    padding: 28px 24px;
    border-radius: 15px 15px 0 0;
  }

  .hero .selector-intro h1 {
    font-size: 29px;
  }

  .selector-metrics {
    margin-top: 22px;
  }

  .selector-metrics article {
    padding: 9px;
  }

  .selector-metrics strong {
    font-size: 17px;
  }

  .selector-panel {
    min-height: 0;
    padding: 30px 22px;
  }

  .selector-panel-head {
    margin-bottom: 23px;
  }

  .guided-access {
    grid-template-columns: 1fr;
  }

  .guided-arrow {
    display: none;
  }
}
