@import url('vars.css');

/* Estilos base: Mobile First */
* {
  margin: 0;
  box-sizing: border-box;
  font-family: var(--fuente-principal);
  scroll-behavior: smooth;
}

#welcome,
#about,
#services,
#customers,
#gallery,
#contact {
  scroll-margin-top: 90px;
}

.welcome {
  position: relative;
  z-index: 0;
  margin-top: 90px;
}

.welcome__logo {
  margin: 15px 0px 0px 0px;
}

.welcome__title {
  text-align: center;
  font-weight: 500;
  color: var(--color-primario);
}

@keyframes slideDown {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(15px);
  }

  100% {
    transform: translateY(0);
  }
}

.welcome__icon {
  color: var(--color-primario);
  text-align: center;
  font-size: 50px;
  animation: slideDown 1s infinite linear;
  position: relative;
  z-index: 0;
}

.content {
  padding: 30px;
  text-align: justify;
}

.about__article,
.customers__article,
.gallery__article {
  margin: 15px 0px;
}

.about__link {
  display: flex;
  justify-content: center;
}

@keyframes focus {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }

  100% {
    transform: translateY(0);
  }
}

.about__link a{
  background: var(--color-primario);
  display: block;
  width: 250px;
  padding: 1rem;
  color: var(--color-secundario);
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  border-radius: 10px;
  animation: focus 1s infinite linear;
}

.about__title,
.about__subtitle,
.products__title,
.services__title,
.customers__title,
.gallery__title {
  font-size: 2rem;
  text-align: center;
  color: var(--color-primario);
  margin-bottom: 10px;
}

.about__text,
.services__text,
.products__contact,
.customers {
  color: var(--color-primario);
}

.services__subtitle{
  font-size: 1.5rem;
  color: var(--color-primario);
  margin: 5px 0px;
}

.services__nom-lik{
  color: var(--color-secundario);
  text-decoration: dotted;
  font-size: 1.1rem;
  font-weight: bold;
  font-style: italic;
}

.services__links{
  margin: 15px 0px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  text-align: center;
}

.services__link{
  background-color: var(--color-primario);
  color: var(--color-secundario);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  height: 60px;
  border-radius: 6px;
  font-weight: 600;
}

.services__link:hover{
  background-color: var(--color-terciario);
  color: #ff9900;
}

.customers__title-item,
.customers__subtitle{
  font-size: 1.7rem;
  text-align: center;
}

.customers__slider{
  overflow: hidden;
  position: relative;
  margin-top: 2rem;
}

.customers__slider-track{
  display: flex;
  transition: transform 0.4s ease-in-out;
  will-change: transform;
}

.customers__slider-item{
  min-width: 100%;
  box-sizing: border-box;
  padding: 1rem;
  background: var(--color-terciario);
  color: var(--color-secundario);
  border-radius: 1rem;
}

.customers__image{
  width: 100%;
  height: auto;
  border-radius: 0.7rem;
  margin-top: 1.5rem;
}

.customers__buttons-container{
  display: flex;
  justify-content: center;
  align-items: center;
}

.customer__button{
  background-color: var(--color-primario);
  color: var(--color-secundario);
  border: none;
  padding: 0.8rem;
  font-size: 1.2rem;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.8;
  margin: 1.5rem;
}


.customers__subtitle{
  font-size: 1.3rem;
}

.gallery__images-container{
  width: 100%;
  padding: 1rem 0;
  margin: 0 auto;
}

.gallery__wrap{
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 60vh;
}

.gallery__grap-item {
  flex: 1;
  height: 100%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;transition: flex 0.8s ease;
}

.gallery__grap-item:hover{
  flex: 7;
}

.item1 {
  background-image: url('../img/services/Service1.jpeg');
}

.item2 {
  background-image: url('../img/services/Service2.jpg');
}

.item3 {
  background-image: url('../img/services/Service3.jpeg');
}

.item4 {
  background-image: url('../img/services/Service4.jpg');
}

.item5 {
  background-image: url('../img/services/Service5.jpg');
}

/* Tablet (>= 600px) */
@media (width >=600px) {
}

/* Tablet horizontal y laptops pequeños (>= 768px) */
@media (width >=768px) {

  .content{
    width: 70%;
    margin-left: 15%;
  }
}

/* Laptops estándar (>= 1024px) */
@media (width >=1024px) {

  .content {
    width: 50%;
    margin-left: 25%;
  }

  .welcome{
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .welcome__logo{
    width: 80%;
  }

  .welcome__title,
  .about__title,
  .about__subtitle,
  .products__title,
  .services__title,
  .customers__title,
  .gallery__title{
    font-size: 3rem;
  }

  .about__text,
  .services__text,
  .products__contact,
  .customers__text,
  .gallery__text{
    font-size: 1.4rem;
  }

  .customers__slider-item{
    padding: 2.5rem;
    text-align: center;
    max-height: min-content;
  }

  .customers__title-item{
    font-size: 2.3rem;
  }
  .customers__subtitle{
    font-size: 1.6rem;
  }
  .customers__description{
    font-size: 1.4rem;
    text-align: justify;
  }

  .customers__image{
    width: 50%;
  }

  .customer__button{
    font-size: 2.4rem;
  }

  .gallery__grap-item:hover{
    flex: 3;
  }
}

/* Pantallas grandes (>= 1280px o 1440px) */
@media (width >=1280px) {
  /* Contenedor más ancho, tipografía más grande */
}