:root {
  --ujat-green: #08783f;
  --ujat-green-dark: #075c33;
  --ujat-orange: #f57900;
  --ink: #26332d;
  --muted: #65716b;
  --line: #dce5df;
  --soft: #f4f8f5;
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background: #eef1ef url("../fondo-bokeh-gris.jpg") center top / cover fixed;
  color: var(--ink);
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.site-header {
  background: #146b43;
  text-align: center;
}

.site-banner {
  display: block;
  width: 100%;
  height: auto;
}

.site-nav {
  margin: 0;
  background: #f57900 !important;
  border: 1px solid #007618;
  border-radius: 0;
}

.site-nav .navbar-nav > li > a {
  color: #fff;
  font-size: 16px;
}

.site-nav .navbar-nav > li > a:hover,
.site-nav .navbar-nav > li > a:focus,
.site-nav .navbar-nav > .active > a,
.site-nav .navbar-nav > .active > a:hover,
.site-nav .navbar-nav > .active > a:focus {
  background: #f57900 !important;
  color: #fff;
}

.page-shell {
  margin-top: 34px;
  margin-bottom: 34px;
  padding: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 34px rgba(24, 46, 35, .12);
  overflow: hidden;
}

.intro-section,
.bio-section,
.steps-section {
  padding: 48px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--ujat-green);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 14px;
  color: var(--ujat-green-dark);
  font-size: 42px;
  font-weight: 700;
}

.intro-text {
  max-width: 850px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.defensoria-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(270px, 1fr);
  gap: 24px;
  align-items: stretch;
}

.profile-card {
  display: grid;
  grid-template-columns: minmax(220px, 34%) 1fr;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.profile-photo-wrap {
  min-height: 430px;
  background: #101813;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.profile-content {
  min-width: 0;
  padding: 30px;
}

.profile-content h2,
.document-card h2,
.bio-section h2,
.steps-section h2 {
  margin-top: 0;
  color: var(--ujat-green-dark);
  font-weight: 700;
}

.profile-content h2 {
  font-size: 27px;
}

.profile-role {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.contact-list {
  margin: 24px 0 0;
}

.contact-list > div {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.contact-list dt {
  margin-bottom: 5px;
  color: var(--ujat-green-dark);
}

.contact-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  line-height: 1.55;
}

.contact-list a {
  color: var(--ujat-green);
  font-weight: 600;
}

.document-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 32px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.document-icon {
  margin-bottom: 18px;
  color: #b3261e;
  font-size: 50px;
}

.document-card p {
  color: var(--muted);
  line-height: 1.6;
}

.document-button {
  display: inline-block;
  margin-top: 10px;
  padding: 12px 18px;
  background: var(--ujat-green);
  border-radius: 5px;
  color: #fff;
  font-weight: 700;
}

.document-button:hover,
.document-button:focus {
  background: var(--ujat-green-dark);
  color: #fff;
  text-decoration: none;
}

.bio-section {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.bio-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px;
  margin-top: 24px;
}

.bio-columns p {
  margin-bottom: 18px;
  font-size: 16px;
  line-height: 1.75;
  text-align: left;
}

.steps-section h2 {
  margin-bottom: 28px;
}

.process-image {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.resource-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.resource-card:hover,
.resource-card:focus {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(24, 46, 35, .14);
}

.resource-card img {
  display: block;
  width: 100%;
  height: auto;
}

.site-footer {
  padding: 26px 15px;
  background: #fff;
  color: #46514c;
  text-align: center;
}

.site-footer h2 {
  margin: 0 0 8px;
  color: var(--ujat-green-dark);
  font-size: 16px;
}

.site-footer p {
  margin: 0;
}

@media (min-width: 768px) {
  .navbar-justify {
    display: flex;
    float: none;
    width: 100%;
  }

  .navbar-justify > li {
    flex: 1 1 auto;
    float: none;
    text-align: center;
  }
}

@media (max-width: 991px) {
  .intro-section,
  .bio-section,
  .steps-section {
    padding: 34px;
  }

  .defensoria-grid,
  .bio-columns {
    grid-template-columns: 1fr;
  }

  .document-card {
    min-height: 260px;
  }
}

@media (max-width: 767px) {
  .site-nav .navbar-toggle {
    border-color: rgba(255, 255, 255, .75);
  }

  .site-nav .navbar-toggle .icon-bar {
    background: #fff;
  }

  .page-shell {
    margin-top: 0;
    margin-bottom: 0;
    border-radius: 0;
  }

  .intro-section,
  .bio-section,
  .steps-section {
    padding: 28px 20px;
  }

  h1 {
    font-size: 32px;
  }

  .profile-card {
    grid-template-columns: 1fr;
  }

  .profile-photo-wrap {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .profile-content,
  .document-card {
    padding: 24px;
  }

  .resource-grid {
    grid-template-columns: 1fr;
  }
}
