/*--------------------------------------------------------------
  LINAJE · Ficha de café (cafe.html)
----------------------------------------------------------------*/
.cf {
  --cf-line: rgba(55, 72, 54, 0.12);
  --cf-muted: rgba(55, 72, 54, 0.62);
  padding-top: 80px;
  background: var(--white-color);
  color: var(--heading-color);
}
.cf [hidden] { display: none !important; }
.cf_loading, .cf_empty { min-height: 60vh; display: grid; place-items: center; text-align: center; color: var(--cf-muted); padding: 40px 16px; }
.cf_empty i { font-size: 34px; color: var(--copper-color); margin-bottom: 12px; }
.cf_empty h1 { font-size: 28px; }

.cf_eyebrow {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--copper-color);
}
.cf_eyebrow_light { color: #e0a877; }
.cf_section_title { font-size: clamp(28px, 3vw, 42px); line-height: 1.1; margin: 0 0 24px; }
.cf_muted { color: var(--cf-muted); }

/* ---------- Hero ---------- */
.cf_hero { padding: 32px 0 80px; }
.cf_crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; font-size: 14px; color: var(--cf-muted); }
.cf_crumbs a { color: var(--cf-muted); }
.cf_crumbs a:hover { color: var(--heading-color); }
.cf_crumbs [aria-current] { color: var(--heading-color); font-weight: 600; }

.cf_media {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  overflow: hidden;
  background: var(--gray-color);
}
.cf_media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.cf_media:hover img { transform: scale(1.03); }
.cf_media .cs_coffee_card_tag { top: 20px; left: 20px; }
.cf_score {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 92px;
  height: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--heading-color);
  color: var(--white-color);
  box-shadow: 0 0 0 6px rgba(249, 251, 243, 0.85);
}
.cf_score strong { font-family: var(--heading-font); font-size: 26px; line-height: 1; }
.cf_score small { margin-top: 4px; font-size: 9px; letter-spacing: 1px; text-transform: uppercase; opacity: 0.8; }
.cf_media_foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 16px;
  border: 1px dashed rgba(55, 72, 54, 0.25);
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--heading-color);
}
.cf_media_foot code { margin-left: auto; font-size: 13px; color: var(--copper-color); letter-spacing: 1px; }

.cf_info { padding-left: 24px; }
.cf_verified { letter-spacing: 1px; color: #2f6b3f; text-transform: none; font-weight: 600; font-size: 13px; }
.cf_title { font-size: clamp(34px, 4vw, 56px); line-height: 1.05; margin: 0 0 10px; }
.cf_presentation { font-size: 18px; color: var(--cf-muted); margin-bottom: 20px; }
.cf_notes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.cf_notes li { padding: 7px 14px; border-radius: 30px; background: var(--gray-color); font-weight: 600; font-size: 14px; }

.cf_buy { padding: 24px; border: 1px solid var(--cf-line); border-radius: 20px; background: #fff; }
.cf_price_row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.cf_price { font-family: var(--heading-font); font-size: 36px; font-weight: 700; line-height: 1; }
.cf_price small { font-size: 13px; font-weight: 600; letter-spacing: 1px; color: var(--cf-muted); }
.cf_stock { font-size: 14px; font-weight: 600; }
.cf_stock i { font-size: 8px; vertical-align: middle; margin-right: 4px; }
.cf_stock_ok { color: #2f6b3f; }
.cf_stock_warn { color: #9a5a1c; }
.cf_stock_bad { color: #a2382a; }
.cf_actions { display: flex; gap: 12px; margin-bottom: 12px; }
.cf_qty { display: flex; align-items: center; border: 1px solid rgba(55, 72, 54, 0.25); border-radius: 12px; overflow: hidden; }
.cf_qty button { width: 42px; height: 50px; border: 0; background: transparent; color: var(--heading-color); }
.cf_qty button:hover:not(:disabled) { background: var(--gray-color); }
.cf_qty input { width: 48px; height: 50px; border: 0; text-align: center; font-weight: 700; color: var(--heading-color); background: transparent; -moz-appearance: textfield; }
.cf_qty input::-webkit-inner-spin-button, .cf_qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.cf_btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 20px;
  border: 1px solid var(--heading-color);
  border-radius: 12px;
  background: var(--heading-color);
  color: var(--white-color);
  font-weight: 700;
  font-size: 15px;
  transition: all 0.2s;
}
.cf_btn:hover:not(:disabled) { background: #2a3829; }
.cf_btn:disabled { opacity: 0.5; cursor: not-allowed; }
.cf_btn_ghost { background: transparent; color: var(--heading-color); }
.cf_btn_ghost:hover:not(:disabled) { background: var(--gray-color); }

.cf_b2b {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--cream-color);
}
.cf_b2b strong { display: block; font-size: 15px; }
.cf_b2b span { font-size: 14px; color: var(--cf-muted); }
.cf_b2b_links { display: flex; gap: 16px; }
.cf_b2b_links a { font-weight: 700; color: var(--heading-color); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--copper-color); }

.cf_trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.cf_trust li { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--cf-muted); }
.cf_trust i { margin-top: 3px; color: var(--copper-color); font-size: 16px; }
.cf_trust strong { display: block; color: var(--heading-color); font-size: 14px; }

/* ---------- Pasaporte ---------- */
.cf_passport_band { padding: 90px 0; background: var(--heading-color); color: var(--white-color); }
.cf_band_title { color: var(--white-color); font-size: clamp(32px, 3.6vw, 52px); line-height: 1.05; margin: 0 0 18px; }
.cf_band_text { color: rgba(249, 251, 243, 0.72); font-size: 18px; max-width: 420px; }
.cf_passport {
  position: relative;
  padding: 30px;
  border-radius: 22px;
  background: var(--cream-color);
  color: var(--heading-color);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5);
}
.cf_passport::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 260px;
  height: 260px;
  background: url("../img/brand/linaje-isotipo.png") center / contain no-repeat;
  opacity: 0.08;
  pointer-events: none;
}
.cf_passport_head { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px dashed rgba(55, 72, 54, 0.3); }
.cf_passport_head span { display: block; font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--cf-muted); }
.cf_passport_head strong { display: block; font-family: monospace; font-size: 24px; letter-spacing: 2px; color: var(--copper-color); }
.cf_passport_grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 20px; margin: 0; position: relative; z-index: 1; }
.cf_passport dt { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--cf-muted); margin-bottom: 4px; }
.cf_passport dd { margin: 0; font-size: 16px; font-weight: 700; }
.cf_passport_notes { margin-top: 20px; padding-top: 18px; border-top: 1px dashed rgba(55, 72, 54, 0.3); position: relative; z-index: 1; }

/* ---------- Historia ---------- */
.cf_story { padding: 100px 0; }
.cf_profile { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--cf-line); }
.cf_profile li { display: flex; align-items: baseline; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--cf-line); font-family: var(--heading-font); font-size: 22px; font-weight: 700; }
.cf_profile span { font-size: 12px; letter-spacing: 2px; color: var(--copper-color); }
.cf_text p { font-size: 17px; line-height: 1.7; color: var(--body-color); color: rgba(55, 72, 54, 0.8); }
.cf_list { margin: 0 0 16px; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 20px; }
.cf_list li { position: relative; padding-left: 18px; font-size: 15px; }
.cf_list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--copper-color); }
.cf_farm { margin-top: 28px; padding: 24px; border-radius: 18px; background: var(--gray-color); }
.cf_farm p { margin: 0; color: rgba(55, 72, 54, 0.85); }

/* ---------- Recorrido ---------- */
.cf_journey { padding: 0 0 100px; }
.cf_journey_img { aspect-ratio: 4 / 5; border-radius: 24px; background: var(--gray-color) center / cover; }
.cf_steps { margin: 0; padding: 0; list-style: none; }
.cf_steps li { display: flex; gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--cf-line); }
.cf_steps li:first-child { border-top: 1px solid var(--cf-line); }
.cf_step_num {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--copper-color);
  color: var(--copper-color);
  font-size: 13px;
  font-weight: 700;
}
.cf_steps strong { display: block; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 4px; }
.cf_steps p { margin: 0; font-size: 18px; color: rgba(55, 72, 54, 0.85); }

/* ---------- Relacionados ---------- */
.cf_related { padding: 90px 0 110px; background: var(--gray-color); }
.cf_related_head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 36px; }

/* ---------- Barra fija en móvil ---------- */
.cf_sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--white-color);
  border-top: 1px solid var(--cf-line);
  box-shadow: 0 -10px 30px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(110%);
  transition: transform 0.25s ease;
}
.cf_sticky div { flex: 1; min-width: 0; }
.cf_sticky strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf_sticky span { font-size: 13px; color: var(--cf-muted); }
.cf_sticky .cf_btn { flex: 0 0 auto; min-height: 44px; }
.cf_sticky.is_visible { transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .cf_info { padding-left: 0; }
  .cf_passport_grid { grid-template-columns: repeat(2, 1fr); }
  .cf_sticky { display: flex; }
  .cf_journey_img { aspect-ratio: 16 / 10; }
}
@media (max-width: 575px) {
  .cf_hero { padding-top: 20px; }
  .cf_trust { grid-template-columns: 1fr; }
  .cf_list { grid-template-columns: 1fr; }
  .cf_passport { padding: 22px; }
  .cf_passport_head strong { font-size: 18px; }
  .cf_score { width: 74px; height: 74px; }
  .cf_score strong { font-size: 21px; }
  .cf_actions { flex-direction: column; }
  .cf_qty { justify-content: space-between; }
  .cf_qty input { flex: 1; }
  .cf_media_foot { flex-wrap: wrap; }
  .cf_media_foot code { margin-left: 0; width: 100%; }
}
