* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
}

/* ===== SECCION PRINCIPAL ===== */
.toggle {
  position: fixed;
  top: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #000 url(../img/menu.png);
  background-size: 30px;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  z-index: 1000;
}

.toggle.active {
  background: #000 url(../img/close.png);
  background-size: 25px;
  background-position: center;
  background-repeat: no-repeat;
}

section {
  padding: 100px;
  min-height: 100vh;
}

.banner {
  position: relative;
  width: 100%;
  min-height: 100vh;
}

.banner .imgSidebar {
  position: absolute;
  top: 0;
  left: 0;
  width: 500px;
  height: 100%;
}

.banner .imgSidebar img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner .contentBx,
.sidebar {
  position: absolute;
  top: 0;
  right: 0;
  width: calc(100% - 500px);
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 100px;
}

.logoText {
  position: absolute;
  top: 40px;
  left: 100px;
  font-size: 1.2em;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: #333;
  color: #fff;
  padding: 0 5px;
}

.banner .contentBx h4 {
  font-size: 1.5em;
  color: #333;
  font-weight: 300;
}

.banner .contentBx h4 span {
  color: #0b45b3;
  font-size: 1.5em;
  font-weight: 700;
}

.banner .contentBx h2 {
  font-size: 3em;
  color: #333;
  line-height: 1em;
}

p {
  font-size: 1.1em;
  margin: 20px 0;
  font-weight: 300;
}

.btn {
  background: #0b45b3;
  color: #fff;
  padding: 10px 30px;
  display: inline-block;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 2px;
}

/* ===== MENU ===== */
.sidebar {
  position: fixed;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.5s;
  padding: 40px;
  z-index: 100;
  right: -100%;
}

.sidebar.active {
  right: 0;
}

.sidebar ul {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.sidebar ul li {
  list-style: none;
}

.sidebar ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 2em;
  margin: 10px 0;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.sidebar ul li a:hover {
  color: #0b45b3;
}

/* ===== REDES SOCIALES ===== */
.sci {
  position: absolute;
  left: 100px;
  bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sci li {
  margin-right: 0.4px;
  list-style: none;
}

.sci li img {
  transform: scale(0.6);
  opacity: 1;
}

/* ===== ACERCA DE MI ===== */
.title {
  width: 100%;
  text-align: center;
}

.title h2 {
  position: relative;
  color: #0b45b3;
  font-size: 1.8em;
  font-weight: 700;
  letter-spacing: 1px;
}

.title p {
  max-width: 700px;
  display: inline-block;
}

.title h2::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -10px;
  width: 60px;
  width: 60px;
  height: 4px;
  background: #000;
}

.title.white p,
.title.white h2 {
  color: #fff;
}

.title.white h2::before {
  background: #fff;
}

.about {
  background: #000;
}

.about .content {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
}

.about .content .textBx {
  min-width: 49%;
  width: 49%;
  text-align: center;
  margin: auto;
}

.about .content .textBx p {
  color: #fff;
}

.about .content .textBx h1 {
  color: #fff;
  text-align: center;
}

.about .content .textBx .contentImg {
  display: inline-block;
  text-align: center;
}

.about .content .textBx .contentImg h4 {
  color: #fff;
}

.about .content .imgBx {
  margin-left: 40px;
}

.about .content .imgBx img {
  max-width: 100%;
}

/* ===== TRABAJOS ===== */
.work .content {
  display: flex;
  justify-content: center;
  flex-direction: row;
  flex-wrap: wrap;
}

.work .content .workBx {
  position: relative;
  width: 265px;
  height: 265px;
  margin: 10px;
  transition: 0.5s;
  text-align: center;
}

.work .content .workBx .imgBx,
.work .content .workBx .textBx {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.work .content .workBx .imgBx img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work .content .workBx .textBx {
  background: #000;
  opacity: 0;
  transition: 0.5s;
  flex-direction: column;
}

.work .content .workBx:hover .textBx {
  opacity: 1;
  cursor: pointer;
}

.work .content .workBx .textBx h3 {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.3em;
  margin-bottom: 10px;
}

.work .content .workBx .textBx a {
  color: #fff;
  font-size: 1em;
  text-decoration: none;
}
.work .content .workBx .textBx img {
  background: #fff;
  border-radius: 10px;
  max-width: 19px;
  vertical-align: sub;
  margin-top: 12px;
}

/* ===== CONTACTO ===== */
.contact {
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.contact .contactForm {
  position: relative;
  width: 700px;
  margin-top: 20px;
}

.contact .contactForm .row {
  width: 100%;
  display: flex;
}

.contact .contactForm .row .col50 {
  width: 50%;
  margin: 10px;
}

.contact .contactForm .row .col100 {
  width: 100%;
  margin: 10px;
  text-align: center;
}

.contact .contactForm .row input,
.contact .contactForm .row textarea {
  width: 100%;
  padding: 10px;
  border: none;
  outline: none;
  background: #111;
  color: #fff;
  font-size: 16px;
  resize: none;
}

.contact .contactForm .row textarea {
  height: 100px;
}

.contact .contactForm .row .buttonSubmit {
  background: #0b45b3;
  color: #fff;
  padding: 8px 30px;
  display: inline-block;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  max-width: 120px;
  font-size: 1em;
  border: none;
}

.contact .contactForm .row h3 {
  color: rgb(34, 201, 28);
  padding-top: 20px;
}

/* ===== FOOTER ===== */
.copyright {
  color: #000;
  text-align: center;
  padding: 10px;
}

.copyright p {
  margin: 0;
  font-size: 18px;
}

/* ===== RESPONSIVE WEB ===== */
@media (max-width: 991px) {
  .banner .imgSidebar {
    display: none;
  }
  .banner .contentBx,
  .sidebar {
    width: 100%;
    padding: 40px;
  }
  .logoText {
    left: 40px;
    margin-top: -9px;
  }
  .toggle {
    right: 40px;
  }
  .sci {
    left: 40px;
  }
  section {
    padding: 40px;
  }
  .about .content {
    flex-direction: column;
  }
  .about .content .textBx {
    min-width: 100%;
    width: 100%;
  }
  .about .content {
    margin-top: 0;
  }
  .about .content .imgBx {
    margin-left: 0;
  }
  .about .content .textBx .contentImg {
    margin-bottom: 30px;
    height: 50%;
  }

  .services .content .servicesBx {
    padding: 30px 20px;
    max-width: 340px;
    margin: 10px;
  }
  .contact .contactForm {
    width: 100%;
  }
  .contactForm .row {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
  }
  .contact .contactForm .row .col50 {
    width: 100%;
  }
  .sidebar ul li a {
    font-size: 1.5em;
  }
}

@media (max-width: 500px) {
  .services .content .servicesBx,
  .work .content .workBx {
    max-width: 100%;
    width: 100%;
    margin: 10px 0;
  }
  .sci li {
    line-height: 8px;
  }
}

@media (max-height: 500px) {
  .logoText {
    font-size: 1.2em;
  }
  .banner .contentBx h4 {
    font-size: 1.2em;
  }

  .banner .contentBx span {
    font-size: 1.1em;
    font-weight: 400;
  }

  .banner .contentBx h2 {
    font-size: 1.5em;
    color: #333;
    line-height: 1em;
  }

  p {
    font-size: 1.1em;
    margin: 20px 0;
    font-weight: 300;
  }

  .btn {
    margin-bottom: 15px;
    padding: 5px 22px;
    display: inline-block;
  }
  .toggle {
    width: 40px;
    height: 40px;
  }
  .sci li img {
    width: 40px;
    height: 40px;
  }
  .sci li {
    line-height: 8px;
  }
}
