:root {
  --onei-blue: #004D9D;
  --onei-navy: #213a70;
  --onei-bg: #f5f7fb;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--onei-bg);
  color: #13304d;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 0 rgba(13, 88, 166, 0.08);
}

.site-header__top {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-brand img {
  width: min(240px, 100%);
}

.site-actions {
  display: flex;
  gap: 0.7rem;
}

.site-actions--mobile {
  padding: 1rem 0 0;
}

.site-actions a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--onei-blue);
  font-size: 1.2rem;
  border-radius: 0.35rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.site-actions a img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
}

.site-actions a:hover,
.site-actions a:focus-visible {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 16px rgba(13, 88, 166, 0.2);
  filter: brightness(1.08);
}

.site-actions a:active {
  transform: translateY(0) scale(0.98);
}

.main-nav {
  border-top: 1px solid rgba(13, 88, 166, 0.05);
  border-bottom: 1px solid rgba(13, 88, 166, 0.08);
  background: #fff;
  position: relative;
  z-index: 1005;
}

.main-nav__list {
  margin: 0;
  padding: 1.1rem 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.25rem;
}

.main-nav__list .nav-link {
  color: var(--onei-blue);
  font-size: 1.15rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  white-space: nowrap;
}

.main-nav__list .dropdown-menu {
  border: 0;
  border-radius: 0;
  box-shadow: 0 18px 36px rgba(19, 48, 77, 0.12);
  padding: 0;
  min-width: 320px;
  overflow: hidden;
  background: #fff;
  border-right: 1px solid rgba(13, 88, 166, 0.55);
  border-bottom: 1px solid rgba(13, 88, 166, 0.55);
  z-index: 1200;
}

.main-nav__list .dropdown-item {
  color: var(--onei-blue);
  border-radius: 0;
  padding: 0.9rem 1.1rem;
  font-size: 1rem;
  border-bottom: 1px solid rgba(13, 88, 166, 0.1);
  background: #fff;
}

.main-nav__list .dropdown-item:hover,
.main-nav__list .dropdown-item:focus,
.main-nav__list .dropdown-item.active {
  background: var(--onei-blue);
  color: #fff;
}

.navbar-toggle {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 0.75rem;
  background: rgba(13, 88, 166, 0.1);
  color: var(--onei-blue);
  font-size: 1.6rem;
}

.placeholder-page,
.partner-page {
  min-height: calc(100vh - 230px);
  display: flex;
  align-items: center;
}

.provincia-page {
  min-height: calc(100vh - 230px);
  background: linear-gradient(180deg, #f7f9fd, #ffffff);
}

.provincia-page__header {
  max-width: 640px;
  margin-bottom: 2rem;
}

.provincia-page__eyebrow {
  display: inline-block;
  margin-bottom: 0.65rem;
  color: var(--onei-blue);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.provincia-page__header h1 {
  margin: 0 0 0.75rem;
  color: #20335d;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.provincia-page__header p {
  color: #5d6d89;
  font-size: 1.05rem;
}

.provincia-page__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.provincia-page__crumb {
  margin: 0 0 1rem;
  color: #8a8f98;
}

.provincia-page__crumb a {
  color: #004D9D;
}


.provincia-stat-card,
.provincia-page__summary {
  background: #fff;
  border-radius: 1rem;
  padding: 1.35rem;
  box-shadow: 0 16px 32px rgba(19, 48, 77, 0.08);
}

.provincia-stat-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  border: 1px solid transparent;
}

.provincia-stat-card:hover,
.provincia-stat-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 22px 42px rgba(19, 48, 77, 0.14);
  border-color: rgba(0, 77, 157, 0.16);
}

.provincia-stat-card span {
  display: block;
  margin-bottom: 0.4rem;
  color: #6a7891;
  font-size: 0.95rem;
}

.provincia-stat-card strong {
  color: #20335d;
  font-size: 1.35rem;
}

.provincia-page__summary {
  margin-top: 1.25rem;
}

.provincia-page__summary h2 {
  margin: 0 0 0.45rem;
  color: #20335d;
  font-size: 1.2rem;
}

.provincia-page__summary p {
  margin: 0;
  color: #5d6d89;
}

.placeholder-pill {
  display: inline-flex;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(13, 88, 166, 0.12);
  color: var(--onei-blue);
  font-weight: 600;
}

.placeholder-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.placeholder-copy {
  max-width: 36rem;
  font-size: 1.1rem;
  color: #54708d;
}

.notify-wrap {
  position: fixed;
  right: 1rem;
  z-index: 1080;
}

.partner-page__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.partner-page__back,
.partner-page__link {
  color: var(--onei-blue);
  font-weight: 600;
}

.partner-frame-wrap {
  border-radius: 1.5rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 25px 60px rgba(19, 48, 77, 0.12);
}

.partner-frame {
  width: 100%;
  min-height: 75vh;
  border: 0;
  background: #fff;
}

.partner-tile {
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.partner-tile:hover,
.partner-tile:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(19, 48, 77, 0.12);
}

.partner-tile:active {
  transform: scale(0.97);
  opacity: 0.92;
}

.sen-page {
  background: #fff;
  min-height: calc(100vh - 230px);
  padding-top: 0.8rem !important;
}

.sen-page .container {
  max-width: 1240px;
}

.sen-page__content {
  background: transparent;
  margin-inline: 0;
  padding: 0;
}

.sen-page__content-inner {
  padding-inline: 1rem;
}

.sen-page__crumb {
  margin: 0 0 1.4rem;
  color: #8a8f98;
  font-size: 0.95rem;
}

.sen-page__crumb a {
  color: #004D9D;
}

.sen-page__crumb span + span {
  margin-left: 0.25rem;
}

.sen-card {
  margin-bottom: 2.4rem;
  background: transparent;
}

.sen-card--hero {
  background: #f2f2f2;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 1.2rem calc(50vw - 50% + 1rem) 1.05rem;
}

.sen-card__heading {
  position: relative;
  min-height: 88px;
  display: flex;
  align-items: flex-start;
  padding-top: 0.4rem;
}

.sen-card__watermark {
  position: absolute;
  left: 0;
  top: 0;
  max-width: 195px;
  height: auto;
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
}

.sen-card h2 {
  position: relative;
  margin: 44px 0 0;
  font-size: clamp(1.9rem, 2.75vw, 2.45rem);
  color: #213a70;
  font-weight: 800;
  line-height: 1.1;
  z-index: 2;
}

.sen-card__description {
  margin: 1rem 0 1.35rem;
  color: #2f2f2f;
  font-size: clamp(1.08rem, 1.05vw, 1.12rem);
  line-height: 1.62;
  max-width: 1120px;
  white-space: pre-line;
  text-align: justify;
}

.sen-card__search {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0;
}

.sen-card__search-input {
  min-width: min(386px, 100%);
  max-width: 386px;
  border: 1px solid #ccd2d8;
  background: #fff;
  height: 58px;
  display: flex;
  align-items: center;
}

.sen-card__search-icon {
  width: 36px;
  text-align: center;
  color: #9ca3aa;
  font-size: 0.95rem;
}

.sen-card__search-input input {
  border: 0;
  flex: 1;
  min-width: 0;
  outline: 0;
  font-size: 1rem;
  color: #4a4f58;
  padding-right: 0.5rem;
}

.sen-card__search-input input::placeholder {
  color: #7f8790;
}

.sen-card__search-arrow {
  width: 34px;
  text-align: center;
  color: #8b93a0;
  border-left: 1px solid #d8dde3;
  font-size: 0.85rem;
}

.sen-card__search button {
  height: 58px;
  border: 0;
  min-width: 84px;
  padding: 0 0.65rem;
  color: #fff;
  background: #004D9D;
  font-weight: 500;
  font-size: 1.02rem;
}

.sen-empty {
  background: #fff;
  border: 1px solid #e0e4ea;
  border-radius: 0.8rem;
  padding: 2rem;
}

.sien-page {
  background: #f2f2f2;
  min-height: calc(100vh - 230px);
}

.sien-page .container {
  max-width: 1280px;
}

.sien-page__crumb {
  margin: 0 0 1.8rem;
  color: #8a8f98;
  font-size: 2rem;
  font-size: clamp(1rem, 1.15vw, 1.15rem);
}

.sien-page__crumb a {
  color: #1b58a8;
}

.sien-page__header h1 {
  margin: 0;
  color: #213a70;
  font-size: clamp(2rem, 4.1vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
}

.sien-page__line {
  display: inline-block;
  width: 108px;
  height: 4px;
  margin-top: 1.35rem;
  background: #989898;
}

.sien-page__tabs {
  margin-top: 2.9rem;
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  border-bottom: 2px solid #6b91c9;
  padding-bottom: 0.05rem;
}

.sien-page__tab {
  color: #1f5aaa;
  font-size: 20px;
  padding: 0.7rem 1.2rem 0.75rem;
  border-radius: 0.45rem 0.45rem 0 0;
}

.sien-page__tab.is-active {
  background: #0b4fa0;
  color: #fff;
}

.sien-page__content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  gap: 2rem;
  margin-top: 1.65rem;
  align-items: start;
}

.sien-page__section-title {
  margin: 0 0 1.35rem;
  color: #213a70;
  font-size: 25px;
  font-weight: 800;
}

.sien-doc {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  padding: 1.05rem 1.2rem;
  border-radius: 0.9rem;
}

.sien-doc.is-grey {
  background: #e9e9eb;
}

.sien-doc + .sien-doc {
  margin-top: 0.7rem;
}

.sien-doc__copy h3 {
  margin: 0 0 0.35rem;
  color: #213a70;
  font-size: clamp(1.2rem, 1.9vw, 2.2rem);
  font-weight: 700;
}

.sien-doc__copy p {
  margin: 0;
  color: #2f2f2f;
  font-size: clamp(1.08rem, 1.55vw, 1.8rem);
  line-height: 1.34;
}

.sien-doc__btn {
  flex: 0 0 auto;
  color: #1962b8;
  border: 2px solid #6d9fdd;
  border-radius: 0.42rem;
  padding: 0.15rem 0.52rem;
  font-size: clamp(1rem, 1.35vw, 1.65rem);
}

.sien-doc__btn:hover,
.sien-doc__btn:focus-visible {
  background: #edf5ff;
}

.sien-toc {
  background: #fff;
  border: 2px solid #d6d7db;
  border-radius: 0.8rem;
  overflow: hidden;
}

.sien-toc summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #1a5db3;
  font-size: 18px;
  padding: 0.6rem 0.85rem;
  cursor: pointer;
  border-bottom: 1px solid #d8d8d8;
}

.sien-toc summary::-webkit-details-marker {
  display: none;
}

.sien-toc__icon {
  color: #0b4fa0;
  font-weight: 700;
  font-size: clamp(1.2rem, 1.8vw, 2rem);
}

.sien-toc__body {
  background: #f6f6f7;
}

.sien-toc__group + .sien-toc__group {
  border-top: 1px solid #dadcdf;
}

.sien-toc__parent {
  display: block;
  background: #0b4fa0;
  color: #fff;
  font-size: clamp(1rem, 1.3vw, 1.5rem);
  font-weight: 700;
  padding: 0.55rem 0.85rem;
  line-height: 1.2;
}

.sien-toc ul {
  margin: 0;
  padding: 0.55rem 0.85rem 0.8rem 1.25rem;
  list-style: none;
}

.sien-toc li + li {
  margin-top: 0.25rem;
}

.sien-toc li a {
  color: #1f5aaa;
  font-size: clamp(0.98rem, 1.2vw, 1.35rem);
  line-height: 1.24;
}

.sien-toc a.is-active {
  font-weight: 700;
}

.sien-page__empty {
  color: #515760;
}

.siet-page__content-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.siet-page__group-title {
  margin: 1.5rem 0 0.65rem;
  color: #1f5aaa;
  font-size: clamp(1.15rem, 1.45vw, 1.6rem);
  font-weight: 500;
}

.siet-page__provincias-list {
  margin: 0;
  padding: 0.5rem 0.85rem 0.85rem 1.25rem;
  list-style: none;
}

.siet-page__provincias-list li + li {
  margin-top: 0.2rem;
}

.siet-page__provincias-list a {
  color: #1f5aaa;
  font-size: clamp(0.98rem, 1.2vw, 1.35rem);
}

.siet-page .sien-doc {
  padding: 0.72rem 0.95rem;
  border-radius: 0.72rem;
}

.siet-page .sien-doc__copy h3 {
  font-size: clamp(1rem, 1.45vw, 1.45rem);
  margin-bottom: 0.2rem;
}

.siet-page .sien-doc__copy p {
  font-size: clamp(0.95rem, 1.2vw, 1.2rem);
  line-height: 1.24;
}

@media (max-width: 991px) {
  .site-header__top {
    min-height: 92px;
    padding: 1rem 0;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .site-brand img {
    width: min(150px, 42vw);
  }

  .site-brand {
    order: 2;
    margin: 0 0 0 auto;
    margin-top: 0;
    align-items: center;
    align-content: center;
    flex: 0 0 auto;
  }

  .navbar-toggle {
    order: 1;
    width: 44px;
    height: 44px;
    border-radius: 0.35rem;
    background: transparent;
    font-size: 2rem;
    padding: 0;
    margin-right: 0;
    flex: 0 0 auto;
  }

  .navbar-toggle .bi-list::before {
    color: #848a93;
  }

  .main-nav .container {
    align-items: flex-start;
  }

  .main-nav {
    border: 0;
    background: transparent;
  }

  .main-nav .navbar-collapse {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(84vw, 370px);
    background: #fff;
    padding: 0.2rem 0 0.9rem;
    box-shadow: 18px 0 45px rgba(13, 32, 62, 0.24);
    transform: translateX(-102%);
    transition: transform 0.24s ease;
    z-index: 1105;
    display: block;
    overflow-y: auto;
  }

  .main-nav .navbar-collapse.show {
    transform: translateX(0);
  }

  .mobile-nav-overlay {
    /*position: fixed;*/
    inset: 0;
    background: rgba(8, 21, 45, 0.24);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
    z-index: 1100;
  }

  .mobile-nav-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-nav-hint {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 1rem 0.8rem;
    color: #1a1f28;
    font-weight: 700;
    font-size: 1.9rem;
  }

  .mobile-nav-hint__toggle {
    border: 0;
    background: transparent;
    color: #8f949c;
    font-size: 2rem;
    line-height: 1;
    padding: 0;
  }

  .main-nav__list {
    padding: 0.2rem 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .main-nav__list .nav-link {
    position: relative;
    padding: 1.1rem 3.1rem 1.1rem 1rem;
    font-size: 1.2rem;
    color: #004D9D;
    border-bottom: 1px solid rgba(13, 88, 166, 0.08);
  }

  .main-nav__list .nav-item.dropdown > .nav-link::after {
    content: ">";
    position: absolute;
    right: 1.05rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    border: 0;
    margin: 0;
    vertical-align: initial;
    color: #004D9D;
  }

  .main-nav__list .dropdown-menu {
    position: static !important;
    transform: none !important;
    box-shadow: none;
    border-radius: 0;
    background: #fff;
    padding: 0;
    min-width: 100%;
    margin-bottom: 0;
    border: 0;
    border-left: 4px solid #004D9D;
  }

  .main-nav__list .dropdown-item {
    font-size: 1.2rem;
    padding: 0.95rem 1rem;
  }

  .site-actions--mobile {
    display: none !important;
  }

  .provincia-page__grid {
    grid-template-columns: 1fr;
  }

  .sen-page__crumb {
    font-size: 0.9rem;
    margin-bottom: 0.65rem;
  }

  .sen-page {
    padding-top: 0 !important;
    overflow-x: hidden;
  }

  .sen-card {
    margin-bottom: 1.35rem;
  }

  .sen-card--hero {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
    padding-left: calc(50vw - 50% + 0.7rem);
    padding-right: calc(50vw - 50% + 0.7rem);
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }

  .sen-card__heading {
    min-height: 74px;
  }

  .sen-card__watermark {
    max-width: 150px;
  }

  .sen-card h2 {
    margin-top: 34px;
    font-size: 1.35rem;
  }

  .sen-card__description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
  }

  .sen-card__search {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .sen-card__search-input,
  .sen-card__search button {
    max-width: 100%;
    min-width: 100%;
  }

  .sien-page__tabs {
    overflow-x: auto;
    white-space: nowrap;
  }

  .sien-page__content-grid {
    grid-template-columns: 1fr;
  }

  .sien-page__toc-col {
    order: -1;
  }

  .sien-doc {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 430px) {
  .site-brand img {
    width: min(138px, 40vw);
  }

  .sen-card__description {
    font-size: 0.96rem;
  }
}

@media (min-width: 992px) and (max-width: 1280px) {
  .main-nav__list {
    gap: 0.75rem;
  }

  .main-nav__list .nav-link {
    font-size: 1rem;
    padding: 0.35rem 0.5rem;
  }
}
