/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Colores */
:root {
  --primario-dark: #070442;
  --primario: #122d67;
  --primario-light: #638df7;
  --negro: #323439;
  --blanco: #ffffff;
  --no-blanco: #e4edff;
  --secundario: #4fb2ce;
}

/* Navbar */

.header {
  position: fixed;
  top: 0;
  z-index: 100;
  left: 0;
  right: 0;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.98); /* más blanco, menos transparente */
  border-radius: 32px;
  box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.05);
  padding: 16px 24px;
  width: calc(100% - 48px); /* default mobile: 24px + 24px */
  margin: 16px auto 0 auto; /* mobile top spacing */
  max-width: 100%;
  transition: all 0.3s ease;
}

.navbar__logo img {
  height: 32px;
  object-fit: contain;
}

.navbar__menu {
  display: none;
  flex-direction: column;
  gap: 32px;

  position: absolute;
  top: calc(100% + 16px); /* 16px debajo de navbar */
  left: 0;
  right: 0;
  margin-left: 24px;
  margin-right: 24px;

  background: rgba(255, 255, 255, 0.85); /* más blanco, menos transparente */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: 32px 24px 40px 24px;

  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  z-index: 100;
}

.navbar__menu.active {
  display: flex;
}

.navbar__toggle {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  padding: 4px;
  color: #0a0a23;
}

.navbar__toggle .material-symbols-outlined {
  font-size: 32px;
  line-height: 1;
  color: var(--primario-dark);
}

/* Links del menu */
.navbar__link {
  margin-left: 16px;
  text-decoration: none;
  color: #0a0a23;
  font-weight: 300;
  font-size: 14px;
  font-family: Poppins;
  position: relative;
  z-index: 1;
  padding: 4px 16px;
  border-radius: 9999px;
  transition: color 0.3s ease;
}

.navbar__link:hover {
  color: var(--primario-dark);
  font-weight: 400;
}

html {
  scroll-behavior: smooth;
}

/* Content */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 104px 24px 0px 24px;
  width: 100%;
}

body {
  background-color: var(--no-blanco);
}

.main-content {
  margin-top: 160px;
  max-width: 100%;
}

.hidden-mobile {
  display: none;
}

.h1-title {
  color: var(--Color-primario-Default, #122d67);
  text-align: center;
  font-family: Poppins;
  font-size: 30px;
  font-style: normal;
  font-weight: 700;
  line-height: 34px; /* 121.429% */
}

.h2-title {
  color: var(--Color-primario-Default, #122d67);
  font-family: Poppins;
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: 32px; /* 133.333% */
}

.light {
  font-weight: 200;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 16px;
}

.gradiente {
  background: linear-gradient(270deg, #638df7 0%, #4fb2ce 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-hero {
  text-align: center;
}

.text {
  color: var(--Color-primario-Default, #122d67);
  font-family: Poppins;
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
}

.caption {
  color: var(--Color-primario-Default, #122d67);
  text-align: center;
  font-family: Poppins;
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: 20px; /* 125% */
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

a {
  color: var(--primario-light);
}

.boton-primario {
  display: flex;
  padding: 8px 32px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  align-self: stretch;
  border-radius: 24px;
  background: var(--Color-secundario, #4fb2ce);
  color: var(--blanco);
  text-decoration: none;
  text-transform: uppercase;
  font-family: poppins;
  font-weight: 700;
  font-size: 17px;
}

.card-glass {
  display: flex;
  padding: 24px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  align-self: stretch;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: linear-gradient(
    87deg,
    rgba(255, 255, 255, 0.24) 100%,
    rgba(255, 255, 255, 0.08) 100%
  );
  box-shadow: 0 0 5px 0 rgba(255, 255, 255, 0.8) inset,
    0 4px 30px 0 rgba(7, 4, 66, 0.1);
  backdrop-filter: blur(6px);
}

.card-glass p {
  font-family: poppins;
  color: var(--Color-primario-Default, #122d67);
  font-family: Poppins;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.GrupoCormos-fila {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.que-hacemos {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ecosistema-titles {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  text-align: left;
  justify-content: flex-start;
}

.card-image-desktop .img-grande {
  width: 272px;
}

.card-partner {
  flex-direction: column;
  gap: 24px;
}

.card-partner .material-symbols-outlined {
  color: var(--secundario);
  align-self: flex-start;
  font-size: 40px;
}

.card-branding {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.card-description {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-image-desktop {
  display: none;
}

.img-desktop img {
  display: none;
}

/* ====== ECO (carousel) ====== */
/* el WRAPPER scrollea y hace snap */
.eco-scroll-wrapper {
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;

  /* mobile */
  padding-left: 24px;
  padding-right: 24px;
  scroll-padding-left: 16px;
}
.eco-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

/* El TRACK no scrollea */
.eco-productos {
  display: flex;
  overflow: visible; /* antes: overflow-x:auto */
  gap: 8px;
  padding: 16px;
}

.eco-productos::-webkit-scrollbar {
  display: none; /* ya no scrollea, pero lo dejamos inofensivo */
}

.card-partner {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-radius: 32px;
  min-width: 272px;
  flex-shrink: 0;
  scroll-snap-align: start;
}

.impacto {
  margin-top: 104px;
}

.impacto .container {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-bottom: 104px;
  padding-top: 0px;
}

.impacto .title {
  padding-top: 104px;
  padding-bottom: 48px;
  color: var(--primario-light);
  font-size: 20px;
}

.num-title {
  color: var(--Color-primario-Default, #122d67);
  text-align: center;
  font-family: Poppins;
  font-size: 28px;
  font-style: normal;
  font-weight: 700;
  line-height: 34px; /* 121.429% */
  margin-bottom: 8px;
}

.glass {
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: linear-gradient(
    87deg,
    rgba(255, 255, 255, 0.24) 100%,
    rgba(255, 255, 255, 0.08) 100%
  );
  box-shadow: 0 0 5px 0 rgba(255, 255, 255, 0.8) inset,
    0 4px 30px 0 rgba(7, 4, 66, 0.1);
  backdrop-filter: blur(6px);
}

.grupocormos img {
  max-width: 100%;
  padding-bottom: 104px;
}

.confian {
  background-color: var(--blanco);
  padding: 32px 0;
  overflow: hidden;
}

.confian__listado {
  overflow-x: hidden;
  position: relative;
  margin-top: 24px;
}

.confian__logos {
  display: flex;
  gap: 24px;
  width: max-content; /* importante para que se expanda naturalmente */
}

.confian__logo {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 120px;
  height: 90px;
  border-radius: 8px;
  background: #fff;
  flex-shrink: 0;
  transition: transform 0.3s ease-in-out;
}

.confian__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.soluciones-item {
  background-color: var(--blanco);
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  justify-content: left;
  padding: 16px;
  border-radius: 16px;
}

.soluciones-item .material-symbols-outlined {
  color: var(--primario-light);
}

.soluciones {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sol-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sol-list .caption {
  text-align: left;
}

.sol-title {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sol {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sol-title img {
  width: 165px;
}

.prensa-titles {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.nota {
  transition: transform 0.3s ease;
}

.nota:hover {
  transform: translateY(-10px);
}

.accordion-item {
  border-bottom: 0.5px solid var(--secundario);
}

.accordion-button {
  width: 100%;
  text-align: left;
  padding: 16px 0px 16px 0px;
  font-weight: 400;
  font-size: 16px;
  color: var(--primario-dark);
  border: none;
  cursor: pointer;
  outline: none;
  transition: background-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: "poppins";
  background-color: transparent;
}

.accordion-button .material-symbols-outlined {
  color: var(--secundario);
}

.accordion-content {
  display: none;
  padding: 16px;
}

.accordion-content p {
  margin: 0;
}

/* Estilo para cuando el acordeón está abierto */
.accordion-item.active .accordion-content {
  display: block;
}

.notas-wrapper {
  overflow-x: auto;
  padding-left: 24px; /* aire a la izquierda */
  padding-right: 16px; /* aire a la derecha */
  margin-top: 16px;

  /* ocultar scrollbar cross-browser */
  -ms-overflow-style: none; /* IE */
  scrollbar-width: none; /* Firefox */
}

.notas-wrapper::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.notas {
  display: flex;
  flex-direction: row;
  gap: 8px;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  width: max-content; /* clave: deja que crezca horizontalmente */
}

.nota {
  width: 272px;
  flex-shrink: 0;
  background-color: #fff;
  border-radius: 32px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  scroll-snap-align: start;
}

.nota img {
  max-width: 100%;
  border-radius: 16px;
}

.nota .material-symbols-outlined {
  color: var(--secundario);
}

.faqs .h2-title {
  margin-bottom: 16px;
}

.faqs .accordion .accordion-content p strong {
  font-weight: 600;
}

.contacto {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.contacto-title {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Formulario HubSpot */

.cormos-form {
  width: 100vw;
  max-width: 100%;
}

.hs-button {
  width: 100%;
  background-color: var(--secundario);
  color: var(--blanco);
  border-width: 0px;
  height: 36px;
  border-radius: 16px;
  font-family: poppins;
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  height: 40px;
  letter-spacing: 0.05em; /* o px si preferís */
}

input {
  width: 100%;
  background-color: #ffffff;
  border: 1px solid var(--no-blanco);
  height: 36px;
  border-radius: 16px;
  font-family: poppins;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 15px;
  margin-top: 4px;
}

textarea {
  width: 100%;
  background-color: var(--blanco);
  border: 1px solid var(--no-blanco);
  height: 128px;
  border-radius: 16px;
  font-family: poppins;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 15px;
  padding: 16px;
  margin-top: 4px;
}

.field {
  position: relative;
}

.field input {
  width: 100%;
  padding: 20px;
  color: var(--negro-texto);
}

.field label {
  color: var(--drapp-azul);
  transition: 0.2s;
  pointer-events: none;
  font-weight: 300;
  font-family: poppins;
  font-size: 14px;
}

.hbspt-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-img {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

.footer-contenido img {
  width: 220px;
}

.footer-contenido .img-iso {
  width: 200px;
  margin: 32px;
}

.footer-contenido {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.rrss {
  display: flex;
  flex-direction: row;
  gap: 24px;
}

.rrss img {
  width: 24px;
}

footer {
  background-color: var(--primario-dark);
  padding: 24px 0px;
  margin-top: 80px;
}

.footer-np {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
}

.footer-np a {
  font-family: poppins;
  text-decoration: none;
  color: var(--blanco);
}

.footer-productos .text {
  font-weight: 800;
  color: var(--blanco);
  text-align: center;
}

.footer-productos {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-tyc {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.footer-tyc a {
  text-decoration: none;
  font-family: poppins;
  text-align: center;
  color: var(--no-blanco);
}

footer .caption {
  color: var(--no-blanco);
  text-transform: initial;
  padding-top: 64px;
  padding-bottom: 40px;
}

.spacer {
  display: none;
  scroll-snap-align: start;
}

.blur-circle {
  position: absolute;
  width: 300px;
  height: 300px;
  pointer-events: none;
  z-index: -10;
  max-width: 100vw;
  filter: blur(60px);
  overflow-x: hidden;
  transform: translateZ(0); /* <-- agregado */
  will-change: transform, opacity;
}

/* 🎯 Posiciones */

.circle-hero-left {
  top: -200px;
  left: -100px;
}

.circle-hero-right {
  top: -200px;
  right: -100px;
}

.circle-eco-right {
  top: 250px;
  right: -100px;
}

.circle-impacto-left {
  top: 550px;
  left: -100px;
}

.circle-prensa-right {
  top: 50px;
  right: -100px;
}

/* 🎨 Colores */
.color-celeste {
  background: radial-gradient(
    circle,
    rgba(79, 178, 206, 1) 0%,
    rgba(255, 255, 255, 0) 70%
  );
}

.color-blanco {
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 1) 20%,
    rgba(255, 255, 255, 0) 70%
  );
}

.color-azul {
  background: radial-gradient(
    circle,
    rgba(99, 141, 247, 1) 0%,
    rgba(255, 255, 255, 0) 70%
  );
}

.section-con-circulo {
  position: relative;
}

.eco-scroll-wrapper {
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
}

a {
  color: var(--secundario);
}

@media (min-width: 1024px) {
  .navbar__menu {
    position: relative;
    display: flex !important;
    flex-direction: row;
    gap: 16px;
    padding: 0;
    margin: 0;
    all: unset;
  }

  .navbar__link {
    position: relative;
    z-index: 2;
    padding: 6px 16px;
    font-weight: 400;
    border-radius: 9999px;
    transition: color 0.2s ease;
  }

  .hover-pill {
    position: absolute;
    height: 36px;
    background-color: rgba(79, 178, 206, 0.15);
    border-radius: 9999px;
    z-index: 1;
    transition: all 0.3s ease;
    pointer-events: none;
    opacity: 0;
    transform: translateX(0);
  }

  .navbar__link:hover {
    color: var(--primario-dark);
  }

  .navbar {
    width: calc(100% - 80px); /* 40px + 40px */
    margin-top: 24px;
    position: relative;
    padding: 26px 40px;
    border-radius: 100px;
  }

  .navbar__toggle {
    display: none;
  }

  .main-content {
    margin-top: 180px;
  }

  .container {
    padding: 136px 40px 0px 40px;
    width: 100%;
  }

  .h1-title {
    font-size: 56px;
    line-height: 72px;
  }

  .hero {
    padding: 64px;
    padding-top: 32px;
  }

  .text-hero {
    font-size: 24px;
  }

  .boton-primario {
    font-size: 24px;
    margin: auto;
    margin-top: 24px;
  }

  .h2-title {
    font-size: 40px;
    line-height: 50px;
  }

  .card-description .h2-title {
    font-size: 32px;
  }

  .ecosistema-titles p {
    font-size: 24px;
  }

  .ecosistema-titles .h2-title {
    text-align: left;
  }

  .GrupoCormos-fila {
    flex-direction: row;
  }

  .GrupoCormos-fila .card-glass {
    flex: 0 1 1;
  }

  .GrupoCormos-fila .card-glass p {
    font-size: 24px;
  }

  .card-image-desktop {
    display: block;
  }

  .hidden-mobile {
    display: block;
  }

  .card-image-desktop img {
    width: 128px;
  }

  .card-content {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: start;
  }

  .card-partner {
    width: 624px;
  }

  /* ====== ECO (carousel desktop) ====== */
  .eco-scroll-wrapper {
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-left: 40px;
    padding-right: 40px;
    scroll-padding-left: 40px;
    scroll-snap-type: x mandatory; /* agregado */
  }

  .eco-scroll-wrapper::-webkit-scrollbar {
    display: none;
  }

  .eco-productos {
    display: flex;
    gap: 16px;
    width: max-content;
    /* quitamos scroll-snap-type acá */
  }

  .impacto .container {
    padding-bottom: 136px;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columnas iguales */
    gap: 24px; /* Espacio entre columnas */
    align-items: stretch;
  }

  .impacto .title {
    padding-top: 136px;
  }

  .num-title {
    text-align: center;
    font-family: Poppins;
    font-size: 26px;
    font-style: normal;
    font-weight: 700;
    line-height: 34px; /* 121.429% */
    color: var(--Color-primario-Default, #122d67);
  }

  .img-desktop img {
    display: block;
  }

  .img-mobile img {
    display: none;
  }

  .sol {
    flex-direction: row;
    align-items: center;
    gap: 24px;
    align-self: stretch;
  }

  .sol-title {
    width: 50%;
  }

  .sol-list {
    width: 50%;
  }

  .soluciones-item {
    justify-content: left;
  }

  .notas-wrapper {
    padding-left: 40px; /* aire a la izquierda */
    padding-right: 40px; /* aire a la derecha */
  }
  .notas {
    padding-top: 16px;
    overflow-x: auto;
    overflow-y: visible; /* permite que el hover se vea hacia arriba */
  }

  .faqs .h2-title {
    margin-bottom: 24px;
  }

  .footer-contenido {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .footer-contenido.container {
    padding-top: 60px;
  }

  .circle-eco-right {
    top: 150px;
    right: -150px;
  }

  .circle-impacto-left {
    top: 200px;
    left: -150px;
  }

  .circle-prensa-right {
    top: 50px;
    right: -100px;
  }

  .eco-arrows {
    display: flex;
    flex-direction: row;
    align-items: center;
    z-index: 5;
    padding-top: 16px;
    justify-content: flex-end;
  }

  .eco-arrows .material-symbols-outlined {
    font-size: 40px;
    cursor: pointer;
    color: var(--primario);
    transition: transform 0.2s ease;
  }

  .eco-arrows .material-symbols-outlined:hover {
    transform: scale(1.1);
  }

  .eco-arrow {
    display: flex;
    gap: 16px;
  }

  .eco-scroll-limitador {
    max-width: 100%;
    overflow-x: visible;
    position: relative;
  }

  .eco-productos {
    display: flex;
    gap: 16px;
    width: max-content;
  }

  .notas-arrows {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    padding: 8px 40px 0 0;
  }

  .arrow-prensa-left,
  .arrow-prensa-right {
    font-size: 32px;
    color: var(--primario-light);
    cursor: pointer;
    transition: transform 0.2s ease;
    user-select: none;
  }

  .arrow-prensa-left:hover,
  .arrow-prensa-right:hover {
    transform: scale(1.1);
  }

  .contacto.container {
    padding-left: 224px;
    padding-right: 224px;
  }
}

@media (min-width: 1200px) {
  .navbar {
    width: 1200px;
  }

  .main-content {
    margin-top: 80px;
  }

  .container {
    padding: 160px 40px 0px 40px;
    width: 100%;
  }

  .h1-title {
    font-size: 72px;
    line-height: 80px;
  }

  .text-hero {
    font-size: 40px;
  }

  .boton-primario {
    margin-top: 40px;
  }

  .h2-title {
    font-size: 48px;
    line-height: 50px;
  }

  .hidden-mobile {
    display: flex;
  }

  .eco-arrows {
    padding-top: 16px;
  }

  .eco-scroll-wrapper {
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-left: calc((100vw - 1200px) / 2);
    padding-right: calc((100vw - 1200px) / 2);
    scroll-padding-left: calc((100vw - 1200px) / 2);
    scroll-snap-type: x mandatory; /* confirmado */
  }

  .eco-scroll-wrapper::-webkit-scrollbar {
    display: none;
  }

  .impacto .container {
    padding-bottom: 160px;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columnas iguales */
    gap: 20px; /* Espacio entre columnas */
    align-items: stretch;
  }

  .impacto .title {
    padding-top: 160px;
    font-size: 24px;
    padding-bottom: 48px;
  }

  .num-title {
    font-size: 34px;
    line-height: 40px; /* 121.429% */
  }

  .impacto .container {
    justify-content: center;
  }

  .confian__listado {
    margin-top: 40px;
  }

  .confian {
    padding: 64px 0px;
  }

  .notas-wrapper {
    overflow-x: hidden;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0; /* sin paddings horizontales extra */
    padding-left: 40px;
    padding-right: 40px;
    margin-top: 24px;
  }

  .notas {
    width: 100%;
    gap: 16px;
    scroll-snap-type: none;
  }

  .nota {
    flex: 1; /* ocupa el espacio disponible proporcionalmente */
    min-width: 0; /* clave para evitar overflow */
  }

  .blur-circle {
    width: 600px;
    height: 600px;
    max-width: 100vw;
    filter: blur(100px);
  }

  .circle-hero-left {
    top: -500px;
    left: -200px;
  }

  .circle-hero-right {
    top: -200px;
    right: -300px;
  }

  .circle-eco-right {
    top: 0px;
    right: -300px;
  }

  .circle-impacto-left {
    top: 70px;
    left: -300px;
  }

  .circle-prensa-right {
    right: -300px;
  }

  .hidden-1200 {
    display: none;
  }
}
