/* FUENTES */

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Playfair+Display+SC:ital,wght@0,400;0,700;0,900;1,400;1,700;1,900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap");

.aviso-horizontal {
  display: none;
}

@media (orientation: landscape) and (max-width: 1300px) {
  .aviso-horizontal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 2rem;
    background: #20242b;
    color: #fff;
    font-family: "DM Sans", sans-serif;
    font-size: 1.25rem;
    text-align: center;
  }

  body>*:not(.aviso-horizontal) {
    visibility: hidden;
  }
}


/* ESTILOS */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

.texto--negrita {
  font-weight: bold;
}


/* NAVEGACIÓN */

.menu {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 3;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 24px;
  background-color: transparent;
  font-family: "DM Sans", sans-serif;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.menu.menu--scrolled {
  background-color: #a1c41ccc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.menu__logo {
  display: block;
  width: auto;
  max-width: 150px;
  max-height: 60px;
  object-fit: contain;
}

.menu__enlaces {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu__enlaces a {
  color: #fff;
  font-size: 17px;
  text-decoration: none;
  transition: color 0.3s;
}

.menu__enlaces a:hover {
  color: rgba(135, 139, 83, 1);
}

.menu__boton {
  display: none;
  border: 0;
  padding: 8px;
  color: #fff;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

/* HOME */

.portada {
  position: relative;

  display: flex;
  align-items: center;

  width: 100%;
  color: #fff;

  min-height: 100vh;
  min-height: 100svh;
}

.portada__video {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portada::after {
  position: absolute;
  inset: 0;
  z-index: 0;

  background: rgb(0 0 0 / 35%);
  content: "";
}

.portada__contenido {
  z-index: 1;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  width: 100%;
  height: 100%;
  padding: 50px;
}

.portada__principal {
  max-width: 500px;
  padding-top: 25px;
  margin-left: 2rem;
  text-align: left;
}

.portada__principal h1 {
  margin-top: 4.5rem;
  margin-bottom: 1.5rem;

  font-family: "Playfair Display SC", serif;
  font-size: 3.9rem;
  font-weight: normal;
  letter-spacing: 0.1rem;
  line-height: 3.5rem;
}

.portada__principal p {
  margin-bottom: 0.9rem;

  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.1rem;
}

.boton {
  display: inline-block;
  padding: 13px 22px;

  background-color: #a1c41c;
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
}

.boton:hover {
  background-color: #878b53;
}

.portada__datos {
  display: flex;
  justify-content: flex-end;
  gap: 17px;
  width: 100%;
}

.portada__dato {
  color: #fff;
  text-align: center;
}

.portada__dato h2 {
  color: #fff;
  font-family: "Playfair Display SC", serif;
  font-size: 4.2rem;
  font-weight: bold;
}

.portada__dato p {
  color: #fff;
  font-size: 1rem;
}


/* NUESTRA HISTORIA */

.historia {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 6rem;

  max-width: 1200px;
  margin: 4rem 0 4rem 13rem;
  color: #20242b;
}

.historia__imagen {
  display: flex;
  justify-content: center;
  margin: 7rem 0;
}

.historia__imagen img {
  width: 120%;
  height: 120%;
}

.historia__etiqueta {
  margin: 1.5rem 0 2rem;

  color: #000;
  font-family: "DM Sans", sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.historia__contenido h2 {
  padding-bottom: 1.5rem;

  font-family: "Playfair Display SC", serif;
  font-size: 2.5rem;
  font-weight: normal;
  line-height: 0.9;
}

.historia__lista {
  list-style: none;
}

.historia__item {
  position: relative;

  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1rem;

  padding-bottom: 1rem;
}

.historia__item:last-child {
  padding-bottom: 0;
}

.historia__item:not(:last-child)::after {
  position: absolute;
  top: 44px;
  bottom: 0;
  left: 21px;

  width: 0.1px;
  background: rgb(135 139 83 / 30%);
  content: "";
}

.historia__numero {
  z-index: 1;

  display: grid;
  place-items: center;

  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #878b53;
  color: #fff;
  font-weight: 500;
}

.historia__item h3 {
  margin: 0 0 0.4rem;

  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  font-weight: 600;
}

.historia__item p {
  color: #666d79;
  font-family: "DM Sans", sans-serif;
  font-size: 0.7rem;
  line-height: 1.2;
}


/* PROMOCIÓN */

.promocion {
  display: grid;
  place-items: center;

  min-height: 100vh;
  padding: 2rem;
  background: url("img/aceitunas_fondo.jpg") center / cover no-repeat;
  color: #fff;
  text-align: center;
}

.promocion__contenido h2 {
  margin-bottom: 1.5rem;

  font-family: "Playfair Display SC", serif;
  font-size: clamp(2.5rem, 8vw, 4.7rem);
  font-weight: 100;
  line-height: 1;
}


/* FRANJA */

.envios {
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 12.5vh;
  padding: 1rem;
  background-color: #a1c41c;
  color: #fff;
  text-align: center;
}

.envios p {
  font-family: "DM Sans", sans-serif;
  font-size: clamp(1rem, 2vw, 1.3rem);
}


/* PRODUCTOS */

.productos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
}

.producto {
  display: flex;
  min-width: 0;
  overflow: hidden;
}

.producto img,
.producto__contenido {
  width: 50%;
}

.producto img {
  display: block;
  min-height: 240px;
  object-fit: cover;
}

.producto--invertido {
  flex-direction: row-reverse;
}

.producto__contenido {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;

  padding: 1.5rem;
  background: #fff;
}

.producto__contenido h2 {
  margin: 5rem 0 2rem;

  color: #878b53;
  font-family: "Playfair Display SC", serif;
  font-size: 2.7rem;
  font-weight: 100;
  line-height: 2.4rem;
}

.producto__contenido p {
  margin: 0 0 2rem;

  color: gray;
  font-family: "DM Sans", sans-serif;
  font-size: 0.7rem;
}

.producto__contenido a {
  color: #878b53;
  font-family: "DM Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.producto__contenido a:hover {
  color: #a1c41c;
}


/* LLAMADO A LA ACCIÓN */

.llamado {
  display: flex;
  align-items: center;

  min-height: 80vh;
  padding: clamp(7rem, 7vw, 6rem);
  background: url("img/envase_fondo.jpg") center / cover no-repeat;
  color: #fff;
}

.llamado__contenido {
  width: min(100%, 650px);
  text-align: left;
}

.llamado h2 {
  max-width: 750px;
  margin-bottom: 2.5rem;

  font-size: clamp(2.5rem, 4.5vw, 2.4rem);
  font-weight: 100;
  line-height: 0.9;
}


/* PIE DE PÁGINA */

.pie {
  display: grid;
  grid-template-columns: 1.5fr 1.1fr 1.3fr 1fr;
  align-items: center;
  gap: 33px;

  padding: 20px;
  background: #878b53;
  color: #fff;
  font-family: "DM Sans", sans-serif;
}

.pie__logos {
  display: flex;
  align-items: center;
  gap: 45px;
  margin-left: 75px;
}

.pie__logos img {
  display: block;
  width: 110px;
  max-height: 200px;
  object-fit: contain;
}

.pie__ubicacion p {
  line-height: 2;
}

.pie__ubicacion h2 {
  margin-left: 70px;
  font-size: 17px;
}

.pie__mapa {
  position: relative;
  min-height: 150px;
}

.pie__mapa iframe {
  display: block;
  width: 100%;
  height: 190px;
  border: 0;
}

.pie__contacto h2 {
  margin: 0 0 17px 0;
  font-size: 17px;
}

.pie__enlaces {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-left: 5px;
}

.pie__enlaces a {
  display: grid;
  place-items: center;

  width: 40px;
  height: 40px;
  border: 1px solid #fff;
  border-radius: 50%;
  color: #fff;
  transition: background 0.2s, color 0.2s;
}

.pie__enlaces a:hover {
  background: #a1c41c;
  color: #18212b;
}

.pie__enlaces svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.pie__copyright {
  grid-column: 1 / -1;

  padding-top: 5px;
  border-top: 1px solid #fff;
  font-size: 14px;
}

/* RESPONSIVIDAD */

/* Tablets y pantallas medianas */

@media (max-width: 1024px) {
  .historia {
    gap: 3rem;
    margin: 4rem auto;
    padding: 0 2rem;
  }

  .historia__imagen {
    margin: 3rem 0;
  }

  .historia__imagen img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .producto__contenido {
    padding: 1.25rem;
  }

  .producto__contenido h2 {
    margin: 2rem 0 1.25rem;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.05;
  }

  .llamado {
    min-height:60svh;
    padding: 3rem 1.25rem;
    background-position: left;
  }

  .llamado__contenido h2 {
    margin-bottom: 1.5rem;
    font-size: 30px;
    line-height: 1;
  }

  .pie {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }

  .pie__logos {
    justify-content: center;
    gap: 1.5rem;
    margin-left: 0;
  }

  .pie__ubicacion h2 {
    margin-left: 0;
  }
}


/* Celulares */

@media (max-width: 767px) {
  .menu {
    flex-wrap: wrap;
    padding: 10px 16px;
  }

  .menu__enlaces {
    display: none;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    width: 100%;
    padding: 16px 0 8px;
  }

  .menu__enlaces.menu__enlaces--abierto {
    display: flex;
  }

  .menu__logo {
    max-width: 120px;
    max-height: 48px;
  }

  .menu__boton {
    display: block;
  }

  .portada {
    min-height: 100svh;
  }

  .portada__contenido {
    min-height: 100svh;
    justify-content: center;
    gap: 3rem;
    padding: 100px 1.25rem 2rem;
  }

  .portada__principal {
    max-width: 100%;
    padding-top: 0;
    margin-left: 0;
  }

  .portada__principal h1 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: clamp(2.4rem, 11vw, 3.4rem);
    line-height: 0.98;
    letter-spacing: 0.04rem;
  }

  .portada__principal p {
    max-width: 36rem;
    font-size: 0.75rem;
    line-height: 1.45;
  }

  .portada__datos {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem;
  }

  .portada__dato {
    flex: 1 1 100px;
  }

  .portada__dato h2 {
    font-size: clamp(2.2rem, 10vw, 3.3rem);
  }

  .portada__dato p {
    font-size: 0.85rem;
  }

  .historia {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 3rem auto;
    padding: 0 1.25rem;
  }

  .historia__imagen {
    order: 1;
    margin: 0;
    padding-top: 5rem;
  }

  .historia__imagen img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
  }

  .historia__contenido {
    order: 2;
  }

  .historia__etiqueta {
    margin: 1rem 0;
  }

  .historia__contenido h2 {
    padding-bottom: 1.25rem;
    font-size: clamp(2rem, 8vw, 2.5rem);
    line-height: 1;
  }

  .historia__item {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 0.75rem;
  }

  .historia__item h3 {
    font-size: 1.15rem;
  }

  .historia__item p {
    font-size: 0.65rem;
    line-height: 1.45;
  }

  .promocion {
    min-height: 70svh;
    padding: 2rem 1.25rem;
  }

  .promocion__contenido h2 {
    font-size: clamp(3.2rem, 10vw, 3.5rem);
  }

  .envios {
    min-height: auto;
    padding: 1.25rem;
  }

  .productos {
    grid-template-columns: 1fr;
  }

  .producto,
  .producto--invertido {
    flex-direction: column;
  }

  .producto img,
  .producto__contenido {
    width: 100%;
  }

  .producto img {
    min-height: 0;
    height: clamp(220px, 65vw, 360px);
  }

  .producto__contenido {
    padding: 1.5rem;
  }

  .producto__contenido h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    line-height: 1.05;
  }

  .producto__contenido p {
    margin-bottom: 1.25rem;
    font-size: 0.7rem;
    line-height: 1.45;
  }

  .llamado {
    min-height: 70svh;
    padding: 3rem 1.25rem;
    background-position: left;
  }

  .llamado__contenido h2 {
    margin-bottom: 1.5rem;
    font-size: 30px;
    line-height: 1;
  }

  .pie {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 2rem 1.25rem 1rem;
    text-align: center;
  }

  .pie__logos {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .pie__logos img {
    width: min(110px, 35vw);
    max-height: 100px;
  }

  .pie__ubicacion h2 {
    margin: 0 0 0.5rem;
  }

  .pie__ubicacion p {
    line-height: 1.6;
  }

  .pie__mapa {
    min-height: 0;
  }

  .pie__mapa iframe {
    height: 220px;
  }

  .pie__contacto h2 {
    margin-bottom: 1rem;
  }

  .pie__enlaces {
    justify-content: center;
    gap: 1rem;
    margin-left: 0;
  }

  .pie__copyright {
    padding-top: 1rem;
    font-size: 0.8rem;
  }
}

/* Celulares muy estrechos */

@media (max-width: 380px) {
  .portada__contenido {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .portada__principal h1 {
    font-size: 2.2rem;
  }

  .portada__datos {
    gap: 0.75rem;
  }

  .portada__dato h2 {
    font-size: 2rem;
  }

  .historia {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .producto__contenido {
    padding: 1.25rem;
  }
}