/* Feria de Productores — Propuesta B: Experiencia Inmersiva */

:root {
  --ink: #171614;
  --ink-soft: #24221E;
  --gold: #F2D35C;
  --gold-soft: #E9CE86;
  --brown: #8A6D3F;
  --green: #4B5D3A;
  --cream: #F5F4ED;
  --paper: #FFFDF8;
  --text-muted: #5B5A55;
  --text-dim: #C9C7BE;
  --ease: cubic-bezier(.16,1,.3,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: #FFFFFF;
  color: var(--ink);
  font-family: 'Karla', system-ui, sans-serif;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img { filter: saturate(1.12) contrast(1.04); }
h1, h2 { font-family: 'Archivo Black', sans-serif; margin: 0; }

/* ---------- Reveal-on-scroll (IntersectionObserver driven, mirrors el patrón ya probado del sitio original) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal-up, .reveal-wipe {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
    transition-delay: var(--d, 0s);
  }
  .reveal-up.is-visible, .reveal-wipe.is-visible {
    opacity: 1;
    transform: none;
  }
  .reveal-wipe img {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1.1s var(--ease);
    transition-delay: var(--d, 0s);
  }
  .reveal-wipe.is-visible img {
    clip-path: inset(0 0 0 0);
  }
}

/* ---------- NAV ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #EDEBE3;
}
.navbar::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 24px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-logo { height: 42px; width: auto; flex-shrink: 0; }
.brand-tag { font-size: 13px; font-weight: 600; color: var(--brown); white-space: nowrap; }
.nav-toggle {
  display: none;
  background: none; border: none; font-size: 22px; cursor: pointer; padding: 6px 8px; color: var(--ink);
}
.navlinks { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; font-weight: 500; align-items: center; }
.navlink { position: relative; padding-bottom: 2px; }
.navlink:hover { color: var(--brown); }
.nav-caret { display: inline-block; font-size: 9px; opacity: .6; }
.search-toggle { background: none; border: none; cursor: pointer; padding: 6px; color: var(--ink); opacity: .75; }
.search-toggle:hover { opacity: 1; }
.btn-contact {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 600;
  padding: 11px 20px; border-radius: 4px; transition: transform .15s var(--ease), box-shadow .15s var(--ease);
  flex-shrink: 0;
}
.btn-contact:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(23,22,20,.18); }
.btn-contact-icon { display: none; flex-shrink: 0; }

/* ---------- Header móvil: una sola fila, sin salto de línea ---------- */
@media (max-width: 1040px) {
  .navbar-inner { flex-wrap: nowrap; }
}
@media (max-width: 600px) {
  .navbar-inner {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    padding: 10px 16px; gap: 8px;
  }
  .brand { grid-row: 1; grid-column: 2; justify-self: center; min-width: 0; }
  .brand-tag { display: none; }
  .brand-logo { height: 34px; }
  .nav-toggle { grid-row: 1; grid-column: 1; justify-self: start; padding: 10px; min-width: 44px; min-height: 44px; }
  .search-toggle { grid-row: 1; grid-column: 3; justify-self: end; padding: 10px; min-width: 44px; min-height: 44px; }
  .btn-contact {
    position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 150;
    width: 48px; height: 48px; padding: 0; border-radius: 50%; gap: 0;
    box-shadow: 0 6px 20px rgba(23,22,20,.32);
  }
  .navlinks.open ~ .btn-contact { display: none; }
  .btn-contact-icon { display: block; width: 20px; height: 20px; }
  .btn-contact-text {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
  }
}

.nav-dropdown { position: relative; }
.nav-dropdown-panel {
  display: none; flex-direction: column; gap: 2px; z-index: 200; position: absolute; top: 100%; left: 0;
  padding: 16px 14px 14px; margin-top: 10px; min-width: 300px; background: #fff;
  border-top: 3px solid var(--gold); border-radius: 6px 16px 16px 16px;
  box-shadow: 0 24px 56px rgba(23,22,20,.16);
}
.nav-dropdown-right .nav-dropdown-panel { left: auto; right: 0; border-radius: 16px 6px 16px 16px; }
.nav-mega-label { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #ADABA0; padding: 2px 12px 10px; }
.nav-dropdown-panel a { display: block; font-size: 13.5px; font-weight: 500; color: var(--ink); white-space: nowrap; padding: 9px 12px; border-radius: 8px; }
.nav-dropdown-panel a:hover { background: var(--cream); }
.nav-dropdown-panel.cols-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 2px 10px; min-width: 420px; }
.nav-dropdown-panel.cols-2 .nav-mega-label { grid-column: 1 / -1; }
.nav-mega-all { font-weight: 700; border-top: 1px solid #EDEBE3; margin-top: 4px; padding-top: 10px !important; grid-column: 1 / -1; }
@media (min-width: 1041px) and (hover: hover) and (pointer: fine) {
  .nav-dropdown-panel { display: flex; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-6px); transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s; }
  .nav-dropdown-panel.cols-2 { display: grid; }
  .nav-dropdown:hover .nav-dropdown-panel, .nav-dropdown:focus-within .nav-dropdown-panel { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; }
}
@media (max-width: 1040px), (hover: none) and (pointer: coarse) {
  .nav-toggle { display: block; }
  .navlinks {
    display: flex !important; position: fixed; top: var(--navbar-h, 70px); left: 0; right: 0;
    max-height: calc(100dvh - var(--navbar-h, 70px)); flex-direction: column !important; flex-wrap: nowrap !important; gap: 0 !important;
    background: #fff; padding: 4px 0 24px; z-index: 99; overflow-y: auto; overflow-x: hidden;
    opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-6px);
    transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
  }
  .navlinks.open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; }
  .navlinks a { padding: 16px 28px !important; width: 100%; }
  .nav-dropdown { display: flex; flex-direction: column; width: 100%; }
  .nav-dropdown-panel { display: none; position: static; box-shadow: none; border-radius: 0; background: transparent; margin: 0; padding: 0 0 8px; width: 100%; min-width: 0; }
  .nav-dropdown-panel.cols-2 { display: none; grid-template-columns: 1fr; min-width: 0; }
  .nav-dropdown.mobile-open .nav-dropdown-panel { display: flex !important; }
  .nav-dropdown-panel a { padding: 12px 28px 12px 44px !important; font-size: 14px; color: var(--text-muted); }
}

/* ---------- HERO ---------- */
.hero {
  position: relative; width: 100%; height: 100dvh; min-height: 560px; max-height: 980px;
  overflow: hidden; background: var(--ink); display: flex; align-items: flex-end;
}
.hero-media { position: absolute; inset: 0; animation: hero-zoom-in 1.6s var(--ease) both; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; will-change: transform; }
@keyframes hero-zoom-in { from { transform: scale(1.12); opacity: .4; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero-media { animation: none; } }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,22,20,.15) 0%, rgba(23,22,20,.45) 50%, rgba(23,22,20,.95) 100%); }
.hero-copy { position: relative; z-index: 2; padding: 0 48px 70px; max-width: 920px; display: flex; flex-direction: column; gap: 18px; }
.hero-eyebrow { color: var(--gold); font-size: clamp(13px,1.6vw,18px); font-weight: 700; letter-spacing: .06em; margin: 0; }
.hero-title { font-size: clamp(64px,13vw,150px); line-height: .9; letter-spacing: -.02em; color: var(--gold); text-shadow: 0 6px 40px rgba(0,0,0,.5); }
.hero-title span { display: inline-block; }
.hero-desc { font-size: 16.5px; line-height: 1.65; color: #F1F0EA; max-width: 56ch; text-shadow: 0 2px 12px rgba(0,0,0,.5); margin: 0; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-solid { background: var(--gold); color: var(--ink); font-size: 14.5px; font-weight: 700; padding: 15px 28px; border-radius: 999px; transition: transform .14s var(--ease); }
.btn-solid:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.6); font-size: 14.5px; font-weight: 700; padding: 14.5px 28px; border-radius: 999px; transition: transform .14s var(--ease), background .14s var(--ease); }
.btn-ghost:hover { transform: translateY(-2px); background: rgba(255,255,255,.1); }
.scroll-cue { position: absolute; z-index: 2; right: 28px; bottom: 26px; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; opacity: .85; }
.scroll-cue span { width: 1px; height: 30px; background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,0)); }
@media (prefers-reduced-motion: no-preference) { .scroll-cue span { animation: cue-pulse 1.8s ease-in-out infinite; } }
@keyframes cue-pulse { 0%,100% { opacity: .3; } 50% { opacity: 1; } }
@media (max-width: 600px) { .hero-copy { padding: 0 20px 48px; } .scroll-cue { display: none; } }

/* ---------- CHAPTER: por donde empezar ---------- */
.chapter { padding: 88px 48px 20px; }
.chapter-title { font-size: clamp(26px,4vw,34px); margin-bottom: 28px; }
.paths { display: flex; flex-direction: column; gap: 3px; border-radius: 12px; overflow: hidden; }
@media (min-width: 860px) { .paths { flex-direction: row; height: 440px; } }
.path-panel { position: relative; display: block; overflow: hidden; height: 280px; flex: 1; }
@media (min-width: 860px) { .path-panel { height: 100%; } }
.path-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.path-panel:hover img { transform: scale(1.08); }
.path-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,22,20,0) 40%, rgba(23,22,20,.86) 100%); }
.path-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px; display: flex; flex-direction: column; gap: 6px; }
.path-title { color: #fff; font-size: 20px; font-weight: 700; }
.path-desc { color: var(--text-dim); font-size: 13.5px; max-width: 32ch; }

/* ---------- SPLIT: del rancho a tu mesa ---------- */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px,100%),1fr)); gap: 40px; align-items: center; padding: 100px 48px; }
.split-media { border-radius: 10px; height: 460px; overflow: hidden; }
.split-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; display: block; }
.split-copy { display: flex; flex-direction: column; gap: 16px; }
.split-copy h2 { font-size: clamp(28px,4vw,38px); }
.split-copy p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--text-muted); }
.link-arrow { align-self: flex-start; font-size: 14px; font-weight: 700; border-bottom: 2px solid var(--ink); padding-bottom: 2px; }

/* ---------- BLEED PARALLAX: nuestra comunidad ---------- */
.bleed-parallax { position: relative; min-height: 620px; display: flex; align-items: center; padding: 120px 48px; overflow: hidden; }
.bleed-parallax-bg { position: absolute; inset: -5% 0; background-size: cover; background-position: center; }
@media (min-width: 900px) { .bleed-parallax-bg { background-attachment: fixed; } }
.bleed-parallax-scrim { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(23,22,20,.78), rgba(23,22,20,.52)); }
.bleed-parallax-copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; max-width: 620px; }
.bleed-parallax-copy h2 { font-size: clamp(32px,5vw,46px); color: var(--gold); line-height: 1.08; }
.bleed-parallax-copy p { margin: 0; font-size: 16px; line-height: 1.7; color: #F1F0EA; }
.btn-solid-dark { background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; padding: 14px 24px; border-radius: 4px; transition: transform .14s var(--ease); }
.btn-solid-dark:hover { transform: translateY(-2px); }

/* ---------- CTA BAND ---------- */
.cta-band { background: var(--gold); padding: 80px 48px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.cta-band h2 { font-size: clamp(26px,4vw,32px); max-width: 26ch; }
.cta-band p { margin: 0; font-size: 15.5px; line-height: 1.7; color: #3B3A35; max-width: 62ch; }

/* ---------- EVENTS ---------- */
.events-section { background: var(--ink); padding: 90px 48px; display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; }
.events-section h2 { color: var(--gold-soft); font-size: clamp(26px,4vw,34px); }
.section-intro { margin: 0 0 32px; font-size: 15.5px; color: var(--text-dim); max-width: 62ch; }
.events-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px,100%),1fr)); gap: 22px; width: 100%; max-width: 1040px; text-align: left; }
.event-card { background: var(--ink-soft); border-radius: 10px; overflow: hidden; display: block; transition: transform .25s var(--ease); }
.event-card:hover { transform: translateY(-5px); }
.event-card-media { width: 100%; height: 280px; overflow: hidden; background: var(--cream); display: flex; align-items: center; justify-content: center; }
.event-card-media img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; margin: 0 auto; transition: transform .5s var(--ease); }
.event-card:hover .event-card-media img { transform: scale(1.06); }
.event-card-body { padding: 18px; display: flex; flex-direction: column; gap: 5px; }
.event-card-title { font-size: 16px; font-weight: 700; color: #fff; }
.event-card-date { font-size: 13px; color: #B0AEA5; }

/* ---------- PRODUCERS ---------- */
.producers-section { padding: 90px 48px; display: flex; flex-direction: column; gap: 26px; align-items: center; text-align: center; }
.producers-section h2 { font-size: clamp(26px,4vw,34px); }
.producers-section .section-intro { color: var(--text-muted); }
/* .chapter es siempre fondo claro en este sitio (a diferencia de .events-section/.about-section,
   que son oscuros) — mismo bug de contraste que ya se corrigió una vez para .producers-section,
   ahora resuelto en la raíz para cualquier sección que use .chapter + .section-intro. */
.chapter .section-intro { color: var(--text-muted); }
.producers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px,100%),1fr)); gap: 20px; width: 100%; max-width: 1100px; text-align: left; }
.producer-card { position: relative; display: block; height: 300px; border-radius: 12px; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.producer-card:hover { transform: translateY(-5px); box-shadow: 0 18px 36px rgba(23,22,20,.22); }
.producer-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.producer-card:hover img { transform: scale(1.06); }
.producer-card-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,22,20,0) 42%, rgba(23,22,20,.88) 100%); }
.producer-card-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.producer-card-name { font-weight: 700; font-size: 15.5px; color: #fff; }
.verified { font-style: normal; font-size: 10px; font-weight: 700; color: #3E6B3F; background: #E4F0E0; padding: 2px 7px; border-radius: 999px; margin-left: 6px; }
.producer-card-meta { font-size: 12.5px; color: #D8D6CC; }
.rancho-badge { position: absolute; top: 10px; left: 10px; z-index: 2; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); background: var(--gold); padding: 4px 9px; border-radius: 999px; box-shadow: 0 2px 8px rgba(23,22,20,.3); }

/* ---------- ALLIANCES ---------- */
.alliances-section { background: var(--gold); padding: 64px 48px; display: flex; flex-direction: column; gap: 32px; align-items: center; }
.alliances-section h2 { font-size: clamp(22px,3vw,26px); }
.alliances-row { display: flex; flex-wrap: wrap; gap: 34px; justify-content: center; }
.alliance { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; text-align: center; max-width: 112px; transition: transform .2s var(--ease); }
.alliance:hover { transform: translateY(-3px) scale(1.05); }
.alliance-img { width: 66px; height: 66px; border-radius: 50%; object-fit: cover; object-position: center; box-shadow: 0 8px 20px rgba(23,22,20,.22); border: 2px solid var(--ink); background: #fff; }
.alliance-contain { object-fit: contain; padding: 8px; }

/* ---------- ABOUT / ACCORDION ---------- */
.about-section { background: var(--ink); padding: 80px 48px; display: flex; flex-direction: column; gap: 24px; align-items: center; }
.about-section h2 { color: #fff; font-size: clamp(26px,4vw,32px); align-self: center; }
.about-intro { margin: -12px 0 0; font-size: 15px; color: var(--text-dim); text-align: center; max-width: 60ch; }
.accordion { display: flex; flex-direction: column; max-width: 900px; width: 100%; }
.accordion-item { border-bottom: 1px solid #3D3A34; }
.accordion-toggle { all: unset; cursor: pointer; width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 20px 4px; box-sizing: border-box; }
.accordion-toggle span:first-child { font-size: 17px; font-weight: 700; color: var(--gold-soft); }
.accordion-icon { font-size: 20px; color: var(--gold-soft); transition: transform .25s var(--ease); font-weight: 400; }
.accordion-toggle[aria-expanded="true"] .accordion-icon { transform: rotate(45deg); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.accordion-panel p { margin: 0 0 18px; font-size: 14.5px; line-height: 1.65; color: var(--text-dim); max-width: 70ch; }
.accordion-panel a { color: var(--gold); text-decoration: underline; }
.social-links { display: flex; flex-wrap: wrap; gap: 10px 16px; font-size: 13.5px; font-weight: 600; color: var(--gold); padding-bottom: 18px; }
.social-links a { text-decoration: underline; }

/* ---------- FOOTER ---------- */
.site-footer { padding: 40px 48px 30px; display: flex; flex-direction: column; gap: 20px; border-top: 1px solid #EDEBE3; }
.footer-row { display: flex; flex-wrap: wrap; gap: 20px; font-size: 13.5px; color: #43413B; }
.footer-row a { font-weight: 700; }
.footer-social { gap: 10px; }
.social-icon { display: inline-flex; border-radius: 50%; overflow: hidden; transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.social-icon:hover { transform: translateY(-3px) scale(1.08); box-shadow: 0 8px 18px rgba(23,22,20,.18); }
.social-icon:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.footer-links { font-size: 13px; font-weight: 600; }
.footer-links a { text-decoration: underline; }
.footer-legal { font-size: 12px; font-weight: 600; color: #757369; }
.footer-copy { font-size: 12px; color: #757369; }

@media (max-width: 600px) {
  .chapter, .split, .bleed-parallax, .events-section, .producers-section, .alliances-section, .about-section, .site-footer { padding-left: 20px !important; padding-right: 20px !important; }
}

/* ---------- Nav: link activo en la página actual ---------- */
.navlink.active { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }

/* ---------- UBICACIÓN: hero ---------- */
.loc-hero { position: relative; width: 100%; height: 86dvh; min-height: 520px; max-height: 820px; overflow: hidden; background: var(--ink); display: flex; align-items: flex-end; }
.loc-hero-media { position: absolute; inset: 0; }
.loc-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; display: block; }
.loc-hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,22,20,.2) 0%, rgba(23,22,20,.5) 55%, rgba(23,22,20,.95) 100%); }
.loc-hero-copy { position: relative; z-index: 2; padding: 0 48px 64px; max-width: 820px; display: flex; flex-direction: column; gap: 16px; }
.loc-hero-title { font-size: clamp(42px,7vw,84px); line-height: .98; letter-spacing: -.01em; color: var(--gold); text-shadow: 0 6px 40px rgba(0,0,0,.5); font-family: 'Archivo Black', sans-serif; margin: 0; }
@media (max-width: 600px) { .loc-hero-copy { padding: 0 20px 44px; } .scroll-cue { display: none; } }

/* ---------- UBICACIÓN: franja "lo esencial" ---------- */
.essentials { padding: 56px 48px; background: var(--paper); }
.essentials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px,100%),1fr)); gap: 24px; max-width: 1180px; margin: 0 auto; }
.essential-card { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid #EDEBE3; border-radius: 14px; padding: 24px; box-shadow: 0 10px 30px rgba(23,22,20,.05); }
.essential-icon { font-size: 26px; }
.essential-label { font-family: 'Archivo Black', sans-serif; font-size: 14px; }
.essential-card p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.essential-card p a { text-decoration: underline; }
.essential-note { font-size: 12.5px; color: var(--brown); font-weight: 600; }
.essential-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.btn-chip { background: var(--cream); color: var(--ink); font-size: 13px; font-weight: 700; padding: 9px 16px; border-radius: 999px; border: 1px solid #E5E0D2; transition: background .15s var(--ease); }
.btn-chip:hover { background: #EDEBE3; }
.copy-address-btn { all: unset; cursor: pointer; align-self: flex-start; font-size: 13px; font-weight: 700; border-bottom: 2px solid var(--ink); padding-bottom: 2px; margin-top: 4px; }
.copy-address-btn.copied { border-color: var(--green); color: var(--green); }

/* ---------- UBICACIÓN: mapa click-to-load ---------- */
.map-section { padding: 90px 48px; display: flex; flex-direction: column; gap: 24px; align-items: center; background: var(--cream); }
.map-frame { width: 100%; max-width: 1040px; height: 480px; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 50px rgba(23,22,20,.12); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: linear-gradient(145deg, #E9E6D8, #D9D5C3); text-align: center; padding: 24px; }
.map-pin { font-size: 40px; }
.map-address { margin: 0; font-size: 15px; font-weight: 700; color: var(--ink); }
.map-note { max-width: 42ch; font-size: 12.5px; color: var(--text-muted); margin-top: 6px; }
.map-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.btn-ghost-dark { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); font-size: 14.5px; font-weight: 700; padding: 14.5px 28px; border-radius: 999px; transition: transform .14s var(--ease), background .14s var(--ease); }
.btn-ghost-dark:hover { transform: translateY(-2px); background: rgba(23,22,20,.06); }

@media (max-width: 600px) {
  .essentials, .map-section { padding-left: 20px !important; padding-right: 20px !important; }
  .map-frame { height: 380px; }
}

/* ---------- PARTICIPA: opciones (tarjetas más anchas que el directorio de productores, para no recortar mal fotos panorámicas de grupo) ---------- */
.options-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px,100%),1fr)); gap: 20px; width: 100%; max-width: 1100px; margin: 0 auto; }
.option-card { height: 320px; }
.option-card-desc { font-size: 13px; line-height: 1.5; color: #E7E5DE; margin: 2px 0 0; }
.option-card-link { align-self: flex-start; margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--gold); border-bottom: 2px solid var(--gold); padding-bottom: 1px; }

/* ---------- EXPOSITORES: buscador y filtros ---------- */
.expo-controls { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.expo-search-wrap { position: relative; max-width: 420px; }
.expo-search-wrap svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #9C9A92; pointer-events: none; }
.expo-search-wrap input { width: 100%; font-family: 'Karla', sans-serif; font-size: 14px; padding: 11px 40px; border: 1px solid #DCD8C8; border-radius: 999px; background: #fff; color: var(--ink); box-sizing: border-box; }
#expo-search-clear, #ranchos-search-clear { display: none; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; font-size: 18px; line-height: 1; color: #87867F; padding: 6px; }
.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-pill { font-family: 'Karla', sans-serif; font-size: 12.5px; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1px solid #DCD8C8; background: #fff; color: var(--ink); cursor: pointer; transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease); }
.filter-pill:hover { border-color: var(--ink); }
.filter-pill.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
#expo-empty, #ranchos-empty { display: none; margin: 0; font-size: 13.5px; color: var(--text-muted); }
.directory-grid { max-width: 1400px; }
.directory-grid .producer-card { height: 220px; }
/* ---------- ACADEMIA: texto largo + listas de recursos ---------- */
.chapter-body { max-width: 800px; display: flex; flex-direction: column; gap: 14px; font-size: 14.5px; line-height: 1.65; color: var(--text-muted); }
.chapter-body a { color: var(--ink); text-decoration: underline; font-weight: 600; }
.resource-rows { display: flex; flex-direction: column; gap: 10px; max-width: 800px; }
.resource-row { display: block; padding: 14px 16px; border-radius: 8px; background: var(--cream); font-size: 13.5px; color: var(--ink); transition: background .15s var(--ease); }
.resource-row:hover { background: #EDEBE3; }
.resource-groups { display: flex; flex-direction: column; gap: 32px; max-width: 900px; }
.resource-group h3 { margin: 0 0 10px; font-size: 14.5px; font-weight: 700; }
.resource-label { margin: 12px 0 6px; font-size: 12.5px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.resource-list { display: flex; flex-direction: column; gap: 4px; font-size: 13px; line-height: 1.9; color: var(--text-muted); }
.resource-list a { text-decoration: underline; color: var(--ink); }

@media (max-width: 600px) {
  #expo-grid.directory-grid, #ranchos-grid.directory-grid { grid-template-columns: 1fr; }
}

/* ---------- AGROBIODIVERSIDAD: nota editorial y catálogo de especies ---------- */
.chapter-note { font-size: 13px; color: var(--brown); }
.species-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px,100%),1fr)); gap: 18px; margin-top: 24px; max-width: 1180px; }
.species-card { background: #fff; border: 1px solid #EDEBE3; border-radius: 10px; overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.species-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(23,22,20,.12); }
.species-card-media { width: 100%; height: 170px; overflow: hidden; }
.species-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.species-card:hover .species-card-media img { transform: scale(1.05); }
.species-card-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.species-card-body strong { font-size: 13.5px; }
.species-card-body span { font-size: 12px; color: var(--text-muted); font-style: italic; }
.species-credit { display: block; margin-top: 16px; font-size: 12px; color: #757369; }

/* ---------- VECINO: aviso de evento archivado ---------- */
.archive-badge { display: inline-flex; align-items: center; gap: 6px; background: #FDF1D6; color: var(--brown); font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 999px; align-self: flex-start; }

/* ---------- ALIANZAS: directorio completo (reutiliza .species-card de Agrobiodiversidad) ---------- */
.species-card-media.contain { background: #fff; display: flex; align-items: center; justify-content: center; padding: 16px; }
.species-card-media.contain img { object-fit: contain; width: 100%; height: 100%; }
.species-card-body .alliance-desc { font-style: normal; font-size: 12.5px; line-height: 1.5; }

/* ---------- Nav: ítem de submenú activo (quienes-somos.html, etc.) ---------- */
.nav-dropdown-panel a.active { background: var(--cream); font-weight: 700; }

/* ---------- SISTEMA DE CONTROL INTERNO: proceso numerado (6 pasos) ---------- */
.chapter-subtitle { margin: 0 0 18px; font-size: 19px; font-family: 'Archivo Black', sans-serif; }
.step-list { display: flex; flex-direction: column; gap: 10px; max-width: 800px; }
.step { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 10px; background: var(--cream); }
.step-num { font-family: 'Archivo Black', sans-serif; font-size: 20px; color: var(--brown); min-width: 28px; }
.step-body strong { font-size: 14.5px; }
.step-body p { margin: 6px 0 0; font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.step-body a, .chapter-footnote a { color: var(--ink); text-decoration: underline; font-weight: 600; }
.chapter-footnote { margin: 14px 0 0; max-width: 800px; font-size: 14px; line-height: 1.7; color: var(--text-muted); }

/* ---------- ROOSTER KING ANTES/DESPUÉS: nota interna de QA, comparativo de datos ---------- */
.compare-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px,100%),1fr)); gap: 28px; max-width: 1040px; }
.compare-card { display: flex; flex-direction: column; gap: 10px; border-radius: 12px; padding: 20px; border: 2px solid; }
.compare-tag { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; align-self: flex-start; color: #fff; }
.compare-card h2 { margin: 0; font-family: 'Archivo Black', sans-serif; font-size: 18px; }
.compare-meta { margin: 0; font-size: 13px; font-weight: 600; }
.compare-quote { margin: 0; font-size: 13px; line-height: 1.55; font-style: italic; }
.compare-facts { font-size: 12.5px; display: flex; flex-direction: column; gap: 4px; }
.compare-flag { font-size: 12px; font-weight: 700; }
.compare-wrong { border-color: #F0CFC2; background: #FDF6F3; }
.compare-wrong .compare-tag { background: #C1694F; }
.compare-wrong .compare-meta, .compare-wrong .compare-quote, .compare-wrong .compare-facts, .compare-wrong .compare-flag { color: #8A4A34; }
.compare-right { border-color: var(--green); background: #F1F6EE; }
.compare-right .compare-tag { background: var(--green); }
.compare-right .compare-meta, .compare-right .compare-flag { color: #2E4A24; }
.compare-right .compare-quote, .compare-right .compare-facts { color: #3B4A34; }

/* ---------- ALIANZAS: página de detalle de aliado ---------- */
.alliance-hero { position: relative; width: 100%; height: 50vh; min-height: 320px; max-height: 520px; overflow: hidden; background: var(--ink); display: flex; align-items: flex-end; }
.alliance-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.alliance-hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,22,20,.15) 0%, rgba(23,22,20,.45) 55%, rgba(23,22,20,.92) 100%); }
.alliance-hero-copy { position: relative; z-index: 2; padding: 0 48px 40px; display: flex; flex-direction: column; gap: 6px; }
.alliance-hero-kicker { font-size: 13px; font-weight: 700; letter-spacing: .03em; color: var(--gold); text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.alliance-hero-title { font-family: 'Archivo Black', sans-serif; font-size: clamp(28px, 4.5vw, 46px); color: #fff; margin: 0; text-shadow: 0 4px 20px rgba(0,0,0,.4); }
@media (max-width: 600px) { .alliance-hero-copy { padding: 0 20px 28px; } }

.alliance-body { max-width: 760px; margin: 0 auto; padding: 48px 48px 0; display: flex; flex-direction: column; gap: 16px; }
.alliance-body p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--text-muted); }
.alliance-cta-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 4px; }
.alliance-logo-badge { width: 84px; height: 84px; border-radius: 16px; background: #fff; border: 1px solid #EDEBE3; display: flex; align-items: center; justify-content: center; padding: 10px; flex-shrink: 0; }
.alliance-logo-badge img { width: 100%; height: 100%; object-fit: contain; }
.alliance-social-row { display: flex; gap: 10px; margin-top: 4px; }
.alliance-footnote { font-size: 14px; color: var(--text-muted); }
.alliance-footnote a { color: var(--ink); text-decoration: underline; font-weight: 600; }
.alliance-back { padding: 32px 48px 64px; max-width: 760px; margin: 0 auto; }
.alliance-back a { font-size: 13px; font-weight: 600; text-decoration: underline; }
@media (max-width: 600px) { .alliance-body, .alliance-back { padding-left: 20px; padding-right: 20px; } }

/* ---------- ALIANZAS: directorio ---------- */
.alliance-kicker { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--brown); margin: 0 0 6px; }
.species-card.no-logo .species-card-media { background: var(--ink); }
.species-card.no-logo .species-card-media img { opacity: .92; }

/* ---------- AGROBIODIVERSIDAD: dato educativo por tarjeta + tarjeta de 2 fotos (solo variantes, no tocan .species-card base) ---------- */
.species-fact { margin: 4px 0 0; font-size: 12px; line-height: 1.5; color: var(--text-muted); font-style: normal; }
.species-card-media--pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #EDEBE3; }
.species-card-media--pair img { height: 100%; }
