/* Fuentes */

@font-face {
  font-family: "Manrope";
  src: url("../font/Manrope-ExtraLight.ttf") format("truetype");
  font-weight: 200;
}

@font-face {
  font-family: "Manrope";
  src: url("../font/Manrope-Light.ttf") format("truetype");
  font-weight: 300;
}

@font-face {
  font-family: "Manrope";
  src: url("../font/Manrope-Regular.ttf") format("truetype");
  font-weight: 400;
}

@font-face {
  font-family: "Manrope";
  src: url("../font/Manrope-Medium.ttf") format("truetype");
  font-weight: 500;
}

@font-face {
  font-family: "Manrope";
  src: url("../font/Manrope-SemiBold.ttf") format("truetype");
  font-weight: 600;
}

@font-face {
  font-family: "Manrope";
  src: url("../font/Manrope-Bold.ttf") format("truetype");
  font-weight: 700;
}

@font-face {
  font-family: "Manrope";
  src: url("../font/Manrope-ExtraBold.ttf") format("truetype");
  font-weight: 800;
}

/* Colores */

:root {
  --Negro: #141414;
  --blanco: #fff;
  --Color-1: #e5225a;
  --Color-2: #2e76e1;
  --Color-3: #ffae00e0;
  --Color-4: #0b6478;
  --Color-5: #ff69b4;
  --Color-6: #38def9;
  --Color-7: #68296a;
}

/* Principal */

body {
  margin: 0;
  font-family: Manrope, serif;
  scroll-behavior: smooth;
  cursor: none !important;
}

.nav-links span,
a,
a,
label {
  cursor: none !important;
}

#customCursor {
  position: fixed;
  width: 20px; /* O el tamaño que prefieras */
  height: 20px;
  border-radius: 50%;
  /* Define un color base para que mix-blend-mode funcione */
  background-color: white; /* Por ejemplo, un blanco puro */
  pointer-events: none; /* Muy importante para que no bloquee los clics */
  transform: translate(
    -50%,
    -50%
  ); /* Centra el cursor en las coordenadas del ratón */
  z-index: 9999;
  transition: transform 0.1s ease-out; /* Puedes añadir más transiciones si es necesario */
  /* ¡La regla mágica que quieres usar! */
  mix-blend-mode: difference;
  transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease,
    border 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.5s ease,
    /* AJUSTADO: Transición de la escala a 0.5s para más suavidad */ opacity
      0.2s,
    visibility 0.2s;
}

#customCursor span {
  opacity: 0; /* Oculto por defecto */
  position: absolute; /* Para centrar dentro del cursor */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Centra el texto */
  font-size: 0.85rem; /* Tamaño de fuente para el texto */
  color: inherit; /* Hereda el color del #customCursor */
  text-transform: uppercase;
  font-weight: bold;
  pointer-events: none; /* No interactivo */
  white-space: nowrap; /* Evita que el texto "Drag" se envuelva */
  transition: opacity 0.3s ease;
}

#customCursor.interactive-scale {
  transform: translate(-50%, -50%) scale(2); /* Escala solo el punto, 1.5 veces su tamaño actual */
}

#customCursor.heyers-drag-state {
  width: 60px; /* Tamaño más grande para el estado 'Drag' */
  height: 60px; /* Tamaño más grande para el estado 'Drag' */
  border: 2px solid #333; /* Borde oscuro */
  background-color: rgba(
    255,
    255,
    255,
    0.2
  ); /* Fondo blanco semi-transparente */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Sombra */
  color: #333; /* Color del texto 'Drag' */
  /* Efecto de desenfoque */
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  /* Asegura que no haya escala adicional si ya hay un ancho/alto explícito */
  transform: translate(-50%, -50%);
}

/* Muestra el texto 'Drag' cuando el cursor principal está en el estado 'heyers-drag-state' */
#customCursor.heyers-drag-state span {
  opacity: 1; /* El texto se hace visible */
}

/* Clase para el cursor blanco */
#customCursor.white-cursor {
  background-color: white;
}

#projectCursor {
  width: 4rem;
  height: 4rem;
  line-height: 1;
  font-size: 0.85rem;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 50%;
  position: fixed;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s, visibility 0.2s;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  pointer-events: none;
}

#heyersCursor {
  width: 4rem;
  height: 4rem;
  line-height: 1;
  font-size: 0.85rem;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 50%;
  position: fixed;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s, visibility 0.2s;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  pointer-events: none;
}

.hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  transition: all 300ms ease;
}

.container {
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.5s ease;
}

@media (max-width: 900px) {
  #customCursor,
  #heyersCursor,
  #projectCursor {
    display: none;
  }
}

/* Menú de inicio */

.nav-bar {
  width: 100%;
  height: 100px;
  padding: 40px 65px;
  margin-top: 20px;
  display: flex;
  background: transparent;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
  z-index: 3;
  justify-content: space-between;
  mix-blend-mode: difference;
}

.nav-logo {
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-bar img {
  width: 80px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  font-size: 18px;
  background: transparent;
}

.kit-digital-link {
  border-radius: 100px;
  background: var(--Color-3);
  padding: 8px 20px;
  mix-blend-mode: normal;
  color: #000 !important;
}

.nav-links.mobile {
  display: none;
  transition: all 500ms ease;
}

.nav-links a {
  color: #fff;
  text-align: right;
  font-size: 32px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: -2.065px;
  text-transform: lowercase;
  text-decoration: none;
}

.nav-links a.active {
  color: #33a9ff;
}

.nav-links a:hover {
  color: #33a9ff;
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-social img {
  height: 24px;
}

.nav-social img {
  height: 24px;
}

.scroll-hide {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition: all 300ms ease;
}

.hidden-on-scroll {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 300ms ease;
}

@media (max-width: 1450px) {
  .nav-bar {
    height: 80px;
  }

  .nav-links a {
    font-size: 28px;
  }

  .nav-bar img {
    width: 60px;
  }
}

.nav-responsive-button img {
  width: 45px;
  transition: transform 0.2s ease;
}

.nav-responsive-button.opened img {
  transform: rotateZ(90deg);
}

.nav-responsive-button {
  display: none;
}

@media (max-width: 950px) {
  .nav-links {
    flex-direction: column;
    position: fixed;
    z-index: 10;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    gap: 17px;
    display: none;
    background-color: black;
    padding-bottom: 10px;
    align-items: self-start;
    justify-content: end;
  }

  .nav-links.mobile {
    display: flex;
  }

  .nav-links a {
    color: #fff;
    font-size: 60px;
    font-weight: 800;
    line-height: 48px;
    letter-spacing: -4px;
  }

  .mobile__links {
    margin-bottom: 100px;
    margin-left: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .mobile__span {
    color: white !important;
    font-size: 24px !important;
    margin: 0px 0px 30px 30px;
    font-weight: 500;
  }

  .mobile__arrow {
    position: absolute;
    display: flex;
    width: 100%;
    justify-content: end;
    top: 40px;
    right: 30px;
  }

  .mobile__arrow img {
    width: 45px;
    rotate: 180deg;
  }

  .nav-responsive-button {
    display: flex;
    align-items: center;
  }
}

@media (max-width: 500px) {
  .nav-bar {
    padding: 15px 20px;
    height: 70px;
  }

  .nav-logo img {
    width: 100px;
  }
}

/* Protección de datos */

.proteccion-datos {
  padding: 120px 40px;
  width: 100%;
  max-width: 1100px;
  margin: auto;
}

.proteccion-datos h1 {
  text-align: center;
  margin: 0 0 80px 0;
  font-size: 50px;
}

.proteccion-datos h2 {
  font-size: 32px;
  margin: 30px 0 0 0;
}

.proteccion-datos p {
  margin-bottom: 30px;
}

.proteccion-datos p,
.proteccion-datos li {
  font-size: 18px;
}

.proteccion-datos a {
  color: black;
}

/* Footer */

footer {
  padding: 310px 65px;
  background-color: white;
  padding-bottom: 80px;
}

.footer-social,
.footer-contacto {
  max-width: 100%;
  margin: auto;
  display: flex;
}

.footer-social {
  gap: 370px;
  align-items: end;
  margin-bottom: 120px;
  margin-left: 0px;
  margin-right: 0px;
}

.footer-social-color > span {
  color: black;
  transition: color 0.5s ease;
}

footer:hover .footer-social-color > span:nth-of-type(1) {
  color: #3f7bd7;
}

footer:hover .footer-social-color > span:nth-of-type(2) {
  color: #c12ca0;
}

footer:hover .footer-social-color > span:nth-of-type(3) {
  color: #e5225a;
}

footer:hover .footer-social-color > span:nth-of-type(4) {
  color: #f1ac44;
}

.footer-social > div:nth-of-type(1) {
  width: 33.33%;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.footer-social a {
  color: #000;
  font-size: 70px;
  font-weight: 500;
  line-height: 65px;
  letter-spacing: -1.641px;
  text-decoration-line: underline;
  position: relative;
  text-decoration-thickness: 6px;
}

.footer-social a > img {
  position: absolute;
  height: 70%;
  top: 25%;
  opacity: 0;
  transform: translateX(-50px);
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.footer-social a:hover > img {
  transform: translateX(30px) rotate(-90deg);
  opacity: 1;
}

.footer-social > div:nth-of-type(2) {
  width: 66.66%;
  color: #0f0f0f;
  font-size: 240px;
  font-weight: 600;
  line-height: 222px;
  letter-spacing: -16.783px;
}

.footer-social-color > span {
  letter-spacing: -42px;
}

.footer-contacto {
  justify-content: space-between;
}

.footer-contacto a {
  color: #0f0f0f;
  font-size: 22px;
  font-weight: 400;
  line-height: 33px;
  letter-spacing: -0.44px;
  text-decoration: none;
}

@media (max-width: 1800px) {
  .footer-social > div:nth-of-type(2) {
    font-size: 170px;
    letter-spacing: -10.783px;
  }
}

@media (max-width: 1450px) {
  footer {
    padding: 120px 40px;
  }

  .footer-social {
    gap: 10px;
  }

  .footer-social a {
    font-size: 58px;
    line-height: 1;
  }

  .footer-social > div:nth-of-type(2) {
    font-size: clamp(17px, 13vw, 168px);
    line-height: 1;
    letter-spacing: -10px;
  }

  .footer-social-color > span {
    letter-spacing: -2.5vw;
  }

  .footer-contacto a {
    font-size: 20px;
  }
}

@media (max-width: 900px) {
  footer {
    padding: 40px;
    background-color: white;
  }

  .footer-social,
  .footer-contacto {
    flex-direction: column;
  }

  .footer-social {
    align-items: baseline;
    gap: 70px;
  }

  .footer-social > div {
    width: 100% !important;
  }

  .footer-social > div:nth-of-type(2) {
    letter-spacing: -8px;
    font-size: clamp(17px, 21vw, 168px);
  }

  .footer-social-color > span {
    letter-spacing: -4vw;
  }

  .footer-contacto {
    gap: 20px;
  }
}

/*CLASE PARA LA ANIMACIÓN DE BARRIDO DE HABLEMOS*/
.animation {
  position: relative;
  transform: translateY(100%);
  transition: transform 0.5s ease-out, opacity 0.5s;
}

.mobile-closed {
  transform: translateX(100%) !important;
}

.opened {
  transform: translateX(0%) !important;
}

#menu_movil {
  transform: translateX(100%);
  transition: all 500ms ease;
}

/*ESTILOS POPUP NEWSLETTER*/

.popup__container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 1;
  backdrop-filter: blur(10px);
  visibility: visible;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.popup__container svg {
  position: absolute;
  z-index: -1;
  width: 100%;
  height: 560px;
}

.popup__content {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  justify-content: center;
}

.popup__suscribe {
  color: #f7ff0b;
  text-align: center;
  font-size: 110px;
  font-style: normal;
  font-weight: 700;
  line-height: 91px;
  letter-spacing: -6.617px;
  margin: 0px;
  transform: rotate(-2.521deg);
}

.popup__form {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  transform: rotate(-2.521deg);
}

#popup__newsletter {
  display: flex;
  flex-direction: row;
}

#email-input {
  width: 430px;
  position: relative;
  left: 40px;
  border-radius: 57px;
  border: 1px solid #fff;
  background-color: transparent !important;
  font-size: 15px;
  font-style: normal;
  font-weight: 600;
  margin-bottom: 0px;
}

#popup__newsletter button {
  width: 145px;
  position: relative;
  z-index: 10;
  border-radius: 57px;
  right: 15px;
  background: #000;
  color: #fff;
  text-align: center;
  font-size: 15px;
  font-style: normal;
  font-weight: 600;
  line-height: 19px;
  letter-spacing: -0.625px;
  transition: all 300ms ease-in-out;
}

#popup__newsletter button:hover {
  background: #e5225a;
}

.popup__text {
  color: #fff;
  text-align: center;
  font-size: 24px;
  font-style: normal;
  font-weight: 600;
  line-height: 25px;
  letter-spacing: -0.989px;
  transform: rotate(-2.521deg);
}

/* Estado oculto del pop-up */
.popup-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
}

@media (max-width: 1450px) {
  .popup__container svg {
    width: 760px;
    height: 500px;
  }

  .popup__suscribe {
    font-size: 85px;
    line-height: 70px;
  }

  #email-input {
    width: 320px;
  }

  .popup__text {
    font-size: 16px;
    line-height: 20px;
  }
}

@media (max-width: 770px) {
  .popup__container svg {
    width: 585px;
  }

  .popup__content {
    gap: 10px;
  }

  .popup__suscribe {
    font-size: 74px;
    line-height: 55px;
  }

  #email-input {
    width: 275px;
    height: 45px;
  }
}

@media (max-width: 450px) {
  .popup__container svg {
    width: 525px;
    transform: rotate(90deg);
  }

  .popup__suscribe {
    font-size: 50px;
    line-height: 65px;
    letter-spacing: -4.617px;
    margin-right: 25px;
  }

  #popup__newsletter {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
  }

  #email-input {
    width: auto;
    height: 45px;
    left: 0;
  }

  #popup__newsletter button {
    width: 195px;
    height: 35px;
    right: 0;
  }

  .popup__text {
    width: 152px;
  }
}
