/* ============================================================
   Colegio Wellington — Header & navigation
   Single source of truth for all header/nav styling.
   Must load LAST, after bootstrap.css and bootstrap.min.css,
   so its rules win the cascade without needing !important
   everywhere. Do not add header rules anywhere else.
   ============================================================ */

/* --- Logo (replaces the old per-page inline .logo/.menu block) --- */
.navbar-default .navbar-brand.logo {
  height: 60px !important;
  width: auto !important;
  padding: 0 !important;
  margin: 10px 15px 10px 0;
  float: left;
}
.navbar-default .navbar-brand.logo img {
  height: 100%;
  width: auto;
  max-width: none;
}

/* --- Let the header use the full viewport instead of Bootstrap's
       stepped 750/970/1170px container widths, which is what was
       crowding 8 nav items into too little space. --- */
.navbar-fixed-top > .container.marketing {
  width: 100% !important;
  max-width: 1400px;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

/* --- Desktop/tablet: logo left, links right, single row --- */
@media (min-width: 768px) {
  .navbar-fixed-top > .container.marketing {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .navbar-default .navbar-header {
    float: none;
  }
  .navbar-default .navbar-collapse.menu {
    width: auto !important;
    float: none !important;
    padding: 0;
  }
  .navbar-default .navbar-nav {
    float: none;
    display: flex;
    align-items: center;
    margin: 0;
  }
  .navbar-default .navbar-nav > li {
    float: none;
  }
  .navbar-default .navbar-nav > li > a {
    padding: 32px 14px;
    font-size: 0.92em;
    white-space: nowrap;
  }
}

/* --- Laptop range is the tightest fit: shrink further --- */
@media (min-width: 768px) and (max-width: 1250px) {
  .navbar-default .navbar-nav > li > a {
    padding: 32px 8px;
    font-size: 0.8em;
  }
}

/* --- Active-page state. The original site set this to a dark
       navy (#072f3c) that was nearly invisible on the teal bar.
       White text + an orange underline reads correctly and also
       signals "you are here" better than a color swap did. --- */
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:focus,
.navbar-default .navbar-nav > .active > a:hover {
  color: #ffffff !important;
  font-weight: 800;
  background-color: transparent !important;
}
@media (min-width: 768px) {
  .navbar-default .navbar-nav > .active > a,
  .navbar-default .navbar-nav > .active > a:focus,
  .navbar-default .navbar-nav > .active > a:hover {
    padding: 32px 14px !important;
    border-bottom: 3px solid #fc9c30;
  }
}
@media (min-width: 768px) and (max-width: 1250px) {
  .navbar-default .navbar-nav > .active > a {
    padding: 32px 8px !important;
  }
}
@media (max-width: 767px) {
  .navbar-default .navbar-nav > .active > a {
    border-left: 4px solid #fc9c30;
  }
}

/* --- UNOi parent-platform link: styled as a utility pill, not
       a page in the site's own nav. Never gets the active
       underline treatment (it's an external tool, not a page). --- */
.navbar-default .navbar-nav > li > a.nav-unoi {
  color: #ffffff;
  font-size: 0.8em;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 8px 16px !important;
  margin-left: 10px;
  line-height: 1.2;
  white-space: nowrap;
  display: inline-block;
}
.navbar-default .navbar-nav > li > a.nav-unoi:hover,
.navbar-default .navbar-nav > li > a.nav-unoi:focus {
  background-color: #ff6a19;
  border-color: #ff6a19;
  color: #ffffff;
}

/* --- Mobile: collapsed menu, pill becomes a normal full-width row --- */
@media (max-width: 767px) {
  .navbar-default .navbar-nav > li > a.nav-unoi {
    border: none;
    border-radius: 0;
    margin: 0;
    padding: 10px 15px !important;
  }
}

/* --- "Agendar Cita" primary CTA — solid coral, per brand guide spec --- */
.navbar-default .navbar-nav > li > a.btn-agendar {
  color: #ffffff;
  font-size: 0.85em;
  font-weight: 800;
  background-color: #e5203a;
  border-radius: 10px;
  padding: 10px 20px !important;
  margin-left: 8px;
  white-space: nowrap;
  display: inline-block;
}
.navbar-default .navbar-nav > li > a.btn-agendar:hover,
.navbar-default .navbar-nav > li > a.btn-agendar:focus {
  background-color: #b81a2e;
  color: #ffffff;
}
@media (min-width: 768px) and (max-width: 1250px) {
  .navbar-default .navbar-nav > li > a.btn-agendar {
    font-size: 0.75em;
    padding: 9px 14px !important;
  }
}
@media (max-width: 767px) {
  .navbar-default .navbar-nav > li > a.btn-agendar {
    border-radius: 0;
    margin: 0;
    padding: 12px 15px !important;
    text-align: center;
  }
}
