/* ESTILOS PORTAL DE TRANSPARENCIA - ER */

:root {
  --accent-color: #8bc34a;
  --contrast-color: #ffffff;
  --default-color: #ffffff;
  --heading-font: "Open Sans", sans-serif;
  --body-font: "Archivo", sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  font-family: var(--body-font);
  background-color: #ffffff;
  color: #6b7280;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6,
.hero-title {
  font-family: var(--heading-font);
}
.hero .top-bar {
  background-color: #4a5568;
  color: #ffffff;
  font-size: 0.8rem;
  padding: 6px 0;
}

.navbar-institucional {
  font-family: "Open Sans", sans-serif;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 12px 0;
}

.nav-links a {
  color: #415a6b;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #8bc34a;
}

.nav-links a.active {
  color: #8bc34a;
  text-decoration: underline;
  text-decoration-color: #8bc34a;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.nav-links span {
  color: #cccccc;
  font-size: 13px;
}

.navbar-toggler {
  border: none;
  background: none;
  font-size: 1.8rem;
  color: #415a6b;
  padding: 4px 8px;
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

.nav-links-mobile {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #edf0e7;
}

.nav-links-mobile a {
  color: #415a6b;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid #f3f3ed;
}

.nav-links-mobile a:hover,
.nav-links-mobile a:active {
  color: #8bc34a;
}

/* HERO SECTION */
.hero-transparente {
  width: 100%;
  position: relative;
  background: url("../assets/img/imagen_enca.jpg") center;
  background-size: cover;
  min-height: 52vh;
  display: flex;
  align-items: center;
  padding: 110px 0;
}

.hero-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 3.2rem;
  margin-bottom: 25px;
  text-shadow: 1px 2px 5px rgba(0, 0, 0, 0.4);
}

/* ANIMACIÓN */
@keyframes up-down {
  0% {
    transform: translateY(10px);
  }
  100% {
    transform: translateY(-10px);
  }
}

/* BOTONES */
.btn-verde-er {
  color: var(--contrast-color);
  background: var(--accent-color);
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  transition: 0.5s;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.btn-verde-er:hover {
  color: #ffffff;
  background: color-mix(in srgb, var(--accent-color), transparent 15%);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.btn-video {
  font-size: 16px;
  transition: 0.5s;
  margin-left: 25px;
  color: var(--default-color);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.btn-video i {
  color: #8bc34a;
  font-size: 32px;
  transition: 0.3s;
  line-height: 0;
  margin-right: 8px;
}

.btn-video:hover {
  color: var(--accent-color);
}

.btn-video:hover i {
  color: color-mix(in srgb, var(--accent-color), transparent 15%);
}

/* GRILLA */
.modulos-container {
  position: relative;
  z-index: 10;
  padding-bottom: 80px;
  margin-top: -20px;
}

.card-modulo {
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  height: 100%;
  text-decoration: none;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 35px 25px;
  text-align: center;
}

.card-modulo:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: #e2e8f0;
}

.card-modulo .icon-container {
  width: 70px;
  height: 70px;
  background-color: #f4f8f1;
  color: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.card-modulo:hover .icon-container {
  background-color: var(--accent-color);
  color: #ffffff;
}

.card-modulo h4 {
  color: #222222;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.card-modulo p {
  color: #666666;
  font-size: 0.9rem;
  margin-bottom: 0;
  line-height: 1.5;
}

.footer-er {
  background-color: #4b5a64;
  color: white;
  padding: 48px 0;
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.footer-logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  min-height: 45px;
}

.footer-logo-wrap {
  flex: 0 1 30%;
  height: 45px;
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  filter: brightness(0) invert(1);
}

.footer-logo {
  filter: brightness(0) invert(1);
}

.footer-titulo {
  font-family: var(--body-font);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-links {
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a,
.footer-links button {
  color: rgb(209, 213, 219);
  text-decoration: none;
  font-size: 0.875rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.footer-links a:hover,
.footer-links button:hover {
  color: var(--accent-color);
}

.footer-desc {
  color: rgb(209, 213, 219);
  font-family: var(--heading-font);
  font-size: 0.875rem;
}

.footer-aviso {
  background-color: rgba(113, 63, 18, 0.2);
  border: 1px solid rgba(161, 98, 7, 0.3);
  border-radius: 8px;
  padding: 1rem;
}

.footer-aviso p {
  color: rgb(254, 249, 195);
  font-size: 0.875rem;
}

.footer-copy {
  color: rgb(156, 163, 175);
  font-family: var(--heading-font);
  font-size: 0.875rem;
}

input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  height: 16px;
  width: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23719B50'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E");
  background-size: contain;
  cursor: pointer;
  opacity: 0.8;
}

/* TRANSPARENCIA ACTIVA */
.transparencia-section .section-header h2 span {
  color: #8bc34a;
}
.transparencia-section .section-header {
  margin-bottom: 35px;
}

.transparencia-intro {
  max-width: 1000px;
  margin: 0 auto 50px;
  text-align: center;
}

.transparencia-intro h4 {
  font-family: Open Sans;
  color: #8bc34a;
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.transparencia-intro p {
  font-family: var(--heading-font);
  color: #6b7280;
  line-height: 1.8;
  margin: 0;
}
.transparencia-section {
  background: #f3f3ed;
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 1000px;
  margin: 0 auto 60px;
}

.section-kicker {
  display: inline-block;
  font-family: var(--body-font);
  color: #8bc34a;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.section-header h2 {
  font-family: var(--heading-font);
  font-size: 2.7rem;
  font-weight: 700;
  color: #8bc34a;
  margin-bottom: 15px;
}

.section-header p {
  font-family: var(--body-font);
  color: #6b7280;
  font-size: 1rem;
  line-height: 1.8;
  margin: 0;
}

.transparencia-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.transparencia-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e8e8e8;

  min-height: 90px;

  padding: 24px;

  display: flex;
  align-items: center;
  gap: 18px;

  text-decoration: none;

  transition: all 0.25s ease;
}

.transparencia-card:hover {
  transform: translateY(-3px);

  border-color: rgba(113, 155, 80, 0.35);

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}
.transparencia-card i {
  color: #8bc34a;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.transparencia-card span {
  color: #6b7280;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
}
@media (max-width: 1200px) {
  .transparencia-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .transparencia-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .datos-abiertos-section .section-header h2 {
    font-size: 2rem;
  }
  .transparencia-grid {
    grid-template-columns: 1fr;
  }

  .transparencia-card {
    min-height: 60px;
    padding: 16px 20px;
  }

  .transparencia-card span {
    font-size: 1rem;
  }
}

.modal-backdrop.show {
  opacity: 0.95 !important;
  background-color: #000000;
}
/* MUNICIPIOS TRANSPARENTES */

.municipios-section {
  padding: 110px 0;
  background: #ffffff;
}

.municipios-header {
  padding-top: 70px;
  padding-bottom: 100px;
  text-align: center;
  max-width: 1320px;
  margin: 0 auto 60px;
}

.municipios-header h2 {
  font-family: var(--heading-font);
  font-size: 2.7rem;
  font-weight: 700;
  color: #8bc34a;
}

.municipios-header h2 span {
  color: #8bc34a;
}

.municipios-header p {
  margin-top: 20px;
  font-family: var(--heading-font);
  color: #6b7280;
  font-size: 1rem;
  line-height: 1.8;
}

.municipios-header .btn-municipios {
  margin-top: 30px;

  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 10px;
}

.municipios-card {
  background: #f7f8f4;
  border-radius: 18px;
  padding: 45px;
  display: flex;
  align-items: center;
  gap: 35px;
  border: 1px solid #edf0e7;
}

.municipios-icon {
  width: 90px;
  height: 90px;
  min-width: 90px;
  border-radius: 50%;
  background: #719b50;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
}

.municipios-content h3 {
  color: #415a6b;
  font-weight: 700;
  margin-bottom: 15px;
}

.municipios-content p {
  color: #5f6b76;
  line-height: 1.8;
  margin-bottom: 12px;
}

.btn-municipios {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  margin-top: 15px;

  background: #8bc34a;
  color: white;

  text-decoration: none;

  padding: 12px 24px;

  border-radius: 8px;

  font-weight: 600;

  transition: all 0.3s ease;
}

.btn-municipios:hover {
  background: #7db142;
  color: white;

  transform: translateY(-2px);
}
/* DATOS ABIERTOS */

.datos-abiertos-section {
  padding: 100px 0;
  background: #f3f3ed;
}

.datos-abiertos-section .section-header {
  text-align: center;
  max-width: 850px;
  margin: 0 auto 60px;
}

.datos-abiertos-section .section-header h2 {
  font-size: 2.7rem;
  font-weight: 700;
}

.datos-abiertos-section .section-header p {
  margin-top: 20px;
  font-family: var(--body-font);
  color: #6b7280;
  font-size: 1rem;
  line-height: 1.8;
}

.datos-card {
  max-width: 1320px;
  margin: 0 auto;

  background: white;

  border-radius: 18px;

  padding: 50px;

  text-align: center;

  border: 1px solid #edf0e7;

  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);

  font-family: var(--heading-font);
}

.datos-icon {
  width: 80px;
  height: 80px;

  margin: 0 auto 25px;

  border-radius: 50%;

  background: #8bc34a;

  color: white;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 2rem;
}

.datos-card h3 {
  color: #415a6b;
  font-weight: 700;
  margin-bottom: 20px;
}

.datos-card p {
  color: #667085;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto 30px;
}

.btn-datos {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  background: #8bc34a;
  color: white;

  text-decoration: none;

  padding: 14px 28px;

  border-radius: 10px;

  font-weight: 600;

  transition: 0.3s ease;
}

.btn-datos:hover {
  background: #7db142;
  color: white;
  transform: translateY(-2px);
}

/* BOTÓN VOLVER ARRIBA */

.btn-scroll-top {
  position: fixed;
  right: 30px;
  bottom: 30px;

  width: 50px;
  height: 50px;

  border-radius: 50%;

  background: #8bc34a;
  color: white;

  display: flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;

  font-size: 1.4rem;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);

  z-index: 999;

  opacity: 0;
  visibility: hidden;

  transform: translateY(15px);

  transition: all 0.3s ease;
}

.btn-scroll-top:hover {
  background: #7db142;
  color: white;

  transform: translateY(-4px);
}

.btn-scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* FAQ */

.faq-section {
  padding: 70px 0;
  background: #ffffff;
}

.faq-accordion {
  max-width: 950px;
  margin: 0 auto;
}

.faq-accordion .accordion-item {
  border: 1px solid #edf0e7;
  border-radius: 14px !important;
  overflow: hidden;
  margin-bottom: 15px;
}

.faq-accordion .accordion-button {
  background: #fff;
  color: #6b7280;
  font-weight: 700;
  padding: 22px 25px;
  box-shadow: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
  background: #f7faf4;
  color: #719b50;
}

.faq-accordion .accordion-body {
  padding: 25px;
  font-family: var(--heading-font);
}

.faq-accordion .accordion-body h6 {
  color: #6b7280;
  font-weight: 700;
  margin-top: 20px;
}

.faq-accordion .accordion-body h6:first-child {
  margin-top: 0;
}

.faq-accordion .accordion-body p {
  color: #667085;
  line-height: 1.8;
}

/*
PRELOADER
*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}

#preloader div {
  width: 14px;
  height: 14px;
  background-color: var(--accent-color);
  border-radius: 50%;
  margin: 0 4px;
  animation: pulse-dots 0.6s infinite alternate;
}

#preloader div:nth-child(1) {
  animation-delay: 0s;
}
#preloader div:nth-child(2) {
  animation-delay: 0.2s;
}
#preloader div:nth-child(3) {
  animation-delay: 0.4s;
}
#preloader div:nth-child(4) {
  animation-delay: 0.6s;
}

@keyframes pulse-dots {
  0% {
    transform: scale(0.5);
    opacity: 0.3;
  }
  100% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/*
SECCIÓN ESTADÍSTICAS
*/
.seccion-estadisticas {
  background-color: #ffffff;
  padding: 80px 0;
}
.seccion-estadisticas .row {
  row-gap: 40px;
}

.stat-card {
  background: rgb(240, 240, 230);
  border-radius: 8px;
  padding: 45px 20px 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  height: 100%;
  position: relative;
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: 10px;
  margin-right: 10px;
  font-family: var(--heading-font);
}

.stat-icon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background-color: var(--accent-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.stat-number {
  font-size: 36px;
  font-weight: 700;
  color: #2b3a4a;
  margin-bottom: 12px;
  line-height: 1;
}

.stat-text {
  font-size: 14px;
  color: #555555;
  line-height: 1.6;
  margin: 0;

  flex-grow: 1;
  display: flex;
  align-items: start;
  justify-content: center;
}

/* SECCIÓN DECLARACIONES */
.about-content p {
  font-family: var(--heading-font);
}

.exito-ddjj-section {
  background-color: #ffffff;
  padding: 80px 0;
}

.exito-ddjj-section h3 {
  color: #415a6b;
  font-weight: 700;
}

.exito-ddjj-section p {
  font-family: var(--heading-font);
  color: #6b7280;
  line-height: 1.8;
  margin-bottom: 20px;
}

.exito-ddjj-section .text-success {
  color: #8bc34a !important;
}

/* SECCIÓN TRANSPARENCIA PASIVA */

.pasiva-section {
  background-color: #f3f3ed;
  padding: 0px 0;
}

.pasiva-section h4 {
  color: #415a6b;
  font-weight: 700;
  margin-bottom: 15px;
  text-align: center;
}

.pasiva-section p {
  color: #6b7280;
  line-height: 1.8;
  text-align: center;
}

.pasiva-section a {
  color: #8bc34a;
  text-decoration: none;
  font-weight: 600;
}

.pasiva-section .section-header {
  margin-bottom: 25px;
}

.icon-check {
  color: var(--accent-color) !important;
}

@media (max-width: 768px) {
  .hero-transparente {
    min-height: 55vh;
    padding: 70px 0;
    background-position: center top !important;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .btn-video {
    margin-left: 0;
  }

  .municipios-header h2 {
    font-size: 2rem;
  }

  .municipios-header p {
    margin-top: 10px;
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .municipios-card {
    flex-direction: column;
    text-align: center;
    padding: 30px 25px;
    gap: 20px;
  }

  .datos-card {
    padding: 30px 20px;
  }

  .btn-scroll-top {
    right: 18px;
    bottom: 18px;
    width: 44px;
    height: 44px;
  }
  .stat-card {
    margin-top: 50px;
  }

  .hero-buttons-container {
    flex-direction: column;
    align-items: flex-center !important;
  }

  .btn-verde-er {
    text-align: center;
    padding: 14px 20px;
    margin-bottom: 15px !important;
    padding: 12px 16px;
    font-size: 14px;
  }

  .btn-video {
    margin-left: 0 !important;
    font-size: 18px;
  }

  .transparencia-section,
  .municipios-header,
  .datos-abiertos-section,
  .faq-section {
    padding: 40px 0 !important;
  }

  .transparencia-grid {
    gap: 6px !important;
  }

  .transparencia-card {
    padding: 16px !important;
    min-height: auto;
    gap: 10px !important;
  }

  .transparencia-card i {
    font-size: 1.4rem;
    margin-bottom: 0;
  }

  .section-header {
    margin-bottom: 30px !important;
  }

  .section-header h2 {
    font-size: 1.8rem !important;
  }

  .municipios-header {
    margin-bottom: 30px !important;
  }
}

.hero-buttons-container {
  gap: 20px;
}
.downloads-section {
  padding: 40px 0;
  background: #f3f3ed;
}

.downloads-section .section-header {
  text-align: center;
  margin-bottom: 40px;
}

.downloads-section .section-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #8bc34a;
  margin-bottom: 10px;
}

.downloads-section h2 {
  font-size: 25px;
  font-weight: 700;
  color: #374a5e;
}

.downloads-section h2 span {
  color: #8bc34a;
}

.downloads-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  background: #4d5d6c;
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 500;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.download-btn:hover {
  transform: translateY(-4px);
  background: #8bc34a;
  color: white;
  box-shadow: 0 12px 25px rgba(130, 165, 90, 0.35);
}

.download-btn i {
  font-size: 16px;
}
.lista-datos {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}
.transparencia-pasiva-content {
  max-width: 850px;
  margin: 0 auto;
  text-align: ;
}


