html,
body {
  margin: 0;
  padding: 0; 
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.hero-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}
.hero-section video.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}
#slider .overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100vw;
  z-index: 1;
}

.btn-outline-green {
  --c: #a3d928;
  color: var(--c);
  border: 1px solid var(--c);
  border-radius: 999px;
  padding: 0.7rem 1.5rem;
  font-weight: 500;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-outline-green:hover,
.btn-link-green:hover {
  background: var(--c);
  color: #fff;
}

#section2-menu .nav-link {
  opacity: 0.4;
  transition: opacity 0.3s ease;
}
#section2-menu .nav-link.active {
  opacity: 1;
}
#section2-menu .nav-link:hover {
  opacity: 0.8;
}

.custom-h2 {
  font-size: 2.2rem;
  line-height: 1.2;
}
.fs-5-5 {
  font-size: 1.1rem;
}

#section2-description h3 {
  font-size: 1.1rem;
  padding-left: 1rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

#section2-description .lista {
  font-size: 1.06rem;
}

#section2-description ul {
  list-style: none;
  padding-left: 1rem;
  margin-bottom: 1rem;
  padding-right: 0rem;
}

#section2-description ul li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.5rem;
}

#section2-description ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #000000;
}

#section2-description p.descrip {
  padding-right: 0 !important;
  width: calc(100% + 6.5rem) !important;
  margin-right: -6.5rem !important;
}
.fs-5-6 {
  font-size: 0.9rem;
  text-transform: uppercase;
}

.blur-border {
  position: relative;
  display: inline-block;
  mask-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  -webkit-mask-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
}
.custom-h1 {
  font-size: 2.3rem;
}

.rectangle-wrapper {
  width: 115% !important;
  margin-left: -10% !important;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.rectangle-wrapper img.rectangle-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#section3-offices .delegation-item{
  padding: 0 !important;
}

#section3-offices .delegation-item h3,
#section3-offices .delegation-item p {
  position: relative;
  /* left: -16% !important; */
  /* width: 130% !important; */
}

.delegation-item-description{
  padding: 0 0px !important;
}
.text-dark {
  color: #212529;
}

.delegaciones {
  /* padding-right: 6rem; */
  padding: 0;
}

#section3-offices .col-md-7 {
  padding-left: 0 !important;
}

#section3-offices .blur-border {
  width: 100% !important;
  /* margin-left: -10% !important; */
}

#section3-offices .rectangle-wrapper {
  /* width: 130% !important; */
  /* margin-left: -16% !important; */
  height: 400px;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
}

#section3-offices .rectangle-wrapper img.rectangle-image {
  object-position: left center !important; 
  object-fit: cover;
  max-width: 100%;
  height: 100%;
}

.map-legend {
  font-size: 0.75rem;
  color: #212529;
  /* padding-right: 5rem; */
}
.legend-item {
  display: inline-flex;
  align-items: center;
}
.legend-icon {
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.legend-icon.delegacion {
  background-color: #005087;
}

.legend-icon.proyecto {
  background-color: transparent;
  border: 2px solid #70a7d6;
}

 .gallery-container {
      position: relative;
      width: 100%;
      height: 700px;
      overflow: hidden;
    }

    .image-container {
      display: flex;
      width: 100%;
      height: 100%;
    }

    .image-item {
      position: relative;
      flex: 1;
      height: 100%;
      background-size: cover;
      background-position: center center;
      z-index: -9999;
      transition: all .5s ease-in-out;
    }

    .image-item.active {
      flex: 100%;
    }

    .info-wrapper {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      position: absolute;
      width: 100%;
      height: 100%;
      z-index: 1;
    }

    .sombra {
      height: 30%;
      position: absolute;
      width: 100%;
      bottom: 0;
      background: linear-gradient(to bottom, transparent 0%, #0a0816 80%);
    }

    .info-container {
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      color: white;
      position: relative;
      height: 100%;
    }

    .info {
      padding: 30px;
      position: relative;
      z-index: 3;
      transition: transform 0.2s ease-in-out;
    }

    .info-container .info a div {
      transition: transform 0.2s ease-in-out;
    }

    .background-blue {
      height: 40%;
      position: absolute;
      bottom: -40%;
      left: 5px;
      right: 5px;
      opacity: .9;
      transition: bottom 0.3s ease-in-out;
      z-index: 2;
    }

    .info-container:hover .background-blue {
      bottom: 0;
    }

    .info-container:hover .info {
      transform: translateY(-10px);
    }

    .info-container:hover .info a div {
      transform: translatex(3px);
    }


    .gallery-it .item {
      flex: 1;
      transition: flex 0.5s ease-in-out;
    }

    .description-tab {
      background-blend-mode: normal, color;
      z-index: 5;
      width: 33%;
      bottom: 0;
      height: 0;
      overflow: hidden;
      transition: height 0.5s ease-in-out;
    }

    .gallery-it:hover .description-tab {
      height: 300px;
    }

    .accordion-gradient {
      background: linear-gradient(to bottom, transparent 0%, #0a0816 80%);
      height: 100%;
      bottom: 0;
      left: 0;
      position: absolute;
      z-index: 2;
      height: 264px;
      opacity: 90%;
    }

    .gallery-it:hover .item {
      flex: 100%;
    }
@media (max-width: 768px) {
  #slider .overlay {
    width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
    border-radius: 0 !important;
  }

  #slider .slide img {
    max-width: 80px;
    height: auto;
  }

  #slider .slide .col-12.col-md-6 {
    transform: translateY(50px);
    padding-left: 2rem !important;
    padding-right: 1rem !important;
  }

  #slider .slide h2 {
    font-size: 2rem;
    line-height: 1.2;
  }

  #section2 h1.custom-h1 {
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: 2.2rem !important;
  }

  #section2 .position-relative[style*="background-image"] {
    position: relative;
    /* width: 110vw; */
    /* margin-left: -57vw; */
    /* left: 50%; */
    background-size: cover;
    background-position: center;
  }

  #section2 .position-absolute.bg-light h3.h3 {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  #section2 .position-absolute.bg-light {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  #section2 .position-absolute.bg-light h5.fs-5-6,
  #section2 .position-absolute.bg-light h3.h3,
  #section2 .position-absolute.bg-light .btn-link-green {
    padding-left: 1rem !important;
    padding-right: 3rem !important;
  }

  #section2 .position-absolute.bg-light .btn-link-green {
    margin-bottom: 30px !important;
  }

  #section2 #section2-description h3,
  #section2 #section2-description ul,
  #section2 #section2-description p {
    /* padding-left: 0rem !important; */
    /* margin-left: -1.5rem !important; */
  }

  #section2 #section2-description ul li {
    padding-left: 3rem;
  }

  #section2 #section2-description p.descrip {
    padding-right: 0.5rem !important;
    width: auto !important;
    margin-right: 0 !important;
    text-align: left;
  }

  #section3-offices h2.custom-h1 {
    display: block !important;
    text-align: center;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    margin-top: 1.5rem;
    z-index: 2;
    position: relative;
    font-size: 2rem !important;
    line-height: 1.1;
  }
/* 
  #section3-offices .delegaciones {
    margin-left: 1rem;
    padding-right: 1rem;
  } */

  #section3-offices .delegaciones h3 {
    font-size: 1.8rem !important;
    margin-top: 2rem;
  }
  #section3-offices .delegaciones h3,
  #section3-offices .delegaciones p {
    padding-left: 0.5rem;
    /* padding-right: 1rem; */
    margin-left: 0;
    margin-right: 0;
    width: 100% !important;
    left: 0 !important;
  }

  #section3-offices .delegaciones article p:last-of-type {
    padding-bottom: 15rem;
  }

.hero-mobile { position: relative; overflow: hidden; }
.slider-wrapper { display: flex; transition: transform 0.4s ease-in-out; width: 100%; }
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  color: #fff; background: transparent; border: none;
  padding: .5rem 1rem; cursor: pointer; font-size: 2rem; z-index: 5; line-height: 1;
}
.slider-btn.prev-btn { left: 10px; }
.slider-btn.next-btn { right: 10px; }

.hero-slide {
  min-width: 100%; height: 60vh; position: relative;
  display: flex; align-items: flex-end; justify-content: flex-start;
}
.hero-slide .hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 1; transition: none;
}
.hero-slide .hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(0,0,0,.35); z-index: 1;
}
.hero-content {
  position: relative; z-index: 2; padding: 1.5rem; width: 100%; display: flex; flex-direction: column; margin-left: 10px;
}
.hero-content p, .hero-content h4, .hero-content small, .hero-content .link-ver-proyecto { color: #fff; }
.hero-content h4 { font-size: 1.5rem; margin-bottom: .25rem; }
.hero-content p, .hero-content small { margin-bottom: .25rem; font-size: 1.05rem !important; }
.link-ver-proyecto { opacity: 1 !important; transform: none !important; position: relative; }
}

#section3-offices h2.custom-h1 {
  font-size: 2.3rem; 
  line-height: 1.1;
}

@media (min-width: 1800px) {
  #section3-offices .col-md-9 {
    max-width: 140% !important;
    flex: 0 0 140% !important;
    margin-right: 300px !important;
  }
}

.hero-content {
  position: relative;
  left: 0; 
  transition: left 0.3s ease; 
}

@media (min-width: 1400px) {
  .hero-content {
    left: -5vw; 
  }
}

@media (min-width: 1800px) {
  .hero-content {
    left: -8vw;
  }
}

@media (min-width: 2200px) {
  .hero-content {
    left: -12vw;
  }
}

@media (min-width:1900px) {
  #section2-description {
    flex: 0 0 85% !important;   
    max-width: 85% !important;  
  }

#section2-description ul li::before {
    font-size: 1.5em;  
    line-height: 1;    
  }


}




