
/* --------------------------------
   YO HAGO MI ACEITE
   Diseño mediterráneo minimalista
--------------------------------- */

:root {
  --background: #f5f2e9;
  --background-dark: #eae6d9;
  --olive: #596548;
  --olive-light: #879074;
  --text: #393a30;
  --muted: #858475;
  --gold: #b19a6d;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--text);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.8;
}

/* HERO */

.hero {
  min-height: 740px;
  max-width: 1440px;
  margin: auto;
  padding: 100px 10%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
}

.hero-content {
  max-width: 550px;
  z-index: 2;
}

.eyebrow,
.section-number {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--olive);
  margin-bottom: 35px;
}

.hero h1 {
  font-size: clamp(65px, 8vw, 112px);
  line-height: 0.98;
  font-weight: normal;
  letter-spacing: -5px;
  color: var(--olive);
}

.hero h1 em {
  color: var(--gold);
  font-weight: normal;
}

.subtitle {
  font-size: 25px;
  font-style: italic;
  margin-top: 30px;
  color: var(--olive);
}

.hero-description {
  max-width: 380px;
  font-size: 17px;
  color: var(--muted);
  margin-top: 35px;
  line-height: 1.9;
}

.discover {
  display: inline-block;
  margin-top: 50px;
  font-family: Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--olive);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 10px;
}

.discover span {
  margin-left: 15px;
  font-size: 17px;
}

/* ILUSTRACIÓN */

.hero-art {
  width: 44%;
  max-width: 480px;
  animation: appear 1.5s ease;
}

.hero-art svg {
  width: 100%;
  height: auto;
}

@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(25px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* INTRODUCCIÓN */

.intro {
  background: var(--white);
  padding: 125px 20px;
  text-align: center;
}

.intro h2,
.essence h2,
.closing h2 {
  font-size: clamp(38px, 5vw, 58px);
  font-weight: normal;
  color: var(--olive);
  line-height: 1.2;
  margin-bottom: 35px;
}

.intro p,
.essence p,
.closing p {
  max-width: 590px;
  margin: 0 auto 20px;
  color: #77776b;
  font-size: 17px;
}

/* REFLEXIÓN */

.quote-section {
  background: var(--background-dark);
  padding: 130px 20px;
  text-align: center;
}

.quote-inner {
  max-width: 750px;
  margin: auto;
}

.quote-inner blockquote {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.3;
  color: var(--olive);
  font-style: italic;
  margin-bottom: 40px;
}

.quote-inner p {
  max-width: 520px;
  margin: auto;
  color: #77776b;
  font-size: 17px;
}

/* ESENCIA */

.essence {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 550px;
  background: var(--white);
}

.essence-image {
  min-height: 550px;
  background:
    linear-gradient(
      rgba(43, 47, 31, 0.08),
      rgba(43, 47, 31, 0.08)
    ),
    url("../images/aceitera.jpg")
    center / cover no-repeat;
  position: relative;
}

.image-caption {
  position: absolute;
  bottom: 30px;
  left: 35px;
  color: white;
  font-family: Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 3px;
}

.essence-content {
  padding: 100px 12%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.essence-content .section-number {
  margin-bottom: 30px;
}

.essence-content h2 {
  margin-bottom: 30px;
}

.essence-content p {
  margin: 0 0 20px;
}

/* CIERRE */

.closing {
  text-align: center;
  padding: 140px 20px;
  background: var(--background);
}

.closing h2 {
  font-size: clamp(65px, 9vw, 105px);
  letter-spacing: -4px;
  margin: 25px 0 35px;
}

.closing-emphasis {
  color: var(--olive) !important;
  font-style: italic;
  margin-top: 35px !important;
}

.signature {
  display: inline-block;
  margin-top: 45px;
  font-size: 20px;
  font-style: italic;
  color: var(--gold);
}

/* PIE */

footer {
  padding: 35px 20px;
  background: #424b38;
  color: #e8e5d9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 1.5px;
}

footer span:last-child {
  color: #c4c5b7;
  letter-spacing: 0.5px;
}

/* MÓVILES */

@media (max-width: 768px) {

  .hero {
    min-height: auto;
    padding: 85px 8% 55px;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero h1 {
    font-size: 76px;
  }

  .hero-art {
    width: 85%;
    max-width: 380px;
    align-self: center;
    margin-top: 30px;
  }

  .intro,
  .quote-section {
    padding: 90px 25px;
  }

  .essence {
    grid-template-columns: 1fr;
  }

  .essence-image {
    min-height: 350px;
  }

  .essence-content {
    padding: 85px 9%;
  }

  .closing {
    padding: 100px 25px;
  }

  .closing h2 {
    font-size: 72px;
  }

  footer {
    flex-direction: column;
    text-align: center;
    padding: 30px 15px;
  }

}
