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

:root {
  --color-primary: #072ac8;
  --color-hover: #ffc600;
  --background: #f2f4fc;
  --color-white: white;
  --color-grey: #6b708d;
  --color-dark: #292e47;
  --color-light-blue: #a2d6f9;
  --color-yellow-suscribe-section: #ffea01;
}
h1 {
  font-size: 60px;
  font-weight: bold;
}
h2 {
  font-size: 50px;
  font-weight: bold;
}
h3 {
  font-size: 40px;
  font-weight: bold;
}
h4 {
  font-size: 24px;
  font-weight: bold;
}

body {
  background-color: var(--background);
  font-family: "Roboto", sans-serif;
  max-width: 1200px;
  margin: 0 auto;
}

/* Que las imagenes no se salgan de sus contenedores */
img {
  max-width: 100%;
  height: auto;
}

/* =========================================
   NAVBAR Y HEADER (Mobile First)
   ========================================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  padding: 20px;
}

.navbar a {
  text-decoration: none;
  color: var(--color-primary);
}

/* =========================================
   BOTÓN HAMBURGUESA
   ========================================= */
.hamburger-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  position: relative;
  z-index: 100;
}

.hamburger-btn img {
  width: 35px;
}

/* =========================================
   MENÚ Y BOTONES (Estado móvil)
   ========================================= */
.menu-container {
  display: none; /* Oculto por defecto en móvil */
}

.menu-container.active {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  width: 100%;
  background-color: var(--background);
  padding: 40px 20px;
}

.menu-container ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.menu-container a {
  font-size: 18px;
  font-weight: 500;
  font-weight: bold;
}

.btn {
  padding: 16px 24px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  font-weight: bold;
}

.btn:hover {
  color: var(--color-hover);
}

.navbar a:hover {
  text-decoration: underline;
}

/* =========================================
   HERO SECTION (Estado móvil)
   ========================================= */

.hero-section {
  margin: 10px 50px;
  margin-bottom: 150px;
}

.hero-text h1 {
  margin-bottom: 20px;
}

.hero-text p {
  margin-bottom: 20px;
}

.hero-buttons {
  display: flex;
  flex-direction: row;
  text-align: center;
}

.hero-buttons a {
  text-decoration: none;
  color: var(--color-primary);
  padding: 20px;
}

.img-card {
  display: none;
}

/* =========================================
   LOGOS SECTION (Estado móvil)
   ========================================= */

.logos-section {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 60px;
  margin-bottom: 150px;
  flex-wrap: wrap;
}

.logos-section img {
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.logos-section a:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* =========================================
   RECENT-PROJECTS SECTION (Estado móvil)
   ========================================= */
.recent-projects {
  padding: 20px 60px;
  margin-bottom: 150px;
}

.recent-projects h2 {
  margin-bottom: 40px;
  text-align: left;
}

.project-card-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.project-card {
  width: 100%;
  background-color: var(--color-white);
}

.project-card img {
  height: 200px;
  width: 100%;
  object-fit: cover; /* Evita que la foto se deforme si cambia de tamaño */
}

.project-card div {
  padding: 30px;
}

.project-card div h4 {
  margin-bottom: 10px;
  color: var(--color-dark);
}

.project-card div p {
  margin-bottom: 30px;
  color: var(--color-grey);
}

.project-card div a {
  text-decoration: none;
  color: var(--color-primary);
  font-weight: bold;
}

.project-card div a:hover {
  text-decoration: underline;
}

.project-link-wrapper {
  text-decoration: none;
  color: inherit;
  display: block;
}

.learn-more-text {
  color: var(--color-primary);
  font-weight: bold;
}

.learn-more-text:hover {
  text-decoration: underline;
}

/* =========================================
   TESTIMONIAL SECTION (Estado móvil)
   ========================================= */

.testimonial-section {
  background-color: var(--color-dark);
  background-image: url("./project-assets/testimonial-section/orbit.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin: 0 30px 150px 30px;
  padding: 80px 20px;
  text-align: center;
  color: var(--color-white);
}

/* Ocultamos los emojis en móvil */
.testimonial-memojis {
  display: none;
}

.testimonial-text h3 {
  margin-bottom: 30px;
  color: var(--color-white);
}

.testimonial-text p {
  color: var(--color-hover);
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 50px;
}

.testimonial-profile {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.testimonial-profile img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-profile div {
  text-align: left;
}

.testimonial-profile .name {
  color: var(--color-light-blue);
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 5px;
}

.testimonial-profile .web {
  color: var(--color-white);
  font-size: 14px;
}

/* =========================================
   SERVICES SECTION (Estado móvil)
   ========================================= */

.services-section {
  padding: 20px 60px;
  margin-bottom: 150px;
}

.services-section h2 {
  margin-bottom: 40px;
  text-align: left;
}

.services-section-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.service-card {
  background-color: var(--color-white);
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.service-card img {
  width: 40px;
  height: auto;
  margin-bottom: 0;
}

.service-card .icon-container {
  background-color: var(--color-light-blue);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 25px;
}

.service-card h4 {
  margin-bottom: 15px;
}

.service-card p {
  color: var(--color-grey);
  line-height: 1.6;
  margin-bottom: 30px;
}

.service-card a {
  text-decoration: none;
  color: var(--color-primary);
  font-weight: bold;
  margin-top: auto;
}

.service-card a:hover {
  text-decoration: underline;
}

/* =========================================
   SUBSCRIBE SECTION (Estado móvil)
   ========================================= */

.suscribe-section {
  background-color: var(--color-yellow-suscribe-section);
  margin: 0 30px 150px 30px;
  padding: 80px 30px;
  text-align: center;
}

.suscribe-section h2 {
  color: var(--color-dark);
  margin-bottom: 20px;
  font-size: 32px;
}

.suscribe-section p {
  color: var(--color-dark);
  font-size: 18px;
  margin-bottom: 40px;
}

.suscribe-section form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.input-container {
  position: relative;
  width: 80%;
  max-width: 450px;
}

.input-icon {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  width: 24px;
  opacity: 0.5;
}

.input-container input {
  width: 100%;
  padding: 20px 20px 20px 60px;
  border: none;
  font-size: 16px;
  text-align: left;
  font-family: inherit;
  transition: outline;
}
.input-container input:hover {
  outline: 2px solid var(--color-light-blue);
}

.input-container input:focus {
  outline: 2px solid var(--color-primary);
}

.suscribe-section .btn {
  width: auto;
  padding: 16px 40px;
}

/* =========================================
   FOOTER (Estado móvil)
   ========================================= */

footer {
  padding: 20px 60px;
  text-align: center;
}

.address-info {
  margin-bottom: 40px;
}

.address-info img {
  margin-bottom: 20px;
}

.address-info p {
  color: var(--color-grey);
}

footer ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

footer a {
  text-decoration: none;
  color: var(--color-grey);
}

footer a:hover {
  text-decoration: underline;
  color: var(--color-primary);
}

/* =========================================
   MEDIA QUERIES 
   ========================================= */

@media (min-width: 768px) {
  /* =========================================
    NAVBAR
     ========================================= */
  .hamburger-btn {
    display: none;
  }

  .navbar {
    flex-wrap: nowrap;
    padding: 20px 60px;
  }

  .menu-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    padding: 0;
  }
  .menu-container ul {
    flex-direction: row;
    gap: 40px;
    margin: 0 auto;
  }

  /* =========================================
     HERO SECTION 
     ========================================= */
  .hero-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    margin: 50px 60px 150px 60px;
  }

  .hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .hero-text h1 {
    font-size: 46px;
    line-height: 1.2;
    margin-bottom: 20px;
    text-align: left;
  }

  .hero-text p {
    text-align: left;
    font-size: 18px;
    line-height: 1.6;
  }

  .hero-buttons {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
  }

  .hero-image {
    flex: 1;
    position: relative;
    max-width: 450px;
    margin: 0 auto;
  }

  .img-hero {
    width: 100%;
    height: auto;
    display: block;
  }

  .img-card {
    display: block;
    position: absolute;
    width: 60%;
    border-radius: 8px;
    z-index: 10;
  }

  /* Tarjeta 1: Arriba a la izquierda */
  .img-card:first-child {
    left: -10%;
  }

  .img-accepted {
    bottom: -15%;
    right: -15%;
  }

  /* =========================================
     LOGOS SECTION 
     ========================================= */

  .logos-section {
    display: flex;
    justify-content: space-between;
    padding: 0 60px;
  }

  .logos-section a:hover img {
    transform: translateY(-5px);
  }

  /* =========================================
     RECENT PROJECTS SECTION 
     ========================================= */

  .project-card-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-card {
    transition: all 0.3s ease;
  }

  .project-card:hover {
    transform: translateY(-10px);
    box-shadow: 15px 15px 30px rgba(0, 0, 0, 0.3);
  }

  /* =========================================
     TESTIMONIAL SECTION 
     ========================================= */

  .testimonial-section {
    position: relative;
    padding: 120px 20px;
  }

  .testimonial-memojis {
    display: block;
  }

  .testimonial-memojis img {
    position: absolute;
    width: 70px;
    height: auto;
    border-radius: 50%;
    z-index: 5;
    transition: all 0.3s ease;
  }

  /* Arriba a la Izquierda */
  .img-emoji1 {
    top: 5%;
    left: 1%;
  }

  /* Arriba a la Derecha */
  .img-emoji2 {
    top: 5%;
    right: 1%;
  }

  /* Abajo a la Izquierda */
  .img-emoji3 {
    bottom: 5%;
    left: 1%;
  }

  /* Abajo a la Derecha */
  .img-emoji4 {
    bottom: 5%;
    right: 1%;
  }

  /* =========================================
     SUSCRIBE SECTION 
     ========================================= */
  .suscribe-section form {
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    max-width: 550px;
    margin: 0 auto;
    gap: 15px;
  }

  .input-container {
    max-width: none;
    width: 100%;
    flex: 1;
  }

  .suscribe-section .btn {
    width: auto;
    padding: 0 40px;
  }
  /* =========================================
   SCROLL TO TOP BUTTON
   ========================================= */

  .btn-scroll-position {
    position: fixed;
    bottom: 40px;
    right: 25px;
    z-index: 100;
  }

  .btn-scroll-style {
    background-color: var(--color-primary);
    border: 2px solid var(--color-white);
    border-radius: 50%;
    height: 60px;
    width: 60px;
    color: var(--color-white);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease-in-out;
    font-size: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    animation: movebtn 3s ease-in-out infinite;
  }

  .btn-scroll-style:hover {
    animation: none;
    background-color: #ffffff;
    color: #072ac8;
    border: 2px solid #072ac8;
    transform: scale(1.1);
  }

  @keyframes movebtn {
    0%,
    100% {
      transform: translateY(0px);
    }
    25% {
      transform: translateY(10px);
    }
    75% {
      transform: translateY(-10px);
    }
  }

  /* =========================================
     FOOTER 
     ========================================= */
  footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 60px;
  }

  .address-info {
    text-align: left;
  }
}
@media (min-width: 1024px) {
  /* =========================================
     RECENT PROJECTS SECTION 
     ========================================= */
  .project-card-container {
    grid-template-columns: repeat(3, 1fr); /* 3 columnas iguales */
  }
  /* =========================================
     SERVICES SECTION 
     ========================================= */
  .services-section-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
  .service-card {
    transition: all 0.3s ease;
  }

  .service-card:hover {
    transform: translateY(-10px);
    box-shadow: 15px 15px 30px rgba(0, 0, 0, 0.3);
  }
}
