/* ============================================================
   CINTLI · Tortillería Orgánica
   Editorial system inspired by Pujol — restraint, serif, air
   ============================================================ */

:root {
  /* Light surface palette */
  --bone:        #F5F2EA;
  --bone-warm:   #ECE7D8;
  --bone-soft:   #FAF8F1;
  --paper:       #FFFFFF;

  /* Greens — milpa viva */
  --green:       #006633;
  --green-deep:  #00461f;
  --green-soft:  #2F8A4E;
  --green-fresh: #7FBE86;

  /* Yellows — maíz */
  --yellow:      #FFAC1F;
  --yellow-deep: #E0950F;
  --yellow-warm: #FEAF1F;

  /* Grays */
  --ink:         #1F1F1E;
  --ink-soft:    #3A3A38;
  --ink-mid:     #6E6E6A;
  --ink-faint:   #9B9B95;
  --line:        #D6D2C5;
  --line-soft:   #E4E0D3;

  /* Dark surface */
  --night:       #14241A;
  --night-soft:  #1C2E22;

  /* Compat aliases (kept so we don't break anything) */
  --gold:        var(--yellow);
  --gold-deep:   var(--green-deep);

  --ease:        cubic-bezier(.16,1,.3,1);
  --ease-out:    cubic-bezier(.22,1,.36,1);
  --nav-h:       66px;
  --section-pad: clamp(48px, 6vw, 88px);
  --wrap:        1320px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  background: var(--bone);
  color: var(--ink);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: opacity .35s var(--ease), color .35s var(--ease); }
button { font-family: inherit; cursor: pointer; border: 0; background: 0; color: inherit; }

::selection { background: var(--ink); color: var(--bone); }

.mono, .eyebrow, .nav-menu a, .breadcrumbs, .form-submit, .btn-line,
.footer-col h5, .footer-bottom, .menu-price, .badge-mark, .pager-num,
.tag, label {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  font-feature-settings: 'kern' 1, 'liga' 1;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}
.wrap-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}

.section {
  padding: var(--section-pad) 0;
  position: relative;
}
.section-dark { background: var(--night); color: var(--bone); }
.section-warm { background: var(--bone-warm); }
.section-paper { background: var(--paper); }

.divider {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--line);
  border: 0;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-mid);
}
.eyebrow + * { margin-top: 18px; }
.section-dark .eyebrow { color: var(--bone-warm); opacity: .7; }

.display-1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(42px, 7vw, 96px);
  line-height: .96;
  letter-spacing: -.022em;
  color: var(--ink);
}
.display-1 em { font-style: italic; font-weight: 300; color: var(--gold-deep); }

.display-2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(32px, 4.6vw, 60px);
  line-height: 1.05;
  letter-spacing: -.018em;
  color: var(--ink);
}
.display-2 em { font-style: italic; font-weight: 300; color: var(--gold-deep); }

.display-3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -.012em;
  color: var(--ink);
}
.display-3 em { font-style: italic; color: var(--gold-deep); }

.section-dark .display-1, .section-dark .display-2, .section-dark .display-3 { color: var(--bone); }
.section-dark .display-1 em, .section-dark .display-2 em, .section-dark .display-3 em { color: var(--gold); }

.lead {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.55;
  font-weight: 400;
  color: var(--ink-soft);
  max-width: 56ch;
}
.section-dark .lead { color: var(--bone-warm); }

.prose p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.prose p + p { margin-top: 1.1em; }
.prose p strong { font-weight: 600; color: var(--ink); }
.prose p em { color: var(--gold-deep); font-style: italic; }
.prose-first p:first-child::first-letter {
  font-size: 4em;
  float: left;
  line-height: .85;
  padding-right: 12px;
  padding-top: 6px;
  font-weight: 400;
  color: var(--gold-deep);
  font-style: italic;
}

.kicker {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(18px, 1.4vw, 22px);
  color: var(--ink-mid);
  letter-spacing: -.005em;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
header.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 22px 0;
  transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
header.nav.scrolled {
  background: rgba(236, 229, 212, .82);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  padding: 14px 0;
  border-bottom-color: rgba(22, 20, 15, .08);
}
header.nav.dark.scrolled {
  background: rgba(15, 14, 11, .85);
  border-bottom-color: rgba(236, 229, 212, .1);
}
header.nav.dark { color: var(--bone); }

.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand {
  grid-column: 2;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  color: inherit;
  gap: 4px;
}
.brand .brand-main {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: .42em;
  text-indent: .42em;
  text-transform: uppercase;
  color: inherit;
}
.brand .brand-sub {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 8.5px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-mid);
  opacity: .85;
}
.nav.dark .brand .brand-sub { color: var(--bone-warm); opacity: .75; }
@media (max-width: 880px) {
  .brand .brand-main { font-size: 17px; }
  .brand .brand-sub { font-size: 7.5px; }
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.4vw, 36px);
  grid-column: 1;
}
.nav-menu-right {
  grid-column: 3;
  justify-content: flex-end;
}
.nav-menu a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: inherit;
  opacity: .72;
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
  transition: opacity .3s var(--ease);
}
.nav-menu a:hover, .nav-menu a.active { opacity: 1; }
.nav-menu a.active::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 0;
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
  transform: translateX(-50%);
}

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  position: relative;
  grid-column: 3;
  justify-self: end;
}
.menu-toggle span {
  position: absolute;
  left: 10px; right: 10px;
  height: 1px;
  background: currentColor;
  transition: transform .35s var(--ease), top .35s var(--ease), opacity .2s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 22px; }
.menu-toggle span:nth-child(3) { top: 28px; }
.menu-toggle.open span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 880px) {
  .nav-menu {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: var(--bone);
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .4s var(--ease), visibility 0s linear .4s, transform .4s var(--ease);
  }
  .nav-menu.open {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .4s var(--ease), visibility 0s linear 0s, transform .4s var(--ease);
  }
  /* On the bone full-screen panel the links must be dark ink — in dark
     mode they would otherwise inherit the bone color and vanish. */
  .nav-menu a,
  .nav.dark .nav-menu a { color: var(--ink); opacity: .8; }
  .nav-menu a:hover,
  .nav-menu a.active,
  .nav.dark .nav-menu a:hover,
  .nav.dark .nav-menu a.active { opacity: 1; }
  .nav-menu a {
    font-size: 14px;
    letter-spacing: .3em;
  }
  .menu-toggle { display: block; position: relative; z-index: 95; }
  /* Keep the close (X) icon visible over the bone panel. */
  .menu-toggle.open span,
  .nav.dark .menu-toggle.open span { background: var(--ink); }
  .nav-inner { grid-template-columns: 1fr auto 1fr; }
  .brand { font-size: 18px; }
}

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--gold);
  z-index: 101;
  transition: width .1s linear;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 18px 0 14px;
  border-bottom: 1px solid var(--ink);
  transition: gap .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn-line:hover { gap: 22px; color: var(--gold-deep); border-bottom-color: var(--gold-deep); }
.btn-line .arrow {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1;
  transform: translateY(-1px);
}
.section-dark .btn-line { color: var(--bone); border-bottom-color: var(--bone-warm); }
.section-dark .btn-line:hover { color: var(--gold); border-bottom-color: var(--gold); }

.btn-frame {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 22px 38px;
  border: 1px solid var(--ink);
  transition: background .35s var(--ease), color .35s var(--ease);
}
.btn-frame:hover { background: var(--ink); color: var(--bone); }
.section-dark .btn-frame { color: var(--bone); border-color: var(--bone); }
.section-dark .btn-frame:hover { background: var(--bone); color: var(--ink); }

/* ============================================================
   HERO (homepage) — full-bleed cinematic
   ============================================================ */
.hero {
  position: relative;
  min-height: 78vh;
  min-height: 78svh;
  display: flex;
  align-items: flex-end;
  background: var(--night);
  color: var(--bone);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/img/hero-milpa.jpg') center 40% / cover no-repeat;
  transform: scale(1.05);
  transition: transform 8s var(--ease-out);
  filter: brightness(.72) contrast(1.04) saturate(.95);
}
.hero-bg.in::before { transform: scale(1); }
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(15,14,11,.55) 0%, rgba(15,14,11,.15) 30%, rgba(15,14,11,.10) 60%, rgba(15,14,11,.78) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 0 clamp(48px, 7vh, 88px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: end;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(42px, 6.4vw, 92px);
  line-height: 1.02;
  letter-spacing: -.022em;
  color: var(--bone);
  max-width: 18ch;
}
.hero-title em { font-style: italic; font-weight: 300; color: var(--gold); }
.hero-title.hero-title-long {
  font-size: clamp(34px, 5.2vw, 74px);
  max-width: 24ch;
}
.hero-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 28px;
  margin-top: 18px;
}
.hero-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(16px, 1.3vw, 19px);
  font-weight: 400;
  color: var(--bone-warm);
  max-width: 36ch;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--bone-warm);
  opacity: .8;
  margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: '';
  width: 36px; height: 1px;
  background: currentColor;
  opacity: .6;
}
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--bone-warm);
  opacity: .6;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.hero-scroll::after {
  content: '';
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, currentColor, transparent);
  animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   PAGE HERO (interior pages) — half-height editorial
   ============================================================ */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 48px) 0 56px;
  background: var(--bone);
}
.page-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.page-hero-text { padding: 0; }
.page-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(36px, 4.8vw, 72px);
  line-height: 1.0;
  letter-spacing: -.02em;
  margin-top: 24px;
  margin-bottom: 24px;
  max-width: 18ch;
}
.page-hero-title em { font-style: italic; color: var(--yellow); }
.page-hero-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(18px, 1.5vw, 22px);
  color: var(--ink-mid);
  max-width: 42ch;
}
.page-hero-visual {
  position: relative;
  aspect-ratio: 5 / 4;
  max-height: 56vh;
  background-size: cover;
  background-position: center;
  background-color: var(--bone-warm);
  overflow: hidden;
}
.page-hero-visual img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.breadcrumbs {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin-bottom: 36px;
}
.breadcrumbs a { color: inherit; opacity: .7; transition: opacity .3s var(--ease); }
.breadcrumbs a:hover { opacity: 1; }
.breadcrumbs .sep { margin: 0 14px; opacity: .4; }

@media (max-width: 880px) {
  .page-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .page-hero-visual { aspect-ratio: 4 / 3; }
}

/* ============================================================
   EDITORIAL SECTIONS
   ============================================================ */

/* Two-column split: text + image */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 120px);
  align-items: center;
}
.split.center { align-items: center; }
.split.top    { align-items: start; }
.split.reverse > *:first-child { order: 2; }
.split-text  { max-width: 56ch; }
.split-text .display-2 + .lead { margin-top: 32px; }
.split-text .lead + .prose     { margin-top: 32px; }
.split-text .prose + .btn-line,
.split-text .lead + .btn-line  { margin-top: 40px; }

.split-img {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--bone-warm);
  overflow: hidden;
}
.split-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.split-img.wide { aspect-ratio: 3 / 2; }
.split-img.tall { aspect-ratio: 3 / 4; }

@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; gap: 48px; }
  .split.reverse > *:first-child { order: 0; }
  .split-img { aspect-ratio: 4 / 3; }
}

/* Section header centered */
.section-header {
  text-align: center;
  max-width: 920px;
  margin: 0 auto clamp(36px, 5vw, 68px);
}
.section-header .eyebrow { color: var(--ink-mid); }
.section-header .display-2 { margin-top: 18px; }
.section-header .lead { margin: 36px auto 0; }

/* Single column editorial text */
.editorial-text {
  max-width: 720px;
  margin: 0 auto;
}

/* ============================================================
   FULL-BLEED IMAGE
   ============================================================ */
.full-image {
  position: relative;
  width: 100%;
  height: 62vh;
  min-height: 420px;
  overflow: hidden;
  background: var(--night);
}
.full-image .img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 1.4s var(--ease-out);
}
.bg-gal1     { background-image: url('/img/gal-1.jpg'); }
.bg-gal2     { background-image: url('/img/gal-2.jpg'); }
.bg-gal3     { background-image: url('/img/gal-3.jpg'); }
.bg-gal4     { background-image: url('/img/gal-4.jpg'); }
.bg-historia { background-image: url('/img/historia-main.jpg'); }
.bg-hero     { background-image: url('/img/hero.jpg'); }
.full-image.in .img { transform: scale(1); }
.full-image .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(15,14,11,.55) 100%);
}
.full-image .caption {
  position: absolute;
  left: 0; right: 0; bottom: clamp(40px, 6vw, 80px);
  text-align: center;
  color: var(--bone);
  z-index: 2;
}
.full-image .caption .display-2 { color: var(--bone); max-width: 18ch; margin: 0 auto; }
.full-image .caption .display-2 em { color: var(--gold); }

/* ============================================================
   INDEX / PRINCIPLES (three columns)
   ============================================================ */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.principle {
  padding: clamp(48px, 6vw, 80px) clamp(28px, 4vw, 56px);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.principle:last-child { border-right: 0; }
.principle .num {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .3em;
  color: var(--gold-deep);
}
.principle h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -.015em;
}
.principle p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.section-dark .principles { border-color: rgba(236,229,212,.14); }
.section-dark .principle { border-color: rgba(236,229,212,.14); }
.section-dark .principle h3 { color: var(--bone); }
.section-dark .principle p { color: var(--bone-warm); }
.section-dark .principle .num { color: var(--gold); }

@media (max-width: 880px) {
  .principles { grid-template-columns: 1fr; }
  .principle { border-right: 0; border-bottom: 1px solid var(--line); }
  .principle:last-child { border-bottom: 0; }
}

/* ============================================================
   VARIETIES (corn grid)
   ============================================================ */
.varieties {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.variety {
  padding: 48px 32px 56px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.variety:nth-child(4n) { border-right: 0; }
.variety .dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  margin-bottom: 18px;
}
.dot-white   { background: #F2EAD2; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.dot-yellow  { background: #D9A857; }
.dot-blue    { background: #38386A; }
.dot-red     { background: #803128; }
.dot-black   { background: #2A2218; }
.variety h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-style: italic;
  font-size: 26px;
  line-height: 1.1;
  color: var(--ink);
}
.variety .region {
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-mid);
}
.variety p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.section-dark .varieties { border-color: rgba(236,229,212,.14); }
.section-dark .variety { border-color: rgba(236,229,212,.14); }
.section-dark .variety h4 { color: var(--bone); }
.section-dark .variety .region { color: var(--bone-warm); opacity: .7; }
.section-dark .variety p { color: var(--bone-warm); }

@media (max-width: 1080px) {
  .varieties { grid-template-columns: repeat(2, 1fr); }
  .variety:nth-child(4n)  { border-right: 1px solid var(--line); }
  .variety:nth-child(2n)  { border-right: 0; }
}
@media (max-width: 640px) {
  .varieties { grid-template-columns: 1fr; }
  .variety, .variety:nth-child(2n), .variety:nth-child(4n) { border-right: 0; }
}

/* ============================================================
   MENU LIST (carta)
   ============================================================ */
.menu-list {
  border-top: 1px solid var(--line);
}
.menu-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 36px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.menu-row-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -.01em;
}
.menu-row-name em { font-style: italic; color: var(--gold-deep); }
.menu-row-desc {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-mid);
  margin-top: 8px;
  max-width: 56ch;
}
.menu-row-price {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--ink);
  white-space: nowrap;
}
.section-dark .menu-list { border-color: rgba(236,229,212,.14); }
.section-dark .menu-row { border-color: rgba(236,229,212,.14); }
.section-dark .menu-row-name { color: var(--bone); }
.section-dark .menu-row-name em { color: var(--gold); }
.section-dark .menu-row-desc { color: var(--bone-warm); }
.section-dark .menu-row-price { color: var(--bone); }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.tl-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: clamp(32px, 6vw, 80px);
  padding: 48px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.tl-row:last-child { border-bottom: 1px solid var(--line); }
.tl-year {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1;
  color: var(--gold-deep);
  letter-spacing: -.02em;
}
.tl-body h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 14px;
}
.tl-body p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 64ch;
}

@media (max-width: 720px) {
  .tl-row { grid-template-columns: 1fr; gap: 16px; }
}

/* ============================================================
   QUOTE
   ============================================================ */
.quote {
  padding: var(--section-pad) 0;
  background: var(--night);
  color: var(--bone);
  text-align: center;
}
.quote-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}
.quote .eyebrow {
  color: var(--bone-warm);
  opacity: .7;
  margin-bottom: 48px;
  display: block;
}
.quote blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(28px, 3.6vw, 54px);
  line-height: 1.15;
  color: var(--bone);
  letter-spacing: -.015em;
}
.quote cite {
  display: block;
  margin-top: 40px;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--bone-warm);
  opacity: .75;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(8px, 1vw, 16px);
}
.gal {
  position: relative;
  overflow: hidden;
  background: var(--bone-warm);
}
.gal img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease-out); }
.gal:hover img { transform: scale(1.04); }
.gal-a { grid-column: span 7; aspect-ratio: 16 / 11; }
.gal-b { grid-column: span 5; aspect-ratio: 4 / 5; }
.gal-c { grid-column: span 4; aspect-ratio: 4 / 5; }
.gal-d { grid-column: span 4; aspect-ratio: 1 / 1; }
.gal-e { grid-column: span 4; aspect-ratio: 4 / 5; }

@media (max-width: 880px) {
  .gallery { grid-template-columns: repeat(6, 1fr); }
  .gal-a { grid-column: span 6; }
  .gal-b, .gal-c, .gal-d, .gal-e { grid-column: span 3; aspect-ratio: 1 / 1; }
}

/* ============================================================
   GALERÍA DE PRODUCTOS (menu) — grid cuadrado tipo catálogo
   ============================================================ */
.prod-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(10px, 1.2vw, 18px);
}
@media (min-width: 600px) { .prod-gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .prod-gallery { grid-template-columns: repeat(4, 1fr); } }
.prod-shot {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line-soft);
}
.prod-shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s var(--ease);
}
.prod-shot:hover img { transform: scale(1.05); }

/* ============================================================
   PRODUCT CARDS (menu home preview)
   ============================================================ */
.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 48px);
}
.product { display: flex; flex-direction: column; gap: 20px; }
.product-img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bone-warm);
}
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.product:hover .product-img img { transform: scale(1.04); }
.product-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.product h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.15;
  color: var(--ink);
}
.product h4 em { font-style: italic; color: var(--gold-deep); }
.product .price {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--ink);
  white-space: nowrap;
}
.product .desc {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-mid);
}

@media (max-width: 880px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .products { grid-template-columns: 1fr; } }

/* ============================================================
   PROCESS (vertical steps)
   ============================================================ */
.process {
  border-top: 1px solid var(--line);
}
.process-row {
  display: grid;
  grid-template-columns: 100px 220px 1fr;
  gap: clamp(24px, 5vw, 64px);
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.process-num {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 32px;
  color: var(--gold-deep);
  line-height: 1;
}
.process-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: -.015em;
}
.process-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 56ch;
}

@media (max-width: 720px) {
  .process-row { grid-template-columns: 1fr; gap: 14px; }
  .process-num { font-size: 22px; }
}

/* ============================================================
   FORMS
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
}
.contact-info { padding-top: 8px; }
.contact-info .display-2 { margin-top: 18px; margin-bottom: 40px; }
.info-list {
  list-style: none;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}
.info-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  align-items: baseline;
}
.info-item .label {
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-mid);
}
.info-item .value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink);
}
.info-item .value a { color: inherit; border-bottom: 1px solid var(--line); transition: border-color .3s var(--ease); }
.info-item .value a:hover { border-bottom-color: var(--gold-deep); }
.info-item .value em { font-style: italic; color: var(--gold-deep); }
.info-item .value small {
  display: block;
  margin-top: 6px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--ink-mid);
}

.form { display: flex; flex-direction: column; gap: 0; }
.form-intro {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-mid);
  margin-bottom: 32px;
  max-width: 38ch;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.form-row label {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin-bottom: 10px;
}
.form-row input,
.form-row select,
.form-row textarea {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  color: var(--ink);
  background: transparent;
  border: 0;
  padding: 4px 0;
  outline: none;
  width: 100%;
  resize: none;
}
.form-row textarea { min-height: 80px; }
.form-row select { appearance: none; cursor: pointer; }
.form-submit {
  margin-top: 36px;
  align-self: flex-start;
  background: var(--ink);
  color: var(--bone);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  padding: 22px 44px;
  border: 1px solid var(--ink);
  transition: background .35s var(--ease), color .35s var(--ease);
}
.form-submit:hover { background: transparent; color: var(--ink); }

@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .info-item { grid-template-columns: 1fr; gap: 6px; }
}

.map-frame {
  width: 100%;
  height: clamp(360px, 50vh, 560px);
  border: 0;
  display: block;
  filter: grayscale(.4) contrast(1.05);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--night);
  color: var(--bone);
  padding: clamp(48px, 6vw, 80px) 0 28px;
}
.foot-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(236,229,212,.14);
}
.foot-brand {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(36px, 4.5vw, 60px);
  line-height: 1;
  color: var(--bone);
  letter-spacing: -.015em;
  margin-bottom: 28px;
}
.foot-brand em { color: var(--gold); }
.foot-tag {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 19px;
  color: var(--bone-warm);
  line-height: 1.5;
  max-width: 38ch;
}
.foot-col h5 {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.foot-col li {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--bone-warm);
}
.foot-col li a { color: var(--bone); opacity: .85; transition: opacity .3s var(--ease); }
.foot-col li a:hover { opacity: 1; color: var(--gold); }

.foot-bottom {
  padding-top: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: .14em;
  color: rgba(236,229,212,.5);
  text-transform: uppercase;
}
.foot-social { display: flex; gap: 20px; align-items: center; }
.foot-social a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid rgba(236,229,212,.25);
  border-radius: 50%;
  color: var(--bone-warm);
  transition: border-color .3s var(--ease), color .3s var(--ease), background .3s var(--ease);
}
.foot-social a:hover { color: var(--night); background: var(--gold); border-color: var(--gold); }
.foot-social svg { width: 14px; height: 14px; }

@media (max-width: 880px) {
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-brand-col { grid-column: span 2; }
}
@media (max-width: 540px) {
  .foot-top { grid-template-columns: 1fr; }
  .foot-brand-col { grid-column: auto; }
}

/* ============================================================
   ANIMATIONS — fade in on scroll
   ============================================================ */
.fade { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.fade.in { opacity: 1; transform: none; }
.fade.d1 { transition-delay: .12s; }
.fade.d2 { transition-delay: .24s; }
.fade.d3 { transition-delay: .36s; }
.fade.d4 { transition-delay: .48s; }

.reveal { clip-path: inset(0 100% 0 0); transition: clip-path 1.4s var(--ease-out); }
.reveal.in { clip-path: inset(0 0% 0 0); }

/* ============================================================
   HOME NAV CARDS — entry points to all internal pages
   ============================================================ */
.nav-cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.nav-card {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  position: relative;
  transition: background .4s var(--ease);
  text-decoration: none;
  color: inherit;
}
.nav-card:last-child { border-right: 0; }
.nav-card:hover { background: var(--bone-warm); }
.nav-card-img {
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: var(--bone-warm);
}
.nav-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.nav-card:hover .nav-card-img img { transform: scale(1.04); }
.nav-card-body {
  padding: 22px 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nav-card-num {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--green);
}
.nav-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-style: italic;
  font-size: 26px;
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: -.01em;
}
.nav-card-arrow {
  margin-top: 6px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 22px;
  color: var(--green-deep);
  transition: transform .35s var(--ease);
}
.nav-card:hover .nav-card-arrow { transform: translateX(6px); }

@media (max-width: 1080px) {
  .nav-cards { grid-template-columns: repeat(3, 1fr); }
  .nav-card { border-bottom: 1px solid var(--line); }
  .nav-card:nth-child(3n) { border-right: 0; }
  .nav-card:nth-child(n+4) { border-bottom: 0; }
}
@media (max-width: 640px) {
  .nav-cards { grid-template-columns: repeat(2, 1fr); }
  .nav-card:nth-child(3n), .nav-card:nth-child(n+4) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .nav-card:nth-child(2n) { border-right: 0; }
  .nav-card:nth-child(n+5) { border-bottom: 0; }
}

/* Quick info strip (home — bajo el hero) */
.info-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bone-soft);
}
.info-strip-item {
  padding: 26px 24px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.info-strip-item:last-child { border-right: 0; }
.info-strip-item .label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-mid);
}
.info-strip-item .value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  line-height: 1.3;
  color: var(--ink);
}
.info-strip-item .value em { font-style: italic; color: var(--green-deep); }
.info-strip-item .value a { color: inherit; border-bottom: 1px solid var(--line); }
.info-strip-item .value a:hover { border-bottom-color: var(--green); }

@media (max-width: 880px) {
  .info-strip { grid-template-columns: repeat(2, 1fr); }
  .info-strip-item:nth-child(2n) { border-right: 0; }
  .info-strip-item:nth-child(1), .info-strip-item:nth-child(2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .info-strip { grid-template-columns: 1fr; }
  .info-strip-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .info-strip-item:last-child { border-bottom: 0; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.mt-0  { margin-top: 0; }
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 32px; }
.mt-lg { margin-top: 64px; }
.mt-xl { margin-top: 96px; }
.mb-sm { margin-bottom: 16px; }
.mb-md { margin-bottom: 32px; }
.mb-lg { margin-bottom: 64px; }
.mx-auto { margin-inline: auto; }

.section-flush { padding-top: 0; padding-bottom: 0; }

.section-header.is-left { text-align: left; max-width: 100%; margin-left: 0; }
.section-header.is-left .lead { margin-left: 0; }

.cta-row {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.value-list {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink);
}
.value-list em { font-style: italic; color: var(--green-deep); }

.form-submit.as-link {
  text-align: center;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.btn-line-light {
  color: var(--bone);
  border-bottom-color: var(--bone-warm);
}
.btn-line-light:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .fade { opacity: 1; transform: none; }
  .reveal { clip-path: inset(0); }
}

/* ============================================================
   B2B NAV LINK  ·  La Milpa Viva (discreto pero localizable)
   ============================================================ */
.nav-menu a.nav-b2b {
  position: relative;
  opacity: .55;
  font-size: 10px;
  padding-left: clamp(14px, 1.6vw, 26px);
}
.nav-menu a.nav-b2b::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 1px; height: 13px;
  background: currentColor;
  opacity: .35;
  transform: translateY(-50%);
}
.nav-menu a.nav-b2b:hover { opacity: 1; color: var(--gold-deep); }
.nav.dark .nav-menu a.nav-b2b:hover { color: var(--gold); }
@media (max-width: 880px) {
  .nav-menu a.nav-b2b { font-size: 12px; opacity: .55; padding-left: 0; margin-top: 4px; }
  .nav-menu a.nav-b2b::before {
    left: 50%; top: -16px;
    width: 26px; height: 1px;
    transform: translateX(-50%);
  }
}

/* ============================================================
   ESPECIFICACIONES DE PRODUCTO  ·  ficha real (sin precios)
   ============================================================ */
.product-card {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: clamp(26px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color .35s var(--ease);
}
.product-card:hover { border-color: var(--green); }
.section-dark .product-card { background: rgba(245,242,234,.04); border-color: rgba(245,242,234,.14); }
.product-card .pc-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
}
.product-card .pc-name em { font-style: italic; color: var(--gold-deep); }
.section-dark .product-card .pc-name { color: var(--bone); }
.section-dark .product-card .pc-name em { color: var(--gold); }
.product-card .pc-desc {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.section-dark .product-card .pc-desc { color: var(--bone-warm); }
.spec-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.spec-list li {
  display: flex; gap: 12px;
  font-size: 13px; line-height: 1.5;
  color: var(--ink-mid);
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}
.section-dark .spec-list li { color: var(--bone-warm); border-top-color: rgba(245,242,234,.12); opacity: .85; }
.spec-list li .spec-k {
  flex: 0 0 96px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 10px;
  font-weight: 600;
  color: var(--green);
  padding-top: 2px;
}
.section-dark .spec-list li .spec-k { color: var(--gold); }

/* callout informativo (disponibilidad / nota honesta) */
.note {
  border-left: 2px solid var(--gold);
  background: var(--bone-soft);
  padding: 18px 22px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.section-dark .note { background: rgba(245,242,234,.05); color: var(--bone-warm); }

/* ============================================================
   CERTIFICACIONES / AVALES
   ============================================================ */
.certs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 760px) { .certs { grid-template-columns: repeat(4, 1fr); } }
.cert {
  background: var(--paper);
  padding: clamp(24px, 2.4vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.section-dark .certs { background: rgba(245,242,234,.14); border-color: rgba(245,242,234,.14); }
.section-dark .cert { background: var(--night); }
.cert .cert-year {
  font-size: 11px;
  letter-spacing: .2em;
  font-weight: 600;
  color: var(--gold-deep);
  text-transform: uppercase;
}
.section-dark .cert .cert-year { color: var(--gold); }
.cert h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.18;
  color: var(--ink);
}
.section-dark .cert h4 { color: var(--bone); }
.cert p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-mid);
}
.section-dark .cert p { color: var(--bone-warm); opacity: .8; }

/* ============================================================
   SOCIOS COMERCIALES  ·  lista tipográfica (sin logos falsos)
   ============================================================ */
.partners {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
@media (min-width: 600px) { .partners { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .partners { grid-template-columns: repeat(4, 1fr); } }
.partner {
  background: var(--bone-soft);
  padding: clamp(22px, 2.4vw, 32px) 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--ink-soft);
  transition: background .35s var(--ease), color .35s var(--ease);
}
.partner:hover { background: var(--green); color: var(--bone); }
.partner small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 5px;
}
.partner:hover small { color: var(--bone-warm); }

/* ============================================================
   B2B HERO LOGO  ·  La Milpa Viva
   ============================================================ */
.b2b-mark {
  max-width: 230px;
  width: 100%;
  height: auto;
  margin-bottom: 26px;
}
.b2b-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid var(--green);
  border-radius: 999px;
  padding: 7px 14px;
}

/* ============================================================
   FIX CONTRASTE  ·  texto claro sobre fondo verde/oscuro
   ============================================================ */
.section-dark .prose p { color: var(--bone-warm); }
.section-dark .prose p strong { color: var(--bone); }
.section-dark .prose p em { color: var(--gold); }
.section-dark .b2b-badge { color: var(--gold); border-color: var(--gold); }

/* ============================================================
   PRENSA · SOCIAL PROOF (home)
   ============================================================ */
.press-grid {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--line);
  background: var(--line);
  gap: 1px;
}
@media (min-width: 640px) { .press-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .press-grid { grid-template-columns: repeat(4, 1fr); } }
.press-item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 22px;
  background: var(--bone);
  padding: clamp(24px, 2.6vw, 38px);
  transition: background .4s var(--ease);
}
.press-item:hover { background: var(--bone-soft); }
/* Miniatura del reportaje (full-bleed arriba de la tarjeta) */
.press-thumb {
  margin: calc(-1 * clamp(24px, 2.6vw, 38px)) calc(-1 * clamp(24px, 2.6vw, 38px)) 4px;
  aspect-ratio: 760 / 507;
  overflow: hidden;
  background: var(--bone-warm);
}
.press-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.97);
  transition: transform .7s var(--ease);
}
.press-item:hover .press-thumb img { transform: scale(1.045); }
.press-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.34;
  color: var(--ink-soft);
}
.press-quote::before { content: '“'; color: var(--gold-deep); }
.press-quote::after { content: '”'; color: var(--gold-deep); }
.press-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.press-meta .press-outlet { color: var(--ink); }
.press-meta .press-outlet small {
  display: block;
  margin-top: 5px;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--ink-mid);
}
.press-meta .press-go {
  white-space: nowrap;
  color: var(--green-deep);
  transition: transform .35s var(--ease), color .35s var(--ease);
}
.press-item:hover .press-go { color: var(--gold-deep); transform: translateX(4px); }

/* ============================================================
   MISIÓN · "Cintli, hoy" con foto de fondo (home)
   ============================================================ */
.section-mision {
  position: relative;
  background: var(--night);
  color: var(--bone);
  overflow: hidden;
}
.section-mision::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/img/maices-criollos.jpg') center 60% / cover no-repeat;
  filter: brightness(.85) saturate(.95);
}
.section-mision::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(13,20,15,.88) 0%, rgba(13,20,15,.78) 45%, rgba(13,20,15,.45) 100%);
}
.section-mision .wrap { position: relative; z-index: 2; }
.section-mision .eyebrow { color: var(--gold); }
.section-mision .display-2 { color: var(--bone); }
.section-mision .display-2 em { color: var(--gold); }
.section-mision .prose p { color: var(--bone-warm); }
.section-mision .prose p strong { color: var(--bone); }
.section-mision .prose p em { color: var(--gold); }
.section-mision .prose p {
  font-size: clamp(20px, 1.9vw, 27px);
  line-height: 1.62;
}

/* ============================================================
   2026-06-15 · Cambios cliente Cintli
   ============================================================ */

/* Título de contacto: palabra "maíz" en amarillo cálido */
.page-hero-title em.warm { color: var(--yellow); }

/* Galería de productos: imágenes circulares + nombre debajo */
.prod-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0;
}
.prod-disc {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  display: block;
}
.prod-disc img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s var(--ease);
}
.prod-item:hover .prod-disc img { transform: scale(1.05); }
.prod-cap {
  margin-top: 14px;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.25;
}

/* Iconos sociales circulares (secciones de contacto / redes) */
.social-circles { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.social-circles a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  border: 1px solid var(--green);
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.social-circles a:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--night);
  transform: translateY(-2px);
}
.social-circles svg { width: 19px; height: 19px; }

/* ============================================================
   2026-06-17 · Cambios cliente Cintli (ronda correcciones)
   ============================================================ */

/* Acentos en amarillo (variar): permite marcar cualquier em como warm */
.display-1 em.warm, .display-2 em.warm, .display-3 em.warm { color: var(--yellow); }

/* Maíces: bloque de 2 razas centrado en la página */
.varieties.varieties-center {
  grid-template-columns: repeat(2, 1fr);
  max-width: 720px;
  margin-inline: auto;
  border-left: 1px solid var(--line);
}
.varieties.varieties-center .variety { align-items: center; text-align: center; }
@media (max-width: 600px) {
  .varieties.varieties-center { grid-template-columns: 1fr; max-width: 420px; }
}

/* Historia: tres ingredientes (3 cards) centrados */
.certs.certs-3 { grid-template-columns: repeat(2, 1fr); max-width: 1000px; margin-inline: auto; }
@media (min-width: 760px) { .certs.certs-3 { grid-template-columns: repeat(3, 1fr); } }

/* Medios: logo de cada reconocimiento */
.cert-logo-wrap { height: 50px; display: flex; align-items: center; margin-bottom: 6px; }
.cert-logo { max-height: 50px; max-width: 160px; width: auto; object-fit: contain; }

/* Iconos de redes (círculo verde) SIEMPRE en blanco: gana a .info-item .value a */
.info-item .value .social-circles a { color: #fff; border-bottom: 1px solid var(--green); }
.info-item .value .social-circles a:hover { color: var(--night); border-bottom-color: var(--yellow); }
