/* Chocolate Beniano — hoja de estilos */
:root {
  --cacao-900: #2B1A12;
  --cacao-800: #1E110B;
  --cacao-700: #5C3A21;
  --cacao-500: #8A5A3A;
  --gold: #C9A24D;
  --gold-300: #E3C784;
  --cream: #F4EBDD;
  --cream-200: #EAD9C2;
  --cream-100: #FBF6EE;
  --leaf: #4F6F3A;
  --wa: #25D366;
  --wa-dark: #1DA851;
  --ink: #2B1A12;
  --muted: #6B5646;
  --serif: 'Cormorant Garamond', Cormorant, Garamond, 'Times New Roman', serif;
  --sans: 'Jost', 'Futura', 'Century Gothic', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --container: 1120px;
  --radius: 1.25rem;
  --frame-radius: 22px;
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

img, svg, picture { max-width: 100%; display: block; }
img { height: auto; }
figure { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 .8rem;
  letter-spacing: 0;
  font-variant-numeric: lining-nums;
}
h2 { font-size: clamp(2.3rem, 1.6rem + 2.8vw, 3.6rem); }
h3 { font-size: clamp(1.5rem, 1.3rem + .8vw, 1.9rem); }
h4 { font-size: 1.45rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
em { font-style: italic; }

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--gold); color: var(--cacao-900);
  padding: .6rem 1rem; border-radius: .5rem; z-index: 100; font-weight: 500;
}
.skip:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--cacao-700); outline-offset: 2px; box-shadow: 0 0 0 2px var(--cream-100); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.kicker {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.section--light .kicker, .section--cream .kicker { color: var(--cacao-500); }

.lead { font-family: var(--serif); font-size: 1.35rem; line-height: 1.45; color: var(--muted); max-width: 58ch; }
.lead--narrow { margin-inline: auto; max-width: 46ch; }
.section--dark .lead { color: rgba(244, 235, 221, .8); }

.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  font-family: var(--sans); font-weight: 500; font-size: .98rem; letter-spacing: .03em;
  text-decoration: none; border: 1px solid transparent;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--gold); color: var(--cacao-900); }
.btn-primary:hover { background: var(--gold-300); }
.btn-ghost { border-color: rgba(244, 235, 221, .45); color: var(--cream); }
.btn-ghost:hover { border-color: var(--cream); }
.btn-wa { background: var(--wa); color: var(--cacao-900); }
.btn-wa:hover { background: var(--wa-dark); }
.btn-sm { padding: .55rem 1rem; font-size: .88rem; }
.btn-lg { padding: 1.1rem 2.1rem; font-size: 1.08rem; }
.ico { width: 1.25em; height: 1.25em; flex: none; }

/* Marca */
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; margin-right: auto; color: var(--gold); }
.brand-mark { width: 30px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-script { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.05rem; color: var(--gold-300); }
.brand-caps { font-family: var(--serif); font-weight: 700; font-size: 1.02rem; letter-spacing: .26em; text-transform: uppercase; color: var(--cream); margin-top: .18rem; }
.brand-tag { font-family: var(--sans); font-size: .72rem; letter-spacing: .12em; color: rgba(244, 235, 221, .6); margin-top: .45rem; }
.brand-tag--hdr { margin-top: .3rem; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(244, 235, 221, .55); white-space: nowrap; }
@media (max-width: 479px) { .brand-tag--hdr { display: none; } }

/* Cabecera */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--cacao-900);
  color: var(--cream);
  border-bottom: 1px solid rgba(201, 162, 77, .18);
}
.header-inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: var(--header-h);
}

.nav { display: none; }
.nav a {
  text-decoration: none; font-weight: 500; font-size: .92rem; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(244, 235, 221, .8); padding: .5rem .1rem;
  border-bottom: 1px solid transparent; transition: color .15s, border-color .15s;
}
.nav a:hover { color: var(--gold-300); border-color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: .6rem; }

.lang { display: inline-flex; border: 1px solid rgba(201, 162, 77, .45); border-radius: 999px; padding: 2px; }
.lang button {
  border: 0; background: transparent; color: rgba(244, 235, 221, .75);
  font: 500 .78rem var(--sans); letter-spacing: .1em;
  padding: .38rem .7rem; border-radius: 999px; cursor: pointer; min-height: 38px;
}
.lang button[aria-pressed="true"] { background: var(--gold); color: var(--cacao-900); }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px;
  background: transparent; border: 1px solid rgba(201, 162, 77, .45); border-radius: .75rem; cursor: pointer;
}
.nav-toggle span { display: block; height: 1.5px; background: var(--cream); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav.open {
  display: flex; flex-direction: column;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--cacao-900); padding: .5rem 1.25rem 1.25rem;
  border-bottom: 1px solid rgba(201, 162, 77, .18);
}
.nav.open a { padding: .9rem 0; border-bottom: 1px solid rgba(244, 235, 221, .08); font-size: 1rem; }

@media (min-width: 1024px) {
  .nav { display: flex; gap: 1.7rem; }
  .nav-toggle { display: none; }
  .brand { margin-right: 0; }
  .header-inner { justify-content: space-between; }
}
@media (min-width: 1024px) and (max-width: 1119px) {
  .nav { gap: 1.1rem; }
  .nav a { font-size: .84rem; }
}
@media (max-width: 480px) {
  /* El botón flotante y el del hero cubren WhatsApp; el de cabecera no cabe junto a ES/EN + menú en 360 px */
  .header-actions .btn-wa { display: none; }
}

/* Marcos de foto */
.frame { position: relative; }
.frame-img { border-radius: var(--frame-radius); overflow: hidden; }
.frame-img img { width: 100%; height: 100%; object-fit: cover; }
.frame::after {
  content: ""; position: absolute; inset: 0;
  transform: translate(14px, 14px);
  border: 1px solid var(--gold); border-radius: var(--frame-radius);
  pointer-events: none; opacity: .75;
}
.frame--portrait { aspect-ratio: 4 / 5; }
.frame--portrait .frame-img { height: 100%; }

/* Hero */
.hero {
  background: var(--cacao-900);
  color: var(--cream);
  padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(4rem, 9vw, 7rem);
}
.hero-grid { display: grid; gap: 3rem; align-items: center; }
.hero-title {
  font-size: clamp(3.4rem, 2.2rem + 5.5vw, 6.4rem);
  font-weight: 600; margin: 0 0 1.25rem; line-height: .96;
}
.hero-title em { color: var(--gold-300); font-weight: 500; }
.hero-sub {
  font-family: var(--serif); font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem); line-height: 1.4;
  color: rgba(244, 235, 221, .88); max-width: 34ch; margin-bottom: 1.75rem;
}
.badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.25rem; }
.badges li {
  font-size: .74rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  padding: .5rem .95rem; border-radius: 999px;
  border: 1px solid rgba(201, 162, 77, .55); color: var(--gold-300);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.kicker--locator { display: inline-flex; align-items: center; gap: .6rem; }
.locator { width: 20px; height: 28px; flex: none; color: var(--gold-300); }
.hero-sello { position: absolute; left: -16px; bottom: -16px; width: 84px; height: 84px; z-index: 1; }
@media (max-width: 480px) { .hero-sello { width: 68px; height: 68px; left: -10px; bottom: -10px; } }

.hero-media { display: grid; place-items: center; padding: 0 14px 14px 0; }
.hero-media .frame { width: min(100%, 440px); }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 4rem; }
  .hero-media { justify-items: end; }
}

/* Secciones */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--light { background: var(--cream-100); }
.section--cream { background: var(--cream); }
.section--dark { background: var(--cacao-900); color: var(--cream); }
.section-head { max-width: 62ch; margin-bottom: 2.75rem; }
.center .section-head, .section-head.center { margin-inline: auto; }

.two-col { display: grid; gap: 1.5rem; margin-bottom: 3.25rem; }
.prose p { color: var(--muted); font-size: 1.1rem; }
@media (min-width: 900px) {
  .two-col { grid-template-columns: 1fr 1.15fr; gap: 3.5rem; }
}

/* Proceso */
.steps-title { margin-bottom: 1.75rem; }
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1.25rem; }
.step h4 { margin: 1rem 0 .3rem; }
.step p { color: var(--muted); font-size: .98rem; margin: 0; }
.disc {
  display: grid; place-items: center;
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--cacao-900); color: var(--gold);
  border: 1px solid var(--gold);
}
.disc svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.disc--sm { width: 54px; height: 54px; }
.disc--sm svg { width: 25px; height: 25px; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 2.25rem; }
}

/* Cita */
.quote-band { background: var(--cacao-700); color: var(--cream); padding: clamp(3rem, 7vw, 5rem) 0; }
.quote { margin: 0; text-align: center; max-width: 30ch; margin-inline: auto; }
.quote-kicker { font-family: var(--sans); font-size: .78rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-300); margin: 0 0 1.1rem; }
.quote-line {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.7rem, 1.2rem + 2.4vw, 2.9rem); line-height: 1.25; margin: 0;
}

/* Producto */
.product-grid { display: grid; gap: 3rem; align-items: center; }
.spec { width: 100%; border-collapse: collapse; margin: 1.25rem 0 1rem; font-size: .98rem; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: .75rem 0; border-bottom: 1px solid var(--cream-200); }
.spec th { width: 36%; font-weight: 500; letter-spacing: .04em; color: var(--muted); padding-right: 1rem; }
.note { font-size: .88rem; color: var(--muted); }
.product-media { position: relative; padding: 0 14px 26% 0; }
.frame--lg { width: 84%; margin-left: auto; }
.frame--sm {
  position: absolute; left: 0; bottom: 0; width: 48%;
}
.frame--sm .frame-img { border: 8px solid var(--cream); }
.frame--sm::after { display: none; }
@media (min-width: 900px) {
  .product-grid { grid-template-columns: 1.05fr .95fr; gap: 4.5rem; }
}

/* Cifras */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-bottom: 3rem; }
@media (max-width: 699px) { .stat:first-child { grid-column: 1 / -1; } }
.stat {
  padding: 1.5rem 1.25rem; border-radius: var(--radius);
  background: rgba(244, 235, 221, .05); border: 1px solid rgba(244, 235, 221, .1);
  display: flex; flex-direction: column; gap: .4rem;
}
.stat-n { font-family: var(--serif); font-weight: 700; font-variant-numeric: lining-nums; font-size: clamp(2.2rem, 1.6rem + 2vw, 3.1rem); color: var(--gold); line-height: 1; }
.stat-l { font-size: .9rem; color: rgba(244, 235, 221, .75); line-height: 1.4; }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .stats { grid-template-columns: repeat(5, 1fr); } }

.chart { padding: 1.75rem; border-radius: var(--radius); background: rgba(244, 235, 221, .04); border: 1px solid rgba(244, 235, 221, .1); }
.chart-title { font-family: var(--sans); font-size: .82rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: rgba(244, 235, 221, .85); margin-bottom: 1.25rem; }
.bars { display: grid; gap: .75rem; }
.bar { display: grid; grid-template-columns: minmax(96px, 30%) 1fr 58px; align-items: center; gap: .75rem; font-size: .92rem; }
.bar-label { color: rgba(244, 235, 221, .85); }
.bar-track { height: 10px; border-radius: 999px; background: rgba(244, 235, 221, .1); overflow: hidden; }
.bar-fill { display: block; height: 100%; width: var(--w); border-radius: 999px; background: rgba(244, 235, 221, .45); transition: width .8s ease; }
.bar--target .bar-fill { background: var(--gold); }
.bar--target .bar-label, .bar--target .bar-value { color: var(--gold); font-weight: 500; }
.bar-value { text-align: right; font-variant-numeric: tabular-nums; }
.source { font-size: .8rem; color: rgba(244, 235, 221, .55); margin: 1.25rem 0 0; }

/* Importadores */
.cards { display: grid; gap: 1.25rem; margin-bottom: 2.5rem; }
.card {
  background: #fff; border-radius: var(--radius); padding: 1.6rem 1.5rem 1.4rem;
  border: 1px solid rgba(43, 26, 18, .08);
}
.card h3 { margin: 1.1rem 0 .4rem; font-size: 1.55rem; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.map { background: var(--cacao-900); color: var(--cream); border-radius: var(--radius); padding: 1.5rem 1.25rem 1rem; margin-bottom: 2.5rem; }
.map-title { font-family: var(--sans); font-size: .82rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: rgba(244, 235, 221, .85); margin-bottom: .5rem; }
.map-svg { width: 100%; height: auto; }
.map-label { font: 500 20px var(--sans); fill: var(--cream); }
.map-sub { font: 400 15px var(--sans); fill: rgba(244, 235, 221, .65); }
.map-list { display: none; }
@media (max-width: 767px) {
  .map-svg { display: none; }
  .map-list { display: grid; gap: 1.5rem; margin: .75rem 0 .75rem; }
  .map-list li { position: relative; padding-left: 2.25rem; display: flex; flex-direction: column; }
  .map-list li::before {
    content: ""; position: absolute; left: .45rem; top: .4rem; width: 14px; height: 14px; border-radius: 50%;
    background: var(--gold);
  }
  .map-list li:not(:last-child)::after {
    content: ""; position: absolute; left: calc(.45rem + 6px); top: 1.5rem; bottom: -1.5rem;
    border-left: 1px dashed rgba(201, 162, 77, .6);
  }
  .map-list-label { font-weight: 500; color: var(--cream); }
  .map-list-sub { font-size: .9rem; color: rgba(244, 235, 221, .65); }
}

/* Contacto */
.contact h2 { font-size: clamp(2.6rem, 1.8rem + 3vw, 4rem); }
.contact-num { margin-top: 1.25rem; font-family: var(--serif); font-variant-numeric: lining-nums; font-size: 1.5rem; color: var(--gold-300); letter-spacing: .04em; }

/* Pie */
.site-footer { background: var(--cacao-800); color: rgba(244, 235, 221, .72); padding: 2.75rem 0; font-size: .9rem; }
.footer-inner { display: grid; gap: 1.5rem; }
.footer-brand { display: flex; align-items: center; gap: .75rem; color: var(--gold); }
.footer-brand .brand-mark { width: 26px; height: 34px; }
.footer-academic { margin: 0; line-height: 1.7; }
.footer-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-copy { margin: 0; }
.lang--footer button { font-size: .82rem; padding: .35rem .8rem; letter-spacing: .04em; }

/* Botón flotante */
.wa-float {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: var(--cacao-900);
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
  transition: transform .18s ease, background-color .18s ease, opacity .2s ease;
}
.wa-float:hover { transform: scale(1.06); background: var(--wa-dark); }
.wa-float:focus-visible { box-shadow: 0 0 0 2px var(--cream-100), 0 8px 24px rgba(0, 0, 0, .28); }
.wa-float.is-hidden { opacity: 0; pointer-events: none; transform: scale(.6); }
.wa-float svg { width: 32px; height: 32px; }

/* Bolivia (geografía) */
.geo-grid { display: grid; gap: 2.5rem; align-items: center; }
.geo-figure { margin-right: 14px; margin-bottom: 14px; }
.geo-map { background: var(--cream-100); padding: 1.25rem; border: 1px solid rgba(43, 26, 18, .06); }
.geo-svg { width: 100%; height: auto; display: block; }
.geo-cap { font: 500 11px var(--sans); letter-spacing: .28em; fill: var(--cacao-500); }
.geo-cap--light { fill: rgba(244, 235, 221, .85); }
.geo-region { font: 600 12px var(--sans); letter-spacing: .3em; fill: var(--cacao-900); }
.geo-caption { margin-top: 1.25rem; font-family: var(--sans); font-size: .85rem; color: var(--muted); }
.places { margin: 2rem 0 0; display: grid; gap: 1.4rem; }
.place { display: grid; grid-template-columns: 2.6rem 1fr; column-gap: .75rem; }
.place-n { grid-row: 1 / span 2; font-family: var(--serif); font-size: 1.6rem; line-height: 1; color: var(--gold); font-variant-numeric: lining-nums; }
.place h3 { font-size: 1.5rem; margin: 0 0 .3rem; }
.place p { margin: 0; color: var(--muted); font-size: 1rem; }
.geo-line {
  margin: 2rem 0 0; padding-top: .9rem; border-top: 1px solid rgba(201, 162, 77, .6);
  font-family: var(--sans); font-size: .78rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--cacao-500);
}
@media (min-width: 900px) {
  .geo-grid { grid-template-columns: 5fr 7fr; gap: 4.5rem; }
}

/* Bloque consumidor (QR) */
.consumer {
  margin-top: 2rem; background: var(--cacao-900); color: var(--cream);
  border: 1px solid var(--gold); border-radius: var(--radius); padding: 1.6rem 1.5rem;
}
.consumer .kicker { color: var(--gold); margin-bottom: .5rem; }
.consumer h3 { font-size: 1.8rem; margin: 0 0 .6rem; color: var(--cream); }
.consumer p { font-family: var(--serif); font-size: 1.15rem; line-height: 1.45; color: rgba(244, 235, 221, .86); margin: 0; }
.consumer-note { margin-top: .9rem !important; font-family: var(--sans) !important; font-size: .8rem !important; letter-spacing: .06em; color: rgba(244, 235, 221, .6) !important; }

/* Aparición al hacer scroll (solo con JS) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .wa-float { transition: none; }
}
