/* emapaac-objetivos.css — 2026-09-15
   Rediseño visual de emapaac-objetivos.php.
   Sistema visual compartido con emapaac-historia.css, emapaac-valores.css,
   laboratorio.css, emapaac-denuncias.css y emapaac-aguapotable.css
   (valores copiados, archivo independiente). */

.ob-page {
  --ob-primary: #1e3a8a;
  --ob-primary-2: #1d4ed8;
  --ob-accent: #06b6d4;
  --ob-accent-text: #0e7490;
  --ob-bg: #f8fafc;
  --ob-band: #f0f4f8;
  --ob-text: #334155;
  --ob-muted: #4b5563;
  --ob-border: #f3f4f6;
  --ob-line: #e2e8f0;
  --ob-shadow: 0 10px 15px -3px rgba(0,0,0,.05);
  --ob-shadow-hover: 0 20px 40px rgba(0,0,0,.08);
  display: block;
  font-family: "Poppins", sans-serif;
  color: var(--ob-text);
  background: var(--ob-bg);
}

/* Franja de título (centrada) */
.ob-page section#page-title.ob-titlebar {
  background: var(--ob-band);
  border-bottom: 1px solid #e5e7eb;
  padding: 44px 0;
}
.ob-page #page-title.ob-titlebar .container {
  display: block;
  text-align: center;
}
.ob-page #page-title.ob-titlebar .page-title {
  text-align: center;
  margin: 0 auto;
  max-width: 900px;
  padding: 0;
}
.ob-page #page-title .page-title > h1.ob-titlebar__title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: normal;
  color: var(--ob-primary);
  margin: 0 0 6px;
}
.ob-page #page-title .page-title > span.ob-titlebar__sub {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ob-accent-text);
  margin: 0;
}
.ob-page #page-title .breadcrumb.ob-breadcrumb {
  display: block;
  float: none;
  text-align: center;
  margin: 10px auto 0;
  font-size: 13px;
}
.ob-page #page-title .breadcrumb.ob-breadcrumb ul {
  display: inline-block;
  margin: 0;
  padding: 0;
}
.ob-page #page-title .breadcrumb.ob-breadcrumb li a {
  color: var(--ob-muted);
}
.ob-page #page-title .breadcrumb.ob-breadcrumb li a:hover {
  color: var(--ob-primary);
}
.ob-page #page-title .breadcrumb.ob-breadcrumb li:last-child a,
.ob-page #page-title .breadcrumb.ob-breadcrumb li.active a {
  color: var(--ob-primary);
  font-weight: 600;
  opacity: 1;
}

@media (max-width: 767px) {
  .ob-page section#page-title.ob-titlebar {
    padding: 34px 0;
  }
  .ob-page #page-title .page-title > h1.ob-titlebar__title {
    font-size: 24px;
  }
}

/* Sección y título */
.ob-page section.ob-section {
  padding: 64px 0;
  background: transparent;
  overflow: visible;
}
.ob-page .ob-heading {
  margin: 0 0 32px;
}
.ob-page .ob-heading h5.ob-section-title {
  border-left: 4px solid var(--ob-accent);
  padding-left: 16px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ob-primary);
  margin: 0;
}
.ob-page .ob-heading h5.ob-section-title::before {
  content: none;
}

@media (max-width: 767px) {
  .ob-page section.ob-section {
    padding: 48px 0;
  }
  .ob-page .ob-heading h5.ob-section-title {
    font-size: 20px;
  }
}

/* Rejilla de objetivos */
.ob-page ol.ob-grid {
  list-style: none;
  counter-reset: ob-goal;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
.ob-page .ob-goal {
  position: relative;
  display: flex;
  height: 100%;
}
.ob-page .ob-goal__card {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--ob-border);
  border-radius: 18px;
  padding: 30px 28px 26px;
  box-shadow: var(--ob-shadow);
  overflow: hidden;
  transition: transform .35s, box-shadow .35s, border-color .35s;
}
.ob-page .ob-goal__card::before {
  counter-increment: ob-goal;
  content: counter(ob-goal, decimal-leading-zero);
  position: absolute;
  right: 18px;
  bottom: -14px;
  font-size: 86px;
  font-weight: 700;
  line-height: 1;
  color: var(--ob-primary);
  opacity: .06;
  pointer-events: none;
  transition: opacity .35s, color .35s;
}
.ob-page .ob-goal__card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ob-primary), var(--ob-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease-out;
}
.ob-page .ob-goal__card > * {
  position: relative;
  z-index: 1;
}
.ob-page .ob-goal__card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ob-shadow-hover);
  border-color: var(--ob-line);
}
.ob-page .ob-goal__card:hover::after {
  transform: scaleX(1);
}
.ob-page .ob-goal__card:hover::before {
  opacity: .12;
  color: var(--ob-accent-text);
}
.ob-page .ob-goal.is-visible .ob-goal__card::after {
  transform: scaleX(1);
  transition: transform .4s ease-out .15s;
}
.ob-page .ob-goal__icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(30,58,138,.05);
  color: var(--ob-primary);
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: background-color .35s, color .35s, transform .35s;
}
.ob-page .ob-goal__card:hover .ob-goal__icon {
  background: linear-gradient(135deg, var(--ob-primary), var(--ob-primary-2));
  color: #fff;
  transform: scale(1.05) rotate(-4deg);
}
.ob-page p.ob-goal__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ob-muted);
  text-align: left;
}

@media (min-width: 768px) {
  .ob-page ol.ob-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ob-page .ob-goal:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .ob-page .ob-goal__card {
    padding: 24px 20px;
  }
  .ob-page .ob-goal__card::before {
    font-size: 64px;
  }
}

/* Imagen */
.ob-page .ob-figure {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--ob-shadow-hover);
  max-height: 420px;
  line-height: 0;
  margin: 56px 0 0;
}
.ob-page .ob-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,31,77,0) 45%, rgba(15,31,77,.35) 100%);
  pointer-events: none;
}
.ob-page .ob-figure img.ob-figure__img {
  width: 100%;
  height: 100%;
  max-height: inherit;
  object-fit: cover;
  display: block;
  transition: transform 6s ease-out;
}
.ob-page .ob-figure:hover .ob-figure__img {
  transform: scale(1.05);
}

@media (max-width: 767px) {
  .ob-page .ob-figure {
    max-height: 240px;
    margin: 40px 0 0;
  }
}

/* Reveal y movimiento */
.ob-page.ob-js .ob-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease-out, transform .6s ease-out;
}
.ob-page.ob-js .ob-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .ob-page .ob-goal__card,
  .ob-page .ob-goal__card::before,
  .ob-page .ob-goal__card::after,
  .ob-page .ob-goal__icon,
  .ob-page .ob-figure__img {
    transition: none;
  }
  .ob-page .ob-goal__card::after {
    transform: scaleX(1);
  }
  .ob-page .ob-figure__img,
  .ob-page .ob-figure:hover .ob-figure__img {
    transform: none;
  }
  .ob-page .ob-goal__card:hover {
    transform: none;
  }
  .ob-page .ob-goal__card:hover .ob-goal__icon {
    transform: none;
  }
  .ob-page.ob-js .ob-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
