/* Variables de color y tipografía */
:root {
  --color-primary: #4BAE4F;      /* verde oliva fresco */
  --color-secondary: #E38B29;    /* naranja tostado */
  --color-accent: #F4C95D;       /* amarillo suave */
  --color-dark: #2A3D45;         /* azul gris oscuro */
  --color-light: #F8F6F1;        /* beige claro */
  --color-neutral: #ffffff;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Nunito', sans-serif;
}

/* Reset y base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--color-dark);
  background-color: var(--color-light);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--color-primary);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 24px;
  cursor: pointer;
  background: none;
  border: none;
}

.nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-dark);
  border-radius: 2px;
}

.nav__list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav__list li a {
  text-decoration: none;
  color: var(--color-dark);
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav__list li a:hover {
  color: var(--color-primary);
}

/* Hero */
.hero {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-light);
  overflow: hidden;
}

.hero__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('img/hero.png');
  background-size: cover;
  background-position: center;
  filter: brightness(0.7);
  z-index: -1;
}

.hero__content {
  position: relative;
  max-width: 700px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.hero__subtitle {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #f0f0f0;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-primary);
  color: var(--color-neutral);
  border: none;
  border-radius: 25px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: var(--color-secondary);
}

/* Section base styling */
.section {
  padding: 4rem 0;
}

.section__title {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 2rem;
  position: relative;
  color: var(--color-dark);
}

.section__title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--color-secondary);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

/* Cards (facts) */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--color-neutral);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card__icon {
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.card__title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--color-dark);
}

.card__text {
  font-size: 0.95rem;
  color: #555;
}

/* Tips */
.tips {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.tips li {
  background: var(--color-neutral);
  border-left: 4px solid var(--color-primary);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  position: relative;
  padding-left: 2.5rem;
  line-height: 1.4;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.tips .check {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-color: var(--color-primary);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tips .check::after {
  content: '';
  width: 6px;
  height: 10px;
  border: solid var(--color-neutral);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.stat {
  background: var(--color-neutral);
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.stat__number {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.stat__text {
  font-size: 0.9rem;
  color: #555;
}

/* Recipes */
.recipes {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.recipes__image {
  flex: 1 1 350px;
  min-height: 300px;
  background-image: url('img/recipes.png');
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.recipes__list {
  flex: 1 1 350px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.recipe {
  background: var(--color-neutral);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.recipe h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: var(--color-dark);
}

.recipe p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.5rem;
}

/* Stories */
.stories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.story {
  background: var(--color-neutral);
  border-left: 4px solid var(--color-secondary);
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.story h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--color-dark);
}

.story p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.4;
}

/* About */
.section--about {
  background: var(--color-primary);
  color: var(--color-neutral);
}

.section--about .section__title {
  color: var(--color-neutral);
}

.section--about p {
  font-size: 1rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Contact */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.form-group--checkbox {
  flex-direction: row;
  align-items: center;
}

.form-group--checkbox label {
  margin-left: 0.5rem;
  font-weight: normal;
  display: inline-block;
}

.contact-form button {
  align-self: center;
  margin-top: 1rem;
}

/* Footer */
.footer {
  background: var(--color-dark);
  color: var(--color-light);
  text-align: center;
  padding: 1rem 0;
}

.footer p {
  font-size: 0.85rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav__list {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    background: var(--color-neutral);
    flex-direction: column;
    padding-top: 5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    gap: 1rem;
    z-index: 999;
  }
  .nav__list.open {
    transform: translateX(0);
    box-shadow: -4px 0 6px rgba(0, 0, 0, 0.1);
  }
  .nav__toggle {
    display: flex;
  }
}