/* Binamia - estilos */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/montserrat-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

body {
  background-color: #262726;
  font-family: 'Montserrat', sans-serif;
  overflow-x: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.logo-link,
.menu-link {
  display: inline-flex;
  align-items: center;
  line-height: 1.5;
  text-decoration: none;
  border-radius: 2px;
  -webkit-tap-highlight-color: transparent;
}

.logo-link:focus-visible,
.menu-link:focus-visible {
  outline: 2px solid #0B6BCB;
  outline-offset: 2px;
}


/* Encabezado */

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px;
  padding: 10px;
}

.binamia-logo {
  display: block;
  width: 80px;
  height: auto;
}

.logo-text {
  flex-grow: 1;
  color: #fff;
  text-align: left;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.00938em;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.menu-link {
  color: #fff;
  letter-spacing: 0.00938em;
}

.menu-link img {
  display: block;
  width: 25px;
  height: auto;
  margin-right: 8px;
}

@media (max-width: 767px) {
  .menu-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .menu-link img {
    width: 15px;
    margin-right: 3px;
  }
}


/* Portada */

.home-container {
  position: relative;
  text-align: center;
  margin: 20px 1px;
}

.home-image {
  max-width: 100%;
  height: auto;
  filter: brightness(50%);
  border-radius: 10px;
}

.image-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
}

.image-text-content {
  padding: 10px;
  border-radius: 5px;
  color: #fff;
  font-size: 48px;
  font-weight: 400;
  line-height: 1.167;
}

@media (max-width: 767px) {
  .image-text-content {
    font-size: 24px;
  }
}


/* Servicios */

.services-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 50px;
}

.service-row {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.service {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 300px;
  max-height: 400px;
  margin: 10px 100px;
  padding: 30px;
  overflow-y: auto;
  text-align: center;
}

.service-logo {
  display: block;
  width: 50px;
  height: 50px;
}

.service-title {
  margin: 15px 0;
  color: #fff;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.00938em;
}

.service-description {
  color: #fff;
  font-size: 14px;
  line-height: 1.43;
  letter-spacing: 0.01071em;
}

@media (max-width: 768px) {
  .service-row {
    justify-content: center;
  }

  .service {
    width: auto;
    max-height: none;
    margin: 10px;
    padding: 20px;
    overflow-y: visible;
  }
}


/* Pie */

.footer {
  padding: 100px 0 20px;
}

.footer hr {
  height: 1px;
  border: 0;
  background-color: rgba(99, 107, 116, 0.2);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.footer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.footer-logo {
  display: block;
  width: 80px;
  height: auto;
  margin: 20px 0;
}

.footer-text {
  padding-top: 0.5rem;
  color: #fff;
  font-size: 14px;
  line-height: 1.43;
  letter-spacing: 0.01071em;
}
