/* =========================================================
   SOBRE LA EMPRESA
========================================================= */

.company-about {
  position: relative;
  overflow: hidden;
  background: var(--white);
}


/* =========================================================
   1. QUIÉNES SOMOS
========================================================= */

.company-about__intro {
    padding-top: 120px;
  display: grid;

  grid-template-columns:
    minmax(0, .95fr)
    minmax(0, 1.05fr);

  align-items: center;

  gap: clamp(55px, 7vw, 100px);
}


/* =========================================================
   IMAGEN
========================================================= */

.company-about__visual {
  position: relative;

  min-width: 0;
  min-height: 570px;
}


/* fondo dorado superior */

.company-about__visual::before {
  position: absolute;

  z-index: 0;

  top: -22px;
  left: -22px;

  width: 42%;
  height: 38%;

  background: var(--gold);

  content: "";
}


/* fondo gris inferior */

.company-about__visual::after {
  position: absolute;

  z-index: 0;

  right: -22px;
  bottom: -22px;

  width: 45%;
  height: 42%;

  background: #edf2f4;

  content: "";
}


.company-about__visual > img {
  position: relative;

  z-index: 1;

  display: block;

  width: 100%;
  height: 570px;

  object-fit: cover;
}


/* =========================================================
   BADGE SOBRE IMAGEN
========================================================= */

.company-about__badge {
  position: absolute;

  z-index: 3;

  right: -25px;
  bottom: 35px;

  display: flex;

  min-width: 265px;

  align-items: center;

  gap: 13px;

  padding: 20px 22px;

  color: var(--white);
  background: var(--blue-deep);

  box-shadow: var(--shadow-soft);
}


.company-about__badge > .material-symbols-outlined {
  color: var(--gold);

  font-size: 35px;
}


.company-about__badge strong,
.company-about__badge span {
  display: block;
}


.company-about__badge strong {
  font-family: "Manrope", sans-serif;

  font-size: 15px;
  font-weight: 700;
}


.company-about__badge span {
  margin-top: 2px;

  color: rgba(255,255,255,.65);

  font-size: 11px;
}


/* =========================================================
   TEXTO QUIÉNES SOMOS
========================================================= */

.company-about__content {
  max-width: 650px;
}


.company-about__content h2 {
  margin: 0;

  color: var(--ink);

  font-family: "Manrope", sans-serif;

  font-size: clamp(2.5rem, 4vw, 3.7rem);

  font-weight: 700;

  line-height: 1.07;

  letter-spacing: -.045em;
}


.company-about__content h2 strong {
  display: block;

  color: var(--blue);
}


.company-about__description {
  margin-top: 30px;
}


.company-about__description p {
  margin: 0;

  color: var(--muted);

  font-size: 16px;

  line-height: 1.75;
}


.company-about__description p + p {
  margin-top: 18px;
}


.company-about__description strong {
  color: var(--blue-dark);

  font-weight: 700;
}


/* =========================================================
   ENCABEZADOS INTERNOS
========================================================= */

.company-section-heading {
  display: grid;

  grid-template-columns:
    minmax(0, .95fr)
    minmax(300px, .75fr);

  align-items: end;

  gap: 70px;

  margin-bottom: 42px;
}


.company-section-heading h2,
.company-centered-heading h2 {
  margin: 0;

  color: var(--ink);

  font-family: "Manrope", sans-serif;

  font-size: clamp(2.2rem, 4vw, 3.3rem);

  font-weight: 700;

  line-height: 1.08;

  letter-spacing: -.045em;
}


.company-section-heading h2 strong,
.company-centered-heading h2 strong {
  color: var(--blue);
}


.company-section-heading > p {
  margin: 0;

  color: var(--muted);

  font-size: 15px;

  line-height: 1.7;
}


/* encabezado centrado */

.company-centered-heading {
  max-width: 800px;

  margin: 0 auto 42px;

  text-align: center;
}


.company-centered-heading .eyebrow {
  margin-bottom: 10px;
}


/* =========================================================
   2. VISIÓN Y MISIÓN
========================================================= */

.company-purpose {
  margin-top: 125px;
}


.company-purpose__grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 18px;
}


/* =========================================================
   CARD VISIÓN / MISIÓN
========================================================= */

.company-purpose-card {
  position: relative;

  min-height: 350px;

  overflow: hidden;

  padding: 40px;

  color: var(--white);

  background: var(--blue);

  border-radius: 8px;

  isolation: isolate;

  transition:
    transform .3s ease,
    box-shadow .3s ease;
}


.company-purpose-card--mission {
  background: var(--blue-deep);
}


.company-purpose-card:hover {
  transform: translateY(-5px);

  box-shadow:
    0 22px 48px rgba(23,54,70,.18);
}


/* línea dorada superior */

.company-purpose-card::before {
  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 5px;

  background: var(--gold);

  content: "";
}


/* círculo decorativo */

.company-purpose-card::after {
  position: absolute;

  z-index: -1;

  top: -85px;
  right: -85px;

  width: 230px;
  height: 230px;

  border: 40px solid rgba(255,255,255,.045);

  border-radius: 50%;

  content: "";
}


/* número decorativo */

.company-purpose-card__number {
  position: absolute;

  z-index: -1;

  right: 25px;
  bottom: -48px;

  color: rgba(255,255,255,.06);

  font-family: "Manrope", sans-serif;

  font-size: 150px;

  font-weight: 800;

  line-height: 1;
}


/* icono */

.company-purpose-card__icon {
  display: grid;

  width: 62px;
  height: 62px;

  margin-bottom: 30px;

  place-items: center;

  color: var(--ink);

  background: #fff;

  border-radius: 50%;
}


.company-purpose-card__icon
.material-symbols-outlined {
  font-size: 31px;
}


/* label */

.company-purpose-card__label {
  display: block;

  margin-bottom: 5px;

  color: rgba(255,255,255,.58);

  font-size: 11px;

  font-weight: 800;

  letter-spacing: .11em;

  text-transform: uppercase;
}


.company-purpose-card h3 {
  margin: 0 0 14px;

  color: var(--white);

  font-family: "Manrope", sans-serif;

  font-size: 29px;

  font-weight: 700;
}


.company-purpose-card p {
  position: relative;

  z-index: 2;

  max-width: 530px;

  margin: 0;

  color: rgba(255,255,255,.76);

  font-size: 14px;

  line-height: 1.7;
}


/* =========================================================
   3. TRAYECTORIA
========================================================= */

.company-trajectory {
  margin-top: 120px;
}


.company-trajectory__grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  overflow: hidden;

  background: var(--white);

  border: 1px solid var(--line);

  box-shadow: var(--shadow-card);
}


.company-trajectory-item {
  display: flex;

  min-height: 220px;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  padding: 28px 20px;

  text-align: center;
}


.company-trajectory-item
+ .company-trajectory-item {
  border-left: 1px solid var(--line);
}


/* icono */

.company-trajectory-item__icon {
  display: grid;

  width: 68px;
  height: 68px;

  margin-bottom: 14px;

  place-items: center;

  color: var(--gold);
}


.company-trajectory-item__icon
.material-symbols-outlined {
  font-size: 54px;

  font-variation-settings:
    "FILL" 0,
    "wght" 300,
    "GRAD" 0,
    "opsz" 48;
}


.company-trajectory-item strong {
  display: block;

  color: var(--ink);

  font-family: "Manrope", sans-serif;

  font-size: 21px;

  font-weight: 800;

  line-height: 1.2;
}


.company-trajectory-item > span:last-child {
  margin-top: 5px;

  color: var(--muted);

  font-size: 13px;
}


/* =========================================================
   4. VALORES
========================================================= */

.company-values {
  margin-top: 120px;
}


.company-values__grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 22px;
}


.company-value-card {
  display: flex;

  min-width: 0;

  align-items: flex-start;

  gap: 20px;

  padding: 30px;

  background: #f8fafb;

  border: 1px solid var(--line);

  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}


.company-value-card:hover {
  transform: translateY(-4px);

  border-color: rgba(60,110,137,.25);

  box-shadow: var(--shadow-card);
}


/* icono */

.company-value-card__icon {
  display: grid;

  width: 60px;
  height: 60px;

  flex: 0 0 60px;

  place-items: center;

  color: var(--white);

  background: var(--blue);

  border-radius: 50%;
}


.company-value-card__icon
.material-symbols-outlined {
  font-size: 30px;
}


/* valor 2 dorado */

.company-value-card:nth-child(2)
.company-value-card__icon {
  color: var(--ink);

  background: var(--gold);
}


/* valor 3 oscuro */

.company-value-card:nth-child(3)
.company-value-card__icon {
  background: var(--blue-deep);
}


.company-value-card h3 {
  margin: 2px 0 8px;

  color: var(--ink);

  font-family: "Manrope", sans-serif;

  font-size: 18px;

  font-weight: 700;
}


.company-value-card p {
  margin: 0;

  color: var(--muted);

  font-size: 13px;

  line-height: 1.65;
}


/* =========================================================
   5. SOLUCIONES
========================================================= */

.company-solutions {
  margin-top: 120px;
  margin-bottom: 120px;
}


.company-solutions__grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 18px;
}


/* =========================================================
   CARD SOLUCIÓN
========================================================= */

.company-solution-card {
  display: grid;

  min-width: 0;

  grid-template-rows:
    225px
    minmax(210px, auto);

  overflow: hidden;

  background: var(--white);

  border: 1px solid var(--blue);
  

  border-radius: 8px;

  box-shadow: var(--shadow-card);

  transition:
    transform .3s ease,
    box-shadow .3s ease;
}


.company-solution-card:hover {
  transform: translateY(-5px);

  box-shadow:
    0 20px 45px rgba(24,52,66,.14);
}


/* =========================================================
   IMAGEN SOLUCIÓN
========================================================= */

.company-solution-card__image {
  min-height: 0;

  overflow: hidden;

  background: var(--sand);
}


.company-solution-card__image img {
  display: block;

  width: 100%;
  height: 225px;

  object-fit: cover;

  transition: transform .5s ease;
}


.company-solution-card:hover
.company-solution-card__image img {
  transform: scale(1.04);
}


/* =========================================================
   CONTENIDO SOLUCIÓN
========================================================= */

.company-solution-card__content {
  display: flex;

  min-width: 0;

  flex-direction: column;

  align-items: flex-start;

  padding: 25px;
}


.company-solution-card__content
> .material-symbols-outlined {
  margin-bottom: 13px;

  color: var(--gold-dark);

  font-size: 32px;
}


.company-solution-card h3 {
  margin: 0 0 9px;

  color: var(--ink);

  font-family: "Manrope", sans-serif;

  font-size: 18px;

  font-weight: 700;

  line-height: 1.3;
}


.company-solution-card p {
  margin: 0;

  color: var(--muted);

  font-size: 14px;

  line-height: 1.6;
}


/* =========================================================
   CARD AZUL
========================================================= */

.company-solution-card--blue {
  background: var(--blue);

  border-color: var(--blue);
}


.company-solution-card--blue
.company-solution-card__content {
  color: var(--white);
}


.company-solution-card--blue h3 {
  color: var(--white);
}


.company-solution-card--blue p {
  color: rgba(255,255,255,.78);
}


.company-solution-card--blue
.company-solution-card__content
> .material-symbols-outlined {
  color: var(--gold);
}


/* =========================================================
   TABLET GRANDE
========================================================= */

@media (max-width: 1080px) {

  .company-about__intro {
    gap: 55px;
  }


  .company-about__visual,
  .company-about__visual > img {
    min-height: 520px;
    height: 520px;
  }


  .company-about__badge {
    right: 20px;
  }


  .company-solutions__grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

  /* INTRO */

  .company-about__intro {
    grid-template-columns: 1fr;

    gap: 65px;
  }


  .company-about__visual {
    max-width: 720px;
  }


  .company-about__content {
    max-width: 720px;
  }


  /* HEADINGS */

  .company-section-heading {
    grid-template-columns: 1fr;

    gap: 14px;
  }


  .company-section-heading > p {
    max-width: 650px;
  }


  /* VISIÓN / MISIÓN */

  .company-purpose {
    margin-top: 95px;
  }


  .company-purpose-card {
    min-height: 380px;

    padding: 35px 30px;
  }


  /* TRAYECTORIA */

  .company-trajectory__grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }


  .company-trajectory-item:nth-child(3),
  .company-trajectory-item:nth-child(4) {
    border-top: 1px solid var(--line);
  }


  .company-trajectory-item:nth-child(3) {
    border-left: 0;
  }


  /* VALORES */

  .company-values__grid {
    grid-template-columns: 1fr;
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 580px) {

  /* =======================================================
     INTRO
  ======================================================= */

  .company-about__intro {
    gap: 50px;
  }


  .company-about__visual {
    min-height: auto;
  }


  .company-about__visual > img {
    width: 100%;
    height: 390px;

    min-height: 0;
  }


  .company-about__visual::before {
    top: -10px;
    left: -10px;
  }


  .company-about__visual::after {
    right: -10px;
    bottom: -10px;
  }


  .company-about__badge {
    right: 12px;
    bottom: 17px;

    min-width: 0;

    max-width: calc(100% - 24px);

    padding: 15px 17px;
  }


  .company-about__badge
  > .material-symbols-outlined {
    font-size: 28px;
  }


  .company-about__content h2 {
    font-size: 2.3rem;
  }


  .company-about__description {
    margin-top: 24px;
  }


  .company-about__description p {
    font-size: 15px;

    line-height: 1.7;
  }


  /* =======================================================
     ESPACIADOS
  ======================================================= */

  .company-purpose,
  .company-trajectory,
  .company-values,
  .company-solutions {
    margin-top: 80px;
  }


  /* =======================================================
     HEADINGS
  ======================================================= */

  .company-section-heading,
  .company-centered-heading {
    margin-bottom: 30px;
  }


  .company-section-heading h2,
  .company-centered-heading h2 {
    font-size: 2.15rem;
  }


  /* =======================================================
     VISIÓN Y MISIÓN
  ======================================================= */

  .company-purpose__grid {
    grid-template-columns: 1fr;
  }


  .company-purpose-card {
    min-height: auto;

    padding: 30px 24px;
  }


  .company-purpose-card__icon {
    width: 54px;
    height: 54px;

    margin-bottom: 24px;
  }


  .company-purpose-card h3 {
    font-size: 24px;
  }


  .company-purpose-card p {
    font-size: 13px;
  }


  .company-purpose-card__number {
    font-size: 110px;
  }


  /* =======================================================
     TRAYECTORIA
  ======================================================= */

  .company-trajectory__grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }


  .company-trajectory-item {
    min-height: 185px;

    padding: 20px 10px;
  }


  .company-trajectory-item__icon {
    width: 55px;
    height: 55px;
  }


  .company-trajectory-item__icon
  .material-symbols-outlined {
    font-size: 44px;
  }


  .company-trajectory-item strong {
    font-size: 17px;
  }


  .company-trajectory-item > span:last-child {
    font-size: 11px;
  }


  /* =======================================================
     VALORES
  ======================================================= */

  .company-value-card {
    padding: 22px 18px;
  }


  .company-value-card__icon {
    width: 52px;
    height: 52px;

    flex-basis: 52px;
  }


  .company-value-card h3 {
    font-size: 16px;
  }


  /* =======================================================
     SOLUCIONES
  ======================================================= */

  .company-solutions__grid {
    grid-template-columns: 1fr;
  }


  .company-solution-card {
    grid-template-rows:
      210px
      auto;
  }


  /*
   * Las cards azules tienen texto arriba e imagen abajo.
   * En mobile mantenemos esa composición.
   */

  .company-solution-card__content {
    padding: 22px;
  }

}