@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");

:root {
  --blue-strong: #183172;
  --blue-light: #00c1e1;
  --blue-button-product: #38b6fb;
  --purple-light: #870695;
  --purple-strong: #340074;
  --green-aqua: #0cb2ba;
  --font-roboto: "Roboto", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-roboto);
}
body {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-items: center;
  align-items: center;
}
header {
  width: 100%;
  max-width: 1920px;
  background: var(--blue-strong);
  color: white;
  display: flex;
  flex-direction: column;
  box-shadow: 0px 4px 20px 0px rgb(81 81 81);
  margin-bottom: 10px;
  z-index: 2;
}
.header-up {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 100px;
}
.header-logo img {
  width: 60%;
}
.header-text {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: flex-end;
  gap: 20px;
  font-size: 2rem;
  font-weight: bold;
}
.header-text p:nth-child(2) {
  text-align: end;
}
.header-text img {
  width: 30px;
  margin-right: 10px;
}
.header-text a, .contact-text a {
  color: white;
  text-decoration: none;
}
.contact-text {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
}
.contact-text p:nth-child(2) {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.contact-text img {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}
.header-down {
  width: 100%;
  background: white;
  color: var(--blue-strong);
  display: flex;
  justify-content: flex-end;
}
.header-menu {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 100px;
}
nav ul {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  list-style: none;
  padding: 15px;
  gap: 70px;
}
nav ul a {
  font-size: 1.8rem;
  font-weight: bold;
  text-decoration: none;
  color: var(--blue-strong);
}
nav ul a:hover,
.active {
  border-bottom: 4px solid var(--blue-light);
}
/* 📌 MENÚ MOBILE */
.menu-toggle {
  display: none; /* Oculto en desktop */
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}
/*=============== /header ===============*/
/*=============== SLIDER ===============*/
/* slider hero */
.hero {
  width: 100%;

  max-width: 1920px;
  position: relative;
  display: flex;
}

/* swiper */
swiper-container {
  width: 100%;
  height: 100%;
}

swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
}

swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.swiper-pagination-bullet {
  width: var(
    --swiper-pagination-bullet-width,
    var(--swiper-pagination-bullet-size, 20px)
  );
  height: var(
    --swiper-pagination-bullet-height,
    var(--swiper-pagination-bullet-size, 20px)
  );
}
/* slider hero */

/*=============== CONTENIDO DENTRO DEL SLIDER ===============*/
/*Contenido del hero*/

.bg-slider1,
.bg-slider2 {
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 1;
}

.bg-slider1 img,
.bg-slider2 img {
  width: 100%;
  height: 100%;
}
.bg-slider img {
  width: 50%;
}
.slider-container,
.bg-slider {
  width: 100%;
  display: flex;
  align-items: center;
}
.slider-container {
  justify-content: flex-end;
  position: relative;
}
.txt-slider {
  width: 50%;
  font-weight: bold;
  color: var(--blue-strong);
  font-size: 2.2rem;
  z-index: 2;
}
.bg-slider {
  justify-content: flex-start;
  z-index: 1;
}
/* .bg-slider img {
  rotate: 20deg;
} */
.btn-producto {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  background: var(--blue-strong);
  color: white;
  font-size: 3.5rem;
  font-weight: bold;
}

/* contenido del hero */

/*=============== /main ===============*/
main {
  width: 100%;
  max-width: 1920px;
}
/* provedores */
.container-proveedores {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
}
.title {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-light);
  font-size: 3rem;
}
.proveedores {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}
.proveedores img {
  width: 300px;
}
/* divisor blue */
.divisor-blue {
  width: 100%;
  height: 50px;
  max-width: 1920px;
  background: var(--blue-strong);
}
/*  divisor-bluelight */
.divisor-inclinado {
  width: 100%;
  max-width: 1920px;
  height: 50px;
  position: relative;
}
.divisor-bluelight {
  width: 100%;
  height: 50px;
  max-width: 1920px;
  background: rgb(24, 49, 114);
  background: linear-gradient(
    90deg,
    rgba(24, 49, 114, 1) 0%,
    rgba(0, 193, 225, 1) 100%
  );
  rotate: -1deg;
  position: absolute;
  top: -20px;
}
/* categories */
.category {
  width: 100%;
  height: 900px;
  max-width: 1920px;
  background-image: url(../assets/images/fondos/Background-categorias.png);
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.category h2 {
  margin-top: 50px;
  font-size: 5rem;
  font-weight: 400;
  color: white;
}
.swiper-button-next,
.swiper-button-prev {
  width: 5%;
}
.swiper-button-next:after,
.swiper-button-prev:after {
  content: " ";
}
.cards-container {
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}
.card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.card-up {
  width: 350px;
  height: 350px;
  border: 5px solid white;
  border-radius: 30px;
  background: #fff9fa;
  background-image: url(../assets/images/fondos/Background-productos-categorias.png);
  background-repeat: no-repeat;
  background-size: cover;
  animation: tamanio-grandeSalida 1s ease-in backwards;
}
.card-up img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.card-down {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.card-down h3 {
  font-size: 2rem;
  color: white;
  animation: letra-grandeSalida 1s ease-in backwards;
}
.card-down a {
  width: 80%;
  font-size: 2rem;
  font-weight: bold;
  background: linear-gradient(
    90deg,
    rgba(70, 2, 83, 1) 1%,
    rgba(135, 6, 149, 1) 100%
  );
  color: white;
  text-decoration: none;
  padding: 5px;
  border-radius: 30px;
  opacity: 0;
  animation: opacidadSalida 1s ease-in backwards;
}
.card:hover .card-up {
  height: 400px;
  animation: tamanio-grande 1s ease-out forwards;
}
.card:hover .card-down h3 {
  font-size: 5rem;
  animation: letra-grande 1s ease-out forwards;
}
.card:hover a {
  opacity: 1;
  animation: opacidad 1s ease-out forwards;
}
@keyframes opacidad {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}
@keyframes opacidadSalida {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}
@keyframes tamanio-grande {
  from {
    height: 350px;
  }

  to {
    height: 400px;
  }
}
@keyframes tamanio-grandeSalida {
  from {
    height: 400px;
  }

  to {
    height: 350px;
  }
}
@keyframes letra-grande {
  from {
    font-size: 2rem;
  }

  to {
    font-size: 3rem;
  }
}
@keyframes letra-grandeSalida {
  from {
    font-size: 3rem;
  }

  to {
    font-size: 2rem;
  }
}
.mySwiper2 {
  display: none;
}
/* sucursales */
.sucursales {
  width: 100%;
  max-width: 1920px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}
.suc-up,
.suc-down {
  width: 100%;
}
.suc-up {
  display: flex;
  justify-content: center;
  align-items: center;
}
.suc-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.suc-card img {
  width: 50%;
}
.suc-card h3 {
  width: 100%;
  font-size: 3rem;
  color: var(--blue-strong);
}
.suc-text {
  font-size: 2rem;
  font-weight: 400;
  color: var(--blue-strong);
}
.suc-text img {
  width: 10%;
}
.suc-mail {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--blue-light);
  text-decoration: none;
}
.btn-ubicacion {
  width: 60%;
  background: var(--blue-light);
  color: var(--blue-strong);
  text-decoration: none;
  font-size: 2rem;
  font-weight: bold;
  border-radius: 30px;
  padding: 5px;
}
.suc-down {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.suc-down img {
  object-fit: cover;
}
.btn-catalogo {
  width: 35%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  background: #ffffff;
  color: var(--blue-strong);
  font-size: 4rem;
  font-weight: bold;
  position: absolute;
  bottom: 60px;
  border-radius: 30px;
  box-shadow: 6px 8px 8px 0px rgb(255 194 194);
}
.btn-catalogo:hover {
  background: var(--blue-light);
  color: #ffffff;
}
/*=============== /footer ===============*/
footer {
  width: 100%;
  max-width: 1920px;
  background: var(--blue-strong);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 50px;
}
.footer-comp,
.header-comp {
  width: 100%;
}
.foorer-up {
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.footer-logo {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.footer-logo img {
  width: 280px;
}
.footer-menu {
  width: 50%;
}
.footer-menu nav ul {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  font-size: 1.2rem;
  gap: 10px;
  color: white;
}
.footer-menu nav ul a {
  font-size: 1.2rem;
  font-weight: 400;
  color: white;
}
.footer-menu nav ul a:hover {
  border-bottom: 2px solid white;
}
.footer-down {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  margin-top: 50px;
}
.footer-networks {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.footer-networks p {
  font-size: 1.2rem;
}
.social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
.social img {
  width: 50px;
  height: 50px;
}
/*=============== BREAKPOINTS ===============*/
@media screen and (min-width: 250px) and (max-width: 767px) {
  header {
    padding: 10px;
  }
  .header-up {
    padding: 0px;
    flex-direction: column;
  }
  .header-logo {
    padding: 10px;
  }
  .header-logo img {
    width: 100%;
  }
  .header-text {
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 5px;
  }
  .header-menu {
    padding: 0;
  }
  nav ul {
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 35px;
  }
  li {
    width: 100%;
  }
  .header-up {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
.header-text a, .contact-text a {
  font-size: 1.2rem;
}
  .header-text {
    display: none; /* Oculta el texto de contacto en mobile */
  }
  .contact-text {
    display: flex; /* Oculta el texto de contacto en mobile */
  }
  /* Mostrar el botón hamburguesa */
  .menu-toggle {
    width: 85px;
    display: block;
    color: var(--blue-light);
    background-color: white;
    border: 2px solid var(--blue-light);
    border-radius: 10px;
    font-size: 28px;
    cursor: pointer;
  }

  /* Ocultar menú principal por defecto en mobile */
  .header-down {
    display: none;
    width: 100%;
    height: 100%;
    background: var(--blue-light);
    position: absolute;
    top: 110px;
    left: 0;
  }

  /* Estilos del menú al estar abierto */
  .header-down.active {
    display: block;
    animation: slideDown 0.3s ease-in-out;
  }

  .header-menu ul {
    flex-direction: column;
    text-align: center;
    padding: 10px 0;
  }

  .header-menu ul li {
    margin: 10px 0;
  }
  nav ul a:hover,
  .active {
    border-bottom: 4px solid var(--blue-strong);
  }

  /* Animación de apertura */
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  /* hero */
  .hero {
    height: auto;
  }
  .swiper-slide {
    flex-direction: column;
  }
  .slider-container {
    justify-content: center;
  }
  .txt-slider {
    width: 100%;
    font-size: 1.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  .btn-producto {
    width: 60%;
    font-size: 2rem;
  }
  .bg-slider {
    height: 120px;
    justify-content: center;
  }
  swiper-slide {
    flex-direction: column;
  }
  .bg-slider img {
    position: absolute;
    top: 20px;
  }
  /* proveedores */
  .container-proveedores {
    padding: 10px;
  }
  .title {
    font-size: 1.5rem;
    text-align: center;
  }
  .proveedores {
    gap: 20px;
  }
  .proveedores img {
    width: 30%;
  }
  /* categrias */
  .category h2 {
    font-size: 2.6rem;
  }
  .category {
    height: auto;
    padding: 0px 20px;
  }
  .cards-container {
    flex-direction: column;
    padding: 20px 0;
  }
  .card {
    margin-bottom: 20px;
  }
  .card-up {
    width: 100%;
  }
  .card .card-up {
    height: 400px;
    animation: tamanio-grande 1s ease-out forwards;
  }
  .card .card-down h3 {
    font-size: 2.5rem;
    animation: none;
  }
  .card a {
    opacity: 1;
    animation: opacidad 1s ease-out forwards;
  }
  /* 
  .card:hover .card-up {
    height: 200px;
    animation: tamanio-grande 1s ease-out forwards;
  }
  .card:hover .card-down h3 {
    font-size: 2.5rem;
    animation: letra-grande 1s ease-out forwards;
  }
  .card:hover a {
    opacity: 1;
    animation: opacidad 1s ease-out forwards;
  }
  @keyframes letra-grande {
    from {
      font-size: 2rem;
    }

    to {
      font-size: 2.5rem;
    }
  }
  @keyframes letra-grandeSalida {
    from {
      font-size: 2.5rem;
    }

    to {
      font-size: 2rem;
    }
  } */
  /* sucursales */
  .sucursales {
    height: auto;
  }
  .suc-up {
    flex-direction: column;
    gap: 30px;
  }
  .suc-card {
    gap: 0;
  }
  .suc-card h3 {
    font-size: 2rem;
  }
  .suc-down img {
    width: 100%;
    height: 200px;
  }
  .btn-ubicacion {
    width: 85%;
  }
  .btn-catalogo {
    width: 80%;
    height: 50px;
    font-size: 1.6rem;
    bottom: 26px;
  }
  .btn-catalogo img {
    width: 10%;
    height: 30px;
  }
  /* footer */
  footer {
    padding: 10px;
  }
  .foorer-up {
    flex-direction: column;
    gap: 10px;
  }
  .footer-menu {
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .footer-down {
    font-size: 1rem;
  }
}
@media screen and (min-width: 768px) and (max-width: 1366px) {
}
@media screen and (min-width: 1367px) and (max-width: 1919px) {
  .txt-slider {
    width: 70%;
  }
  .card-up {
    width: 320px;
    height: 330px;
  }
  .suc-card h3 {
    font-size: 2rem;
  }
  .btn-ubicacion {
    font-size: 1.5rem;
  }
  .btn-catalogo {
    width: 50%;
  }
}
