/*--------------------------------------------------------------
  LINAJE · Páginas públicas del ecosistema
  pasaporte.html · tienda.html · historias.html
  Se apoya en cafe.css (variables --cf-* y bloques .cf_*).
----------------------------------------------------------------*/
.og_section { padding: 80px 0; }
.og_section_alt { background: var(--gray-color); }
.og_head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.og_head .cf_section_title { margin: 0; }

/* Sellos */
.og_seals { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.og_seal { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 30px; font-size: 13px; font-weight: 600; background: #e3efe2; color: #2f6b3f; }
.og_seal_muted { background: #fff; color: var(--cf-muted); border: 1px solid var(--cf-line); }

/* Pasaporte: cabecera con QR */
.og_pass_hero { padding: 32px 0 70px; }
.og_pass_card { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 32px; align-items: center; padding: 34px; border-radius: 24px; background: #fff; border: 1px solid var(--cf-line); }
.og_pass_code { font-family: monospace; font-size: 15px; font-weight: 700; color: var(--copper-color); letter-spacing: 1px; }
.og_qr { width: 200px; height: 200px; padding: 10px; border-radius: 16px; background: #fff; border: 1px solid var(--cf-line); display: grid; place-items: center; }
.og_qr img, .og_qr canvas { width: 180px !important; height: 180px !important; }
.og_qr_note { font-size: 12px; color: var(--cf-muted); text-align: center; margin-top: 8px; }
.og_preview { padding: 12px 16px; margin-bottom: 20px; border-radius: 12px; background: #f7ead9; color: #9a5a1c; font-weight: 600; }
.og_links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* Línea de tiempo de trazabilidad */
.og_timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.og_timeline::before { content: ""; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 2px; background: rgba(55, 72, 54, 0.18); }
.og_timeline li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; padding-bottom: 28px; }
.og_timeline li:last-child { padding-bottom: 0; }
.og_step_icon { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--heading-color); color: var(--white-color); font-size: 16px; }
.og_step_date { font-size: 13px; color: var(--cf-muted); }
.og_step_title { font-family: var(--heading-font); font-size: 22px; margin: 2px 0 4px; }
.og_step_meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.og_step_meta span { padding: 3px 10px; border-radius: 20px; font-size: 12px; background: var(--gray-color); }
.og_section_alt .og_step_meta span { background: #fff; }

/* Calidad */
.og_quality { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.og_q { padding: 24px; border-radius: 18px; background: #fff; border: 1px solid var(--cf-line); }
.og_q_score { font-family: var(--heading-font); font-size: 44px; line-height: 1; }
.og_q_score small { font-size: 14px; color: var(--cf-muted); font-family: var(--body-font, inherit); margin-left: 6px; }
.og_attr { display: grid; grid-template-columns: 70px minmax(0, 1fr) 40px; gap: 10px; align-items: center; font-size: 13px; margin-top: 8px; }
.og_attr_bar { height: 6px; border-radius: 3px; background: var(--gray-color); overflow: hidden; }
.og_attr_bar span { display: block; height: 100%; background: var(--copper-color); }

/* Reseñas */
.og_stars { color: #c98a2b; letter-spacing: 2px; }
.og_reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.og_review { padding: 22px; border-radius: 18px; background: #fff; border: 1px solid var(--cf-line); }
.og_review p { margin: 10px 0 8px; }
.og_review small { color: var(--cf-muted); }
.og_rating_big { display: flex; align-items: baseline; gap: 12px; }
.og_rating_big strong { font-family: var(--heading-font); font-size: 48px; line-height: 1; }

/* Certificaciones */
.og_certs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.og_cert { padding: 18px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--cf-line); }
.og_cert strong { display: block; }
.og_cert small { color: var(--cf-muted); }

/* Tienda de marca */
.og_store_banner { position: relative; min-height: 380px; display: flex; align-items: flex-end; padding: 140px 0 48px; color: var(--white-color); background: var(--heading-color) center / cover; }
.og_store_banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(28, 38, 27, 0.9) 5%, rgba(28, 38, 27, 0.35) 75%); }
.og_store_banner > .container { position: relative; }
.og_store_id { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.og_store_logo { width: 104px; height: 104px; border-radius: 22px; background: #fff center / contain no-repeat; border: 4px solid #fff; flex-shrink: 0; }
.og_store_banner h1 { color: var(--white-color); font-size: clamp(34px, 4vw, 58px); line-height: 1.05; margin: 6px 0 8px; }
.og_store_banner p { color: rgba(249, 251, 243, 0.8); margin: 0; max-width: 640px; font-size: 17px; }
.og_store_banner .og_seal { background: rgba(255, 255, 255, 0.14); color: var(--white-color); }
.og_facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 0; }
.og_facts div { padding: 18px; border-radius: 16px; background: #fff; border: 1px solid var(--cf-line); }
.og_facts dt { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--cf-muted); }
.og_facts dd { margin: 4px 0 0; font-weight: 700; font-size: 17px; }

/* Historias */
.og_stories { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.og_story_card { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--cf-line); color: inherit; text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.og_story_card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(28, 38, 27, 0.5); color: inherit; }
/* Las portadas son fotos verticales de la bolsa: se muestran en vertical para que el café se vea completo */
.og_story_img { aspect-ratio: 4 / 5; background: var(--gray-color) center 45% / cover; transition: transform 0.5s ease; }
.og_story_card:hover .og_story_img { transform: scale(1.04); }
.og_story_body { position: relative; z-index: 1; background: #fff; }
.og_story_body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.og_story_body h3 { font-size: 23px; line-height: 1.2; margin: 0; }
.og_story_body p { margin: 0; color: var(--cf-muted); }
.og_story_meta { font-size: 13px; color: var(--copper-color); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.og_filters { display: flex; flex-wrap: wrap; gap: 8px; }
.og_filter { padding: 8px 16px; border-radius: 30px; border: 1px solid var(--cf-line); background: #fff; font-size: 14px; }
.og_filter[aria-pressed="true"] { background: var(--heading-color); color: var(--white-color); border-color: var(--heading-color); }

.og_article { max-width: 760px; margin: 0 auto; }
.og_article_cover { aspect-ratio: 16 / 8; border-radius: 24px; background: var(--gray-color) center / cover; margin-bottom: 40px; }
.og_article h1 { font-size: clamp(34px, 4.2vw, 58px); line-height: 1.05; margin: 10px 0 16px; }
.og_article_lead { font-size: 20px; color: var(--cf-muted); margin-bottom: 30px; }
.og_article_body p { font-size: 18px; line-height: 1.75; margin-bottom: 22px; }
.og_article_foot { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--cf-line); }

@media (max-width: 991px) {
  .og_pass_card { grid-template-columns: 1fr; }
  .og_qr_wrap { justify-self: start; }
}
@media (max-width: 575px) {
  .og_section { padding: 56px 0; }
  .og_pass_card { padding: 22px; }
  .og_store_banner { min-height: 320px; padding: 120px 0 32px; }
  .og_store_logo { width: 80px; height: 80px; }
  .og_stories { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------
   Historia de origen (historias.html?slug=…): reportaje con portada,
   ficha de origen, cita, foto de la región, recorrido y compra.
   --------------------------------------------------------------- */
.hx_progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1001; background: transparent; }
.hx_progress span { display: block; height: 100%; width: 0; background: var(--copper-color); transition: width .1s linear; }

.hx_hero { position: relative; min-height: 560px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; isolation: isolate; }
.hx_hero_bg { position: absolute; inset: 0; z-index: -2; background: #2a3829 center / cover no-repeat; transform: scale(1.04); animation: hxZoom 14s ease-out forwards; }
.hx_hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(25, 33, 24, .35) 0%, rgba(25, 33, 24, .2) 35%, rgba(25, 33, 24, .88) 100%); }
.hx_hero_in { padding-top: 150px; padding-bottom: 56px; max-width: 980px; }
.hx_crumbs, .hx_crumbs a, .hx_crumbs span { color: rgba(255, 255, 255, .78); }
.hx_crumbs [aria-current] { color: #fff; font-weight: 600; }
.hx_crumbs a:hover { color: #fff; }
.hx_kicker { display: inline-block; margin: 22px 0 14px; padding: 6px 14px; border-radius: 30px; background: rgba(176, 112, 60, .92); font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.hx_hero h1 { color: #fff; font-size: clamp(38px, 6vw, 74px); line-height: 1.04; font-weight: 700; margin: 0 0 16px; text-wrap: balance; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.hx_lead { font-size: clamp(18px, 2vw, 22px); line-height: 1.5; color: rgba(255, 255, 255, .9); max-width: 680px; margin: 0 0 24px; }
.hx_meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0; padding: 18px 0 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .22); font-size: 14px; color: rgba(255, 255, 255, .85); }
.hx_meta i { color: #e0a877; margin-right: 6px; }

.hx_layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; padding: 64px 0 40px; align-items: start; }
.hx_body { max-width: 720px; }
.hx_body > p { font-size: 19px; line-height: 1.8; color: var(--heading-color); margin: 0 0 24px; }
.hx_first::first-letter { float: left; font-family: var(--heading-font); font-size: 84px; line-height: .78; font-weight: 700; margin: 8px 12px 0 0; color: var(--copper-color); }
.hx_quote { position: relative; margin: 38px 0; padding: 6px 0 6px 34px; border-left: 4px solid var(--copper-color); }
.hx_quote::before { content: "\201C"; position: absolute; left: 22px; top: -38px; font-family: Georgia, serif; font-size: 110px; line-height: 1; color: rgba(176, 112, 60, .18); }
.hx_quote p { margin: 0; font-family: var(--heading-font); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.3; font-weight: 600; color: var(--heading-color); }
.hx_quote cite { display: block; margin-top: 12px; font-style: normal; font-size: 14px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--copper-color); }
.hx_figure { margin: 40px 0; }
.hx_figure img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; }
.hx_figure figcaption { margin-top: 10px; font-size: 14px; color: var(--body-color); }
.hx_share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(55, 72, 54, .12); }
.hx_share span { font-size: 14px; font-weight: 600; color: var(--heading-color); margin-right: 6px; }
.hx_share a, .hx_share button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(55, 72, 54, .2); background: #fff; color: var(--heading-color); font-size: 15px; transition: all .2s; }
.hx_share a:hover, .hx_share button:hover { background: var(--heading-color); border-color: var(--heading-color); color: #fff; }

.hx_aside { position: sticky; top: 110px; display: grid; gap: 18px; }
.hx_card { padding: 24px; border-radius: 18px; background: #fff; border: 1px solid rgba(55, 72, 54, .1); box-shadow: 0 18px 40px -28px rgba(34, 45, 33, .4); }
.hx_card_kicker { display: block; margin-bottom: 12px; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--copper-color); }
.hx_facts { margin: 0 0 20px; display: grid; }
.hx_facts div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px dashed rgba(55, 72, 54, .14); }
.hx_facts dt { font-size: 13px; font-weight: 500; color: var(--body-color); white-space: nowrap; }
.hx_facts dt i { width: 16px; color: var(--copper-color); margin-right: 4px; }
.hx_facts dd { margin: 0; font-size: 14px; font-weight: 600; color: var(--heading-color); text-align: right; }
.hx_notes { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 4px; padding: 0; list-style: none; }
.hx_notes li { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 8px; border-radius: 30px; background: rgba(55, 72, 54, .06); font-size: 13px; font-weight: 600; color: var(--heading-color); }
.hx_notes li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--note); }
.hx_notes_light li { background: rgba(255, 255, 255, .12); color: #fff; }
.hx_card_link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--heading-color); text-decoration: underline; text-underline-offset: 4px; }
.hx_mini { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 14px; border-radius: 18px; background: var(--heading-color); color: #fff; }
.hx_mini img { width: 96px; height: 120px; object-fit: cover; border-radius: 12px; }
.hx_mini .hx_card_kicker { color: #e0a877; margin-bottom: 6px; }
.hx_mini strong { display: block; font-size: 15px; line-height: 1.3; margin-bottom: 6px; }
.hx_price { display: block; font-family: var(--heading-font); font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.hx_price small { font-size: 11px; opacity: .7; }
.hx_add { width: 100%; justify-content: center; background: #fff; color: var(--heading-color); border-color: #fff; min-height: 40px; font-size: 14px; }
.hx_add:hover { background: var(--copper-color); border-color: var(--copper-color); color: #fff; }

.hx_journey { padding: 80px 0; background: #eef2ea; }
.hx_steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 34px 0 0; padding: 0; list-style: none; position: relative; }
.hx_steps::before { content: ""; position: absolute; top: 28px; left: 8%; right: 8%; height: 2px; background: repeating-linear-gradient(90deg, rgba(55, 72, 54, .3) 0 8px, transparent 8px 16px); z-index: 0; }
.hx_steps li { position: relative; z-index: 1; padding: 0 6px; }
.hx_step_icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: var(--heading-color); color: #fff; font-size: 20px; box-shadow: 0 0 0 8px #eef2ea; margin-bottom: 18px; }
.hx_step_label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--copper-color); margin-bottom: 4px; }
.hx_steps strong { display: block; font-family: var(--heading-font); font-size: 18px; line-height: 1.3; color: var(--heading-color); margin-bottom: 6px; }
.hx_steps p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--body-color); }

.hx_cta { padding: 80px 0; }
.hx_cta_in { display: grid; grid-template-columns: 380px minmax(0, 1fr); border-radius: 26px; overflow: hidden; background: var(--heading-color); color: #fff; }
.hx_cta_img img { display: block; width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.hx_cta_txt { padding: 48px; align-self: center; }
.hx_cta_txt h2 { color: #fff; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.1; margin: 10px 0; }
.hx_cta_txt > p { color: rgba(255, 255, 255, .75); margin: 0 0 18px; }
.hx_cta_buy { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 26px; }
.hx_price_big { font-size: 34px; margin: 0; }
.hx_btn_light { background: #fff; color: var(--heading-color); border-color: #fff; }
.hx_btn_light:hover { background: var(--copper-color); border-color: var(--copper-color); color: #fff; }
.hx_link_light { color: #fff; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, .4); }
.hx_link_light:hover { color: #e0a877; }

@keyframes hxZoom { to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .hx_hero_bg { animation: none; transform: none; } }
@media (max-width: 1199px) { .hx_layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; } }
@media (max-width: 991px) {
  .hx_layout { grid-template-columns: 1fr; }
  .hx_aside { position: static; grid-template-columns: 1fr 1fr; }
  .hx_steps { grid-template-columns: 1fr 1fr; row-gap: 34px; }
  .hx_steps::before { display: none; }
  .hx_cta_in { grid-template-columns: 1fr; }
  .hx_cta_img img { min-height: 0; aspect-ratio: 16 / 10; }
}
@media (max-width: 575px) {
  .hx_hero { min-height: 480px; }
  .hx_hero_in { padding-top: 120px; padding-bottom: 36px; }
  .hx_aside { grid-template-columns: 1fr; }
  .hx_body > p { font-size: 17px; }
  .hx_first::first-letter { font-size: 64px; }
  .hx_steps { grid-template-columns: 1fr; }
  .hx_cta_txt { padding: 28px 22px; }
}
