/* Font Family */

@font-face {
  font-family: "RussoOne-Regular";
  src: url("../../font/RussoOne-Regular.woff2") format("woff2"),
    url("../../font/RussoOne-Regular.woff2") format("woff");
}

@font-face {
  font-family: "Inter-Bold";
  src: url("../../font/Inter-Bold.woff2") format("woff2"),
    url("../../font/Inter-Bold.woff2") format("woff");
}

@font-face {
  font-family: "Inter-Medium";
  src: url("../../font/Inter-Medium.woff2") format("woff2"),
    url("../../font/Inter-Medium.woff2") format("woff");
}

@font-face {
  font-family: "Inter-Regular";
  src: url("../../font/Inter-Regular.woff2") format("woff2"),
    url("../../font/Inter-Regular.woff2") format("woff");
}

:root {
  /* Colors */
  --blue-color: #004ea8;
  --red-color: #c10016;
  --red-light-color: #d80e1a;
  --gray-color: #97999b;
  --white-color: #ffffff;
  --black-color: #101820;
  --text-gray-color: #6d6d6d;
  --blue-low-color: #0762c8;
  --blue-medium-color: #00358e;
  --blue-high-color: #0762c8;
  --background-color: #f4f4f6;

  /* fonts */
  --font-main: "RussoOne-Regular", sans-serif;
  --font-text-bold: "Inter-Bol", sans-serif;
  --font-text-medium: "Inter-Medium", sans-serif;
  --font-text-regular: "Inter-Regular", sans-serif;

  /* Font Size */
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-bold: 700;
  --line-height-pc: 1.5;
  --line-height-phone: 1.4;

  /* Espacial font */
  --espacing-xs: 8px;
  --espacing-sm: 12px;
  --espacing-md: 16px;
  --espacing-lg: 24px;
  --espacing-xl: 32px;

  /*--General styles*/
  --header-height: 3.5rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
}

/* HEADER */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--background-color);
  z-index: 100;
  overflow: hidden;
  padding: 1.2em;
  transition: padding 0.2s ease;
}

.header.scrolled {
  padding: 0.2em;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2.4em;
  width: 90%;
  height: 100%;
  margin: 0 auto;
  font-size: var(--font-size-base);
}

.nav-logo img {
  height: 60px;
  transition: width 0.2s ease;
}

.nav-logo img.logo-small {
  height: 50px;
}

/* Menú de navegación */
.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2.8rem;
  list-style: none;
}

.nav-item {
  text-decoration: none;
  list-style: none;
}

.nav-link {
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.nav-link:hover {
  color: var(--red-color);
  transform: scale(105%);
}

.nav-contact {
  display: block;
  text-decoration: none;
  color: var(--red-color);
  padding: 18px 14px;
  border: 2px solid var(--red-color);
  transition: background-color 0.2s ease-in;
}

.nav-contact:hover {
  background-color: var(--red-color);
  color: #fff;
}

.nav-contact.link-small {
  padding: 14px 10px;
}

.nav-toggle {
  display: none;
  position: relative;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 4px;
  background-color: #434343;
  /* background-color: var(--red-color); */
  border-radius: 5px;
  transition: 0.3s;
}

.nav-toggle::before {
  transform: translateY(-8px);
}

.nav-toggle::after {
  transform: translateY(8px);
}

/* BODY - HOME */

main {
  font-family: var(--font-text-medium);
  position: relative;
  z-index: 1;
}

.main {
  width: 100%;
  margin-top: 100px;
  aspect-ratio: 1920 / 580;
}

.slider-main {
  height: 100%;
}

.slider-main img {
  width: 100%;
  height: 100%;
}

.swiper-button-next,
.swiper-button-prev {
  padding: 0.4rem;
  width: 50px;
  height: 50px;
  color: #dadada;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease-in;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  transform: scale(1.1);
}

.swiper-button-prev::after {
  margin-right: 0.3rem;
}

.swiper-button-next::after {
  margin-left: 0.3rem;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 2.5rem;
  font-weight: bold;
}

.slider-main .swiper-button-prev,
.slider-main .swiper-button-next {
  opacity: 0;
  transition: ease 0.3s;
}

.slider-main:hover .swiper-button-prev,
.slider-main:hover .swiper-button-next {
  opacity: 1;
}

.slider-main .swiper-pagination-bullet {
  width: 15px;
  height: 15px;
  background-color: #ffffff;
  opacity: 1;
}

.slider-main .swiper-pagination-bullet-active {
  background-color: var(--blue-high-color);
}

/* Section Products */
.products {
  width: 100%;
  background-image: url("https://jikiu.pe/images/logo/jikiu-blue-50.webp"),
    url("https://jikiu.pe/images/backgrounds/background-products.webp");
  background-size: 250px auto, cover;
  background-position: 0 calc(50%), center;
  background-repeat: no-repeat, no-repeat;
  position: relative;
  z-index: 1;
  padding: 4.2rem 0 5.4rem 0;
}

.container-products {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.title-products {
  color: var(--blue-high-color);
  text-align: center;
  font-size: var(--font-size-lg);
  margin-bottom: 32px;
  font-size: 2.4rem;
  text-align: center;
  font-family: var(--font-main);
}

.title-products span {
  color: var(--red-color);
}

.contain-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.2rem;
  margin: 40px 0;
}

.product-item {
  background-image: url("../../images/products/products-home/bg-products.webp");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center center;
  text-align: center;
  position: relative;
}

.link-product {
  filter: drop-shadow(10px 10px 10px rgba(0, 0, 0, 0.3));
  transition: transform 0.2s ease;
  text-decoration: none;
  color: var(--red-color);
  font-family: var(--font-main);
}

.link-product:hover {
  display: block;
  transform: scale(110%);
  filter: drop-shadow(12px 12px 12px rgba(0, 0, 0, 0.4));
  color: var(#a30316);
}

.link-product img {
  margin-top: 45px;
  width: 80%;
}

.link-product span {
  display: block;
  margin-top: 3.6rem;
  font-size: 1.4rem;
}

.about {
  background-color: var(--blue-low-color);
  position: relative;
  background-size: cover;
}

.jikiu-circle {
  width: 120px;
  position: relative;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
}

.container-about {
  width: 90%;
  margin: 0 auto;
  padding-bottom: 100px;
  overflow: hidden;
  max-width: 1200px;
}

.contain-about {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3.2rem;
}

.buy {
  margin-right: 4.2rem;
  color: #fff;
}

.buy h3 {
  color: var(--red-light-color);
  font-size: 30px;
  text-shadow: 1px 1px 4px rgba(255, 255, 255, 0.1);
}

.buy h2 {
  margin: 24px 0;
  font-size: 2.6rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

.buy a {
  display: inline-block;
  font-size: 0.8rem;
  text-decoration: none;
  color: #fff;
  background-color: var(--red-light-color);
  font-weight: 500;
  padding: 15px 32px;
  border-radius: 8px;
}

.buy a:hover {
  background-color: #ff2332;
}

.benefits-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 740px;
  margin: 0 auto;
  position: relative;
}

.benefits-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  scrollbar-width: none;
}

@keyframes pulse {
  0% {
    transform: translate(50%, -50%) scale(1);
  }

  50% {
    transform: translate(50%, -50%) scale(1.2);
  }

  100% {
    transform: translate(50%, -50%) scale(1);
  }
}

.next-button {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(50%, -50%);
  background: var(--red-light-color);
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0px 10px rgba(0, 0, 0, 0.7);
  font-weight: 700;
  font-size: 1.3rem;
  /* Animación de pulsación */
  animation: pulse 1.5s infinite ease-in-out;
}

.next-button img {
  width: 35%;
}

.next-button:hover {
  background: #ff2332;
}

.benefits-wrapper::-webkit-scrollbar {
  display: none;
}

.benefits {
  display: flex;
  gap: 10px;
  padding: 10px;
  width: max-content;
  transition: transform 0.3s ease;
  overflow: hidden;
}

.benefit {
  background-color: #fff;
  width: 360px;
  height: 275px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  user-select: none;
  gap: 15px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.4);
  scroll-snap-align: start;
  /* Snap al hacer scroll */
  transition: transform 0.3s ease;
}

.dragging {
  scroll-behavior: unset;
  /* Desactiva smooth durante arrastre */
  cursor: grabbing;
}

.dragging .benefit {
  transition: none;
}

.benefits-wrapper.dragging {
  scroll-behavior: unset;
  cursor: grabbing;
}

.benefits-wrapper.dragging .benefit {
  transition: none;
}

.benefit img {
  width: 30%;
}

.benefit h4 {
  margin-top: 40px;
  font-size: 16px;
  color: var(--red-light-color);
}

.benefit p {
  font-size: 14px;
  font-weight: 500;
}

#scrollTopBtn {
  position: fixed;
  bottom: 50px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--red-light-color);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: none;
  /* Oculto por defecto */
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 110;
}

#scrollTopBtn img {
  width: 40%;
}

/* Animación al aparecer */
#scrollTopBtn.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

/* Animación al ocultarse */
#scrollTopBtn.hide {
  opacity: 0;
  transform: translateY(20px);
}

#scrollTopBtn:hover {
  transform: scale(1.1);
  background-color: #ff2332;
}

/* FOOTER */
.footer {
  width: 100%;
  background-color: var(--color-secundario);
  font-family: var(--font-text-bold);
}

.footer__content {
  padding: 18px 0;
  margin: 0 auto;
  overflow: hidden;
  background-color: var(--blue-color);
}

.footer__main {
  width: 90%;
  margin: 0 auto;
  color: #fff;
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: start;
  width: 100%;
}

.footer__link {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.footer__link:hover {
  text-decoration: underline;
}

.footer__copy {
  justify-self: center;
  background-color: var(--color-primario);
  color: var(--color-secundario);
  font-weight: 500;
  margin: 8px 0;
  border-radius: 6px;
  font-family: var(--font-main);
  font-size: 18px;
  text-align: start;
}

.footer__info {
  padding: 0 4px;
  margin: 8px 0;
}

.footer__contact {
  width: 100%;
  gap: 1rem;
  color: white;
  display: flex;
  flex-direction: column;
}

.footer__red {
  margin-top: 10px;
  display: flex;
  gap: 12px;
}

.footer__newsletter {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__email {
  display: block;
  width: 100%;
  padding: 0 1.5rem;
  background-color: rgba(141, 141, 141, 0.3);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
}

.footer__email::placeholder {
  color: white;
}

.footer__submit {
  background-color: var(--red-light-color);
  color: var(--color-secundario);
  border: none;
  border-radius: 5px;
  padding: 14px 30px;
  cursor: pointer;
}

.footer__email:focus {
  outline: none;
}

.footer__submit:hover {
  background-color: #e71c1c;
}

.footer__social {
  display: flex;
  width: 100%;
  flex-direction: column;
}

.footer__social-links {
  width: 36px;
  height: 36px;
  background-color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__copyright {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #fff;
}

.footer__copyright-text {
  text-align: center;
  color: white;
}

.footer__logo {
  width: 120px;
}

.footer {
  background-color: #fff;
}

.footer__content {
  background-color: var(--blue-color);
}

.footer__copy {
  text-align: start;
  font-family: var(--font-main);
  font-size: 18px;
}

.footer__link {
  font-weight: 500;
}

.footer__copyright {
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.footer__media {
  width: 24px;
  height: 24px;
}

/* Email */
.footer__form-group {
  margin-bottom: 10px;
}

.footer__captcha {
  margin: 10px 0;
}

.footer__captcha label {
  display: block;
  color: #fff;
  margin-bottom: 5px;
  font-size: 0.9em;
}

/* Mensajes de feedback */
.newsletter-message {
  padding: 10px;
  margin: 10px 0;
  border-radius: 4px;
  font-size: 0.9em;
}

.newsletter-success {
  background: #d4edda;
  color: #155724;
}

.newsletter-error {
  background: #f8d7da;
  color: #721c24;
}

.hp-field {
  opacity: 0;
  position: absolute;
  height: 0;
  width: 0;
  overflow: hidden;
}

@media (max-width: 1200px) {
  .header {
    height: 80px;
  }

  .nav {
    /* padding: 1em; */
    position: relative;
  }

  .nav-menu {
    position: fixed;
    top: 100px;
    right: -700px;

    width: 500px;

    background: var(--background-color);
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out;
    display: flex !important;
    flex-direction: column;
    padding: 1rem;
    /* overflow-y: auto; */
  }

  .nav-menu.show {
    right: 0;
    /* Muestra el menú */
  }

  .nav-logo img {
    height: 50px;
  }

  .nav-list {
    flex-direction: column;
    gap: 1.5rem;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-toggle.active span {
    opacity: 0;
  }

  .nav-toggle.active::before {
    transform: rotate(45deg);
    top: 0;
  }

  .nav-toggle.active::after {
    transform: rotate(-45deg);
    top: 0;
  }

  .nav-contact {
    display: none;
  }

  .main {
    margin-top: 80px;
  }
}

@media (max-width: 1125px) {
  .contain-about {
    flex-direction: column;
  }

  .buy {
    margin-right: 0;
    text-align: center;
  }

  .information h2 {
    font-size: 3.8rem;
  }

  .information p {
    font-size: 2.2rem;
  }

  .link-product img {
    margin-top: 10px;
    width: 80%;
  }

  .link-product span {
    margin-top: 2rem;
  }
}

@media (max-width: 825px) {
  .benefits-container {
    max-width: 100%;
    padding: 0 15px;
  }

  .benefits-wrapper {
    scroll-snap-stop: always;
    /* Mejor comportamiento en móvil */
  }

  .benefit {
    width: calc(100vw - 105px);
    height: 250px;
    touch-action: pan-y;
  }

  .benefit h4 {
    margin-top: 20px;
    /* Reducir espacio superior */
    font-size: 15px;
    text-align: center;
    padding: 0 10px;
  }

  .benefit p {
    font-size: 13px;
    text-align: center;
    padding: 0 10px;
    white-space: normal;
    /* Permitir salto de línea */
  }

  .benefit img {
    width: 25%;
  }

  /* #scrollTopBtn {
        width: 40px;
        height: 40px;
    } */

  .next-button {
    width: 40px;
    height: 40px;
  }

  @keyframes pulse {
    0% {
      transform: translate(-50%, -50%) scale(1);
    }

    50% {
      transform: translate(-50%, -50%) scale(1.2);
    }

    100% {
      transform: translate(-50%, -50%) scale(1);
    }
  }

  /* .link-product span {
    margin-top: 2rem;
  } */
}

@media (max-width: 525px) {
  .header {
    height: 60px;
  }

  .nav-menu {
    width: 100%;
  }

  .nav-menu {
    top: 75px;
  }

  .nav-logo img {
    width: 100px;
    height: auto;
  }

  .nav-toggle span,
  .nav-toggle::before,
  .nav-toggle::after {
    width: 24px;
    height: 4px;
  }

  .main {
    margin-top: 60px;
    aspect-ratio: 525 / 400;
  }

  .slider-main img {
    width: 100%;
    height: 100%;
  }

  .title {
    font-size: 2.4rem;
  }

  .information h2 {
    font-size: 2.8rem;
  }

  .information p {
    font-size: 1.6rem;
  }

  .products {
    padding-bottom: 8rem;
  }

  .contain-products {
    gap: 3.8rem;
  }

  .product-item {
    width: 100%;
  }

  .link-product span {
    margin-top: 1rem;
    transform: translateY(30px);
  }

  .footer__links {
    text-align: center;
  }
  .footer__contact {
    text-align: center;
  }

  .footer__copy {
    text-align: center;
  }

  .footer__red {
    justify-content: center;
  }
  .footer__newsletter {
    margin-top: 0.8rem;
  }
}
