
/* =======================
   RESPONSIVE ADAPTATIONS PARA index.html
   Activado sólo en tamaños pequeños
   ======================= */

@media (max-width: 1366px){
.header {
  width: 100%;
  height: 100px;
  padding-left: 5%;
  padding-right: 5%;
  display: flex;
  align-items: center;
  position: fixed;
  z-index: 9999999;
  background-color: transparent; /* Fondo transparente inicialmente */
  transition: background-color 0.5s ease-in-out; /* Transición suave */
}
.principal {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background-color: #06273573;
}
.title-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.principal-content {
  width: 100%;
  height: 90%;
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.principal-title {
  padding: 0 10% 0 10%;
}
.principal-title i {
  color: #42c0f7;
  text-shadow: 2px 2px #3333337c;
}
.principal-title h1 {
  font-size: 5em;
  margin-bottom: 20px;
}
.principal-title p {
  font-size: 1rem;
  margin-bottom: 30px;
}
.principal-title button {
  border-style: none;
  padding: 10px 100px;
  border-radius: 5px;
  background-color: #062735;
  color: white;
}
.secondary {
  position: relative;
  width: 100%;
  height: 100vh;
  background-color: #ffffff; /* color base */
  transition: background-color 1s ease-in-out;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.secondary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      0deg,
      rgba(6, 39, 53, 1) 10%,
      rgba(255, 255, 255, 0) 60%,
      rgba(255, 255, 255, 1) 100%
    ),
    url(/assets/images/clima.jpg);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
  pointer-events: none;
}

.secondary.visible::before {
  opacity: 1;
}

.secondary .content-wrapper {
  position: relative;
  z-index: 1; /* el contenido va encima del gradiente */
}

.content-wrapper {
  display: flex;
  align-items: center;
  max-width: 1000px;
  width: 100%;
  gap: 50px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 1s ease;
}

.secondary.visible .content-wrapper {
  transform: translateY(0);
  opacity: 1;
}

.image-box {
  flex: 1;
  position: relative;
  width: 100%;
  height: 400px;
  transform: translateX(0);
  transition: transform 1s ease;
  overflow: hidden; /* importante para recortar la imagen si se desborda */
  border-radius: 10px;
}

.image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.overlay-title {
  position: absolute;
  bottom: 10%;
  left: 10%;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}

.text-box {
  flex: 1;
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 1s ease 0.8s, transform 1s ease 0.8s;
  color: #062735;
  background-color: white;
  border-radius: 10px;
  padding: 40px;
  -webkit-box-shadow: 3px 3px 10px 3px #000000;
  -moz-box-shadow: 3px 3px 10px 3px #000000;
  box-shadow: 3px 3px 0px 3px #f7921e;
}
.text-box h2 {
  font-size: 2rem;
  font-weight: 600;
}
.secondary.visible .image-box {
  transform: translateX(-50px);
}

.secondary.visible .text-box {
  opacity: 1;
  transform: translateX(0);
}
.fourth {
  width: 100%;
  height: auto;
  padding: 0 5%;
  background-color: #06273500;
  background-size: cover;
  background-position: center;
  display: flex;
  gap: 40px;
  position: relative;
  z-index: 2;
}
.horizontal-items {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 40px;
}
.item-fourth {
  width: 140px;
  height: 140px;
  background-color: #ffffff;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  color: #062735;
  font-size: 3rem;
  -webkit-box-shadow: 7px 3px 10px 3px #464646;
  -moz-box-shadow: 7px 3px 10px 3px #2e2e2e;
  box-shadow: 1px 3px 10px 3px #030303be;
  transition: transform 0.3s ease;
  overflow: hidden;
}
.item-fourth:hover {
  transform: scale(1.05); /* o 1.1 para más efecto */
  color: #f7921e;
}
.item-fourth span {
  font-size: 0.8rem;
  text-align: center;
}
.item-fourth img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.objetivos {
  width: 100%;
  height: auto;
  background-color: #007bff00;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: start;
  gap: 20px;
}
.objetivos-title h3 {
  font-size: 2rem;
  color: white;
  text-transform: uppercase;
}
.objetivos-content {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  color: white;
  border-left: 6px solid #f7921e; /* Color y grosor de la barra */
  padding-left: 10px; /* Separación entre la barra y el texto */
  margin: 0;
  font-size: 1rem;
}
.objetivos-iframe iframe {
  border-radius: 10px;
  -webkit-box-shadow: 3px 3px 10px 3px #000000;
  -moz-box-shadow: 3px 3px 10px 3px #000000;
  box-shadow: 3px 3px 0px 3px #f7921e;
}
.fifth {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 10%;
  background-color: white;
}
.fifth-title h2{
  font-size: 2rem;
  color: #062735;
}
.fifth-title p{
  font-size: 1rem;
}
.divisor{
  width: 100%;
  height: auto;
  text-align: start;
  text-transform: uppercase;
}
.divisor h2{
  font-size: 1.2rem;
  font-weight: 700;
  color: #062735;
}
.divisor p{
  font-size: 0.8rem;
}
.tarjeta {
  border-radius: 20px;
  text-align: center;
  color: white;
  padding: 5%;
    display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.tarjeta h3{
  font-size: 2rem;
  text-transform: uppercase;
}
.tarjeta a {
  text-decoration: none;
}
.tarjeta p{
  font-size: 0.9rem;
}
.tarjeta button {
  border: none;
  width: auto;
  height: auto;
  font-size: 0.8rem;
  padding: 10px;
  border-radius: 10px;
  border-color: #f7921e;
  background-color: #f7921e;
  color: white;
}
.app-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(3, 100px);
  grid-column-gap: 40px;
  grid-row-gap: 0px;
}
.aplicaciones {
  width: 100%;
  height: auto;
}
.zonificacion {
  grid-area: 1 / 1 / 4 / 7;
  background: linear-gradient(
      180deg,
      rgba(6, 39, 53, 0.856) 0%,
      rgba(0, 105, 158, 0.452) 100%
    ),
    url(/assets/images/pexels-igor-starkov-233202-1117452.jpg);
  background-position: center bottom;
  background-size: cover;
  background-repeat: no-repeat;

}
.visualizador {
  grid-area: 1 / 7 / 4 / 13;
  background: #062735;
  background: linear-gradient(
      180deg,
      rgba(6, 39, 53, 0.842) 0%,
      rgba(0, 105, 158, 0.247) 100%
    ),
    url(/assets/images/pexels-berk-ozdemir-1761205-3779191.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;

}
.recursos{
  width: 100%;
}
.recursos-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(4, 100px);
  grid-column-gap: 40px;
  grid-row-gap: 0px;
}

.bloque-expandible {
  position: relative;
  border-radius: 10px;
  padding: 20px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  color: white;
  flex-direction: column;
}

/* Colores por bloque */
.geoservicios {
  grid-area: 1 / 1 / 5 / 5;
  background-color: #1737a6;
}

.mapa {
  grid-area: 1 / 5 / 5 / 9;
  background-color: #2071d8;
}

.inventario {
  grid-area: 1 / 9 / 5 / 13;
  background-color: #0a506e;
}

.contenido-base {
  text-align: center;
  transition: opacity 0.3s ease;
}
.bloque-expandible i {
  font-size: 3rem;
  margin-bottom: 10px;
}
.bloque-expandible h3 {
  font-size: 1rem;
}
.contenido-expandido p{
  font-size: 0.8rem;
}
.contenido-expandido {
  position: absolute;
  inset: 0;
  background-color: rgba(6, 39, 53, 0.95);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.95);
  transition: all 0.4s ease;
  z-index: 10;
  text-align: center;
  border-radius: 10px;
}

.bloque-expandible.expandido .contenido-expandido {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.bloque-expandible.expandido .contenido-base {
  opacity: 0;
  pointer-events: none;
}

.cerrar {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  color: white;
  font-size: 1rem;
  cursor: pointer;
}

.boton-expandido {
  margin-top: 20px;
  padding: 10px 25px;
  background-color: #f7921e;
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  font-size: 0.8rem;
  cursor: pointer;
}
.ciudad-grid{
  display: grid;
grid-template-columns: repeat(12, 1fr);
grid-template-rows: repeat(2, 120px);
grid-column-gap: 0px;
grid-row-gap: 0px;
}
.ciudad-datos{
  width: 100%;
}
.ciudad-en-datos{
  grid-area: 1 / 1 / 3 / 13;
  background: #062735;
  background: linear-gradient(
      180deg,
      rgba(6, 39, 53, 0.89) 0%,
      rgba(0, 105, 158, 0.247) 100%
    ),
    url(/assets/images/ciudad.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.intro-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.intro-wrapper h2 {
  font-size: 3rem;
  color: #0a506e;
}
.intro-wrapper p {
  font-size: 1.5rem;
  color: #0a506e;
}
}
@media (max-width: 1200px) {
 .header{
  display: none;
 }
 .navbar{
  display: block;
  padding-right: 5%;
  padding-left: 5%;
 }
 .container-fluid{
  padding: 0;
 }
 .principal {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background-color: #06273573;
  display: flex;
  align-items: center;
}
.title-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.principal-content {
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.principal-title {
  padding: 0 10% 0 10%;
}
.principal-title i {
  color: #42c0f7;
  text-shadow: 2px 2px #3333337c;
}
.principal-title h1 {
  font-size: 3em;
  margin-bottom: 20px;
}
.principal-title p {
  font-size: 0.8em;
  margin-bottom: 30px;
}
.principal-title button {
  border-style: none;
  padding: 10px 100px;
  border-radius: 5px;
  background-color: #062735;
  color: white;
}
.wave-svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 0;
  transition: fill 0.3s ease; /* Transición suave para el cambio de color */
  fill: white;
}
.wave-container{
  display: none;
}
  .content-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .image-box,
  .text-box {
    width: 100%;
    height: auto;
    transform: none !important;
    opacity: 1 !important;
  }

  .text-box {
    padding: 20px;
  }

  .text-box h2 {
    font-size: 1.5rem;
  }
  .text-box p{
    font-size: 1rem;
  }
  .overlay-title {
    font-size: 1.8rem;
    left: 5%;
  }

  .secondary {
    height: auto;
    padding: 40px 20px;
  }

  .secondary::before {
    background-position: center top;
    background-size: cover;
  }
  .fourth {
  width: 100%;
  height: auto;
  padding: 0 10%;
  background-color: #06273500;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column-reverse;
  gap: 40px;
  position: relative;
  z-index: 2;
}
.horizontal-items {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 40px;
}
.item-fourth {
  width: 100px;
  height: 100px;
  background-color: #ffffff;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  color: #062735;
  font-size: 3rem;
  -webkit-box-shadow: 7px 3px 10px 3px #464646;
  -moz-box-shadow: 7px 3px 10px 3px #2e2e2e;
  box-shadow: 1px 3px 10px 3px #030303be;
  transition: transform 0.3s ease;
  overflow: hidden;
}
.item-fourth:hover {
  transform: scale(1.05); /* o 1.1 para más efecto */
  color: #f7921e;
}
.item-fourth span {
  font-size: 0.8rem;
  text-align: center;
}
.item-fourth i{
  font-size: 1.5rem;
}
.item-fourth img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.objetivos {
  width: 100%;
  height: auto;
  background-color: #007bff00;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: start;
  gap: 20px;
}
.objetivos-title h3 {
  font-size: 1.8rem;
  color: white;
  text-transform: uppercase;
}
.objetivos-content p{
  font-size: 1rem;
}
.objetivos-content {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  color: white;
  border-left: 6px solid #f7921e; /* Color y grosor de la barra */
  padding-left: 10px; /* Separación entre la barra y el texto */
  margin: 0;
  font-size: 1.1rem;
}
.objetivos-iframe iframe {
  width: 100%;
  border-radius: 10px;
  -webkit-box-shadow: 3px 3px 10px 3px #000000;
  -moz-box-shadow: 3px 3px 10px 3px #000000;
  box-shadow: 3px 3px 0px 3px #f7921e;
}
  .fifth {
    padding: 5%;
    padding-bottom: 20%;
    gap: 40px;
  }

  .fifth-title h2{
    font-size: 1.5rem;
  }
  .intro-wrapper h2,
  .divisor h2 {
    font-size: 1.3rem;
  }

  .fifth-title p,
  .intro-wrapper p {
    font-size: 1rem;
  }

  .tarjeta {
    padding: 20px;
  }

  .tarjeta h3 {
    font-size: 1.5rem;
  }
  .tarjeta p{
    font-size: 0.9rem;
  }
  .tarjeta button {
  border: none;
  width: auto;
  height: auto;
  font-size: 0.8rem;
  padding: 10px;
  border-radius: 10px;
  border-color: #f7921e;
  background-color: #f7921e;
  color: white;
}
  .app-grid,
  .recursos-grid,
  .ciudad-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .bloque-expandible {
    width: 100%;
  }

  .bloque-expandible i {
    font-size: 2rem;
  }

  .bloque-expandible h3 {
    font-size: 1.2rem;
  }

  .contenido-expandido {
    padding-top: 40px;
  }
  .contenido-expandido p{
    margin: 0;
    font-size: 0.6rem;
  }
  .boton-expandido {
    font-size: 0.5rem;
    padding: 8px 15px;
  }
  .bloque-expandible {
    min-height: 200px; /* Altura mínima mayor para contenido */
    padding: 50px;
  }

  .contenido-expandido {
    overflow-y: auto;
    max-height: 100%;
  }
  .intro-wrapper {
    gap: 10px;
  }
    footer {
    width: 100%;
    height: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    background-color: #062735;
    position: relative;
    z-index: 33333;
  }
  .footer-container {
    width: 100%;
    background-color: #00aebe00;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .footer-social {
    width: 100%;
    height: 100px;
    position: relative;
    z-index: 1;
  }
  .footer-social p {
    display: none;
  }
  .social {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
  }
  .social-icon {
    width: 40px;
    height: 40px;
    background-color: white;
    margin: 10px;
    border-radius: 10px;
    padding: 5px;
    display: flex;
    align-items: center;
  }
  #btn-back-to-top {
    position: fixed;
    bottom: 120px;
    right: 40px;
    display: none;
    background-color: #062735;
    border-color: #062735;
    border-radius: 50%;
  }

  .gtranslate_wrapper {
    position: absolute;
    z-index: 3;
    bottom: 90px;
  }
}


