@import url("./style.css");

:root {
  --c-green-1: #e2edd6;
  --c-green-2: #d9e9d0;
  --c-green-3: #d0e4ca;

  --c-cyan-1: #cae6ee;
  --c-cyan-2: #d2ebf2;
  --c-cyan-3: #dceff4;
}

/* ============================================
   HERO
============================================ */

.header-nosotros {
  min-height: 100vh;
  height: auto;
  width: 100%;
  justify-content: start;
  padding: 0;
}

.hero-nosotros {
  padding: 0 clamp(1rem, 4vw, 3.75rem);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  max-width: 87.5rem;
  margin: auto;
}

.hero-text-content {
  text-align: center;
}

.hero-text-content .dongle-hero {
  font-size: var(--dongle-bold-xxl);
  line-height: var(--dongle-bold-lg);
}

.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -3.5rem;
  max-width: 1200px;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

main {
  padding: 5rem clamp(1rem, 4vw, 3.75rem);
}

.proximamente {
  width: 100%;
  max-width: 87.5rem;
  padding: clamp(1rem, 4vw, 3.75rem) 0;
  margin-top: 7rem;
  align-self: center;
  margin: auto;
}

.proximamente-proposito {
  width: 100%;
  justify-content: space-between;
  align-items: stretch;
  gap: 1rem;
}

.title-prox,
.text-prox {
  flex: 1;
}

.text-prox {
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.title-prox h3 {
  font-size: var(--dongle-bold-xxl);
  line-height: var(--dongle-bold-lg);
  text-align: left;
}

.text-prox p {
  font-size: 1.5rem;
  line-height: 1.3;
}

.contendor-card-nosotros {
  width: 100%;
  max-width: 1400px;
  margin-top: 7rem;
  gap: 2rem;
  align-self: center;
  margin: auto;
}

.card-nosotros {
  width: 100%;
  justify-content: space-between;
  align-items: stretch;
  gap: 1.5rem;
}

.card-nosotros.reverse {
  flex-direction: row-reverse;
}

.nosotros-image {
  max-width: 60px;
  width: 100%;
  height: auto;
}

.nosotros-image img {
  width: 100%;
  max-width: 60px;
  height: auto;
  display: block;
}

.item-card-nosotros,
.item-card-nosotros-bg {
  flex: 1 1 50%;
  border-radius: 4rem;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.item-card-nosotros {
  gap: 1.5rem;
  align-items: flex-start;
  padding: 5rem 3rem;
}

.item-card-nosotros h2 {
  font-size: var(--dongle-bold-lg);
  line-height: var(--dongle-bold-md-lh);
  text-align: left;
}

.item-card-nosotros p {
  font-size: 1.5rem;
  line-height: 1.3;
  max-width: 500px;
}

.item-card-nosotros-bg {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.valores {
  width: 100%;
  max-width: 1400px;
  padding: clamp(1rem, 4vw, 3.75rem) 0;
  margin-top: 7rem;
  justify-content: space-between;
  align-items: stretch;
  gap: 2rem;
  align-self: center;
  margin: auto;
}

.container-valores-title {
  flex: 1;
  justify-content: space-between;
  align-items: center;
}

.container-valores-title h3 {
  margin-top: 1rem;
}

.valores-image {
  max-width: 300px;
  width: 100%;
  height: auto;
}

.valores-image img {
  width: 100%;
  height: auto;
  display: block;
}

.items-valores {
  flex: 2;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.item-valores {
  width: 100%;
  padding: 1rem;
  border-radius: 1.5rem;
  gap: 1rem;
  justify-content: left;
}

.container-num {
  width: 70px;
  height: 70px;
  border-radius: 1rem;
  background-color: var(--color-white);

  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.container-num h4 {
  font-size: var(--dongle-bold-lg);
  line-height: var(--dongle-bold-lg-);
  margin-top: 0.5rem;
}

.title-valores {
  align-items: flex-start;
}

.title-valores h5 {
  font-size: var(--dongle-bold-xs);
  line-height: 1;
}

.title-valores p {
  font-size: var(--lato-regular-sm);
  line-height: 1;
}

/*Responsive*/

@media (max-width: 992px) {
  .hero-nosotros {
    padding: 28px 18px;
  }

  .hero-text-content {
    text-align: center;
    align-items: center;
    width: 95%;
  }

  .hero-image {
    margin-top: auto;
  }

  .hero-image img {
    max-width: 600px;
  }

  .proposito {
    margin-top: 4rem;
  }

  .contenedor-proximamente {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
  }

  .title-prox h3 {
    text-align: center;
  }

  .text-prox {
    align-items: center;
    gap: 1rem;
  }

  .contendor-card-nosotros {
    margin-top: 4rem;
  }

  .card-nosotros {
    flex-direction: column;
    align-items: center;
  }

  .card-nosotros.reverse {
    flex-direction: column;
  }

  .item-card-nosotros,
  .item-card-nosotros-bg {
    width: 100%;
    min-height: 400px;
  }

  .item-card-nosotros {
    padding: 3rem 2rem;
    text-align: center;
    align-items: center;
  }

  .item-card-nosotros h2 {
    text-align: center;
  }

  .item-card-nosotros p {
    max-width: 90%;
    text-align: center;
  }

  .valores {
    margin-top: 4rem;
    flex-direction: column;
  }

  .container-valores-title {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
  }

  .valores-image {
    max-width: 150px;
  }

  .container-num {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .hero-nosotros {
    flex-direction: column;
    padding: 28px 18px;
  }
  .hero-text-content {
    text-align: center;
    align-items: center;
    width: 95%;
  }

  .hero-text-content .dongle-hero {
        /* AJUSTE CLAVE: Reducimos ligeramente el font-size para 
           permitir que la línea quepa dentro de 378px. */
        font-size: 2.9rem; /* Probando con 2.9rem (en lugar de 3rem) */
        line-height: 1.1;
    }
  .hero-image {
    margin-top: 1rem;
  }

  .hero-image img {
    max-width: 320px;
  }

  main {
    padding: 3rem 1.5rem;
  }

  .card-nosotros {
    flex-direction: column;
    gap: 1.5rem;
  }

  .item-card-nosotros,
  .item-card-nosotros-bg {
    min-height: 320px;
    border-radius: 2rem;
  }

  .item-card-nosotros {
    padding: 2rem 1.5rem;
  }

  .container-num {
    width: 40px;
    height: 40px;
  }

  .text-prox p,
  .item-card-nosotros p {
    font-size: 1.2rem;
  }
}

@media (max-width: 380px) {
  .hero-text-content .dongle-hero {
    font-size: 2.7rem;
  }
}
