/*=============================
=           TOKEN            =
=============================*/
:root {
  --color-primary-100: #9839ff;
  --color-secondary-100: #ff656c;
  --color-secondary-dark: #32284a;
  --color-secondary-blue: #336dff;

  --violet-100: #6e00d4;
  --violet-90: #b125df;
  --violet-80: #9645e9;
  --violet-70: #a75ef1;
  --violet-60: #b977f3;
  --violet-50: #d8b1ff;
  --violet-40: #e9d3ff;
  --violet-30: #f4e9fe;

  --blue-100: #1e56ff;
  --blue-90: #336dff;
  --blue-80: #4f81ff;
  --blue-70: #608dff;
  --blue-60: #89a8ff;
  --blue-50: #b6c8ff;
  --blue-40: #d9e4ff;
  --blue-30: #ecf2ff;

  --gray-100: #131523;
  --gray-90: #333752;
  --gray-80: #5a607f;
  --gray-70: #7e8aa3;
  --gray-60: #a1a7c4;
  --gray-50: #d7dbec;
  --gray-40: #e6e9f4;
  --gray-30: #f5f6fa;

  --font-main: "Hanken Grotesk", sans-serif;
}

/*=============================
=            RESET            =
=============================*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: var(--font-main);
  background-color: rgba(245, 246, 250, 0.6);
  color: var(--gray-100);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}


.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}


/*=============================
=           HEADER            =
=============================*/
.header {
  background-color: white;
  padding: 2rem 0;
  position: relative;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); 
  transition: all 0.3s ease;
}


.header__wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0;
}

.header__center {
  flex: 1;
  text-align: center;
}

.header__langs {
  font-size: 1rem;
  color: var(--gray-90);
  font-weight: 500;
}

.header__langs a,
.header__langs a:visited,
.header__langs a:hover,
.header__langs a:active,
.header__langs a:focus {
  text-decoration: none !important;
}

.logo {
  height: 28px;
  width: auto;
  display: block;
  margin: 0 auto;
}

.header__nav {
  display: flex;
  gap: 1.5rem;
  justify-items: flex-end;
}

.header__nav a {
  text-decoration: none;
  color: var(--gray-100);
  font-weight: 500;
}

.header__nav a:hover,
.header__langs a:hover {
  color: var(--color-secondary-100);
}


.main-header.is-floating {
  position: fixed;
  top: 1rem;
  left: 8%;
  /* transform: translateX(-50%); */
  width: 85%;
  margin: 0 auto;
  border-radius: 5rem;
  padding: 1.2rem 2rem;
  background-color: white;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  z-index: 999;
}


/*=============================
=            HERO             =
=============================*/
.hero {
  padding: 0;
}

.hero__wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: center;
  gap: 3rem;
  padding: 3rem 5%;
  margin-left: 3rem;
  margin-top: 4rem;
  margin-bottom: 4rem;
}

.hero__text {
  max-width: 550px;
}

.subtitle.violet {
  color: var(--color-primary-100);
  font-weight: 600;
  font-size: 1.1rem;
}

.hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 1rem 0;
  color: var(--color-primary-100);
  line-height: 1.1;
}

.hero__desc {
  color: var(--gray-90);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.hero__desc_2 {
  color: var(--gray-90);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.btn.violet {
  background-color: var(--violet-100);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.btn.violet:hover {
  background-color: var(--violet-90);
}

.hero__image {
  display: flex;
  justify-content: flex-end;
  position: relative;
  overflow: visible;
}

.hero__image picture {
  display: block;
} 

.hero__image img {
  width: 110%;
  margin-right: -12%;
  max-width: none;
  height: auto;
  object-fit: contain;
  display: block;
}

.hero__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.hero__logo {
  width: 35px;
  height: auto;
}

/*=============================
=       QUIENES SOMOS        =
=============================*/
.quienes-somos {
  background-color: var(--color-secondary-dark);
  color: white;
  padding: 6rem 5%;
}

.quienes-somos .container {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
  text-align: left;
}

.qs-title {
  font-size: clamp(1.5rem, 4vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.qs-intro {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.qs-list {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.qs-list li {
  margin-bottom: 0.5rem;
  /* font-size: 1.1rem; */
}

.qs-bottom {
  font-size: 1.125rem;
}

/*=============================
=         BENEFICIOS          =
=============================*/
.beneficios {
  padding: 2rem 5%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

.beneficios__wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  min-height: 650px;
}

.beneficios__imagen {
  position: relative;
  overflow: visible;
  display: flex;
  justify-content: flex-start;
}

.beneficios__imagen img {
  width: 100%;
  max-width: none;
  margin-left: -20%;
  margin-bottom: -70%;
  height: auto;
  object-fit: contain;
  display: block;
}

.beneficios__texto {
  max-width: 600px;
  padding-right: 2rem;
}

.beneficios__texto .section-title {
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--color-primary-100);
}

.beneficios__lista {
  list-style-type: disc;
  padding-left: 1.5rem;
  color: var(--gray-100);
}

.beneficios__lista li {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

/*=============================
=       MENU HAMBURGUESA     =
=============================*/
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--color-primary-100);
  border-radius: 2px;
}

/* MenÃº mobile desplegable */
.mobile-menu {
  display: none;
  flex-direction: column;
  justify-content: start;
  align-items: start;
  padding-left: 50px;
  padding-top: 100px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(50, 40, 74, 0.95); /* fondo morado con transparencia */
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.show {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-size: 1.5rem;
  color: white;
  text-decoration: none;
  margin: 1rem 0;
  font-weight: 600;
}

.mobile-menu a:hover {
  color: var(--color-secondary-100);
}
/* BotÃ³n de cerrar (X) */
.mobile-menu .close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 90;
}

.menu-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/*=============================
=        QUE HACEMOS         =
=============================*/
.que-hacemos {
  background-color: var(--color-secondary-dark);
  color: white;
  padding: 6rem 5%;
}

.qh-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 3rem;
}

.qh-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.qh-card {
  background-color: transparent;
  border: 1px solid var(--color-secondary-100);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: white;
  transition: transform 0.3s ease;
}

.qh-card:hover {
  transform: translateY(-4px);
  background-color: var(--color-primary-100);
  border: none;
}

.qh-icon {
  width: 32px;
  height: auto;
  filter: brightness(0) invert(1); /* los hace blancos si son negros */
}

.qh-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
}

.qh-card p {
  font-size: 0.95rem;
  color: var(--gray-40);
  line-height: 1.6;
}

/*=============================
=      SOLUCIONES REALES      =
=============================*/
.soluciones {
  padding: 6rem 5%;
}

.soluciones__title {
  font-size: clamp(1.5rem, 4vw, 1.75rem);
  font-weight: 700;
  color: var(--gray-100);
  /* text-align: center; */
  margin-bottom: 3rem;
}

.soluciones__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.soluciones__card {
  background-color: #f3f1fc;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.soluciones__card:hover {
  transform: translateY(-6px);
}

.soluciones__card h3 {
  color: var(--color-primary-100);
  font-size: 1.125rem;
  margin-bottom: 1.2rem;
  font-weight: 700;
}

.soluciones__card em {
  font-style: italic;
  display: block;
  font-size: 1rem;
  color: var(--violet-70);
  margin-top: 0.25rem;
}

.soluciones__card ul {
  list-style-type: disc;
  padding-left: 1.25rem;
  color: var(--gray-100);
}

.soluciones__card ul li {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.soluciones__cta {
  text-align: center;
}

.soluciones__cta .btn.violet {
  font-size: 1rem;
}

.triage__cta {
  text-align: center;
}

.btn-icon {
  margin-left: 0.5rem;
  transition: transform 0.2s ease;
}

.btn:hover .btn-icon {
  transform: translateX(4px);
}


/*=============================
=     COMPARTIMOS / INSIGHTS  =
=============================*/
.compartimos {
  background-color: var(--color-secondary-dark);
  color: white;
  padding: 5rem 5%;
}

.compartimos__titulo {
  font-size: clamp(1.5rem, 4vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.compartimos__intro {
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  max-width: 1000px;
}

/* .compartimos__scroll {
  overflow-x: auto;
  padding-bottom: 2rem;
  padding-top: 1rem;
} */

/* .compartimos__cards {
  display: flex;
  gap: 2rem;
  min-width: fit-content;
} */

.compartimos__card {
  /* flex: 0 0 450px; */
  /* background-color: transparent; */
  background-color: rgba(139, 64, 255, 0.06); /* #8B40FF con opacidad */
  border: 1px solid var(--violet-60);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  min-height: 280px;
  transition: transform 0.3s ease;
}

.compartimos__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.compartimos__card:hover {
  transform: translateY(-4px);
  background-color: var(--color-primary-100);
  border: none;
}

.compartimos__icon {
  width: 36px;
  height: 36px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1); /* asegura que svg oscuros se vean blancos */
}

.compartimos__card h3 {
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.compartimos__card p {
  font-size: 1rem;
  color: white;
  line-height: 1.5;
}

.compartimos__card p a {
  text-decoration: underline;
}

/* Scroll solo visible en mobile */
.compartimos__scroll::-webkit-scrollbar {
  height: 6px;
}

.compartimos__scroll::-webkit-scrollbar-thumb {
  background-color: var(--violet-60);
  border-radius: 4px;
}

/*=============================
=     CONTACTO FINAL          =
=============================*/
.contacto {
  padding: 5rem 5% 6rem;
  position: relative;
  overflow: hidden;
}

.contacto__wrapper {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr; /* texto e imagen */
  align-items: center;
  gap: 2rem;
}

.contacto__text {
  color: var(--gray-100);
}

.contacto__title {
  color: var(--color-primary-100);
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  margin-bottom: 2rem;
  font-weight: 700;
}


.contacto__desc {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.contacto__equipo {
  margin: 2rem 0;
}

.contacto__equipo-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}


 .contacto__equipo-list {
    flex-direction: column;
    gap: 1.5rem;
  }

  .contacto__equipo-item {
    align-items: flex-start;
  }

  .contacto__equipo-nombre,
  .contacto__equipo-cargo {
    text-align: left;
  }

.contacto__equipo-nombre a {
  color: var(--color-primary-100);
  text-decoration: underline;
}

.contacto__equipo-nombre a:hover {
  color: var(--color-secondary-100);
}

.contacto__equipo-nombres,
.contacto__equipo-cargo {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 1rem;
}

.contacto__equipo-cargo {
  font-weight: 400;
  margin-top: 0.25rem;
  margin-bottom: 1rem;
}

.contacto__equipo-nombres strong {
  text-decoration: underline;
  font-weight: 700;
}

.contacto__equipo-nombre a,
.contacto__linkedin {
  text-decoration: none !important;
  font-size: 1.2rem;
}



.btn.violet {
  background-color: var(--color-primary-100);
  color: white;
  padding: 0.75rem 2rem;
  margin-right: 1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  display: inline-block;
  margin-top: 1rem;
  transition: background-color 0.3s ease;
}

.btn.violet:hover {
  background-color: var(--color-secondary-100);
}

.contacto__mail {
  margin-top: 2rem;
  font-size: 1.05rem;
  font-weight: 300;
}

.contacto__mail a {
  color: var(--color-primary-100);
  font-weight: 600;
  text-decoration: none;
}

.contacto__firma {
  color: var(--color-primary-100);
  font-size: 1rem;
  margin-top: 2rem;
  font-weight: 500;
}

/* Imagen alineada a la derecha */
.contacto__img {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-right: -10%;
}

.contacto__img img {
  width: 100%;
  max-width: 350px;
  height: auto;
  object-fit: contain;
}

/*=============================
=         FOOTER     =
=============================*/

.footer {
  background-color: var(--color-secondary-dark);
  color: white;
  padding: 2rem 5%;
  font-size: 1rem;
  border-radius: 0 0 10px 10px;
}

.footer__wrapper {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
}

.footer__top {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 40px;

}

.footer__links a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 300;
}

.footer__bottom {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__copyright {
  font-size: 1rem;
  font-weight: 300;
}

.footer__social {
  display: flex;
  gap: 1rem;
  font-weight: 300;
}

.footer__social a {
  color: white;
  font-size: 1.25rem;
  transition: color 0.3s ease;
}

.footer__social a:hover,
.footer__links a:hover {
  color: var(--color-secondary-100);
}

/*=============================
=     BOTÃ“N FLOTANTE     =
=============================*/
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #8b40ff;
  color: white;
  border: none;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mostrar el botÃ³n al hacer scroll */
.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

/*=============================
=     ANIMACIONES SCROLL     =
=============================*/
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.show {
  opacity: 1;
  transform: translateY(0);
}

.parallax {
  will-change: transform;
  transition: transform 0.15s ease-out;
}



/*=============================
=        MEDIA QUERIES       =
=============================*/

/* Tablet ≤1024px */
@media (max-width: 1024px) {

  .hero__image {
    margin-right: -10%;
  }

  .header__nav {
    display: none;
  }

  .header {
    padding: 1rem 1.5rem;
  }

  .header__lang {
    font-size: 0.85rem;
  }

  .header__logo {
    font-size: 1.4rem;
  }

  .header__burger {
    font-size: 1.6rem;
  }

  .hamburger {
    display: flex;
  }

  .qh-grid {
    grid-template-columns: 1fr 1fr;
  }

  .beneficios__texto {
    padding-right: 0;
  }

  .contacto__wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contacto__img {
    justify-content: center;
  }

  .contacto__img img {
    max-width: 300px;
  }

  .contacto__equipo-list {
    flex-direction: column;
  }

  .contacto__img {
    display: none !important;
    justify-content: flex-end;
  }


  .footer__wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer__top {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .footer__links {
    flex-direction: column;
    gap: 0.1rem;
    align-items: center;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }

  .footer__social {
    justify-content: center;
    margin-top: 0.5rem;
  }


}

/* Mobile ≤768px */
@media (max-width: 768px) {

  .logo {
    height: 25px;
  }

  .hero__image {
    margin-right: -5%;
  }

  .header__nav {
    display: none;
  }

  .header {
    padding: 1rem 1.5rem;
  }

  .header__lang {
    font-size: 0.85rem;
  }

  .header__logo {
    font-size: 1.4rem;
  }

  .header__burger {
    font-size: 1.6rem;
  }

  .hamburger {
    display: flex;
  }

  .qs-intro,
  .qs-bottom {
    font-size: 1rem;
  }

  .hero__image picture {
    display: none;
  }

  .hero__image {
    background-image: url("../assets/images/hero-illustration-mobile.webp");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right;
    min-height: 280px; 
  }

  .qh-grid {
    grid-template-columns: 1fr;
  }

  .qh-card {
    padding: 1.5rem;
  }

  .qh-title {
    font-size: 1.5rem;
  }

  .qh-card {
    padding: 3rem;
  }

  .hero__wrapper {
    margin-left: 1rem;
    margin-bottom: 2rem;
  }

  .compartimos__card {
    flex: 0 0 30%;
  }

  .beneficios__wrapper {
    grid-template-columns: 1fr;
  }

  .beneficios{
    padding-bottom: 4rem;
    margin: 20px;
  }

  .beneficios__imagen picture {
    display: none;
  }

   .beneficios__imagen {
    background-image: url("../assets/images/beneficio-ilustracion-moible.webp");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left;
    min-height: 350px; 
    margin-left: -16%;
  }


  .contacto__img {
    display: none !important;
  }

  .contacto__equipo-list {
    flex-direction: column;
    gap: 1.5rem;
  }

  .contacto__equipo-item {
    align-items: flex-start;
  }

  .contacto__equipo-nombre,
  .contacto__equipo-cargo {
    text-align: left;
  }

  .footer__wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer__top {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .footer__links {
    flex-direction: column;
    gap: 0.1rem;
    align-items: center;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }

  .footer__social {
    justify-content: center;
    margin-top: 0.5rem;
  }

  .parallax {
    transform: none !important;
    transition: none !important;
  }

  .qh-title {
  text-align: left;
}

  .main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  }

    body {
    padding-top: 80px; 
  }

  .header__right {
    margin-left: auto;
    display: flex;
    align-items: center;
    padding-right: 1rem;
  }

}

@media (min-width: 769px) and (max-width: 773px) {

  .hero__image{
    max-width: 55%;
    margin-left: 45%;
}

}

@media (hover: none) and (pointer: coarse) {
  .compartimos__card:hover,
  .qh-card:hover {
    transform: none !important;
    background-color: inherit !important;
  }
}