/* Base Legal: selector de documentos a la izquierda + visor PDF a la derecha */
.base-legal-page {
  background: #f7f9fa;
  min-height: calc(100vh - 120px)
}

.base-legal-header {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center
}

.base-legal-header .section-title span {
  display: inline-block;
  color: #c79a3b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
  margin-bottom: 7px
}

.base-legal-header h1 {
  margin-bottom: 10px;
  color: #24313a
}

.base-legal-header p {
  margin: 0;
  color: #687780;
  line-height: 1.65
}

.base-legal-panel {
  background: #fff;
  border: 1px solid #dfe6e9;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, .07)
}

.base-legal-viewer-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch
}

.base-legal-selector {
  min-width: 0;
  padding: 22px;
  background: #f3f6f7;
  border: 1px solid #dfe6e9;
  border-radius: 16px;
  align-self: stretch
}

.base-legal-selector-header {
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid #dfe6e9
}

.base-legal-selector-kicker {
  display: block;
  color: #c79a3b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.3px;
  margin-bottom: 6px
}

.base-legal-selector-header h2 {
  color: #0f4c5c;
  font-size: 22px;
  margin: 0 0 7px
}


.base-legal-selector label {
  display: block;
  color: #24313a;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px
}

.base-legal-selector select {
  width: 100%;
  min-height: 50px;
  padding: 0 38px 0 14px;
  border: 1px solid #c7d6dc;
  border-radius: 11px;
  color: #33434c;
  background: #fff;
  font-size: 14px;
  outline: none;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease
}

.base-legal-selector select:hover {
  border-color: #9eb7c0
}

.base-legal-selector select:focus {
  border-color: #0f4c5c;
  box-shadow: 0 0 0 3px rgba(15, 76, 92, .1)
}

.base-legal-selector-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 13px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #dfe6e9;
  color: #687780;
  font-size: 12px;
  line-height: 1.4
}

.base-legal-selector-info i {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #eef4f5;
  color: #0f4c5c;
  font-size: 15px
}

.base-legal-selector-info strong {
  color: #24313a
}



.base-legal-visor {
  min-width: 0;
  height: 680px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dfe6e9;
  border-radius: 16px;
  background: #fff
}

.base-legal-pdf-wrap {
  flex: 1 1 auto;
  min-height: 0;
  background: #687780
}

.base-legal-pdf-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: #fff
}

.base-legal-empty {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px
}

.base-legal-empty-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 18px;
  background: #eef4f5;
  color: #0f4c5c;
  font-size: 30px
}

.base-legal-empty h2 {
  color: #24313a;
  font-size: 21px;
  margin-bottom: 7px
}

.base-legal-empty p {
  color: #687780;
  margin: 0
}

.base-legal-toolbar {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 12px;
  border-top: 1px solid #dfe6e9;
  background: #f8fafb
}

.base-legal-current {
  min-width: 0;
  color: #24313a;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.base-legal-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 9px 13px;
  border-radius: 9px;
  background: #0f4c5c;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: transform .2s ease, opacity .2s ease
}

.base-legal-download:hover {
  color: #fff;
  opacity: .9;
  transform: translateY(-1px)
}

@media(max-width:900px) {
  .base-legal-viewer-layout {
    grid-template-columns: 1fr
  }

  .base-legal-selector {
    padding: 18px
  }

  .base-legal-visor {
    height: 70vh;
    min-height: 520px
  }
}

@media(max-width:576px) {
  .base-legal-panel {
    padding: 10px;
    border-radius: 15px
  }

  .base-legal-selector {
    padding: 16px
  }

  .base-legal-selector-header {
    padding-bottom: 14px;
    margin-bottom: 16px
  }

  .base-legal-visor {
    height: 65vh;
    min-height: 440px
  }

  .base-legal-empty {
    padding: 25px
  }

  .base-legal-toolbar {
    align-items: stretch;
    flex-direction: column
  }

  .base-legal-download {
    width: 100%
  }
}

/* Acceso independiente a la Ordenanza */
.base-legal-ordenanza {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid #dfe6e9;
  border-radius: 14px;
  background: #fff;
}

.base-legal-ordenanza-kicker {
  display: block;
  margin-bottom: 6px;
  color: #c79a3b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.base-legal-ordenanza h3 {
  margin: 0 0 7px;
  color: #0f4c5c;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
}

.base-legal-ordenanza h3 i {
  margin-right: 7px;
  color: #c79a3b
}

.base-legal-ordenanza p {
  margin: 0 0 14px;
  color: #687780;
  font-size: 12px;
  line-height: 1.5;
}

.base-legal-ordenanza-btn {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  background: #bcf7ba;
  color: black;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.base-legal-ordenanza-btn:hover {
  background: #9ff764;
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(15, 76, 92, .18);
}

@media(max-width:900px) {
  .base-legal-ordenanza {
    margin-top: 18px
  }
}

