/*===== VARIABLES CSS =====*/

:root {
  --header-height: 3rem;

  /*========== Colors ==========*/

  --first-color: #648dec;
  --first-color-alt: #172b69;
  --first-color-new: #3f59a6;
  --first-color-new-alt: #3454a1;
  --title-color: #65728c;
  --text-color: #707070;
  --text-color-light: #646464;
  --text-color-place: #c7d1cc;
  --body-color: #08242a;
  --container-color: #ffffff;

  /*========== Font and typography ==========*/

  --body-font: "Acumin Variable Concept", sans-serif;
  --biggest-font-size: 2.25rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;
  --smaller-font-size: 0.75rem;

  /*========== Font weight ==========*/
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== Margenes ==========*/
  --mb-1: 0.5rem;
  --mb-2: 1rem;
  --mb-3: 1.5rem;
  --mb-4: 2rem;
  --mb-5: 2.5rem;
  --mb-6: 3rem;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

@media screen and (min-width: 768px) {
  :root {
    --biggest-font-size: 4rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;
  }
}

/*========== BASE ==========*/
*,
::before,
::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/*========== Variables Dark theme ==========*/
body.dark-theme {
  --title-color: #f1f3f2;
  --text-color: #c7d1cc;
  --body-color: #1d2521;
  --container-color: #27302c;
}

/*========== Button Dark/Light ==========*/
.change-theme {
  position: absolute;
  right: 1rem;
  top: 1.8rem;
  color: var(--text-color);
  font-size: 1rem;
  cursor: pointer;
}

body {
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: #08242a;
  color: var(--text-color);
  line-height: 1.6;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/*========== CLASS CSS ==========*/
.section {
  padding: 4rem 0 2rem;
}

.section-title,
.section-subtitle {
  text-align: center;
}

.section-title {
  font-size: var(--h1-font-size);
  color: var(--title-color);
  margin-bottom: var(--mb-3);
}

.section-subtitle {
  display: block;
  color: var(--first-color);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-1);
}

/*========== LAYOUT ==========*/
.bd-container {
  max-width: 960px;
  width: calc(100% - 2rem);
  margin-left: var(--mb-2);
  margin-right: var(--mb-2);
}

.bd-grid {
  display: grid;
  gap: 1.5rem;
}

.l-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: var(--body-color);
}

/*========== NAV ==========*/
.nav {
  max-width: 1024px;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media screen and (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    padding: 1.5rem 0 1rem;
    text-align: center;
    background-color: var(--body-color);
    transition: 0.4s;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 1rem 1rem;
    z-index: var(--z-fixed);
  }
}

.nav__item {
  margin-bottom: var(--mb-2);
}

.nav__link,
.nav__logo,
.nav__toggle {
  color: var(--text-color);
  font-weight: var(--font-medium);
}

.nav__logo:hover {
  color: var(--first-color);
}

.nav__link {
  transition: 0.3s;
}

.nav__link:hover {
  color: var(--first-color);
}

.nav__toggle {
  font-size: 1.3rem;
  cursor: pointer;
}

/* Show menu */
.show-menu {
  top: var(--header-height);
}

/* Active menu */
.active-link {
  color: var(--first-color);
}

/* Change background header */
.scroll-header {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Scroll top */
.scrolltop {
  position: fixed;
  right: 1rem;
  bottom: -20%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.3rem;
  background: var(--first-color-new);
  border-radius: 0.4rem;
  z-index: var(--z-tooltip);
  transition: 0.4s;
  visibility: hidden;
}

.scrolltop:hover {
  background-color: var(--first-color-alt);
}

.scrolltop__icon {
  font-size: 1.8rem;
  color: var(--body-color);
}

/* Show scrolltop */
.show-scroll {
  visibility: visible;
  bottom: 1.5rem;
}

/*========== HOME ==========*/
.home__container {
  height: calc(100vh - var(--header-height));
  align-content: center;
}

.home__title {
  font-size: var(--biggest-font-size);
  color: var(--first-color);
  margin-bottom: var(--mb-1);
}

.home__subtitle {
  font-size: var(--h1-font-size);
  color: var(--title-color);
  margin-bottom: var(--mb-4);
}
/*========== LOGO PRINCIPAL ==========*/
.home__img { 
  width: 370px;
  justify-self: center;
  gap: 6rem;
  margin-right: 100px;
}

/*========== BUTTONS ==========*/
.button {
  display: inline-block;
  background-color: var(--first-color);
  color: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  transition: 0.3s;
}

.button:hover {
  background-color: var(--first-color-alt);
}

/*========== ABOUT ==========*/
.about__data {
  text-align: center;
}

.about__description {
  margin-bottom: var(--mb-3);
}

.about__img {
  width: 280px;
  border-radius: 0.5rem;
  justify-self: center;
}

/*========== SERVICES ==========*/
.services__container {
  display: grid;
  row-gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  padding: 2rem;
}

.services__content {
  text-align: center;
  background-color: rgba(255, 255, 255, 0.1); /* Fondo ligeramente transparente */
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s, background-color 0.6s, border 0.3s;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease-out forwards;
  border: 2px solid transparent; /* Borde inicial transparente */
}

.services__content:hover {
  transform: translateY(-5px) scale(1.05) rotateX(3deg) rotateY(3deg); /* Efecto 3D sutil */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  background-color: rgba(255, 255, 255, 0); /* Fondo completamente transparente */
  border-image: linear-gradient(45deg, var(--first-color), var(--second-color));
  border-image-slice: 1; /* Borde con gradiente al hacer hover */
}

.services__img {
  width: 96px;
  height: 96px;
  fill: var(--first-color);
  margin-bottom: var(--mb-2);
  transition: transform 0.3s, filter 0.3s;
}

.services__img:hover {
  animation: pulse 0.6s infinite; /* Efecto de latido en la imagen */
  transform: rotate(15deg) scale(1.1);
  filter: drop-shadow(0 0 10px var(--first-color));
}

.services__title {
  font-size: var(--h3-font-size);
  color: var(--title-color);
  margin-bottom: var(--mb-1);
  transition: color 0.3s, text-shadow 0.3s;
}

.services__title:hover {
  color: var(--first-color);
  text-shadow: 0 0 5px var(--first-color), 0 0 10px var(--second-color); /* Sombra de texto animada */
}

.services__description {
  padding: 0 1.5rem;
  color: var(--text-color);
  transition: color 0.3s;
}

.services__description:hover {
  color: var(--first-color);
}

/* Animación de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animación de latido */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}








/*========== CLIENTS ==========*/

.clients__wrap {
  display: flex;
  -ms-flex-flow: wrap;
  flex-flow: wrap;
}

.clients__list {
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  width: 1000px;
}

.clients__list li {
  -ms-flex-preferred-size: 25%;
  flex-basis: 25%;
  text-align: center;
  height: 180px;
  list-style: none;
}

.clients__brand {
  height: 150px;
  width: 150px;
  position: relative;
  margin: auto;
}

.clients__opac {
  height: 150px;
  width: 150px;
  object-fit: scale-down;
  opacity: 0.4;
  filter: grayscale(100%);
  border-radius: 20px;
}

.clients__opac:hover {
  opacity: 1;
  filter: none;
  background: #ffffff;
  box-shadow: 0 0 1px #fbfefd, 0 0 5px #fbfefd, 0 0 10px #fbfefd,
    0 0 20px #fbfefd;
    border-radius: 20px;
}

/*========== CONTACT ==========*/

.contact__container {
  text-align: center;
  padding: 30px;
  background: rgba(255, 255, 255, 0.1); /* Fondo ligeramente transparente */
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra más suave */
  transition: transform 0.3s, box-shadow 0.3s, background-color 0.6s, border 0.3s;
  border: 2px solid transparent; /* Borde inicial transparente */
}

.contact__container:hover {
  transform: translateY(-5px) scale(1.05); /* Agranda ligeramente toda la sección al pasar el cursor */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  background-color: rgba(255, 255, 255, 0); /* Fondo completamente transparente */
  border-image: linear-gradient(45deg, var(--first-color), var(--second-color));
  border-image-slice: 1; /* Borde con gradiente al hacer hover */
}

.contact__description {
  margin-bottom: var(--mb-3);
  font-size: 1.3rem;
  color: var(--primary-color); 
  transition: color 0.3s ease-in-out;
}

.contact__description:hover {
  color: var(--accent-color); 
}

.contact__in {
  width: 100%;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  padding: 25px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1); /* Fondo ligeramente transparente */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra más suave */
  transition: transform 0.3s, box-shadow 0.3s, background-color 0.6s;
}

.contact__in:hover {
  transform: scale(1.05); 
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.contact__map {
  width: 100%;
  flex: 50%;
  transition: transform 0.3s ease-in-out;
}

.contact__map:hover {
  transform: scale(1.03); 
}

.contact__map iframe {
  width: 100%;
  height: 100%;
  border-radius: 15px;
  transition: border-radius 0.3s ease-in-out;
}

.contact__map iframe:hover {
  border-radius: 20px; 
}

.contact__form {
  width: 100%;
  flex: 50%;
  padding: 35px;
  text-align: center;
  background: rgba(255, 255, 255, 0.1); /* Fondo ligeramente transparente */
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra más suave */
  transition: transform 0.3s, box-shadow 0.3s, background-color 0.6s;
}

.contact__form:hover {
  background-color: rgba(255, 255, 255, 0); /* Fondo completamente transparente */
  transform: scale(1.05); 
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.contact__form h1 {
  margin-bottom: 25px;
  font-size: 2.2rem;
  color: var(--heading-color); 
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.15); 
  transition: color 0.3s, text-shadow 0.3s;
}

.contact__form h1:hover {
  color: var(--first-color);
  text-shadow: 0 0 5px var(--first-color), 0 0 10px var(--second-color); /* Sombra de texto animada */
}

.contact-form-txt,
.contact-form-txtarea {
  width: 100%;
  background: var(--container-color);
  color: var(--text-color);
  border: 1px solid var(--text-color-light);
  border-radius: 12px;
  outline: none;
  margin-bottom: 25px;
  padding: 18px;
  transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.contact-form-txt:focus,
.contact-form-txtarea:focus {
  border-color: var(--accent-color); 
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); 
}

.contact-form-txt::placeholder,
.contact-form-txtarea::placeholder {
  color: var(--text-color-place);
  font-style: italic;
  font-size: 0.9rem;
}




/*========== FOOTER ==========*/
.footer__container {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  row-gap: 2rem;
}

.footer__logo {
  font-size: var(--h3-font-size);
  color: var(--first-color-new);
  font-weight: var(--font-semi-bold);
}

.footer__description {
  display: block;
  font-size: var(--small-font-size);
  margin: 0.25rem 0 var(--mb-3);
}

.footer__social {
  font-size: 1.5rem;
  color: var(--title-color);
  margin-right: var(--mb-2);
}

.footer__social:hover {
  color: var(--first-color-new);
}

.footer__title {
  font-size: var(--h2-font-size);
  color: var(--title-color);
  margin-bottom: var(--mb-2);
}

.footer__link {
  display: inline-block;
  color: var(--text-color);
  margin-bottom: var(--mb-1);
}

.footer__link:hover {
  color: var(--first-color-new);
}

.footer__copy {
  text-align: center;
  font-size: var(--small-font-size);
  color: var(--text-color-light);
  margin-top: 3.5rem;
}

/*========== MEDIA QUERIES ==========*/
@media screen and (min-width: 576px) {
  .home__container,
  .about__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }

  .about__data,
  .about__initial,
  .contact__container,
  .contact__initial {
    text-align: initial;
  }

  .about__img {
    width: 380px;
    order: -1;
  }

  .contact__container {
    grid-template-columns: 1.75fr 1fr;
    align-items: center;
  }
  .contact__button {
    justify-self: center;
  }
}

@media screen and (min-width: 768px) {
  body {
    margin: 0;
  }

  .section {
    padding-top: 8rem;
  }

  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }
  .nav__list {
    display: flex;
  }
  .nav__item {
    margin-left: var(--mb-5);
    margin-bottom: 0;
  }
  .nav__toggle {
    display: none;
  }

  .change-theme {
    position: initial;
    margin-left: var(--mb-2);
  }

  .home__container {
    height: 100vh;
    justify-items: center;
  }

  .services__container {
    margin-top: var(--mb-6);
  }
}

@media screen and (min-width: 960px) {
  .bd-container {
    margin-left: auto;
    margin-right: auto;
  }

  .about__container {
    column-gap: 7rem;
  }
}

@media only screen and (max-width: 768px) {
  .clients__container {
    display: block;
    width: fit-content;
    margin: auto;
  }
  .clients__list li {
    -ms-flex-preferred-size: 50%;
    flex-basis: 50%;
  }
  .clients__list {
    width: 350px;
    margin-top: 85px;
  }
}

/* For tall screens on mobiles y desktop*/
@media screen and (min-height: 721px) {
  .home__container {
    height: 640px;
  }
}
.swiper-slide img {
  object-fit: cover; /* Asegura que la imagen cubra completamente el contenedor */
  width: 100%; /* Ajusta la imagen para que ocupe todo el ancho del contenedor */
  height: 100%; /* Ajusta la imagen para que ocupe toda la altura del contenedor */
  display: block;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden; /* Esconde cualquier parte de la imagen que sobresalga del contenedor */
}

.swiper {
  width: 100%;
  height: 100%;
}
.swiper-slide {
  width: auto;
  height: auto;
}