main {
  background: var(--Surface-Surface-white);
}

.hero {
  position: relative;
  height: 721px;
  overflow: hidden;
  background: conic-gradient(
    from 153deg at 63.25% 74.08%,
    #06161b 0deg,
    #1f383d 229.13066625595093deg,
    #081a1d 360deg
  );
}

.portada {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 70%;
  z-index: 1;
}

.img-fondo {
  position: absolute;
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
  width: 728px;
  aspect-ratio: 120 / 73;
  background-image: url("/web/frontend/assets/media/img-nosotros/portada1.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  z-index: 2;
}

.img-overlay {
  position: absolute;
  top: 0;
  right: 0;
  width: 70%;
  height: 100%;
  background-image: url("/web/frontend/assets/media/img-nosotros/portada1.1.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  z-index: 1;
}

/* TEXTO ENCIMA */
.hero-content-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  color: var(--Text-Text-White, #fff);
  height: 100%;
}

.hero-content {
  font-family: var(--font-titles-barlow);
  font-size: 80px;
  font-weight: 700;
  line-height: 90px;
  text-transform: uppercase;
  margin: 0;
}

/* TU CONTENIDO */
.contenido {
  display: flex;
  flex-direction: column;
  gap: 24px;

  margin-top: 100px;
  margin-left: 5%;
  width: 621px;
  color: var(--Text-Text-White);
}

.icon-box {
  width: 28px;
  height: 28px;
  background: var(--Secondary-900);
  color: var(--Text-Text-White);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  border-radius: 6px;
}

.intro1 {
  font-family: var(--font-titles-montse);
  font-size: 18px;
  font-weight: 400;
  line-height: 30px;
}

.buttons {
  display: flex;
  gap: 24px;
}

.btn {
  font-family: var(--font-nav-rubik);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  font-size: 16px;
  text-decoration: none;
  border-radius: 10px;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--Primary-Brand-400-Brand);
  color: var(--Text-Text-White);
}

.btn-primary:hover,
.btnSesion:hover {
  background: var(--primary-dark);
}

/*section card*/

.cards-sect {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 40px;
  padding-right: 212px;
}

.card-1 {
  width: 569px;
  height: 684px;
  flex-shrink: 0;
  background-image: url("/web/frontend/assets/media/img-nosotros/Mask group (1).png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.card1-contend {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card1-contend h2 {
  color: var(--Primary-Brand-950);
  font-family: var(--font-titles-barlow);
  font-size: 60px;
  font-style: normal;
  font-weight: 700;
  line-height: 60px;
  text-transform: uppercase;
  text-align: center;
}

.intro {
  color: var(--Text-Text-Activated);
  font-family: var(--font-nav-rubik);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.intro span {
  color: var(--link-hover);
  font-family: Rubik;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

/*carrusel*/
.info {
  display: flex;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 72px 220px;
  flex-direction: column;
  align-items: flex-start;
  gap: 56px;
  box-sizing: border-box;
  background: var(--Gray-Blue-100);
}

.info h2 {
  color: var(--Text-Text-Dark);
  font-family: var(--font-titles-barlow);
  font-size: 60px;
  font-style: normal;
  font-weight: 700;
  line-height: 60px;
  text-transform: uppercase;
}

.carousel-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  box-sizing: border-box;
}

.viewport {
  overflow: hidden;
  border-radius: 15px;
}

.carousel {
  display: flex;
  transition: transform 0.5s ease;
  gap: 20px;
}

.carousel-wrapper,
.viewport {
  width: 100%;
  overflow: hidden;
}

.card {
  display: flex;
  flex: 0 0 382px;
  width: 382px;
  padding: 24px;
  border-radius: 12px;
  min-height: 236px;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  background: var(--Surface-Surface-white);
  border: 1px solid var(--Border-Border-Disabled);

  color: white;
  gap: 32px;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
  box-sizing: border-box;
  flex-shrink: 0;
}

.card:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.icono img {
  width: 132px;
  height: 30px;
}

.content {
  width: 100%;
}

.content p {
  width: 100%;
  height: auto;
  color: var(--Gray-Blue-800);
  font-family: var(--font-nav-rubik);
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.autor {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nombre {
  color: var(--Gray-Blue-800);
  font-family: var(--font-nav-rubik);
  font-size: 14px;
  font-weight: 700;
}

.cargo {
  color: var(--Gray-Blue-600);
  font-family: var(--font-nav-rubik);
  font-size: 14px;
  font-weight: 500;
  font-style: normal;
}

/* CONTROLES*/
.controls {
  margin-top: 15px;
  display: flex;
  justify-content: flex-start;
  gap: 15px;
}

.controls button {
  display: flex;
  width: 45px;
  height: 45px;
  padding: 11px 10px 10px 11px;
  align-items: flex-start;
  gap: 10px;
  border-radius: 22.5px;
  background: var(--Gray-Blue-50);
}

.controls button:hover {
  background: #ddd;
}
.dots {
  display: none;
}

@media (max-width: 768px) {
    .hero {
    position: relative;
    display: flex;
    flex-direction: column;
    height: auto;
  }

    .hero-content-wrap {
    order: 1;
    height: auto;
    padding: 60px 20px 20px;
    align-items: flex-start;
  }

    .contenido {
    width: 100%;
  }

    .hero-content {
    font-size: 42px;
    line-height: 48px;
  }
  
  .img-overlay {
    display: none; 
  }


   .portada {
    position: relative;  
    order: 2;
    width: 100%;
    height: 320px;
  }

  .img-fondo {
    width: 100%;
    height: 100%;
    right: 0;
    top: 0;
    transform: none;
  }


  .btn-primary {
    width: 80%;
  }

  /* ================= SECTION CARD ================= */

  .section-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 32px 24px;
    margin: auto;
  }

  .cards-sect {
    flex-direction: column;
    gap: 24px;
    padding-right: 0;
  }

  .card-1 {
    display: none;
  }

  .card1-contend h2 {
    text-align: center;
    width: 300px;
    margin: 0 auto;
  }

  /* ================= INFO SECTION ================= */
  .info {
    padding: 40px 20px;
  }

  .info h2 {
    text-align: center;
  }

  /* ================= CAROUSEL ================= */

  .viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .viewport::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
  }

  .carousel {
    display: flex;
    align-items: center;
    gap: 40px;
  }

  .card {
    filter: grayscale(0%);
    opacity: 1;
    scroll-snap-align: center;
  }

  .controls {
    display: none; /* opcional: ocultas botones en móvil */
  }

  .dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
  }

  .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cfcfcf;
    transition: 0.3s;
  }

  .dot.active {
    width: 24px;
    border-radius: 20px;
    background: var(--Primary-Brand-400-Brand);
  }
}
