/* ==========================================================
   Apícola Santa Bárbara — Vitrina de exportación
   Paleta: miel ámbar / crema / verde bosque profundo
   ========================================================== */

:root {
  --amber: #e8a13a;
  --amber-deep: #c77f1a;
  --honey-soft: #f6d9a0;
  --cream: #faf4e8;
  --cream-2: #f4ead6;
  --forest: #1e2b20;
  --forest-2: #16211a;
  --ink: #2a2118;
  --muted: #6f6455;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 20px 50px -20px rgba(42, 33, 24, .25);
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 56px; font-size: 15px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container { width: min(1140px, 92%); margin: 0 auto; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; color: inherit; }

a { color: inherit; }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97'%3E%3Cpath d='M28 0 56 16v32L28 64 0 48V16z' fill='none' stroke='rgba(255,255,255,.18)' stroke-width='1.4'/%3E%3Cpath d='M28 64 56 80v32l-28 16-28-16V80z' fill='none' stroke='rgba(255,255,255,.11)' stroke-width='1.4'/%3E%3C/svg%3E"),
    linear-gradient(90deg, #b56e12 0%, var(--amber-deep) 40%, var(--amber) 100%);
  border-bottom: 2px solid rgba(140, 90, 20, .55);
  box-shadow: 0 6px 22px -10px rgba(60, 40, 10, .45);
  transition: box-shadow .3s;
}
.nav.scrolled {
  box-shadow: 0 8px 30px -10px rgba(60, 40, 10, .6);
}
.nav-inner {
  width: min(1180px, 94%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
}
.brand {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none;
  font-family: var(--font-head);
  font-size: .95rem;
  color: var(--ink);
}
.brand-logo {
  height: 62px; width: auto;
  margin: -10px 0;
  filter: drop-shadow(0 0 4px rgba(255,250,240,.9)) drop-shadow(0 1px 3px rgba(0,0,0,.3));
}

.nav-links { display: flex; align-items: center; gap: 13px; }
.nav-links a {
  text-decoration: none;
  font-size: .79rem;
  font-weight: 600;
  color: #3a2410;
  position: relative;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255,235,200,.35);
}
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute; left: 0; bottom: -5px;
  width: 0; height: 2px;
  background: #fff4d8;
  transition: width .25s;
}
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  background: var(--forest);
  color: var(--cream) !important;
  padding: 7px 13px;
  border-radius: 100px;
  transition: background .25s, transform .2s;
}
.nav-cta:hover { background: var(--amber-deep); transform: translateY(-1px); }

.nav-right { display: flex; align-items: center; gap: 12px; }

.lang-toggle {
  display: flex; align-items: center; gap: 4px;
  border: 1.5px solid rgba(58, 36, 16, .4);
  border-radius: 100px;
  padding: 3px 8px;
  font-size: .75rem; font-weight: 600;
}
.lang-btn {
  border: none; background: none; cursor: pointer;
  font: inherit; color: rgba(58, 36, 16, .55);
  padding: 1px 3px;
}
.lang-btn.active { color: #2c1a08; }
.lang-sep { color: rgba(58, 36, 16, .35); }

.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 6px;
}
.hamburger span {
  width: 24px; height: 2.5px;
  background: #3a2410;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(160deg, var(--forest-2) 0%, var(--forest) 55%, #2c3d2a 100%);
  color: var(--cream);
}
.hero-bg { position: absolute; inset: 0; }
.hero-glow {
  position: absolute;
  width: 900px; height: 900px;
  top: -350px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(232, 161, 58, .22) 0%, transparent 60%);
}
.hero-honeycomb {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: .8;
}
.hero-content { position: relative; z-index: 2; width: min(880px, 90%); padding: 120px 0 80px; }
.hero-tag {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--honey-soft);
  border: 1px solid rgba(246, 217, 160, .35);
  padding: 8px 20px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 500;
  letter-spacing: -.01em;
}
.hero-title em {
  font-family: "Great Vibes", "Fraunces", cursive;
  font-style: normal;
  font-weight: 400;
  font-size: 1.22em;
  color: var(--amber);
  text-shadow: 0 3px 14px rgba(0,0,0,.35);
}
.hero-sub {
  margin: 20px auto 30px;
  max-width: 640px;
  font-size: 1.05rem;
  color: rgba(250, 244, 232, .82);
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 15px 34px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  font-size: .98rem;
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .25s, background .25s, color .25s;
}
.btn-primary {
  background: var(--amber);
  color: var(--forest-2);
  box-shadow: 0 12px 30px -10px rgba(232, 161, 58, .55);
}
.btn-primary:hover { transform: translateY(-2px); background: #f2b14d; }
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(250, 244, 232, .4);
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn-full { width: 100%; }

.hero-scroll {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(250, 244, 232, .35);
  border-radius: 14px;
}
.hero-scroll span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--amber);
  animation: scrollHint 1.8s infinite;
}
@keyframes scrollHint {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- STATS ---------- */
.stats {
  background: var(--amber);
  color: var(--forest-2);
  padding: 34px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  display: block;
  line-height: 1;
}
.stat-num sup { font-size: .45em; font-weight: 500; margin-left: 2px; }
.stat-label {
  display: block;
  margin-top: 8px;
  font-size: .85rem;
  font-weight: 500;
  opacity: .85;
}

/* ---------- SECTIONS ---------- */
.section {
  padding: 20px 0 44px;
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.section-dark {
  background: var(--forest);
  color: var(--cream);
}
.section-head { max-width: 780px; margin: 0 auto 24px; text-align: center; }
.section-head h2 { font-size: clamp(1.55rem, 3.2vw, 2.1rem); font-weight: 500; }
.eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: 14px;
}
.section-dark .eyebrow { color: var(--amber); }

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}
.about-text p { margin-bottom: 12px; font-size: .98rem; color: var(--muted); text-align: justify; hyphens: auto; }
.about-text p:first-child { color: var(--ink); font-size: 1.08rem; }

.flora-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--amber);
}
.flora-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.flora-sub { font-size: .85rem; color: var(--muted); margin-bottom: 16px; }
.flora-list { list-style: none; margin-bottom: 16px; }
.flora-list li {
  display: flex; align-items: baseline; gap: 12px;
  padding: 5px 0;
  border-bottom: 1px dashed rgba(42, 33, 24, .12);
  font-weight: 600;
}
.flora-list em { font-weight: 400; color: var(--muted); font-size: .85rem; }
.flora-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}
.flora-note { font-size: .85rem; color: var(--muted); font-style: italic; }

/* ---------- PRODUCTS ---------- */
.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.product-card {
  background: rgba(250, 244, 232, .05);
  border: 1px solid rgba(250, 244, 232, .14);
  border-radius: var(--radius);
  padding: 24px 26px;
  transition: transform .3s, border-color .3s, background .3s;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 161, 58, .5);
  background: rgba(250, 244, 232, .08);
}
.product-card-featured {
  background: rgba(232, 161, 58, .09);
  border-color: rgba(232, 161, 58, .35);
}
.product-icon {
  width: 42px; height: 42px;
  color: var(--amber);
  margin-bottom: 12px;
}
.product-icon svg { width: 100%; height: 100%; }
.product-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 100px;
  background: rgba(232, 161, 58, .18);
  color: var(--amber);
  margin-bottom: 10px;
}
.badge-new { background: var(--amber); color: var(--forest-2); }
.product-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.product-card > p { color: rgba(250, 244, 232, .75); margin-bottom: 12px; font-size: .9rem; }
.product-specs { list-style: none; }
.product-specs li {
  padding: 4px 0 4px 24px;
  position: relative;
  font-size: .92rem;
  color: rgba(250, 244, 232, .85);
  border-top: 1px solid rgba(250, 244, 232, .08);
}
.product-specs li::before {
  content: "";
  position: absolute;
  left: 4px; top: 15px;
  width: 10px; height: 10px;
  background: var(--amber);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

/* ---------- QUALITY ---------- */
.quality-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.quality-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: 0 12px 35px -18px rgba(42, 33, 24, .18);
  transition: transform .3s;
}
.quality-item:hover { transform: translateY(-6px); }
.quality-num {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--honey-soft);
  -webkit-text-stroke: 1.2px var(--amber-deep);
  color: transparent;
  margin-bottom: 10px;
}
.quality-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.quality-item p { font-size: .9rem; color: var(--muted); }

/* ---------- MARKETS / ROUTES ---------- */
.routes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.route {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(250, 244, 232, .05);
  border: 1px solid rgba(250, 244, 232, .14);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.route-flag { font-size: 1.9rem; line-height: 1; }
.route-info { flex: 1; }
.route-info h3 { font-size: 1.25rem; margin-bottom: 6px; }
.route-info p { font-size: .9rem; color: rgba(250, 244, 232, .72); }
.route-status {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 100px;
  white-space: nowrap;
}
.route-status.active { background: #4a7c3f; color: #eaffea; }
.route-status.opening { background: var(--amber); color: var(--forest-2); }
.markets-note {
  font-size: .92rem;
  color: rgba(250, 244, 232, .6);
  max-width: 780px;
  border-left: 3px solid var(--amber);
  padding-left: 20px;
}

/* ---------- CONTACT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-info h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 500; margin-bottom: 12px; }
.contact-info > p { color: var(--muted); margin-bottom: 18px; }
.contact-list { list-style: none; }
.contact-list li {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 0;
  font-size: .95rem;
}
.contact-list svg {
  width: 24px; height: 24px;
  color: var(--amber-deep);
  flex-shrink: 0;
}
.contact-list a { text-decoration: none; font-weight: 600; color: var(--ink); }
.contact-list a:hover { color: var(--amber-deep); }

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-form label { display: flex; flex-direction: column; gap: 5px; }
.contact-form label span {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--muted);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit;
  padding: 10px 14px;
  border: 1.5px solid rgba(42, 33, 24, .15);
  border-radius: 10px;
  background: var(--cream);
  transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(232, 161, 58, .18);
}
.contact-form textarea { resize: vertical; }
.form-note { font-size: .85rem; color: #4a7c3f; text-align: center; }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--forest-2);
  color: rgba(250, 244, 232, .75);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand .brand-hex { color: var(--amber); }
.footer-brand strong { color: var(--cream); }
.footer-brand p { font-size: .82rem; }
.footer-copy { font-size: .82rem; }

/* ---------- SOCIAL DOCK (contacto flotante) ---------- */
.social-dock {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dock-btn {
  width: 48px; height: 44px;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 8px 20px -6px rgba(42, 33, 24, .45);
  transition: transform .25s, box-shadow .25s;
}
.dock-btn:hover { transform: scale(1.12); }
.dock-btn svg { width: 21px; height: 21px; }
.dock-wa   { background: #25d366; }
.dock-fb   { background: #1877f2; }
.dock-ig   { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.dock-tel  { background: var(--forest); }
.dock-mail { background: var(--amber-deep); }

/* ---------- BUSCADOR DE MIEL (mapa 3D + distribuidores) ---------- */
.section-sub { color: var(--muted); margin-top: 12px; max-width: 620px; }

/* Escena 3D — mapa acostado en horizontal */
.map3d-wrap { text-align: center; }
.map3d-scene {
  position: relative;
  height: 195px;
  perspective: 1400px;
  perspective-origin: 50% 45%;
}
.map3d-tilt {
  position: absolute;
  top: 44%;
  left: 50%;
  width: min(940px, 84vw);
  transform-style: preserve-3d;
  transform: translate(-50%, -50%) rotateX(28deg);
  transform-origin: 50% 50%;
  transition: transform .5s ease, opacity .4s ease;
}
.map3d-wrap:hover .map3d-tilt { transform: translate(-50%, -50%) rotateX(22deg); }
/* Al abrir una región: el mapa pasa a segundo plano */
.map3d-scene.open .map3d-tilt { opacity: .4; }
.map3d-top { position: relative; }
.chile3d { width: 100%; height: auto; display: block; }

/* Logos flotantes de la región activa (ocultos hasta el clic) */
.dist-dock {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) translateY(14px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
  text-shadow: 0 1px 6px var(--cream), 0 0 14px var(--cream);
}
.map3d-scene.open .dist-dock {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.dist-dock-title { font-size: .92rem; color: var(--ink); }
.dist-dock-title strong { font-family: var(--font-head); font-size: 1.05rem; margin-right: 8px; }
.dist-dock-title span { color: var(--muted); font-size: .82rem; }

/* Ficha flotante del distribuidor */
.dist-float {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  width: min(400px, 92%);
  z-index: 20;
}

/* Regiones — estilo ilustración con borde y sombra offset suave */
.region {
  stroke: rgba(44,36,24,.75);
  stroke-width: 2.2;
  stroke-linejoin: round;
  cursor: pointer;
  transform-box: view-box;
  transition: transform .22s ease, filter .22s ease;
  filter: drop-shadow(-2px 3px 0 rgba(30,24,16,.28));
}
.region:hover,
.region:focus {
  transform: translateY(-8px);
  filter: drop-shadow(-3px 4px 0 rgba(30,24,16,.35)) brightness(1.15);
  outline: none;
}
.region.active {
  transform: translateY(-8px);
  filter: drop-shadow(-3px 4px 0 rgba(30,24,16,.4)) brightness(1.2) saturate(1.15);
}
.map3d-scene.open .region:not(.active) { opacity: .8; }

/* Pin sobre la región activa */
.map-pin { pointer-events: none; }
.pin-dot { fill: var(--forest-2); stroke: var(--amber); stroke-width: 2; }
.pin-ring { fill: none; stroke: var(--amber-deep); stroke-width: 2.5; opacity: 0; }
.pin-pop .pin-ring { animation: pinRing 1.6s ease-out infinite; }
.pin-pop .pin-dot { animation: pinPop .5s ease; }
@keyframes pinPop {
  0% { transform: scale(0); }
  60% { transform: scale(1.6); }
  100% { transform: scale(1); }
}
@keyframes pinRing {
  0% { r: 6; opacity: .9; }
  100% { r: 26; opacity: 0; }
}
/* Abejita guía con globo de diálogo — letrero arriba, abeja centrada abajo */
.bee-sign {
  position: absolute;
  top: -42px;
  right: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  z-index: 15;
  pointer-events: none;
}
.bee { height: 62px; width: auto; margin-bottom: -8px; mix-blend-mode: multiply; animation: beeFloat 3.2s ease-in-out infinite; z-index: 1; position: relative; }
@keyframes beeFloat {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-8px) rotate(4deg); }
}
.bee-bubble {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1.5px solid var(--amber);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 700;
  padding: 7px 13px;
  border-radius: 16px;
  box-shadow: 0 8px 20px -8px rgba(42,33,24,.35);
  cursor: pointer;
  pointer-events: auto;
  transition: background .2s, transform .2s;
}
.bee-bubble:hover { background: #fff6e3; transform: translateY(-2px); }
.bee-caret { width: 11px; height: 11px; flex-shrink: 0; transition: transform .25s; }
.bee-sign.menu-open .bee-caret { transform: rotate(180deg); }
.bee-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -7px;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 7px solid var(--white);
}

/* Menú desplegable de regiones */
.region-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 200px;
  max-height: 264px;
  overflow-y: auto;
  background: var(--white);
  border: 1.5px solid rgba(232,161,58,.6);
  border-radius: 14px;
  box-shadow: 0 18px 40px -12px rgba(42,33,24,.4);
  padding: 6px;
  display: none;
  pointer-events: auto;
  z-index: 30;
}
.bee-sign.menu-open .region-menu { display: block; }
.region-opt {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: .84rem;
  font-weight: 600;
  color: var(--ink);
  padding: 7px 12px;
  border-radius: 9px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.region-opt:hover { background: #fbeed3; }
.region-opt.active { background: var(--amber); color: var(--forest-2); }

/* Selector de región para pantallas chicas */
.region-select-row { display: none; }
@media (max-width: 720px) {
  .region-select-row {
    display: flex;
    justify-content: center;
    margin: -8px 0 10px;
  }
  .region-select {
    font-family: var(--font-body);
    font-size: .92rem;
    font-weight: 600;
    color: var(--ink);
    background: var(--white);
    border: 1.5px solid var(--amber);
    border-radius: 14px;
    padding: 10px 16px;
    box-shadow: 0 8px 20px -8px rgba(42,33,24,.3);
    width: min(300px, 82vw);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%232a2118' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
  }
}

/* Nombre de la región que sigue al puntero */
.map-tip {
  position: absolute;
  transform: translate(-50%, -140%);
  background: var(--forest-2);
  color: var(--cream);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 5px 12px;
  border-radius: 100px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s ease;
  z-index: 30;
  white-space: nowrap;
  box-shadow: 0 6px 16px -6px rgba(42,33,24,.5);
}
.map-tip.show { opacity: 1; }

/* Sección Dónde comprar: más compacta para caber en pantalla */
#donde-comprar { padding-top: 14px; padding-bottom: 20px; }
#donde-comprar .section-head { margin-bottom: 6px; }
#donde-comprar .section-sub { margin-top: 6px; }
#donde-comprar .retail-grid { margin-top: 12px; }

.dist-logos {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.dist-logo {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: none; border: none; cursor: pointer;
  font: inherit;
  padding: 8px;
  border-radius: 14px;
  transition: background .2s;
}
.dist-logo:hover { background: var(--cream); }
.logo-circle {
  width: 58px; height: 58px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: .03em;
  box-shadow: 0 8px 18px -8px rgba(42,33,24,.5);
  border: 3px solid transparent;
  transition: transform .2s, border-color .2s;
}
.logo-circle.small { width: 40px; height: 40px; font-size: .85rem; flex-shrink: 0; }
.dist-logo:hover .logo-circle { transform: scale(1.07); }
.dist-logo.active .logo-circle { border-color: var(--amber-deep); transform: scale(1.1); }
.logo-name {
  font-size: .75rem;
  font-weight: 600;
  color: var(--muted);
  max-width: 90px;
  text-align: center;
  line-height: 1.25;
}

/* Tarjeta de info flotante (popover sobre el mapa) */
.dist-card-open {
  border: 1.5px solid var(--amber);
  border-radius: 14px;
  padding: 16px 18px;
  background: var(--white);
  box-shadow: 0 18px 40px -12px rgba(42,33,24,.4);
  animation: cardIn .3s ease;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.dist-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.dist-card-head strong { font-size: 1.05rem; display: block; }
.dist-card-head small { color: var(--muted); font-size: .82rem; }
.dist-addr { font-size: .9rem; color: var(--muted); margin-bottom: 12px; }
.dist-links { display: flex; gap: 10px; flex-wrap: wrap; }
.dist-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .82rem; font-weight: 600;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 100px;
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid rgba(42,33,24,.12);
  transition: border-color .2s, color .2s;
}
.dist-link:hover { border-color: var(--amber); color: var(--amber-deep); }
.dist-link svg { width: 15px; height: 15px; }

/* ---------- RETAIL (Walmart + distribuidor) ---------- */
.retail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 16px;
}
.retail-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--white);
  border: 1.5px solid rgba(42,33,24,.1);
  border-radius: var(--radius);
  padding: 14px 18px;
  text-decoration: none;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.retail-card:hover {
  transform: translateY(-4px);
  border-color: var(--amber);
  box-shadow: var(--shadow);
}
.retail-card-cta { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.retail-card-cta:hover { border-color: var(--amber); }
.retail-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 12px;
  background: var(--cream-2);
  color: var(--amber-deep);
  display: flex; align-items: center; justify-content: center;
}
.retail-card-cta .retail-icon { background: rgba(232,161,58,.18); color: var(--amber); }
.retail-icon svg { width: 24px; height: 24px; }
.retail-card strong { font-family: var(--font-head); font-size: 1.05rem; }
.retail-card p { font-size: .84rem; color: var(--muted); margin-top: 3px; }
.retail-card-cta p { color: rgba(250,244,232,.75); }
.retail-arrow { margin-left: auto; font-size: 1.5rem; color: var(--amber-deep); flex-shrink: 0; }
.retail-card-cta .retail-arrow { color: var(--amber); }

/* ---------- REVEAL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .about-grid,
  .products-grid,
  .contact-grid,
  .routes,
  .retail-grid { grid-template-columns: 1fr; }
  .quality-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  .map3d-tilt { width: min(520px, 88vw); }
  .map3d-scene { height: 210px; }
  .dist-float { bottom: 26px; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    height: 100vh;
    width: min(320px, 80vw);
    background: var(--forest);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 26px;
    padding: 40px;
    transition: right .35s ease;
    box-shadow: -20px 0 60px rgba(0, 0, 0, .35);
  }
  .nav-links.open { right: 0; }
  .nav-links a { color: var(--cream); font-size: 1.15rem; }
  .nav-cta { background: var(--amber); color: var(--forest-2) !important; }
  .hamburger { display: flex; }
  .section { padding: 20px 0 40px; }
  .contact-form { padding: 26px 20px; }
  .route { flex-direction: column; align-items: flex-start; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll span { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- HERO: slideshow de fotos reales ---------- */
.hero-photos {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-photos img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: heroFade 26s ease-in-out infinite;
}
.hero-photos .hp-1 { animation-delay: 0s; }
.hero-photos .hp-2 { animation-delay: 6.5s; }
.hero-photos .hp-3 { animation-delay: 13s; }
.hero-photos .hp-4 { animation-delay: 19.5s; }
@keyframes heroFade {
  0% { opacity: 0; }
  4% { opacity: .38; }
  27% { opacity: .38; }
  31% { opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-photos img { animation: none; }
  .hero-photos .hp-1 { opacity: .38; }
}

/* Logos ASB + SSS en las esquinas superiores del hero */
.hero-logo {
  position: absolute;
  top: 74px;
  z-index: 3;
  transition: transform .3s;
}
.hero-logo:hover { transform: translateY(-5px) scale(1.05); }
.hero-logo-asb {
  left: 110px;
  height: 122px; width: 122px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 14px 34px -10px rgba(0,0,0,.55);
}
.hero-logo-sss {
  right: 84px;
  height: 130px; width: auto;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,.45));
}

/* ---------- NUESTRAS EMPRESAS ---------- */
.section-cream { background: var(--cream-2); }
.companies {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 22px;
  align-items: stretch;
}
.company-card {
  background: var(--white);
  border: 1px solid rgba(42,33,24,.1);
  border-radius: 20px;
  padding: 26px 28px;
  box-shadow: 0 16px 40px -22px rgba(42,33,24,.35);
  text-align: center;
}
.company-card-dark {
  background: linear-gradient(160deg, var(--forest-2), var(--forest));
  color: var(--cream);
  border-color: var(--forest);
}
.company-card-dark p,
.company-card-dark .company-list li { color: rgba(250,244,232,.82); }
.company-logo {
  height: 84px;
  width: auto;
  margin-bottom: 14px;
  border-radius: 50%;
  box-shadow: 0 8px 22px -8px rgba(42,33,24,.4);
}
.company-card-dark .company-logo {
  width: 150px;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 0 3px rgba(250,244,232,.8));
}
.company-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--forest);
  background: rgba(30,43,32,.1);
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 10px;
}
.company-card-dark .company-tag,
.company-tag.tag-amber {
  background: rgba(232,161,58,.18);
  color: var(--amber);
}
.company-card h3 {
  font-family: var(--font-head);
  font-size: 1.35rem;
  margin-bottom: 8px;
}
.company-card p { font-size: .9rem; color: var(--muted); line-height: 1.55; }
.company-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.company-list li {
  font-size: .84rem;
  color: var(--muted);
}
.company-list li::before {
  content: "⬡";
  color: var(--amber-deep);
  margin-right: 7px;
}
.company-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 2px;
}
.bridge-hex {
  width: 13px; height: 15px;
  background: var(--amber);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.bridge-label {
  writing-mode: vertical-rl;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber-deep);
  text-align: center;
  line-height: 1.4;
}

/* ---------- GALERÍA ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.gallery-item {
  position: relative;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 16 / 10;
  box-shadow: 0 10px 26px -14px rgba(42,33,24,.4);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 12px 9px;
  font-size: .76rem;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(transparent, rgba(20,15,8,.78));
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  z-index: 200;
  background: rgba(16,12,7,.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox-img {
  max-width: 88vw;
  max-height: 78vh;
  border-radius: 12px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.8);
}
.lightbox-cap { color: var(--cream); font-size: .92rem; }
.lightbox-close {
  position: absolute;
  top: 20px; right: 28px;
  background: none; border: none;
  color: var(--cream);
  font-size: 42px;
  cursor: pointer;
  line-height: 1;
}

/* Variedades de miel dentro de la tarjeta de producto */
.honey-tags {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}
.honey-tags-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.honey-tag {
  font-size: .72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid rgba(232,161,58,.5);
  color: var(--honey-soft);
}

/* ---------- RESPONSIVE: empresas + galería ---------- */
@media (max-width: 960px) {
  .companies { grid-template-columns: 1fr; }
  .company-bridge { flex-direction: row; padding: 4px 0; }
  .bridge-label { writing-mode: horizontal-tb; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-logo { top: 92px; }
  .hero-logo-asb { height: 96px; left: 20px; }
  .hero-logo-sss { height: 78px; right: 20px; }
  .nav-links { gap: 16px; }
}
@media (max-width: 720px) {
  .gallery-item figcaption { font-size: .7rem; }
}

/* Compactar sección empresas para que entre en pantallas bajas */
#empresas .company-card { padding: 20px 22px; }
#empresas .company-logo { height: 68px; }
#empresas .company-card-dark .company-logo { width: 126px; height: auto; }
#empresas .company-card h3 { font-size: 1.18rem; margin-bottom: 6px; }
#empresas .company-card p { font-size: .86rem; }
#empresas .company-list { margin-top: 10px; gap: 4px; }
#empresas .company-list li { font-size: .8rem; }

/* Sello de agua: nacionales e internacionales */
#productos { position: relative; }
.products-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
}
.products-bg span {
  font-family: var(--font-head);
  font-size: clamp(3rem, 8.5vw, 7.2rem);
  font-weight: 700;
  letter-spacing: .04em;
  color: rgba(232, 161, 58, .08);
  white-space: nowrap;
  text-transform: uppercase;
  user-select: none;
}
.products-grid { position: relative; z-index: 2; }

/* Botón dentro de la tarjeta de miel -> Dónde comprar */
.btn-product {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 7px 16px;
  border-radius: 100px;
  background: var(--amber);
  color: var(--forest-2);
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s, box-shadow .25s;
}
.btn-product:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -8px rgba(232,161,58,.55);
}

/* Tarjetas con pendón vertical lateral */
.company-card {
  display: flex;
  align-items: stretch;
  gap: 20px;
  padding: 0 !important;
  overflow: hidden;
  text-align: left;
}
.company-pendon {
  width: 108px;
  flex-shrink: 0;
  object-fit: cover;
  display: block;
}
.company-body { padding: 22px 22px 22px 0; }
.company-card:not(.company-card-dark) .company-body { padding-left: 0; }
.company-card-dark .company-body { padding: 22px 0 22px 22px; }

/* Título con la caligrafía del logo */
#empresas h2 {
  font-family: "Great Vibes", "Fraunces", cursive;
  font-weight: 400;
  font-size: clamp(2.4rem, 4.6vw, 3.4rem);
  color: var(--amber-deep);
}

/* ---------- MÓVIL: dock compacto y hero despejado ---------- */
@media (max-width: 720px) {
  .social-dock { right: 8px; gap: 7px; }
  .dock-btn { width: 36px; height: 33px; }
  .dock-btn svg { width: 16px; height: 16px; }
  .hero-content { padding-right: 48px; }
  .bee-sign { display: none; }
}
@media (max-width: 720px) {
  .hero-logo { top: 76px; }
  .hero-logo-asb { height: 70px; width: 70px; left: 14px; }
  .hero-logo-sss { height: 58px; right: 14px; }
}
