/*
 * emapaac-valores.css
 * Rediseño visual de emapaac-valores.php (Conócenos / Valores Institucionales)
 * Fecha: 2026-09-15
 * Sistema visual compartido con laboratorio.css, emapaac-denuncias.css y
 * emapaac-aguapotable.css (valores copiados, archivo independiente).
 */

/* ==========================================================================
   TOKENS
   ========================================================================== */
.vl-page {
  --vl-primary: #1e3a8a;
  --vl-primary-2: #1d4ed8;
  --vl-accent: #06b6d4;          /* solo bordes, fondos y decoración */
  --vl-accent-text: #0e7490;     /* texto e íconos sobre claro (5.4:1) */
  --vl-bg: #f8fafc;
  --vl-band: #f0f4f8;
  --vl-text: #334155;
  --vl-muted: #4b5563;
  --vl-border: #f3f4f6;
  --vl-line: #e2e8f0;
  --vl-shadow: 0 10px 15px -3px rgba(0,0,0,.05);
  --vl-shadow-hover: 0 20px 40px rgba(0,0,0,.08);
  display: block;
  font-family: "Poppins", sans-serif;
  color: var(--vl-text);
  background: var(--vl-bg);
}

/* ==========================================================================
   FRANJA DE TITULO
   ========================================================================== */
/* especificidad (1,2,1) vence a #page-title (1,0,0) de style.css:128 */
.vl-page section#page-title.vl-titlebar {
  background: var(--vl-band);
  border-bottom: 1px solid #e5e7eb;
  padding: 44px 0;
}
.vl-page #page-title.vl-titlebar .container {
  display: block;
  text-align: center;
}
.vl-page #page-title .page-title.vl-titlebar__copy {
  text-align: center;
  margin: 0 auto;
  max-width: 900px;
  padding: 0;
}
.vl-page #page-title .page-title > h1.vl-titlebar__title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: normal;
  color: var(--vl-primary);
  margin: 0 0 6px;
}
.vl-page #page-title .page-title > span.vl-titlebar__sub {
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--vl-accent-text);
  margin: 0;
}
.vl-page #page-title .breadcrumb.vl-breadcrumb {
  display: block;
  float: none;
  text-align: center;
  margin: 10px auto 0;
  font-size: 13px;
}
.vl-page #page-title .breadcrumb.vl-breadcrumb ul {
  display: inline-block;
  margin: 0;
  padding: 0;
}
.vl-page #page-title .breadcrumb.vl-breadcrumb a {
  color: var(--vl-muted);
}
.vl-page #page-title .breadcrumb.vl-breadcrumb a:hover {
  color: var(--vl-primary);
}
/* style.css:4014 quita el outline en :focus a todo <a> del sitio
   (a:not(.btn):not(.badge):focus, especificidad 0,3,1); esta regla
   (0,4,1) lo vence sin !important para que el foco de teclado sea
   visible en las migas de pan */
.vl-page #page-title .breadcrumb.vl-breadcrumb a:focus {
  outline: 2px solid var(--vl-accent);
  outline-offset: 2px;
}
.vl-page #page-title .breadcrumb.vl-breadcrumb li.active a,
.vl-page #page-title .breadcrumb.vl-breadcrumb li:last-child a {
  color: var(--vl-primary);
  font-weight: 600;
  opacity: 1;
}

@media (max-width: 767px) {
  .vl-page section#page-title.vl-titlebar {
    padding: 34px 0;
  }
  .vl-page #page-title .page-title > h1.vl-titlebar__title {
    font-size: 24px;
  }
}

/* ==========================================================================
   SECCION Y TITULOS
   ========================================================================== */
/* especificidad (0,2,1) vence a section (0,0,1) de custom.css:84; overflow
   visible es obligatorio por el sticky de la Fan Page (ver BLOQUE 1, regla 8) */
.vl-page section.vl-section {
  padding: 64px 0;
  background: transparent;
  overflow: visible;
}

.vl-page .vl-main .vl-figure,
.vl-page .vl-main .vl-heading {
  margin-top: 56px;
}
.vl-page .vl-main .vl-timeline {
  margin-top: 28px;
}

.vl-page .vl-heading {
  margin: 0 0 28px;
}
.vl-page .vl-heading h5.vl-section-title {
  border-left: 4px solid var(--vl-accent);
  padding-left: 16px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: normal;
  text-transform: none;
  color: var(--vl-primary);
  margin: 0;
}
.vl-page .vl-heading h5.vl-section-title::before {
  content: none;
}

@media (max-width: 767px) {
  .vl-page section.vl-section {
    padding: 48px 0;
  }
  .vl-page .vl-main .vl-figure,
  .vl-page .vl-main .vl-heading {
    margin-top: 40px;
  }
  .vl-page .vl-heading h5.vl-section-title {
    font-size: 20px;
  }
}

/* ==========================================================================
   MISION Y VISION
   ========================================================================== */
.vl-page .vl-pillars {
  margin-left: -12px;
  margin-right: -12px;
}
.vl-page .vl-pillars > [class*="col-"] {
  padding: 0 12px;
  margin-bottom: 24px;
  display: flex;
}

.vl-page .vl-pillar {
  position: relative;
  width: 100%;
  border-radius: 20px;
  padding: 36px 32px;
  overflow: hidden;
  transition: transform .35s, box-shadow .35s;
}
.vl-page .vl-pillar::before {
  content: "\f10d";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  right: 24px;
  top: 18px;
  font-size: 68px;
  line-height: 1;
  opacity: .09;
  pointer-events: none;
}
.vl-page .vl-pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--vl-shadow-hover);
}
.vl-page .vl-pillar > * {
  position: relative;
  z-index: 1;
}

.vl-page .vl-pillar--primary {
  background: linear-gradient(135deg, var(--vl-primary) 0%, var(--vl-primary-2) 55%, var(--vl-accent-text) 100%);
  box-shadow: 0 20px 40px rgba(30,58,138,.18);
  color: #fff;
}
.vl-page .vl-pillar--primary::after {
  content: "";
  position: absolute;
  left: -60px;
  bottom: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  pointer-events: none;
}
.vl-page .vl-pillar--primary .vl-pillar__icon {
  background: rgba(255,255,255,.16);
  color: #fff;
}
.vl-page .vl-pillar--primary h5.vl-pillar__title {
  color: #fff;
}
.vl-page .vl-pillar--primary p.vl-pillar__text {
  color: rgba(255,255,255,.9);
}
.vl-page .vl-pillar--primary::before {
  color: #fff;
}

.vl-page .vl-pillar--light {
  background: #fff;
  border: 1px solid var(--vl-border);
  box-shadow: var(--vl-shadow);
}
.vl-page .vl-pillar--light::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--vl-primary), var(--vl-accent));
}
.vl-page .vl-pillar--light .vl-pillar__icon {
  background: rgba(30,58,138,.05);
  color: var(--vl-primary);
}
.vl-page .vl-pillar--light h5.vl-pillar__title {
  color: var(--vl-primary);
}
.vl-page .vl-pillar--light p.vl-pillar__text {
  color: var(--vl-muted);
}
.vl-page .vl-pillar--light::before {
  color: var(--vl-primary);
}

.vl-page .vl-pillar__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  font-size: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: transform .35s;
}
.vl-page .vl-pillar:hover .vl-pillar__icon {
  transform: scale(1.06) rotate(-4deg);
}

.vl-page .vl-pillar h5.vl-pillar__title {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
  margin: 0 0 12px;
}
.vl-page .vl-pillar p.vl-pillar__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  text-align: left;
}

@media (max-width: 767px) {
  .vl-page .vl-pillar {
    padding: 26px 22px;
  }
}

/* ==========================================================================
   IMAGEN
   ========================================================================== */
.vl-page .vl-figure {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--vl-shadow-hover);
  max-height: 420px;
  line-height: 0;
}
.vl-page .vl-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;
}
.vl-page .vl-figure img.vl-figure__img {
  width: 100%;
  height: 100%;
  max-height: inherit;
  object-fit: cover;
  display: block;
  transition: transform 6s ease-out;
}
.vl-page .vl-figure:hover img.vl-figure__img {
  transform: scale(1.05);
}

@media (max-width: 767px) {
  .vl-page .vl-figure {
    max-height: 240px;
  }
}

/* ==========================================================================
   PRINCIPIOS (linea de tiempo vertical numerada)
   ========================================================================== */
.vl-page ol.vl-timeline {
  list-style: none;
  counter-reset: vl-step;
  margin: 0;
  padding: 0;
  position: relative;
}
.vl-page .vl-timeline::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--vl-line);
}
.vl-page .vl-timeline::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--vl-accent), var(--vl-primary));
  transform-origin: top;
  transform: scaleY(var(--vl-progress, 0));
  transition: transform .2s linear;
}

.vl-page .vl-timeline__item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 28px;
  min-height: 40px;
}
.vl-page .vl-timeline__item:last-child {
  margin-bottom: 0;
}
.vl-page .vl-timeline__dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--vl-line);
  color: var(--vl-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  z-index: 1;
  transition: border-color .3s, background-color .3s, color .3s, transform .3s;
}
.vl-page .vl-timeline__dot::before {
  counter-increment: vl-step;
  content: counter(vl-step, decimal-leading-zero);
}
.vl-page .vl-timeline__item.is-visible .vl-timeline__dot {
  border-color: var(--vl-accent);
  background: var(--vl-primary);
  color: #fff;
  transform: scale(1.06);
}
.vl-page p.vl-timeline__text {
  margin: 0;
  padding-top: 9px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--vl-muted);
  text-align: left;
}

@media (max-width: 575px) {
  .vl-page .vl-timeline::before,
  .vl-page .vl-timeline::after {
    left: 15px;
  }
  .vl-page .vl-timeline__item {
    padding-left: 48px;
  }
  .vl-page .vl-timeline__dot {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
}

/* ==========================================================================
   VALORES (filas visibles, nada oculto)
   ========================================================================== */
.vl-page .vl-value {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--vl-border);
  border-left: 4px solid var(--vl-line);
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 14px;
  box-shadow: var(--vl-shadow);
  transition: border-left-color .3s, transform .3s, box-shadow .3s;
}
.vl-page .vl-value:hover {
  border-left-color: var(--vl-accent);
  transform: translateX(4px);
  box-shadow: var(--vl-shadow-hover);
}
.vl-page .vl-value:last-child {
  margin-bottom: 0;
}
.vl-page .vl-value__icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(30,58,138,.05);
  color: var(--vl-primary);
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color .3s, color .3s, transform .3s;
}
.vl-page .vl-value:hover .vl-value__icon {
  background: var(--vl-primary);
  color: #fff;
  transform: scale(1.05);
}
.vl-page p.vl-value__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--vl-muted);
  text-align: left;
}
.vl-page .vl-value__name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--vl-primary);
  margin-bottom: 4px;
  letter-spacing: normal;
}

@media (max-width: 767px) {
  .vl-page .vl-value {
    padding: 18px;
  }
}
@media (max-width: 575px) {
  .vl-page .vl-value {
    flex-direction: column;
    gap: 12px;
  }
}

/* ==========================================================================
   REVEAL Y MOVIMIENTO
   ========================================================================== */
.vl-page.vl-js .vl-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease-out, transform .6s ease-out;
}
.vl-page.vl-js .vl-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  /* Nada de selector universal (.vl-page *) aquí: theiaStickySidebar posiciona
     la Fan Page escribiendo "transform: translateY(...)" inline en cada
     evento de scroll, y una regla de hoja de estilos que alcanzara
     .sticky-sidebar (con o sin !important) pisaría ese transform y rompería
     el seguimiento del scroll para quien tenga activado "reducir movimiento".
     Por eso se apunta a cada componente propio por su nombre; ninguno de
     estos selectores toca .sticky-sidebar ni sus descendientes.
     No hace falta !important en ningún caso: cada regla de aquí repite el
     mismo selector que fija transition/transform más arriba en el archivo
     (misma especificidad) y gana por venir después en la cascada. */
  .vl-page .vl-pillar,
  .vl-page .vl-pillar__icon,
  .vl-page .vl-figure img.vl-figure__img,
  .vl-page .vl-timeline::after,
  .vl-page .vl-timeline__dot,
  .vl-page .vl-value,
  .vl-page .vl-value__icon,
  .vl-page.vl-js .vl-reveal {
    transition: none;
    animation: none;
  }

  .vl-page.vl-js .vl-reveal,
  .vl-page.vl-js .vl-reveal.is-visible {
    opacity: 1;
    transform: none;
  }
  .vl-page .vl-timeline::after {
    transform: scaleY(1);
  }
  .vl-page .vl-figure:hover img.vl-figure__img {
    transform: none;
  }
  .vl-page .vl-pillar:hover .vl-pillar__icon {
    transform: none;
  }
  .vl-page .vl-value:hover .vl-value__icon {
    transform: none;
  }
}
