/* ==========================================================================
   AGRÍCOLA AGUAR - STYLESHEET
   Accurate Replica of Editorial Agricultural Design
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,400&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  /* Color Palette matching reference mockup */
  --color-primary-dark: #153221;
  --color-primary-deep: #11281b;
  --color-primary-forest: #1b3d29;
  
  --color-gold: #dfb76c;
  --color-gold-hover: #ce9f4c;
  --color-gold-muted: #a68342;
  --color-gold-light: #f7ecd7;
  
  --color-bg-sand: #f6f5ee;
  --color-bg-process: #ebefe7;
  --color-card-bg: #ffffff;
  
  --color-text-dark: #163422;
  --color-text-body: #607266;
  --color-text-light: #f4f6f3;
  --color-text-muted: #8d9e92;
  
  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-accent: 'Outfit', sans-serif;
  
  /* Layout */
  --max-width: 1240px;
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 10px 30px -5px rgba(20, 48, 30, 0.06);
  --shadow-card-hover: 0 20px 40px -10px rgba(20, 48, 30, 0.14);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text-body);
  background-color: var(--color-bg-sand);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition-smooth);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.site-header {
  background-color: var(--color-primary-dark);
  padding: 0.85rem 0;
  width: 100%;
  position: relative;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.logo-leaf-icon {
  width: 32px;
  height: 32px;
  color: var(--color-gold);
  flex-shrink: 0;
  transition: transform 0.4s ease;
}

.brand-logo:hover .logo-leaf-icon {
  transform: rotate(8deg) scale(1.06);
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

/* Menu */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2.2rem;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  padding: 0.35rem 0;
  transition: color 0.25s ease;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link.active {
  color: #ffffff;
  font-weight: 500;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-gold);
  border-radius: 2px;
}

/* Header Right Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-gold);
  color: var(--color-primary-dark);
  font-weight: 600;
  font-size: 0.86rem;
  padding: 0.55rem 1.35rem;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(223, 183, 108, 0.2);
  transition: var(--transition-smooth);
}

.btn-contact:hover {
  background-color: var(--color-gold-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(223, 183, 108, 0.3);
}

.btn-contact svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
  transition: transform 0.25s ease;
}

.btn-contact:hover svg {
  transform: translateX(3px);
}

.lang-selector {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  padding: 0.3rem 0.1rem;
  transition: color 0.2s ease;
}

.lang-selector:hover {
  color: #ffffff;
}

.lang-selector svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.4;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: #ffffff;
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* ==========================================================================
   HERO BANNER
   ========================================================================== */
.hero-section {
  position: relative;
  background-color: var(--color-primary-dark);
  background-image: url('../images/hero-orchard.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: clamp(300px, 36vh, 400px);
  display: flex;
  align-items: center;
  padding: 2rem 0 2.2rem;
  color: #ffffff;
  overflow: hidden;
}

.hero-container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 520px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7), 0 1px 3px rgba(0, 0, 0, 0.85);
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.6rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.3rem, 3.2vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 0.7rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.35;
  color: #ffffff;
  margin-bottom: 0.65rem;
}

.hero-description {
  font-size: 0.86rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.35rem;
  max-width: 460px;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background-color: var(--color-gold);
  color: var(--color-primary-dark);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.75rem 1.65rem;
  border-radius: 9999px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: var(--transition-smooth);
}

.btn-hero:hover {
  background-color: var(--color-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.btn-hero svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.5;
  transition: transform 0.25s ease;
}

.btn-hero:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   PRODUCTS SECTION
   ========================================================================== */
.products-section {
  position: relative;
  background-color: var(--color-bg-sand);
  padding: 2.2rem 0 3.6rem;
  overflow: hidden;
}

.watermark-left,
.watermark-right {
  position: absolute;
  pointer-events: none;
  opacity: 0.08;
  color: #274e34;
  z-index: 0;
}

.watermark-left {
  top: 12%;
  left: -25px;
  width: 230px;
  transform: rotate(-15deg);
}

.watermark-right {
  top: 25%;
  right: -30px;
  width: 260px;
  transform: rotate(20deg);
}

.section-header {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 1.6rem;
}

.eyebrow-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 0.4rem;
}

.eyebrow-line {
  display: inline-block;
  width: 38px;
  height: 1px;
  background-color: var(--color-gold-muted);
  opacity: 0.55;
}

.section-eyebrow {
  font-family: var(--font-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold-muted);
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--color-text-dark);
  letter-spacing: -0.01em;
}

/* Grid of 4 Cards */
.products-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.product-card {
  background-color: var(--color-card-bg);
  border-radius: 18px;
  padding: 0.75rem 0.75rem 1.15rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.product-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: 12px;
  overflow: hidden;
  background-color: #f1ede4;
  margin-bottom: 0.85rem;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-img {
  transform: scale(1.05);
}

.product-info {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 0.4rem;
  gap: 0.8rem;
  flex-grow: 1;
}

.product-texts {
  flex: 1;
}

.product-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 0.35rem;
  line-height: 1.25;
}

.product-desc {
  font-size: 0.77rem;
  line-height: 1.45;
  color: #657569;
}

.product-btn-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e7e2d7;
  background-color: #faf8f5;
  color: var(--color-gold-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.product-btn-arrow svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.2;
  transition: transform 0.25s ease;
}

.product-card:hover .product-btn-arrow {
  background-color: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-primary-dark);
  transform: scale(1.06);
}

.product-card:hover .product-btn-arrow svg {
  transform: translateX(2px);
}

/* ==========================================================================
   PROCESS SECTION ("Del campo a tu mesa")
   ========================================================================== */
.process-section {
  background-color: var(--color-bg-process);
  padding: 4rem 0;
  border-top: 1px solid rgba(22, 52, 34, 0.05);
  border-bottom: 1px solid rgba(22, 52, 34, 0.05);
}

.process-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}

.process-intro {
  flex-shrink: 0;
  max-width: 270px;
}

.process-eyebrow {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold-muted);
  margin-bottom: 0.45rem;
}

.process-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.15;
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}

.process-desc {
  font-size: 0.82rem;
  line-height: 1.6;
  color: #617366;
}

.process-v-divider {
  width: 1px;
  height: 95px;
  background-color: rgba(22, 52, 34, 0.12);
  flex-shrink: 0;
}

/* 4 Steps */
.process-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
}

.process-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  max-width: 160px;
  padding: 0 0.35rem;
  transition: transform 0.3s ease;
}

.process-step-item:hover {
  transform: translateY(-4px);
}

.process-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--color-primary-dark);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  box-shadow: 0 5px 14px rgba(21, 50, 33, 0.18);
  transition: var(--transition-smooth);
}

.process-step-item:hover .process-icon-circle {
  background-color: var(--color-primary-forest);
  transform: scale(1.08);
  box-shadow: 0 8px 18px rgba(21, 50, 33, 0.28);
}

.process-icon-circle svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.8;
}

.process-step-title {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 0.35rem;
}

.process-step-desc {
  font-size: 0.74rem;
  line-height: 1.45;
  color: #66786a;
}

.process-separator {
  color: #9cb19f;
  margin-top: -1.8rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.75;
}

.process-separator svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.2;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  position: relative;
  background-color: #12291b;
  color: #ffffff;
  padding: 1.8rem 0;
  overflow: hidden;
}

.footer-watermark {
  position: absolute;
  right: -25px;
  bottom: -45px;
  width: 220px;
  opacity: 0.04;
  pointer-events: none;
  color: #ffffff;
}

.footer-container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-brand .logo-leaf-icon {
  width: 27px;
  height: 27px;
}

.footer-brand .brand-name {
  font-size: 1.45rem;
}

/* Center Slogan with horizontal rule */
.footer-center {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex: 1;
  max-width: 440px;
  margin-left: 2rem;
}

.footer-slogan {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.68);
  white-space: nowrap;
}

.footer-line {
  flex: 1;
  height: 1px;
  background-color: rgba(223, 183, 108, 0.35);
}

/* Social & Location */
.footer-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.social-link {
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.social-link:hover {
  color: var(--color-gold);
  transform: translateY(-2px);
}

.social-link svg {
  width: 16px;
  height: 16px;
}

.footer-location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.footer-location svg {
  width: 15px;
  height: 15px;
  stroke: var(--color-gold);
  stroke-width: 2;
}

/* ==========================================================================
   MODAL
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(5px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #ffffff;
  border-radius: 20px;
  max-width: 520px;
  width: 100%;
  padding: 2.2rem;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  transform: translateY(20px) scale(0.96);
  transition: var(--transition-smooth);
}

.modal-backdrop.open .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f3f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-dark);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.modal-close:hover {
  background: #e2e6e0;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--color-text-dark);
  margin-bottom: 0.8rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 0.4rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 1px solid #dcdfd8;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  background: #fafaf8;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary-forest);
  box-shadow: 0 0 0 3px rgba(27, 61, 41, 0.15);
  background: #ffffff;
}

.btn-submit {
  width: 100%;
  background-color: var(--color-primary-dark);
  color: #ffffff;
  padding: 0.85rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 0.5rem;
  transition: background 0.2s ease;
}

.btn-submit:hover {
  background-color: var(--color-primary-forest);
}

/* ==========================================================================
   RESPONSIVE DESIGN (Breakpoints)
   ========================================================================== */
@media (max-width: 1100px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.4rem;
  }
  
  .process-layout {
    flex-direction: column;
    text-align: center;
    gap: 2.5rem;
  }
  
  .process-v-divider {
    display: none;
  }
  
  .process-intro {
    max-width: 520px;
  }

  .process-steps {
    width: 100%;
  }

  .footer-center {
    display: none;
  }
}

@media (max-width: 860px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--color-primary-deep);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.4);
    transition: right 0.4s ease;
    z-index: 150;
    padding: 2rem;
  }

  .nav-menu.open {
    right: 0;
  }

  .mobile-toggle {
    display: flex;
    z-index: 200;
  }

  .mobile-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .mobile-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .mobile-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero-title {
    font-size: 2.6rem;
  }

  .hero-section {
    min-height: 320px;
    padding: 2.2rem 0;
    background-position: 70% center;
  }

  .process-steps {
    flex-wrap: wrap;
    gap: 2rem 1rem;
    justify-content: center;
  }

  .process-separator {
    display: none;
  }

  .process-step-item {
    flex-basis: 45%;
    max-width: 190px;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 1.25rem;
  }

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

  .header-actions .btn-contact {
    display: none;
  }

  .hero-title {
    font-size: 2.15rem;
  }

  .section-title,
  .process-title {
    font-size: 1.85rem;
  }

  .process-step-item {
    flex-basis: 100%;
    max-width: 250px;
  }
}
