/* Newsletter Grupo Lucci Mayo 2023
 * Autores: Ide Consultora & Emanuel Alderete
 * 
 * Instructivo:
 * El código CSS de esta hoja no está estrictamente relacionado con un elemento en concreto a no ser
 * sea invocado mediante su atributo "id" el cual debería ser único para cada elemento. Las reglas de CSS
 * aquí desarrolladas pueden ser utilizadas en más de un elemento en el que se buscó que tengan el mismo
 * comportamiento. Cabe destacar que las reglas declaradas en el apartado de "Declaraciones generales" son
 * posiblemente las que más se repitan en elementos del HTML.
 * Por este motivo no está tan separado el documento en apartados según la sección del HTML a la que referencien.
*/

/* Importaciones */
/* Fuentes */

@import url("https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

/* Declaraciones generales */

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Fira Sans", sans-serif;
  font-weight: 400;
}

.mainContainer {
  background-color: #dbdada;
  width: 100%;
  display: flex;
  justify-content: center;
}

.secondaryContianer {
  background-color: #ffffff;
  width: 70vw;
}

h1 {
  font-weight: 700;
}

h2,
h3,
h4,
h5,
h6 {
  font-weight: 500;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #67803c !important;
}

p {
  font-size: 100%;
  color: #606060;
}

hr {
  margin: 3rem 12rem !important;
}

.ceroaccidentes {
  font-size: 80%;
}

.buttons {
  background-color: #e58024;
  padding: 1rem 2.5rem;
  border-top-left-radius: 30px;
  border-bottom-right-radius: 30px;
  text-decoration: none;
  color: #ffffff;
  font-size: 120%;
  text-transform: uppercase;
  box-shadow: 0 0 10px #a1a1a1;
  transition: 250ms;
  cursor: pointer;
}

.buttons:hover,
.buttons:active {
  background-color: #606060;
}

.news {
  padding: 0 3rem;
  margin: 3rem 0;
}

.separatorSvg {
  width: 100%;
  padding: 0 8rem;
}

.photo {
  width: 100%;
  overflow: hidden;
}

.photo img {
  width: inherit;
}

.logoTitle {
  width: 100%;
  padding: 0 8rem;
  margin: 3rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logoTitle img {
  width: 16rem;
}

.photoBg {
  overflow: hidden;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

/* Efectos */

.thin {
  font-weight: 200;
}

.justified {
  text-align: justify;
}

/* HEADER */
/* Logo principal */

.brand {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 5rem 0 3rem 0;
}

.brand img {
  width: 18rem;
}

/* MAIN */

.bannerImg {
  width: 100%;
  padding: 0 3rem;
}

.bannerImg img {
  width: inherit;
}

/* Sección: Cumpleaños */

#birthday .bannerBg {
  height: 15rem;
}

#birthday .overlay {
  background-color: #3a4b0fb4 !important;
  width: inherit;
  height: inherit;
  display: flex;
  justify-content: center;
  align-items: center;
}

#birthday .overlay img {
  width: 10rem;
  height: 13rem;
  margin-right: 2rem;
}

#birthday .inner {
  display: flex;
  flex-direction: column;
}

#birthday .inner span {
  font-size: 200%;
  font-weight: 600;
}

#birthday .inner a {
  font-size: 80%;
  padding: 0.7rem 0rem !important;
  text-align: center;
  width: 8rem;
  border-top-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

/* Sección: Polinizadores */

#foto-polinizadores {
  width: 100%;
  height: 35rem;
}

#foto-polinizadores a {
  margin: 2rem;
}

/* Sección: Cosecha */

#foto-cosecha {
  background-image: url("/img/fotos/news_mayo_2023_campania.jpg");
  width: 100%;
  height: 35rem;
}

.videoControls {
  display: flex;
  margin: 2rem;
}

.videoControls .ytCircle {
  width: 4rem;
  height: 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 180%;
  border-radius: 100px;
  border: none;
  margin-left: 1rem;
  background-color: #e58024;
  color: #ffffff;
  transition: 250ms;
  text-decoration: none;
  box-shadow: 0 0 10px #a1a1a1;
}

.videoControls .ytCircle:hover,
.videoControls .ytCircle:active {
  background-color: #606060;
}

/* Sección: 1 Año Sin Accidentes */

#banner-unAñoSinAccidentes {
  width: 100%;
  height: 19rem;
  background-position: top !important;
}

#banner-unAñoSinAccidentes .inner {
  width: 25rem;
}

#banner-unAñoSinAccidentes .inner h4 {
  font-size: 2rem;
  margin-bottom: -0.2rem;
}

#banner-unAñoSinAccidentes .inner span {
  font-size: 1.3rem;
}

#banner-unAñoSinAccidentes .inner h4,
#banner-unAñoSinAccidentes .inner span {
  color: #b2bd99 !important;
}

#banner-unAñoSinAccidentes .inner p {
  color: #ffffff !important;
  font-size: 80%;
}

#banner-unAñoSinAccidentes .inner h4,
#banner-unAñoSinAccidentes .inner span,
#banner-unAñoSinAccidentes .inner p {
  filter: drop-shadow(2px 2px 3px #3f3f3f);
}

/* Sección: Aplicando la Primera S */

#foto-aplicandoPrimeraS {
  width: 100%;
  height: 20rem;
}

#foto-aplicandoPrimeraS a {
  margin: 2rem;
}

/* Sección: Brigadista */
#foto-brigadista {
  width: 100%;
  height: 20rem;
}

#foto-brigadista a {
  margin: 1.5rem;
}

/* Seccion: Sorteo */

.nestedContent {
  width: 100%;
}

.nestedContent .photo {
  width: 50%;
}

.nestedContent .photo img {
  width: 100%;
}

.winners p {
  font-size: 110%;
  margin-bottom: 2rem;
}

.participate {
  margin-top: 5rem;
  height: 12.8rem;
  background-size: cover;
}

.participate .overlay {
  background-color: #31313188;
  height: inherit;
  width: inherit;
}

.participate h5 {
  padding-top: 3rem !important;
}

.participate p {
  font-size: 100%;
  margin-top: 1rem;
}

.participate h5,
.participate p {
  color: #ffffff !important;
  padding-left: 2rem;
}

.participate .overlay a {
  padding: 0.8rem 0.8rem;
  font-size: 90%;
  margin-top: 5rem !important;
  margin-left: 2rem;
}

/* FOOTER */

/* Logos de las Compañias de GL */

.companies {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-evenly;
  flex-wrap: wrap;
}

.companyLogo {
  width: 9rem;
}

.companyLogo img {
  width: inherit;
  height: inherit;
}

footer .news {
  margin: 1rem;
}

footer .brand {
  width: 50%;
  justify-content: flex-end;
  margin: 2rem 0 !important;
}

.socialButtonAndWeb {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.socialButtons div {
  display: flex;
  justify-content: space-evenly;
}

.mini-separator {
  background-color: #67803c;
  width: 80%;
  border: 1px solid #67803c;
  margin: 1rem;
}

.socialButtons div a {
  width: 2.8rem;
  height: 2.8rem;
  background-color: #67803c;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
  border-radius: 100%;
  text-decoration: none;
  transition: 250ms;
  font-size: 130%;
}

.socialButtons div a:hover {
  background-color: #e58024;
}

.lucciWeb {
  color: #67803c;
  text-decoration: none;
}

/* Adaptabilidad */
/* Punto importante:
 * Algunos desarrolladores dan prioridad a la versión móvil por lo que desarrollan esta parte de acuerdo a los cambios
 * que quieren que tenga la página a mayores resoluciones. Esto es más complicado de administrar ya que cualquier cambio
 * importante hay que revisarlo en los media queries en lugar del cuerpo de la hoja de estilos.
 * Por lo tanto y para no tener esa complicación, decidí priorizar el desarrollo en la versión de escritorio de modo
 * que cualquier cambio que haya que corregir en el sitio en determinada resolución sea consultado en los media queries.
*/

@media (max-width: 1440px) {
  .news {
    padding: 0 4rem;
  }
  .companyLogo {
    width: 7.5rem;
  }
}

@media (max-width: 1300px) {
  h1 {
    font-size: 200% !important;
  }
  h2 {
    font-size: 180% !important;
  }
  h3 {
    font-size: 150% !important;
  }
  p {
    font-size: 110%;
  }
  .bannerImg {
    padding: 0 4rem;
  }
  .buttons {
    padding: 0.8rem 1.4rem;
    font-size: 100%;
    border-top-left-radius: 20px;
    border-bottom-right-radius: 20px;
  }
  .videoControls .ytCircle {
    font-size: 150%;
    width: 3rem;
    height: 3rem;
  }
  .photo {
    height: 50%;
  }
  .companies {
    justify-content: space-between;
  }
}

@media (max-width: 1024px) {
  .secondaryContianer {
    width: 94vw;
  }
  .logoTitle img {
    width: 13rem;
  }
  hr {
    margin: 3rem 8rem !important;
  }
  #birthday .overlay img {
    width: 6rem;
    height: 8rem;
  }
  .videoControls {
    margin: 1.6rem;
  }
  .brand img {
    width: 14rem;
  }
  .separatorSvg {
    padding: 0 1rem;
  }
}

@media (max-width: 800px) {
  .secondaryContianer {
    width: 100%;
  }
  .news {
    padding: 0 2rem;
  }
  .bannerImg {
    padding: 0 1.7rem;
  }
  #birthday .inner a {
    padding: 0.5rem 0 !important;
    width: 7rem;
  }
  #foto-polinizadores {
    height: 25rem;
  }
  .photo {
    height: 80vw;
  }
}

@media (max-width: 576px) {
  /* h1 {
        font-size: 150% !important;
    }
    h2 {
        font-size: 120% !important;
    }
    h3 {
        font-size: 100% !important;
    }
    p {
        font-size: 80%;
    } */
  .news {
    padding: 0 1rem;
  }
  .bannerImg {
    padding: 0 1rem;
  }
  .buttons {
    padding: 0.8rem 1.2rem;
    font-size: 90%;
    border-top-left-radius: 18px;
    border-bottom-right-radius: 18px;
  }
}
