* {
  padding: 0;
  box-sizing: border-box; /* 🔹 Mejora: Control uniforme del tamaño de cajas */
}

#main-lobby {
  width: 98vw;
  text-align: center;
  margin-top: 11vw;
}
#main-lobby p {
  font-size: 1.2vw;
  margin-bottom: 2vw;
}

#text {
  position: relative;
  left: 2vw;
  top: 50%;
  transform: translateY(-50%);
  display: block;
  height: 25vw;
}

#text div {
  font-size: 1.5vw;
}

#text div img {
  margin-top: -7vw;
  width: 20vw;
}

#text p {
  text-align: justify;
  font-size: 1.8vw;
  width: 40vw;
  margin-right: 1vw;
}

#slideshow-container {
  width: 58vw;
  height: 33vw;
  position: relative;
  margin: auto;
  right: 0vw;
  top: 50%;
  transform: translateY(-50%);
  display: block;
}

#mission,
#vision {
  margin-top: 3vw;
  padding-top: 5px;
  display: block;
  height: 20vw;
  /* background-color: orange; */
}

#mission p,
#vision p {
  font-size: 1.4vw;
  text-align: justify;
  margin-inline: 2vw;
  width: 90%;
  /* background-color: rgba(0,0,0,0.3); */
  margin-top: 1vw;
}

#our-m {
  width: 21vw;
  /* background-color: rgb(0, 0, 255, 0.5); */
  position: relative;
  top: -11.5vw;
  left: -10vw;
  margin-bottom: -12vw;
}

#our-v {
  width: 19vw;
  /* background-color: rgb(0, 0, 255, 0.5); */
  position: relative;
  bottom: -11.5vw;
  right: -8vw;
  margin-bottom: -8vw;
}

.org-t {
  width: 98vw;
  height: 100%;
  display: block;
  text-align: center;
  margin-top: 6vw;
  margin-left: 0.5vw;
}

.org-t img {
  border-radius: 15px;
  box-shadow: 4px 6px 6px rgba(0, 0, 0, 0.3);
}

h2 {
  margin: auto;
  width: 45vw;
  font-size: 4vw;
  color: black;
  text-align: center;
  margin-bottom: 1.8vw;
}

.matriz {
  display: grid;
  grid-template-columns: auto auto;
  margin: auto;
  position: relative;
  height: 100%;
  margin-top: 4vw;
}

.cell {
  position: relative;
  height: 100%;
  text-align: center;
  display: grid;
  justify-content: center;
  align-items: center;
}

.cell img {
  width: 42vw;
  margin: auto;
}

.cell i {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 6vw;
  color: white;
}

#envelope {
  margin-bottom: -6vw;
}

* {
  box-sizing: border-box;
}

.mySlides {
  display: none;
}

img {
  vertical-align: middle;
}

/* Slideshow container */
.dot {
  height: 1vw;
  width: 1vw;
  margin: 0.6vw;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.dots-container {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 100%;
}

.active {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1s;
}

/* Contenedor general */
.six-grid {
  display: grid;
  gap: 2vw;
  margin: 2vw;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  grid-template-areas:
  "g1 g2 g3"
  "g4 g5 g6";
  align-items: stretch;
}

.six-grid img {
  width: 100%;
}


.g1 { grid-area: g1; }
.g2 { grid-area: g2; }
.g3 { grid-area: g3; }
.g4 { grid-area: g4; }
.g5 { grid-area: g5; }
.g6 { grid-area: g6; }

.pair {
  display: none;
}

.six-grid figure img:hover {
  transform: scale(1.05);
}

.text-card {
  padding: 16px 18px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.text-card h3 {
  margin: 0;
  font-size: clamp(16px, 1.6vw, 22px);
  color: #223263;
}

.text-card p {
  margin: 0;
  line-height: 1.4;
  font-size: clamp(14px, 1.2vw, 18px);
}

#txt-title {
  font-size: 3vw;
}

#txt-body {
  font-size: 1.5vw;
}

.six-grid figure,
.six-grid .text-card {
  width: 100%;
  height: 100%;
  margin: 0;
  background: #f7f7f7;
  border-radius: 2vw;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}

.six-grid figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform .25s ease;
}

@media (max-width: 750px) {
  #main-lobby {
    height: 100vw;
    margin-top: 5vw;
    margin-bottom: 10vw;
  }

  #text {
    top: 2vw;
    margin-bottom: -20vw;
  }

  #slideshow-container {
    width: 96vw;
    margin-top: -10vw;
  }

  .dots-container {
    display: none;
  }

  #text {
    left: 50%;
    transform: translate(-50%, 0%);
    height: fit-content;
    width: 85vw;
  }

  #text p {
    width: fit-content;
  }

  h2 {
    font-size: 6vw;
    width: 80vw;
    margin: 0;
  }

  #envelope {
    margin-top: 25vw;
    margin-bottom: -28vw;
  }

  #mission,
  #vision {
    display: block;
    height: 70vw;
    width: 100%;
    left: -3%;
    margin: auto;
  }

  #mission p,
  #vision p {
    font-size: 3.7vw;
    text-align: justify;
    margin-inline: 2vw;
    width: 85vw;
    margin: auto;
  }

  #vision img {
    margin-top: 18vw;
  }

  #mission {
    margin-top: 28vw;
    height: 44vw;
    padding-bottom: 2vw;
  }

  #vision {
    height: 38vw;
  }

  .phone-none {
    display: none;
  }

  #our-m {
    width: 50vw;
    position: relative;
    top: -17vw;
    left: -14vw;
    margin-bottom: -14vw;
  }

  #our-v {
    width: 40vw;
    position: relative;
    bottom: 31vw;
    right: -18vw;
    margin-bottom: -34vw;
  }
  .matriz {
    grid-template-columns: auto;
    margin-top: -15vw;
    justify-content: center;
  }

  #logistics {
    margin-bottom: 11vw;
    margin-top: 27vw;
  }
  #logistics i {
background-color: blue;  
}

  #text p {
    font-size: 3.5vw;
  }

  #text div img {
    display: none;
  }

  #text div b {
    font-size: 6vw;
    width: 100%;
  }

  .hc img {
    width: 65vw;
  }

  .org-t {
    width: 95vw;
    margin-top: 38vw;
  }



  .six-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "g1"
      "g4"
      "pair";
  }

  .pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2vw;
  }

  .g2,
  .g3,
  .g5,
  .g6 {
    display: none;
  }

  #txt-title {
    font-size: 5vw;
  }

  #txt-body {
    font-size: 3vw;
  }

  .g2 img,
  .g3 img,
  .g5 img,
  .g6 img {
    width: 100% ;
    margin-left: 0vw;
  }

  #intercambiable img {
    width: 100%;
    margin-left: 0vw;
  }

  .pair .g2,
  .pair .g3,
  .pair .g5,
  .pair .g6 {
    display: grid;
  }
}
