@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Poppins, Arial, sans-serif;
  background-color: #062D61;
  color: #d4dbe4;
  font-size: 16px;
  font-weight: 500;
}

#header {
  height: 100vh;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  position: relative;
  text-align: center;
}

.header-section-construccion, .header-section-metalic, .header-section-energia, .header-section-seguridad, .header-section-telecom {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.header-section-metalic {
  background-image: url('../Imagenes/head-image.jpg');
}

.header-section-construccion {
  background-image: url('../Imagenes/construccion.jpg');
}

.header-section-seguridad {
  background-image: url('../Imagenes/seguridad.jpg');
}

.header-section-energia {
  background-image: url('../Imagenes/electricidad.jpg');
}

.header-section-telecom {
  background-image: url('../Imagenes/telecom.jpg');
}

.title {
  margin-top: -125px;
}

h1 {
  font-size: 40px;
  letter-spacing: 10px;
  text-transform: uppercase;
  margin-bottom: 20px;
  line-height: 2.25;
  color: #ffffff;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 1.5);
}

.title h2 {
  font-size: 40px;
  letter-spacing: 10px;
  text-transform: uppercase;
  margin-bottom: 20px;
  line-height: 2.25;
  color: #ffffff;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 1.5);
}

.title-bar {
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 40px;
  margin-bottom: -25px;
}

.title-bar span {
  font-size: 37.5px;
}

.title-bar p {
  margin-left: 100px;
  margin-right: 100px;
}

p {
  font-size: 17.5px;
  letter-spacing: 2px;
}

.tabs-container {
  position: absolute;
  bottom: 0px;
  display: flex;
  width: 100%;
  height: 110px;
  background-color: #062D61;
  z-index: 1;
}

.tabs-container a:hover {
  background-color: #d3ac00;
  color: #000000;
}

.sticky {
  position: fixed;
  top: 0;
}

.image-container {
  width: 60%;
  max-width: 650px;
  overflow: hidden;
  margin-left: -230px;
  margin-right: -230px;
  margin-top: 5px;
}

.image-container img {
  width: 25%;
  height: auto;
}

.tabs-container a {
  text-decoration: none;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  letter-spacing: 2px;
}

.tabs-container button:hover a{
  color: #000000;
}

/* DROPDOWNS */
button {
  border: 0;
  background: none;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
}

.dropdowns {
  display: flex;
  align-self: stretch;
}

.dropdown {
  position: relative;
  padding: 26px;
}

.dropdown-button {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 70px;
}

.dropdown:hover {
  background-color: #d3ac00;
  cursor: pointer;
}

.dropdown-button span {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 2px;
  color: #ffffff;
  margin-left: 40px;
}

.dropdown-button:hover span {
  color: #000000;
}

.dropdown-button:hover span {
  color: #000000;
}

.dropdown-button:hover i {
  color: #000000;
}

.dropdown-button i {
  font-size: 14px;
  color: rgb(255, 255, 255);
  margin-left: -55px;
  margin-right: 45px;
}

.dropdown:hover > .dropdown-menu {
  display: flex;
  flex-direction: column;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 100%;
  background-color: #062D61;
  display: none;
}

.dropdown-menu button {
  padding: 12px 24px;
}

.dropdown-menu button:hover {
  background-color: #d3ac00;
}

/* BOTON MENU */

button {
  border: 0;
  outline: none;
  background: none;
  color: inherit;
}

.menu-btn {
  width: 68px;
  height: 68px;
  display: none;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  color: rgb(0, 0, 0);
  cursor: pointer;
  scale: 0;
  transition: background-color 0.3s ease;
  z-index: 3;
  margin-left: auto;
  margin-right: 24px;
} 

.menu-btn i {
  font-size: 24px;
}

.menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  background-color: #062D61;
  color: white;
  padding: 10vh 11vw 8vh 11vw;
  display: flex;
  flex-direction: column;
  font-size: 35px;
  transform: translateX(100%);
  z-index: 2;
  inset: 0;
}

.menu-p {
  font-size: 50px;
}

.menu-head {
  font-size: 12px;
  color: #ffffff;
  padding: 16px 0;
  border-bottom: 1px solid #000000;
  margin-bottom: 56px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.menu-items {
  display: flex;
  flex-direction: column;
  gap: 38px;
}

.menu-item {
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #ffffff;
}

.menu-item:hover {
  transform: translateY(-10px);
}

/*
.menu.active + .menu-btn {
  background-color: #455ce9;
}
*/

/*? Footer bottom */

.footer-bottom {
  text-align: center;
  border-top: 1px solid var(
      --text-gray
  );
  display: flex;
  align-items: center;
  width: 100%;
  gap: 8px;
  padding: 16px 0px;
  flex-wrap: wrap;
  justify-content: center;
  background-color: white;
}

/* CAMBIO DE TAMAÑO*/
@media screen and (max-width: 1250px) {
  .media-section img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    margin-left: 100px;
  }
}

@media screen and (max-width: 1100px) {

  .tabs-container {
    position: absolute;
    bottom: 0;
    display: flex;
    width: 100%;
    height: 110px;
  }
  
  .sticky {
    position: fixed;
    top: 0;
  }

  .tabs-container a {
    display: none;
  }

  .image-container {
    width: 10%;
    min-width: 500px;
    overflow: hidden;
    margin-left: -150px;
    margin-right: none;
    margin-top: 25px;
  }
  
  .image-container img {
    width: 25%;
    height: auto;
  }

  .dropdown {
    display: none;
  }  
  
  .menu-btn {
    display: flex;
    color: white;
    margin-top: 25px;
  }
  .dropdowns {
    flex-direction: column;
  }
  
  .dropdown {
    padding: 50px;
  }
  
  .dropdown-button {
    gap: 20px;
  }
  
  #header {
    height: 100vh;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
  }

  .dropdown-button i {
    display: none;
  }

  .dropdown-button span {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 2px;
    margin-left: 10px;
  }
}

/*? mobile */

@media screen and (max-width: 1200px) {
  .info-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-left: 45px;
    margin-right: 45px;
  }
}

@media screen and (max-width: 575px) {
  h1 {
    font-size: 25px;
    letter-spacing: 10px;
    text-transform: uppercase;
    margin-bottom: 15px;
    line-height: 2.25;
  }
}

@media screen and (min-width: 1055px) {
  .menu {
    display: none;
  }
}

/* CAAAAAAAAAAAAAAAAAAAAAAAAAAARDS */

.background {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: start;
  padding: 80px 32px;
}

.articles {
  display: flex;
  flex-wrap: wrap;
  margin: 0 auto;
  justify-content: center;
  max-width: 30000px;
  gap: 30px;
} 

.articles article {
  max-width: 350px;
  cursor: pointer;
  position: relative;
  display: block;
  transition: all 0.4s ease-in-out;
  overflow: hidden;
  border-radius: 5px;
}

.articles article img {
  max-width: 100%;
  transform-origin: center;
  transition: transform 0.4s ease-in-out;
}

.articles article h2 {
  margin: 0 0 15px 0;
  font-size: 1.4rem;
  color: #000000;
  transition: color 0.3s ease-out;
}

@media screen and (max-width: 300px) {
  .article-preview p {
    font-size: 1.25rem;
  }
}

.article-preview {
  padding: 24px;
  background: white;
  height: 275px;
}

.article-preview-d {
  padding: 24px;
  background: #062D61;
  height: 200px;
}

.article-preview p {
  color: #1a1818ec;
  font-size: 15px;
  letter-spacing: 0.5px;
}

.article-preview-d p {
  color: #1a1818ec;
  font-size: 17.5px;
  letter-spacing: 0.5px;
}

@media screen and (max-width: 700px) {
  .title h2 {
    font-size: 20px;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    line-height: 2.25;
    color: #ffffff;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 1.5);
  }
}

@media screen and (max-width: 300px) {
  .article-preview p {
    font-size: 10px;
  }
}

.articles figure {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.articles figure img {
  height: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  object-fit: cover;
  z-index: -1;
}

.articles article:hover img {
  transform: scale(1.25); 
}






.gallery-container {
  position: relative;
  display: flex;
  align-items: center;
}

.gallery-control {
  position: absolute;
  top: 40%;
  border: none;
  font-size: 45px;
  cursor: pointer;
  color: #062d61;
}

.gallery-control:hover {
  color: #d3ac00;
}

.gallery-control.left {
  left: 0;
}

.gallery-control.right {
  right: 0;
}