/* Archivo: css/custom.css */
.fixed-top {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1030;
  background-color: #386539;
  border-bottom: 8px solid #a1bf37;
  height: 8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  position: relative;
  top: -10px;
}
.section-dus .flex-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap; 
}
.section-dus .flex-container img {
  width: 70%;
}

.nav-item {
  margin-left: 20px;
}

.navbar-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  text-align: center;
  width: 100%;
}

.navbar-brand img {
  position: absolute;
  margin-top: -1rem;
  height: 125px;
  width: auto;
}
.navbar {
  position: relative;
  z-index: 10;
}
.navbar-toggler {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
}
.navbar-collapse {
  background-color: #386539;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}
.navbar-nav .nav-item {
  float: none;
  display: inline-block;
}

.nav-link {
  color: #ffffff !important;
  font-weight: normal;
}

.nav-link:hover {
  color: #bccf00 !important;
}
.nav-item.active .nav-link {
  color: #bccf00 !important;
}

body {
  margin: 0;
  overflow-x: hidden;
  text-align: justify !important;
  font-family: "Poppins", sans-serif;
  font-size: 0.85em;
}

.header-image {
  position: relative;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 12px solid rgba(56, 101, 57, 0.5);
}

.header-image img {
  width: 100%;
  height: auto;
  display: inline-block;
  margin: 0;
  padding: 0;
}

.gestcity-content {
  position: absolute;
  text-align: center;
  color: white;
  width: 19%;
  top: 79%;
  left: 60%;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.background-gestcity {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 10px;
  border-radius: 15px;
}

.gestcity-logo {
  width: 45% !important;
  margin-bottom: 10px;
  justify-content: center;
}

.gestcity-content .btn {
  margin-top: 10px;
}

.header-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 4rem;
  background-color: rgba(56, 101, 57, 0.5);
  margin: 0;
  padding: 0;
  z-index: 1;
}

.section-ayuntamiento {
  background-color: #386539;
  color: #ffffff;
  text-align: center;
  padding: 20px 0;
  margin-top: 2rem;
  font-size: 1.8em;
  width: 100%;
  height: fit-content;
  text-align: end;
  border-top-right-radius: 15px;
  border-bottom-right-radius: 15px;
  font-weight: bold;
}

.section-dus {
    background-color: #386539;
    color: #ffffff;
    text-align: center;
    padding: 19px 0;
    padding-left: 0.85rem;
    padding-right: 0.45rem;
    margin-top: 2rem;
    height: fit-content;
    font-size: 1.55em;
    width: 100%;
    text-align: start;
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
    font-weight: bold;
}

.highlight {
  background-color: rgba(161, 191, 55, 0.2);
  color: #000000;
  font-size: 1.25em;
  font-weight: 800;
  padding: 20px 0;
  margin: 0 auto;
  text-align: center;
}

.section-ayuntamiento .title {
  margin-right: 10rem;
}

.section-ayuntamiento span {
  display: block;
  margin-right: 5rem;
  font-size: 1.1em;
  font-weight: bold;
}

/* Estilos para el pie de página */

footer {
  width: 100%;
  position: relative;
}

footer .container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  overflow-x: hidden;
}

footer .content-background {
  background-image: url("../images/__footer.jpg");
  background-size: cover;
  background-position: center;
  padding: 20px 0;
  width: 100%;
}

footer .rights {
  color: white;
}

footer .logos {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

footer .logos img {
  max-height: 90px;
  margin: 0 10px;
}

footer .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

footer .nav-links a {
  color: white;
  margin: 0 15px;
  text-decoration: none;
  font-size: 14px;
}

footer .nav-links a:hover {
  text-decoration: underline;
}

footer p {
  margin-top: 20px;
  font-size: 14px;
}

.text-intro {
  background-color: white;
  /* padding: 30px; */
  border-radius: 10px;
  margin-top: 1rem;
  text-align: justify;
  margin-bottom: 0;
}

.text-intro p {
  color: #333;
  line-height: 1.5;
}

.text-intro p strong {
  color: #000;
}

.text-custom {
  /* background-color: rgba(161, 191, 55, 0.2); */
  padding: 20px;
  text-align: center;
  font-weight: 900;
  font-size: 1.35em !important;
  color: #000;
  width: 90%;
  overflow-x: hidden;
}

.header {
  background-color: #4d8b3f;
  color: white;
  margin-top: 2rem;
  text-align: center;
  padding: 10px 0;
  font-size: 1.6rem;
  font-weight: 700;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  width: 100%;
}

.section {
  width: 100%;
}

.section-title {
  background-color: #4caf50;
  color: white;
  padding: 10px;
  font-size: 24px;
  text-align: center;
}
.container {
  width: 100%;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.card {
  background-color: white;
  border: 2px solid #a1bf37;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  border-top-left-radius: 0px;
  border-top-right-radius: 0px;
  width: 48%;
  margin: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.info-card {
  padding: 20px;
  text-align: justify;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card h2 {
  background-color: #386539;
  color: white;
  padding: 20px;
  font-size: 18px;
}

.card p {
  color: #333;
}

.read-more-container {
  margin-top: auto;
  text-align: left;
  padding-top: 10px;
}

.card a {
  display: inline-block;
  margin-top: 10px;
  color: #4caf50;
  text-decoration: none;
  font-weight: bold;
}
.anuncios-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}
.line {
  width: 100%;
  height: 10px;
  background-color: #386539;
  margin-bottom: 2rem;
}

.anuncios-container {
  width: 55%;
  background-color: #ffffff;
  margin: 20px auto;
  border: 3px solid #386539;
  border-radius: 10px;
}

.anuncios-title {
  background-color: rgba(161, 191, 55, 0.2);
  color: white;
  padding: 10px;
  color: #386539;
  font-size: 1.6em;
  font-weight: 800;
  text-align: center;
  border-radius: 5px 5px 0 0;
}

.anuncios-card-container {
  padding: 0px 20px;
  border-radius: 0 0 5px 5px;
}

.anuncios-card {
  background-color: white;
  border-radius: 5px;
  padding: 20px;
}

.anuncios-card h2 {
  color: #333;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.anuncios-card p {
  color: #333;
}

.anuncios-card a {
  display: inline-block;
  margin-top: 10px;
  color: #4caf50;
  text-decoration: none;
  font-weight: bold;
}

.anuncios-card-container hr {
  border: 0;
  border-top: 3px solid #a1bf37;
  margin: 10px 0;
}
.indicators-section {
  width: 100%;
  background: url("../images/fondo_verde_claro.jpg") no-repeat center center;
  background-size: cover;
  padding-bottom: 2rem;
  text-align: center;
}

.header-indicators {
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  margin-top: 2rem;
  text-align: center;
  padding: 10px 0;
  font-size: 1.4rem;
  font-weight: 700;
}
.indicator-content {
  background-color: rgba(0, 0, 0, 0.3);
  color: white;
  padding: 10px;
  bottom: 0;
  width: 100%;
  max-width: 100%;
  left: 0;
}

.indicators-description {
  background-color: rgba(255, 255, 255, 1);
  color: black;
  margin-bottom: 20px;
  padding: 10px;
  border-radius: 0 0 20px 20px;
  display: inline-block;
  max-width: 50%;
}

.indicators-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.indicator {
  margin: 0;
  text-align: center;
}

.indicator img {
  border-radius: 50%;
  width: 180px;
  height: 180px;
}

.indicator-value {
  font-size: 24px;
  font-weight: bold;
  color: white;
}

.indicator-label {
  font-size: 16px;
  color: white;
}
@media (min-width: 3840px) {
  .gestcity-content {
    top: 87%;
  }
}

@media (min-width: 2560px) and (max-width: 3839px) {
  .gestcity-content {
    top: 83%;
  }
}

@media (min-width: 1920px) and (max-width: 2559px) {
  .gestcity-content {
    top: 81%;
  }
}

@media (max-width: 1919px) and (min-width: 1200px) {
  .gestcity-content {
    top: 70%;
  }
}

@media (max-width: 1199px) and (min-width: 768px) {
  .gestcity-content {
    top: 65%;
  }
}

@media (max-width: 767px) {
  .gestcity-content {
    top: 60%;
    width: 80%;
  }
  .header-image {
    margin-top: 3rem;
  }

  .header-overlay {
    height: 1rem;
  }
  .navbar-light .navbar-toggler-icon {
    background-image: url("../images/menu.svg") !important;
    width: 30px;
    height: 30px;
    background-size: contain;
  }
  .logo-ue{
    margin-right: 0 !important;
  }

  .gestcity-logo {
    width: 70% !important;
  }
  .section-ayuntamiento {
    font-size: 1.2em;
  }
  .section-ayuntamiento .title {
    margin-right: 1.85rem;
  }
  .section-ayuntamiento span {
    margin-right: 0.95rem;
  }
  .gestcity-logo{
    width: 22% !important;
  }
  .gestcity-content{
    width: 60%;
    top: 62%;
    font-size: .65em;
  }
  .gestcity-content p{
    margin-bottom: 0;
  }

  body {
    margin: 0;
    padding: 0;
    font-size: 0.7em !important;
    width: 100%;
    margin: 0 auto !important;
    overflow-x: hidden;
  }

  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  .gestcity-content .btn {    
    font-size: .75em;
  }
  .navbar-brand img{
    margin-top: -.5rem;
    height: 80px;
  }

  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  .container {
    max-width: 100%;
    padding: 0 15px;
    margin: 0 auto;
    box-sizing: border-box;
  }

  header,
  main,
  footer {
    width: 100%;
  }
  .anuncios-container{
    width: 95%;
  }
  .indicators-description{
    max-width: 85%;
  }
  .card{
    width: auto;
  }
  .logo-ue{
    margin-right: 0;
  }

  footer .logos {
    display: block;
    margin-bottom: 0;
  }
  .section-dus .col-7 {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
    text-align: justify;
    font-size: .62em;
  }

  .section-dus .col-2, .section-dus .col-3 {
    width: 50%;
    flex: 0 0 50%;
    max-width: 50%;
    text-align: center;
  }
  
  .section-dus .flex-container img {
    width: 100%;
  }
  .indicators-container.d-none.d-md-flex {
    display: none !important;
  }

  #carouselIndicators {
    display: block;
  }
  
}
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
}
