/*------- Globales --------*/
*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --VeryDarkGrayishBlue: hsl(217, 19%, 35%);
  --DesaturatedDarkBlue: hsl(214, 17%, 51%);
  --GrayishBlue: hsl(212, 23%, 69%);
  --LightGrayishBlue: hsl(210, 46%, 95%);
  --white: #ffffff;

  --fuente: "Manrope", sans-serif;
  --sm: 1rem;
  --md: 1.6rem;
  --lg: 2.8rem;
}

html {
  font-size: 62.5%;
}

.body__home {
  font-family: var(--fuente);
  font-weight: 500;
  font-style: normal;
  background-color: var(--LightGrayishBlue);
}

.conteiner__grid {
  display: grid;
  max-width: 980px;
  grid-template-columns: 1fr 2fr;
  height: 90vh;
  place-content: center;
  margin: auto;
}

/*-----------IMG---------------*/

.contenedor__principal figure {
  height: 100%;
}

.contenedor__principal figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem 0 0 1rem;
}

/*----------PARRAFOS -------------*/

.contenedor__secundario {
  background-color: var(--white);
  border-radius: 0 1rem 1rem;
  padding: 3rem 4rem;
}

.contenedor__secundario--title {
  font-size: var(--lg);
  color: var(--VeryDarkGrayishBlue);
  margin-bottom: 2rem;
  font-weight: bold;
}

.contenedor__secundario--paragraph {
  font-size: var(--md);
  color: var(--DesaturatedDarkBlue);
  margin-bottom: 2rem;
}

.contenedor__secundario--autor {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
}

.contenedor__secundario--autor .profile {
  display: flex;
}

.contenedor__secundario--autor img {
  border-radius: 50%;
  height: 4rem;
  width: 4rem;
}

.contenedor__secundario--autor h3 {
  color: var(--VeryDarkGrayishBlue);
  font-weight: 700;
  font-size: var(--md);
  margin-left: 1rem;
}

.contenedor__secundario--autor p {
  color: var(--GrayishBlue);
  font-size: var(--md);
  margin-left: 1rem;
  font-weight: 500;
}

.contenedor__secundario--autor .share__icon {
  background-color: var(--VeryDarkGrayishBlue);
  cursor: pointer;
  align-items: center;
  margin-right: 2rem;
}

.icons__compartir {
  position: relative;
}

.icons {
  background-color: var(--VeryDarkGrayishBlue);
  width: 20rem;
  height: 6rem;
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  font-size: var(--md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 0.5rem;
  position: absolute;
  bottom: 10px;
  z-index: 100;
  display: none;
}

.icons .icons__compartir-activo {
  display: block;
}

.icons__compartir img {
  width: 3rem;
  height: 3rem;
  padding: 0.4rem;
}

/*--------MEDIA QUERYS---------*/

@media (max-width: 800px) {
  .conteiner__grid {
    grid-template-rows: 1fr 1fr 1fr;
    grid-template-columns: auto;
    max-width: 500px;
    margin: 4rem auto;
  }

  .contenedor__principal--figure {
    grid-column: 1;
    height: 50%;
  }

  .contenedor__principal figure img {
    border-top-right-radius: 1rem;
    border-bottom-left-radius: 0;
  }

  .contenedor__secundario {
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 0;
  }
}

@media (max-width: 375px) {
  .conteiner__grid {
    max-width: 320px;
  }
}
