/* ================================
   SECTION SOBRE MÍ
================================ */

.section-sobreMi {
  position: relative;
  overflow: hidden;

  background-color: var(--color6);

  padding: 4rem 2rem;

  color: var(--color1);

  scroll-margin-top: 100px;
}

/* Líneas lilas decorativas a la derecha */
.section-sobreMi::after {
  content: "";

  position: absolute;

  right: -28px;
  top: 52%;

  transform: translateY(-50%) scaleX(-1);

  width: 110px;
  height: 220px;

  background-image: url("../img/lineas-lila.png");
  background-size: contain;
  background-position: right center;
  background-repeat: no-repeat;

  opacity: 0.18;

  pointer-events: none;

  z-index: 0;
}

.section-sobreMi .wrapper {
  position: relative;
  z-index: 1;

  max-width: 1200px;

  margin: 0 auto;
}


/* ================================
   BLOQUE PRINCIPAL
================================ */

.sobre-grid {
  display: flex;

  flex-direction: column;

  gap: 2rem;

  align-items: center;
}

.sobre-copy {
  text-align: center;
}


/* ================================
   ENCABEZADO
================================ */

.sobre-copy .eyebrow {
  margin-bottom: 1rem;

  color: var(--color2);

  font-size: 0.9rem;

  font-weight: 600;

  letter-spacing: 0.5px;
}

.sobre-copy h2 {
  font-family: "Poppins", sans-serif;

  font-size: 1.8rem;

  line-height: 1.3;

  color: var(--color1);

  margin-bottom: 2rem;
}


/* ================================
   TEXTOS
================================ */

.sobre-copy p {
  font-size: 1rem;

  line-height: 1.6rem;

  color: var(--color3);

  margin-bottom: 1.2rem;

  text-align: center;
}

.sobre-copy p strong {
  font-size: 1.05rem;

  color: var(--color3);
}


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

.sobre-imagen {
  max-width: 400px;

  width: 100%;

  margin: 0 auto;
}

.sobre-imagen img {
  width: 100%;

  height: auto;
}


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

.wrapper.valores-grid {
  display: flex;

  flex-direction: column;

  gap: 1.5rem;

  margin: 4.5rem auto 0;
}

.valores-grid article {
  background-color: var(--color11);

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

  border-radius: 12px;

  padding: 1.5rem;

  text-align: center;

  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.08);

  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}


/* ================================
   NÚMEROS
================================ */

.valores-grid article span {
  width: 30px;

  height: 30px;

  display: flex;

  align-items: center;

  justify-content: center;

  margin: 0 auto 0.8rem;

  background-color: var(--color2);

  border-radius: 50%;

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

  font-size: 0.85rem;

  font-weight: 700;

  color: var(--color11);

  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}


/* ================================
   TEXTOS DE VALORES
================================ */

.valores-grid article h3 {
  font-family: "Poppins", sans-serif;

  font-size: 1.15rem;

  color: var(--color1);

  margin-bottom: 0.5rem;

  transition: color 0.3s ease;
}

.valores-grid article p {
  font-size: 0.85rem;

  line-height: 1.4rem;

  color: var(--color4);

  transition: color 0.3s ease;
}


/* ================================
   HOVER DE CARDS
================================ */

@media (hover: hover) and (pointer: fine) {

  .valores-grid article:hover {
    background-color: var(--color2);

    border-color: var(--color2);

    transform: translateY(-5px);

    box-shadow: 0 8px 16px rgba(47, 28, 106, 0.15);
  }

  .valores-grid article:hover span {
    background-color: var(--color11);

    color: var(--color2);
  }

  .valores-grid article:hover h3,
  .valores-grid article:hover p {
    color: var(--color11);
  }

}


/* ================================
   CIERRE
================================ */

.wrapper.sobre-cierre {
  margin: 3.5rem auto 0;

  padding: 1.2rem 1.8rem;

  background-color: var(--color7);

  border-radius: 10px;

  color: var(--color3);

  font-size: 0.9rem;

  line-height: 1.5rem;

  font-weight: 600;

  font-style: italic;

  text-align: center;
}


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

@media screen and (min-width: 768px) {

  .section-sobreMi::after {
    right: -22px;

    top: 52%;

    width: 140px;

    height: 280px;

    opacity: 0.19;
  }

  .sobre-copy .eyebrow {
    font-size: 1rem;
  }

  .sobre-copy h2 {
    font-size: 2.2rem;
  }

  .sobre-copy p {
    font-size: 1.05rem;

    line-height: 1.7rem;
  }

  .sobre-copy p strong {
    font-size: 1.1rem;
  }

  .sobre-imagen {
    max-width: 450px;
  }

  .wrapper.valores-grid {
    flex-direction: row;

    gap: 1.5rem;

    margin: 5rem auto 0;
  }

  .valores-grid article {
    flex: 1;

    padding: 1.5rem;
  }

  .valores-grid article span {
    width: 32px;

    height: 32px;

    font-size: 0.9rem;
  }

  .valores-grid article h3 {
    font-size: 1.2rem;
  }

  .valores-grid article p {
    font-size: 0.9rem;

    line-height: 1.4rem;
  }

  .wrapper.sobre-cierre {
    margin: 3.5rem auto 0;

    padding: 1.2rem 2.5rem;

    font-size: 0.95rem;

    line-height: 1.5rem;
  }

}


/* ================================
   DESKTOP
================================ */

@media screen and (min-width: 1024px) {

  .section-sobreMi {
    padding: 5rem 2rem;
  }

  .section-sobreMi::after {
    right: -12px;

    top: 50%;

    width: 180px;

    height: 340px;

    opacity: 0.20;
  }


  /* BLOQUE TEXTO + IMAGEN */

  .sobre-grid {
    display: grid;

    grid-template-columns: 1.15fr 0.85fr;

    gap: 5rem;

    align-items: center;
  }

  .sobre-copy {
    text-align: left;
  }


  /* ENCABEZADO */

  .sobre-copy .eyebrow {
    font-size: 1rem;
  }

  .sobre-copy h2 {
    font-size: 2.5rem;

    line-height: 1.25;

    margin-bottom: 2.5rem;
  }


  /* TEXTOS */

  .sobre-copy p {
    font-size: 1.2rem;

    line-height: 1.65rem;

    text-align: left;

    margin-bottom: 1.4rem;
  }

  .sobre-copy p strong {
    font-size: 1.2rem;
  }


  /* IMAGEN */

  .sobre-imagen {
    max-width: 430px;

    margin: 0 auto;
  }


  /* VALORES */

  .wrapper.valores-grid {
    gap: 2rem;

    margin: 5rem auto 0;
  }

  .valores-grid article {
    padding: 1.4rem 2rem;
  }

  .valores-grid article span {
    width: 32px;

    height: 32px;

    font-size: 0.9rem;

    margin-bottom: 0.8rem;
  }

  .valores-grid article h3 {
    font-size: 1.2rem;
  }

  .valores-grid article p {
    font-size: 1rem;

    line-height: 1.4rem;
  }


  /* CIERRE */

  .wrapper.sobre-cierre {
    margin: 3.5rem auto 0;

    padding: 1.2rem 3rem;

    font-size: 1rem;

    line-height: 1.5rem;
  }

}