/*HEADER*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f0f0f0;
}

.header {
  background-color: #032a3d;
  color: #fff;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.header-logo {
  display: flex;
  align-items: center;
}

.logo {
  height: 55px;
  margin-right: 1rem;
  margin-right: 3rem;
}
.logoC {
  height: 55px;
}

/* Header Button */
.header-button {
  background-color: #555;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.header-button:hover {
  background-color: #666;
}

.header.scrolled {
  background-color: #284268; /* Cambia a un color más oscuro cuando haces scroll */
}

/* Menu Toggle (Hamburguesa) */

.menu-toggle {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  padding: 1rem;
}

.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 3px 0;
  transition: 0.3s;
}

.menu-toggle.active .bar:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Menu */
.menu-header {
  display: none; /* Oculta el menú por defecto */
  flex-direction: column;
  width: 70vh;
  height: 85vh;
  background-color: aliceblue;
  border-radius: 0px 0px 15px 0px;
  position: absolute;
  top: 90px; /* Ajusta según el tamaño del header */
  left: 0;
  right: 0;
  z-index: 1000;
}

.menu-header.show {
  display: flex; /* Muestra el menú cuando se activa */
}

.menu-header ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-header li {
  margin: 15px;
}

.menu-header-link {
  color: #fff;
  text-decoration: none;
  padding: 1rem;
  display: block;
  text-align: center;
  font-size: 1.2rem;
}

.menu-link:hover {
  background-color: #666;
  border-radius: 8px;
}

.container .object {
  /* Estilo para los contenedores de botones para que tengan espacio entre ellos */
  width: 100%;
  max-width: 350vh;
  margin-left: auto;
  margin-right: auto;
}

/* Botones dentro del menú */
button.object {
  background-color: rgb(155 233 112 / 66%);
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 15px;
  padding: 13px 20px;
  text-align: center;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

button.object p {
  /* Estilo para el texto dentro del botón */
  margin: 0;
  color: #333;
  font-weight: bold;
  flex-grow: 1;
  text-align: left;
  z-index: 2; /* Asegura que el texto esté por encima de la imagen */
  padding-left: 10px; /* Añade un pequeño espacio a la izquierda del texto */
}

button.object i {
  /* Estilo para el icono en el lado derecho del texto */
  margin-left: 10px;
  color: #007bff;
  font-size: 20px;
  z-index: 2; /* Asegura que el icono esté por encima de la imagen */
}

button.object:hover {
  /* Efecto hover para resaltar el botón */
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

button.object:active {
  /* Efecto al hacer clic en el botón */
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Main Content */
.main-content {
  grid-area: main;
  display: flex;
  grid-template-columns: 1fr 3fr;
  gap: 1rem;
  padding: 5rem;
}

.main-content.banner {
  overflow: hidden;
}

.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.Titulo{
  padding: 2vh;
  margin: 10vh 10vh 5vh 10vh;
  background: #032a3d;
  border-radius: 10px;
}
.Titulo h2 {
    font-size: 2.5rem;
    line-height: 1;
    /* margin-left: 9vh; */
    color: #ffffff;
    text-align: center;
  }

.content-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}

.left-area {
  width: 50%;
  padding: 2rem;
  background-color: rgb(155 233 112 / 66%);
  border-radius: 8px;
}
.left-area h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #fff;
}
.left-area p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

.action-button {
  background-color: #333;
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 5px;
}
.action-button:hover {
  background-color: #555;
}

#confirma-ubicacion {
  position: absolute;
  top: 80vh;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  font-weight: bold;
  color: #333;
  display: none; /* Se muestra al ocultar el menú */
}

#confirma-posicion {
  background-color: #555;
  transform: translateX(20%);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s;
}
#confirma-posicion:hover {
  background-color: #666;
}

#cancelar-ubicacion {
  background-color: #ff3f81;
  transform: translateX(60%);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s;
}

#info-poligono {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  font-weight: bold;
  color: #333;
  display: none; /* Se muestra al ocultar el menú */
}

/* PUNTO INDICACDOR SECTOR CAMION  */
.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
}

.indicator-green {
  background-color: green;
  animation: blink-green 4s infinite;
}

.indicator-red {
  background-color: red;
  animation: blink-red 4s infinite;
}

/* AREA DE INFORMACION CONTENEDORES */
.stats-container {
  display: flex;
  justify-content: space-around;
  padding: 3rem 0;
  flex-wrap: wrap;
  /*flex-direction: column;*/
  gap: 1rem;
}

.stat-box {
  
   flex-direction: column; 
   align-items: center;  
  display: flex;
  gap: 1rem;
  background-color: #fff;
  color: #333;
  padding: 0.5rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 30%;
}
.stat-image {
  width: 100%;
  display: flex;
  justify-content: center;
  height: 180px;
  flex: 1;
}

.stat-image img {
  width: 100%; 
  object-fit: contain;
  max-width: 120%;
  height: auto;
  border-radius: 8px;
}

.stat-text {
  flex: 2;
  margin-top: 30px;
  margin-bottom: 30px;
}
.stat-text p {
  display: flex;
  align-items: flex-start;
  text-align: left;
  margin-bottom: 10px;
}
.stat-text p i {
  margin-right: 8px;
  margin-top: inherit;
  font-size: 20px;
}

.stat-text p .fa-check {
  color: green;
}

.stat-text p .fa-times {
  color: red;
}

.stat-box h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.stat-box p {
  font-size: 1rem;
  color: #555;
}

/*IMAGENES PET*/
/* .image-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  width: 80%;
  margin: auto;
  padding-bottom: 8vh;
} */
.image-usuarios {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.image-item{
  display: flex; 
  justify-content: center; 
  align-items: center;
} 

.image-item img {
  max-width: 300px;
  width: 100%;
  height: auto;
  display: block;
}

/* Estilo del modal */
.modal {
  display: none; /* Oculto por defecto */
  position: fixed; /* Posición fija en la pantalla */
  z-index: 1;
  left: 5%;
  top: 55%;
  transform: translateY(-50%);
  margin: auto;
  width: 90%;
  height: 80%;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.8); /* Fondo oscuro */
  box-sizing: border-box;
  border-radius: 10px;
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 100%; /* Ajustar el tamaño máximo de la imagen */
  max-height: 100%;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/* Footer */
.footer {
  grid-area: footer;
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 1rem;
}
.footer img {
  position: absolute; 
  right: 20px; 
  bottom: 0; 
  width: 500px; 
  height: auto;
}

/* responsive... */
@media (max-width: 1920px) {
  .main-content.banner{
    grid-area: main;
    display: flex;
    grid-template-columns: 1fr 3fr;
    gap: 1rem;
    padding: 17rem;
}
}

@media (max-width: 900px) {
  .header {
    border-radius: 0 0 15px 15px;
  }
  .footer {
    position: relative;
    min-height: 120px;
  }
  .footer img {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 290px;
    height: auto;
    margin: 0 10px 0 0;
    z-index: 1;
  }
  .logoC{
    display: none;
  }

  .Titulo{
    padding: 2vh;
    margin: 2vh;
  }
  .Titulo h2 {
    font-size: 0.8rem;
    margin-left: 0;

  }
  .main-content.banner {
    grid-area: main;
    display: flex;
    grid-template-columns: 1fr 3fr;
    gap: 1rem;
    padding: 1rem;
  }

  #confirma-ubicacion{
    width: 100%;
    right: 0px;
    padding: 20px 15px;
  }
  #confirma-posicion{
    padding: 0.5rem 2rem;
    margin-top: 15px;
  }
  .menu-header{
    width: 100%;
    height: 80vh;
  }
  .main-content {
    display: flex;
    gap: 1rem;
    padding: 5rem 2rem;
  }
  .content-wrapper {
    width: 500px;
    height: 800px;
    padding: 1rem;
    align-items: center;
  }

  .left-area {
    width: 100%;
    padding: 1rem;
    background-color: rgb(155 233 112 / 66%);
    border-radius: 8px;
  }
  .left-area h1 {
    font-size: 3rem;
  }
  .left-area h2 {
    font-size: 2.5rem;
  }
  .left-area p {
    font-size: 2rem;
  }
  .action-button {
    width: 100%;
    padding: 1rem;
  }
  .stats-container {
    display: flex;
    gap: 2rem;
    padding: 0rem 0 0 0;
  }
  .stat-box {
    display: flex;
    gap: 1rem;
    background-color: #fff;
    color: #333;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 90%;
  }
  .stat-image {
    width: 100%;
    display: flex;
    justify-content: center;
    height: 180px;
    flex: 1;
}
  .stat-image img {
    width: 100%;
    object-fit: contain;
    max-width: 120%;
    height: auto;
    border-radius: 8px;
}
  .stat-box p {
    font-size: 1.3rem;
    color: #555;
  }

  .md\:px-12 {
    padding-left: 0rem;
    padding-right: 0rem;
  }
}

@media (max-width: 870px){
  .modal{
    left: 0;
    top: 65%;
    padding: 0;
    width: 100%;
    height: 100%;
  }
  .modal-content{
    margin-top: 10vh;

  }
  .menu-header{
    width: 100%;
    height: 90vh;
  }
}

@media (max-width: 650px) {
  .menu-header{
    width: 100%;
    height: 90vh;
  }
  .main-content {
    flex-direction: column; /* Cambia el diseño a una columna */
    padding: 10rem 1rem; /* Reduce el padding */
  }

  .left-area {
    width: 100%; /* Ocupa todo el ancho */
    padding: 1rem; /* Reduce el padding */
  }

  .left-area h1 {
    font-size: 2rem; /* Ajusta el tamaño del título */
  }

  .left-area h2 {
    font-size: 1.5rem; /* Ajusta el tamaño del subtítulo */
  }

  .left-area p {
    font-size: 1rem; /* Ajusta el tamaño del texto */
  }

  .action-button {
    width: 100%; /* Haz que el botón ocupe todo el ancho */
    padding: 1rem; /* Incrementa el padding para facilitar el clic */
  }

  .stats-container {
    display: flex;
    gap: 1rem; /* Añade espacio entre los elementos */
    padding: 1rem 0px; /* Añade un margen para que no quede pegado a los bordes */
  }

  .stat-box {
    display: flex;
    gap: 0rem;
    background-color: #fff;
    color: #333;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 95%;
  }

  .stat-image {
    flex: 1;
    margin-top: 3vh;
  }

  .stat-text {
    font-size: 0.9rem; /* Ajusta el tamaño del texto */
  }

  .content-wrapper {
    padding: 1rem; /* Reduce el padding en móviles */
    align-items: center; /* Centra el contenido */
  }

  .background-video {
    height: 100%;
    min-height: 200px; /* Asegura que el video no se reduzca demasiado */
  }

  .px-8 {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }

  .p-10 {
    padding: 0 !important;
  }

  .py-12 {
    padding-top: 3rem;
    padding-bottom: 1rem;
  }

  .image-usuarios {
    display: flex;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
    width: 90%;
    margin: auto;
    padding-top: 35px;
  }

  /* .image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 95%;
    margin: auto;
    padding-bottom: 8vh;
  } */
}
@media (max-width: 500px) {
}