*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
h3,
h4,
h5 {
  color: var(--dark_grey);
}
/* Estilos generales */
body {
  font-family: "Inter", sans-serif;
  background-color: var(--cream);
  color: #333;
  line-height: 1.6;
}
img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s, box-shadow 0.3s;
  -webkit-transition: transform 0.5s, box-shadow 0.3s;
  -moz-transition: transform 0.5s, box-shadow 0.3s;
  -ms-transition: transform 0.5s, box-shadow 0.3s;
  -o-transition: transform 0.5s, box-shadow 0.3s;
}
img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}
:root {
  --violet: #8e7bef;
  --dark_grey: #3c91eb;
  --yellow: #fcda68;
  --light_grey: #3f4042;
  --cream: #f9f5f2;
}
.float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 100;
}
.float:hover {
  text-decoration: none;
  color: #25d366;
  background-color: #fff;
}
.my-float {
  margin-top: 16px;
}
/* Navegación */
nav {
  background-color: var(--cream);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
}
nav img {
  max-width: 120px;
  margin-top: 0.5rem;
  border-radius: 10%;
  margin-left: 3rem;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 17px;
  margin-right: 20px;
}
nav li {
  white-space: normal;
}
nav a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: color 0.3s;
}
nav a:hover {
  color: var(--dark_grey);
}
.nav__menu__item {
  margin-left: 8rem;
}
/* Encabezado */
header {
  background-color: var(--dark_grey);
  color: var(--cream);
  padding: 100px 0;
  text-align: center;
}
header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  border: 2px solid red;
}
header h3 {
  font-size: 1.2rem;
  font-weight: 300;
}
.header__principal__text {
  margin: 2rem;
}
/* Secciones principales */
.second__section_main {
  text-align: center;
  padding: 4rem;
}
.second__section_header {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.second__section_header_p {
  text-align: justify;
}
.second__section_header img {
  max-width: 100px;
  border-radius: 10px;
  margin-right: 20px;
  margin-bottom: 20px;
  max-width: 20%;
  margin-top: 2rem;
  margin-bottom: 2rem;
  border-top-left-radius: 5em 5em;
  border-bottom-right-radius: 5em 5em;
}
.second__section_header div {
  flex: 1;
  max-width: 600px;
  text-align: left;
}
/* Acerca de Nosotros */
.acerca_de_nostros {
  margin: 30px auto;
  max-width: 800px;
  text-align: center;
}
.acerca_de_nostros h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.acerca_de_nostros p {
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.acerca_de_nostros img {
  max-width: 400px;
  border-radius: 10px;
  margin: 20px auto;
}
.acerca_de_nostros li {
  list-style-type: none;
  display: inline-block;
  margin-right: 10px;
}
.red-hr {
  border: none;
  border-top: 2px solid red;
  margin: 1rem 0;
}
/* nuestros servicios */
.skills__element {
  background-color: var(--cream);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-top: 30px;
  border-radius: 10px;
}
.title_skills {
  text-align: center;
}
.skills__icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}
.skills__icons > div {
  flex: 0 0 calc(33.33% - 20px);
  text-align: center;
  margin-bottom: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.skills__icons > div:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.skills__icons img {
  max-width: 100%;
  margin: 1rem;
}
/* Pie de página */
.third__section_main {
  background-color: var(--dark_grey);
  color: #fff;
  text-align: center;
  padding: 3rem;
}
.contact__section {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}
.contact__elements {
  text-align: center;
}
.contact__elements h4 {
  font-size: 1.2rem;
}
.contact__section img {
  max-width: 40px;
  opacity: 0.3;
}
/* Estilos para enlaces en el pie de página */
footer a {
  color: #fff;
  text-decoration: none;
}
.contact__section h6 {
  font-size: 24px;
  text-align: center;
  margin-bottom: 1rem;
}
.contact__elements {
  margin-left: 3rem;
  margin-right: 3rem;
}
footer a:hover {
  text-decoration: underline;
}
footer ul {
  list-style: none;
  margin-top: 10px;
}
footer ul li {
  margin-bottom: 5px;
}
@media (max-width: 450px) {
  nav img {
    max-width: 100px;
    margin-left: 1rem;
  }
  nav ul {
    margin-right: 16px;
    flex-wrap: wrap;
    max-height: 120px;
  }
  nav li {
    white-space: normal;
    font-size: 10px;
  }
  .nav__menu__item {
    margin-left: 1rem;
  }
  header {
    padding: 80px 0;
  }
  header h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 5rem;
  }
  header h2 {
    font-size: 1.2rem;
    margin-top: 1rem;
  }
  header h3 {
    font-size: 1rem;
    font-weight: 300;
  }
  header p {
    margin-right: 1rem;
    margin-left: 1rem;
  }
  .second__section_main {
    padding: 1rem;
  }
  .second__section_header img {
    display: none;
  }
  .second__section_header div {
    max-width: 100%;
    text-align: center;
  }
  .acerca_de_nostros img {
    max-width: 70%;
    border-radius: 5px;
  }
  .skills__icons > div {
    flex: 0 0 calc(50% - 10px);
    margin-bottom: 10px;
  }
  .contact__elements {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }
  .third__section_main {
    font-size: 9px;
    margin: 0px;
  }
  footer ul {
    margin-top: 5px;
  }
}
/* Media Query para tabletas hasta 768px */
@media (max-width: 768px) {
  .nav__menu__item {
    margin-left: 2rem;
  }
  nav ul {
    margin-right: 16px;
    flex-wrap: wrap;
    max-height: 120px;
  }
  nav li {
    white-space: normal;
    font-size: 12px;
  }
  .second__section_header img {
    display: none;
  }
  .second__section_header div {
    max-width: 100%;
    text-align: center;
  }
  .acerca_de_nostros img {
    max-width: 80%;
    border-radius: 10px;
  }
  .skills__icons > div {
    flex: 0 0 calc(50% - 10px);
    margin-bottom: 10px;
  }
  .contact__elements {
    margin-left: 1rem;
    margin-right: 1rem;
  }
  .contact__section img {
    max-width: 40px;
  }
  footer ul {
    margin-top: 5px;
  }
}
@media (max-width: 928px) {
  .nav__menu__item {
    margin-left: 2rem;
  }
  nav ul {
    margin-right: 16px;
    flex-wrap: wrap;
    max-height: 120px;
  }
  nav li {
    white-space: normal;
    font-size: 12px;
  }
  .second__section_header img {
    display: none;
  }
  .second__section_header div {
    max-width: 100%;
    text-align: center;
  }
  .acerca_de_nostros img {
    max-width: 80%;
    border-radius: 10px;
  }
  .skills__icons > div {
    flex: 0 0 calc(50% - 10px);
    margin-bottom: 10px;
  }
  .contact__elements {
    margin-left: 1rem;
    margin-right: 1rem;
  }
  .contact__section img {
    max-width: 40px;
  }
  footer ul {
    margin-top: 5px;
  }
}
