/* ============================================================
   BOSQUE ARÁBICA — style.css
   ============================================================ */

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

:root {
  --green:      #244432;
  --green-dark: #1a3326;
  --cream:      #F6F3E2;
  --cream-dark: #ede9d4;
  --white:      #ffffff;
  --text:       #1A1A1A;
  --text-muted: #5a5a4a;
  --radius:     12px;
  --radius-sm:  8px;
  --shadow:     0 4px 24px rgba(36, 68, 50, 0.10);
  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Albert Sans', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: 'Albert Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(36, 68, 50, 0.18);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background-color: var(--green);
  color: var(--cream);
  border-color: var(--green);
}

.btn-primary:hover {
  background-color: var(--green-dark);
  border-color: var(--green-dark);
}

.btn-outline {
  background-color: transparent;
  color: var(--green);
  border-color: var(--green);
}

.btn-outline:hover {
  background-color: var(--green);
  color: var(--cream);
}

.btn-outline-light {
  background-color: transparent;
  color: var(--cream);
  border-color: rgba(246, 243, 226, 0.5);
}

.btn-outline-light:hover {
  background-color: rgba(246, 243, 226, 0.12);
  border-color: var(--cream);
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ---------- Section shared ---------- */
section {
  padding-block: 96px;
  scroll-margin-top: 80px;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--green);
  margin-bottom: 12px;
}

.section-sub {
  font-size: 1.0625rem;
  color: var(--text-muted);
}

.section-cta {
  text-align: center;
  margin-top: 48px;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- NAVBAR ---------- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-block: 20px;
  transition: background-color var(--transition), box-shadow var(--transition), padding var(--transition);
}

#navbar.scrolled {
  background-color: var(--cream);
  box-shadow: 0 1px 0 rgba(36, 68, 50, 0.10);
  padding-block: 14px;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
}

.nav-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.logo-primary {
  color: var(--green);
}

.logo-secondary {
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1.5px;
  background-color: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav-link:hover {
  color: var(--green);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  padding: 10px 22px;
  font-size: 14px;
}

/* Hamburger button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: background-color var(--transition);
}

.hamburger:hover {
  background-color: rgba(36, 68, 50, 0.08);
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--green);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  background-color: var(--cream);
  border-top: 1px solid rgba(36, 68, 50, 0.10);
  padding: 20px 24px 28px;
}

.mobile-menu[aria-hidden="false"] {
  display: block;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-link {
  display: block;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text);
  padding: 12px 0;
  border-bottom: 1px solid rgba(36, 68, 50, 0.08);
  transition: color var(--transition);
}

.mobile-link:hover {
  color: var(--green);
}

.mobile-wa {
  margin-top: 20px;
  width: 100%;
  justify-content: center;
}

/* ---------- HERO ---------- */
#hero {
  min-height: 100svh;
  display: flex;
  align-items: stretch;
  padding-top: 80px;
  padding-bottom: 0;
  background-color: var(--cream);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: stretch;
}

.hero-content {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-block: 16px;
}

.hero-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 20px;
  opacity: 0.8;
}

#hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--green);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 440px;
}

.hero-visual {
  align-self: stretch;
  position: relative;
  /* Bleed the image to the right edge of the viewport */
  margin-right: calc((min(100vw, 1120px) - 100vw) / 2 - 24px);
}

.hero-img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 480px;
  overflow: hidden;
  border-radius: var(--radius) 0 0 var(--radius);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Gradient fade from cream (left) to transparent (right) */
.hero-img-fade {
  position: absolute;
  inset: 0 auto 0 0;
  width: 140px;
  background: linear-gradient(to right, var(--cream), transparent);
  z-index: 1;
  pointer-events: none;
}

/* ---------- BENEFITS ---------- */
#benefits {
  background-color: var(--white);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.benefit-card {
  background-color: var(--cream);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.benefit-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
}

.benefit-icon svg {
  width: 100%;
  height: 100%;
}

.benefit-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 10px;
}

.benefit-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- PARTNERS ---------- */
#partners {
  background-color: var(--cream);
}

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.partner-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--white);
  border: 1.5px solid rgba(36, 68, 50, 0.12);
  border-radius: 100px;
  padding: 12px 24px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.partner-chip:hover {
  border-color: var(--green);
  box-shadow: 0 2px 12px rgba(36, 68, 50, 0.10);
}

.partner-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.partners-callout {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  opacity: 0.65;
  margin-bottom: 0;
}

/* ---------- RECIPES ---------- */
#recipes {
  background-color: var(--white);
}

.recipes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.recipe-card {
  background-color: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.recipe-img {
  position: relative;
  aspect-ratio: 4 / 4;
  background-color: var(--cream-dark);
  overflow: hidden;
}

.recipe-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.recipe-img-placeholder svg {
  width: 60px;
  height: 60px;
  opacity: 0.45;
}

.recipe-img-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.recipe-body {
  padding: 24px;
}

.recipe-chip {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.recipe-chip--easy {
  background-color: rgba(36, 68, 50, 0.10);
  color: var(--green);
}

.recipe-body h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 8px;
}

.recipe-body p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- FOOTER ---------- */
#footer {
  background-color: var(--cream);
  padding-top: 64px;
  padding-bottom: 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr 1fr auto;
  gap: 48px;
  align-items: start;
  padding-bottom: 56px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-col--cta {
  align-items: flex-start;
}

.footer-logo-img {
  width: 160px;
  height: auto;
  object-fit: contain;
  margin-top: -12px;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 240px;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-legal-link {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-legal-link:hover {
  color: var(--green);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-contact-item:hover {
  color: var(--green);
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.6;
}

.footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1.5px solid rgba(36, 68, 50, 0.2);
  border-radius: 100px;
  padding: 7px 14px;
  transition: color var(--transition), border-color var(--transition), background-color var(--transition);
}

.footer-social-btn:hover {
  color: var(--green);
  border-color: var(--green);
  background-color: rgba(36, 68, 50, 0.06);
}

.footer-social-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.footer-cta-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
}

.footer-wa {
  padding: 12px 24px;
}

.footer-bottom {
  border-top: 1px solid rgba(36, 68, 50, 0.1);
  padding-block: 20px;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
  opacity: 0.6;
  text-align: center;
}

/* Footer responsive */
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-col--cta {
    align-items: center;
    grid-column: 1 / -1;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer-col {
    align-items: center;
  }

  .footer-tagline {
    max-width: 100%;
  }

  .footer-contact-item {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet: 900px */
@media (max-width: 900px) {
  section {
    padding-block: 72px;
  }

  #hero {
    min-height: 100svh;
    align-items: flex-start;
    padding-bottom: 48px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 0;
    text-align: center;
    align-items: start;
  }

  .hero-content {
    max-width: 100%;
    padding-block: 32px;
    justify-content: flex-start;
    align-items: center;
  }

  .hero-sub {
    max-width: 100%;
  }

  #hero h1 {
    font-size: clamp(2.75rem, 8vw, 4rem);
  }

  .hero-visual {
    order: -1;
    /* Reset the desktop right-bleed on mobile */
    margin-right: -24px;
    margin-left: -24px;
  }

  .hero-img-wrap {
    width: 100%;
    min-height: 58svh;
    border-radius: 0;
  }

  /* On portrait, fade from bottom so it flows into the text below */
  .hero-img-fade {
    inset: auto 0 0 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--cream));
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

/* Tablet nav collapse: 768px */
@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

/* Mobile: 640px */
@media (max-width: 640px) {
  section {
    padding-block: 56px;
  }

  .container {
    padding-inline: 20px;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .nav-logo {
    font-size: 0.9375rem;
  }

  .nav-cta {
    padding: 8px 16px;
    font-size: 13px;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .benefit-card {
    display: flex;
  }

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

  /* Horizontal scroll for recipes on small screens */
  @supports (overflow: auto) {
    .recipes-grid {
      display: flex;
      overflow-x: auto;
      overflow-y: hidden;
      scroll-snap-type: x mandatory;
      -webkit-overflow-scrolling: touch;
      padding-top: 8px;
      margin-top: -8px;
      padding-bottom: 12px;
      gap: 20px;
    }

    .recipe-card {
      flex: 0 0 calc(85vw - 40px);
      scroll-snap-align: start;
      max-width: 320px;
    }
  }
}

/* ===== GATEWAY RECIPE CARD ===== */
.recipe-card--gateway .recipe-img {
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}
.recipe-card--gateway .recipe-img svg {
  width: 56px;
  height: 56px;
  color: var(--cream);
}

/* ===== RECIPE ACCORDION (recetas.html) ===== */
.recipe-accordion-body { padding-bottom: 24px; }
.recipe-accordion-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 16px 0 24px;
}
.recipe-accordion-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 20px 0 8px;
}
.recipe-accordion-body ul,
.recipe-accordion-body ol {
  padding-left: 20px;
  color: var(--text-muted);
  line-height: 1.75;
}
.recipe-accordion-body li { margin-bottom: 4px; }

/* ===== RECIPE LINK (cards on index.html) ===== */
.recipe-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--green);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
}
.recipe-link:hover { text-decoration: underline; }

/* ===== FAQ ACCORDION (preguntas-frecuentes.html) ===== */
.faq-list { list-style: none; padding: 0; margin: 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 20px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  flex-shrink: 0;
  color: var(--green);
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { padding: 0 0 20px; color: var(--text-muted); line-height: 1.7; margin: 0; }

/* ===== CONTENT PAGES (landing + recipe pages) ===== */
.page-hero {
  padding: 80px 0 60px;
  background: var(--bg-alt);
}
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 20px;
  max-width: 700px;
}
.page-hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 32px;
  line-height: 1.7;
}
.page-section { padding: 60px 0; }
.page-section h2 { font-size: 1.5rem; margin-bottom: 16px; }
.page-section p, .page-section li { color: var(--text-muted); line-height: 1.75; }
.page-section ul, .page-section ol { padding-left: 20px; margin: 0 0 16px; }
.page-section li { margin-bottom: 8px; }
.recipe-detail-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 40px;
}
.back-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
}
.back-link:hover { color: var(--green); }

/* ---- Partner badge overlay ---- */
.recipe-img-wrapper {
  position: relative;
  display: block;
}
.partner-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.22);
  display: block;
  text-decoration: none;
  transition: transform var(--transition);
  z-index: 1;
}
.partner-badge:hover { transform: scale(1.07); }
.partner-badge-logo { width: 100%; height: 100%; object-fit: cover; display: block; }
.recipe-img .partner-badge { width: 96px; height: 96px; }
.recipe-img-wrapper .partner-badge { width: 78px; height: 78px; }
.partner-credit {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: -8px 0 20px;
}
.partner-credit a { color: var(--green); text-decoration: none; }
.partner-credit a:hover { text-decoration: underline; }
