/*--------------------------------------------------------------
  LINAJE · Portal "Mi Linaje" (usuario.html)
  Usa los tokens del tema: --heading-color, --white-color,
  --gray-color, --copper-color, --cream-color.
----------------------------------------------------------------*/
.lp {
  --lp-line: rgba(55, 72, 54, 0.12);
  --lp-muted: rgba(55, 72, 54, 0.6);
  --lp-radius: 16px;
  --lp-ok: #2f6b3f;
  --lp-warn: #9a5a1c;
  --lp-bad: #a2382a;
  min-height: calc(100vh - 80px);
  padding-top: 80px;
  background: var(--white-color);
  color: var(--heading-color);
}
.lp [hidden] { display: none !important; }
.lp h1, .lp h2, .lp h3, .lp h4 { color: var(--heading-color); }

/* Carga inicial */
.lp_loading {
  display: grid;
  place-items: center;
  min-height: 60vh;
  color: var(--lp-muted);
}

/* ---------- Ingreso / registro ---------- */
.lp_auth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: calc(100vh - 80px);
}
.lp_auth_media {
  position: relative;
  padding: 64px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white-color);
  background: url("../img/colombia_coffee_farm.png") center / cover;
}
.lp_auth_media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28, 38, 27, 0.92) 10%, rgba(28, 38, 27, 0.35) 70%, rgba(28, 38, 27, 0.2));
}
.lp_auth_media > * { position: relative; }
.lp_eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--copper-color);
}
.lp_auth_media .lp_eyebrow { color: #e0a877; }
.lp_auth_media h1 {
  margin: 14px 0 18px;
  font-size: clamp(34px, 3.4vw, 52px);
  line-height: 1.08;
  color: var(--white-color);
}
.lp_auth_media p { max-width: 460px; color: rgba(249, 251, 243, 0.8); font-size: 17px; }
.lp_auth_roles {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(249, 251, 243, 0.2);
}
.lp_auth_roles li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(249, 251, 243, 0.2);
  font-size: 15px;
  color: rgba(249, 251, 243, 0.75);
}
.lp_auth_roles strong { color: var(--white-color); font-weight: 700; }

.lp_auth_panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 24px;
}
.lp_auth_box { width: 100%; max-width: 460px; }
.lp_tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  margin-bottom: 32px;
  border-radius: 40px;
  background: var(--gray-color);
}
.lp_tab {
  padding: 10px;
  border: 0;
  border-radius: 40px;
  background: transparent;
  font-weight: 700;
  color: var(--lp-muted);
  transition: all 0.25s;
}
.lp_tab[aria-selected="true"] {
  background: var(--white-color);
  color: var(--heading-color);
  box-shadow: 0 4px 12px -6px rgba(38, 52, 37, 0.3);
}
.lp_auth_box h2 { font-size: 30px; margin: 0 0 6px; }
.lp_auth_box > p, .lp_form_intro { color: var(--lp-muted); margin-bottom: 26px; }

/* Selector de rol */
.lp_roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}
.lp_role input { position: absolute; opacity: 0; pointer-events: none; }
.lp_role span {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 14px 12px;
  border: 1px solid var(--lp-line);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.lp_role i { color: var(--copper-color); font-size: 18px; }
.lp_role b { font-size: 14px; line-height: 1.2; }
.lp_role small { font-size: 12px; color: var(--lp-muted); line-height: 1.35; }
.lp_role input:checked + span {
  border-color: var(--heading-color);
  background: var(--gray-color);
  box-shadow: inset 0 0 0 1px var(--heading-color);
}
.lp_role input:focus-visible + span { outline: 2px solid var(--copper-color); outline-offset: 2px; }

/* ---------- Formularios ---------- */
.lp_form { display: grid; gap: 16px; }
.lp_grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lp_grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp_field { display: grid; gap: 6px; align-content: start; }
.lp_field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--heading-color);
}
.lp_field label small { font-weight: 400; color: var(--lp-muted); }
.lp_input,
.lp select.lp_input,
.lp textarea.lp_input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(55, 72, 54, 0.2);
  border-radius: 10px;
  background: #fff;
  font-size: 15px;
  color: var(--heading-color);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.lp textarea.lp_input { min-height: 110px; resize: vertical; }
.lp_input:focus {
  outline: none;
  border-color: var(--heading-color);
  box-shadow: 0 0 0 3px rgba(55, 72, 54, 0.12);
}
.lp_input[aria-invalid="true"] { border-color: var(--lp-bad); }
.lp_pass { position: relative; }
.lp_pass .lp_input { padding-right: 46px; }
.lp_pass button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  background: none;
  color: var(--lp-muted);
}
.lp_hint { font-size: 12px; color: var(--lp-muted); }
.lp_check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--lp-muted); }
.lp_check input { margin-top: 3px; accent-color: var(--heading-color); }

.lp_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid var(--heading-color);
  border-radius: 10px;
  background: var(--heading-color);
  color: var(--white-color);
  font-weight: 700;
  font-size: 15px;
  transition: all 0.2s;
  cursor: pointer;
}
.lp_btn:hover { background: #2a3829; color: var(--white-color); }
.lp_btn:disabled { opacity: 0.6; cursor: progress; }
.lp_btn_ghost { background: transparent; color: var(--heading-color); }
.lp_btn_ghost:hover { background: var(--gray-color); color: var(--heading-color); }
.lp_btn_sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }
.lp_btn_block { width: 100%; }
.lp_btn_danger { border-color: var(--lp-bad); color: var(--lp-bad); background: transparent; }
.lp_btn_danger:hover { background: #fbe4e1; color: var(--lp-bad); }

.lp_alert {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  background: #fbe4e1;
  color: var(--lp-bad);
}
.lp_alert_ok { background: #e3efe2; color: var(--lp-ok); }
.lp_alert_warn { background: #f7ead9; color: var(--lp-warn); }


.lp_main { min-width: 0; }
.lp_head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.lp_head h1 { margin: 6px 0 0; font-size: clamp(28px, 3vw, 40px); }
.lp_head p { margin: 6px 0 0; color: var(--lp-muted); }

.lp_card {
  padding: 24px;
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius);
  background: #fff;
}
.lp_card + .lp_card { margin-top: 20px; }
.lp_card_head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.lp_card_head h2, .lp_card h2 { margin: 0; font-size: 20px; }

.lp_stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 20px; }
.lp_stat {
  padding: 20px;
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius);
  background: #fff;
}
.lp_stat span { display: block; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--lp-muted); }
.lp_stat strong { display: block; margin-top: 8px; font-size: 32px; line-height: 1; font-family: var(--heading-font); }
.lp_stat small { display: block; margin-top: 6px; color: var(--lp-muted); }

/* Listas de filas (pedidos, usuarios, solicitudes...) */
.lp_rows { display: grid; }
.lp_row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--lp-line);
}
.lp_row:first-child { border-top: 0; padding-top: 0; }
.lp_row_title { font-weight: 700; word-break: break-word; }
.lp_row_meta { font-size: 13px; color: var(--lp-muted); margin-top: 2px; word-break: break-word; }
.lp_row_actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center; }
.lp_row_actions select.lp_input { width: auto; padding: 7px 10px; font-size: 13px; }
.lp_row_detail { grid-column: 1 / -1; padding: 14px; border-radius: 10px; background: var(--white-color); font-size: 14px; }

.lp_badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  background: var(--gray-color);
  color: var(--heading-color);
  white-space: nowrap;
}
.lp_badge_ok { background: #e3efe2; color: var(--lp-ok); }
.lp_badge_warn { background: #f7ead9; color: var(--lp-warn); }
.lp_badge_bad { background: #fbe4e1; color: var(--lp-bad); }
.lp_badge_info { background: #e6ecf2; color: #34506b; }

.lp_empty { padding: 36px 16px; text-align: center; color: var(--lp-muted); }
.lp_empty i { display: block; font-size: 28px; color: var(--copper-color); margin-bottom: 10px; }

.lp_filters { display: flex; flex-wrap: wrap; gap: 10px; }
.lp_filters input.lp_input, .lp_filters select.lp_input { width: auto; min-width: 160px; padding: 9px 12px; font-size: 14px; }

/* Tarjetas de café del productor / admin */
.lp_products { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.lp_product { border: 1px solid var(--lp-line); border-radius: 14px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.lp_product_img { aspect-ratio: 4 / 3; background: var(--gray-color) center / cover; position: relative; }
.lp_product_img .lp_badge { position: absolute; top: 10px; left: 10px; }
.lp_product_body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex-grow: 1; }
.lp_product_code { font-family: monospace; font-size: 12px; color: var(--copper-color); font-weight: 700; }
.lp_product_body .lp_row_actions { justify-content: flex-start; margin-top: auto; padding-top: 12px; }

/* Panel lateral para formularios largos */
.lp_drawer {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  justify-content: flex-end;
  background: rgba(28, 38, 27, 0.45);
}
.lp_drawer_panel {
  width: min(620px, 100%);
  height: 100%;
  overflow-y: auto;
  padding: 28px;
  background: var(--white-color);
  animation: lpSlide 0.25s ease;
}
.lp_drawer_head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.lp_drawer_head h2 { margin: 0; font-size: 24px; }
.lp_close { width: 40px; height: 40px; border: 1px solid var(--lp-line); border-radius: 50%; background: #fff; }
@keyframes lpSlide { from { transform: translateX(40px); opacity: 0; } }

.lp_section_title {
  margin: 8px 0 -4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--copper-color);
}

/* Planes */
.lp_plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp_plan { padding: 22px; border: 1px solid var(--lp-line); border-radius: 14px; background: #fff; }
.lp_plan_current { border-color: var(--copper-color); box-shadow: inset 0 0 0 1px var(--copper-color); }
/* Plan elegido desde la página pública de planes */
.lp_plan { position: relative; }
.lp_plan_wanted { border-color: var(--heading-color); box-shadow: inset 0 0 0 2px var(--heading-color), 0 14px 30px -18px rgba(34, 45, 33, .45); }
.lp_plan_wanted::before {
  content: "El que elegiste"; position: absolute; top: -11px; right: 18px; padding: 3px 10px; border-radius: 20px;
  background: var(--heading-color); color: var(--white-color); font-size: 11px; font-weight: 700; letter-spacing: .5px;
}
.lp_plan_intent { display: flex; gap: 10px; align-items: flex-start; }
.lp_plan_intent i { margin-top: 4px; }
.lp_plan h3 { margin: 6px 0 2px; font-size: 24px; }
.lp_plan ul { margin: 14px 0 0; padding-left: 18px; color: var(--lp-muted); font-size: 14px; }

/* Aviso flotante */
.lp_toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 1200;
  transform: translateX(-50%);
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--heading-color);
  color: var(--white-color);
  font-weight: 600;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.4);
}
.lp_toast_bad { background: var(--lp-bad); }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .lp_auth { grid-template-columns: 1fr; }
  .lp_auth_media { min-height: 320px; padding: 40px 24px; }
  .lp_auth_roles { display: none; }
  .lp_plans { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .lp_grid2, .lp_grid3 { grid-template-columns: 1fr; }
  .lp_roles { grid-template-columns: 1fr; }
  .lp_role span { flex-direction: row; align-items: center; flex-wrap: wrap; column-gap: 10px; }
  .lp_role small { flex-basis: 100%; }
  .lp_row { grid-template-columns: 1fr; gap: 10px; }
  .lp_row_actions { justify-content: flex-start; }
  .lp_card { padding: 18px; }
  .lp_drawer_panel { padding: 20px; }
}

.lp_field label { margin: 0; }


/* ---------- Ecosistema: módulos del portal ---------- */
.lp_link_btn { border: 0; background: none; padding: 4px 6px; color: var(--lp-muted); }
.lp_link_btn:hover { color: var(--lp-bad); }
.lp_file { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lp_file .lp_input { flex: 1 1 220px; }
.lp_subform { margin-top: 12px; padding: 16px; border: 1px dashed var(--lp-line); border-radius: 12px; background: #fff; }
.lp_grid5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.lp_total { padding: 11px 0; font-size: 20px; font-weight: 700; }
.lp_row_compact { padding: 10px 0; }
.lp_stars { color: #c98a2b; letter-spacing: 1px; white-space: nowrap; }
.lp_unread { position: relative; }
.lp_unread::before { content: ""; position: absolute; left: -12px; top: 22px; width: 7px; height: 7px; border-radius: 50%; background: var(--copper-color); }
.lp_row.lp_unread:first-child::before { top: 6px; }
.lp_icon { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-right: 10px; border-radius: 50%; background: var(--white-color); color: var(--copper-color); flex-shrink: 0; }
.lp_notif { display: flex; align-items: flex-start; cursor: pointer; }
.lp_card_head .lp_input { width: auto; padding: 7px 10px; font-size: 13px; }

/* Calificación con estrellas */
.lp_rate { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.lp_rate input { position: absolute; opacity: 0; pointer-events: none; }
.lp_rate label { font-size: 32px; line-height: 1; color: var(--gray-color); cursor: pointer; }
.lp_rate input:checked ~ label, .lp_rate label:hover, .lp_rate label:hover ~ label { color: #c98a2b; }
.lp_rate input:focus-visible + label { outline: 2px solid var(--copper-color); outline-offset: 2px; }

/* Pasaporte y trazabilidad */
.lp_passport { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; padding: 18px; border-radius: 14px; background: #fff; border: 1px solid var(--lp-line); }
.lp_qr { width: 168px; height: 168px; display: grid; place-items: center; font-size: 13px; color: var(--lp-muted); }
.lp_qr img, .lp_qr canvas { width: 168px; height: 168px; }
.lp_timeline { list-style: none; margin: 8px 0 0; padding: 0 0 0 18px; border-left: 2px solid var(--gray-color); }
.lp_timeline li { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 0 0 14px 6px; font-size: 14px; }
.lp_timeline li::before { content: ""; position: absolute; left: -25px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--copper-color); border: 2px solid #fff; }

/* Resumen dentro de formularios */
.lp_summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; padding: 14px; border-radius: 12px; background: #fff; border: 1px solid var(--lp-line); }
.lp_summary span { display: block; font-size: 12px; color: var(--lp-muted); text-transform: uppercase; letter-spacing: 1px; }
.lp_summary strong { font-size: 17px; }

/* Mensajes */
.lp_chat { display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 260px); min-height: 200px; overflow-y: auto; padding: 4px 2px 12px; }
.lp_msg { max-width: 82%; padding: 10px 14px; border-radius: 14px 14px 14px 4px; background: #fff; border: 1px solid var(--lp-line); }
.lp_msg_me { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: var(--heading-color); color: var(--white-color); border-color: transparent; }
.lp_msg_meta { font-size: 11px; opacity: 0.7; margin-bottom: 3px; }
.lp_msg_body { white-space: pre-wrap; word-break: break-word; }
.lp_msg_me a { color: #f3d3b2; }
.lp_chat_form { display: flex; gap: 10px; align-items: flex-end; padding-top: 12px; border-top: 1px solid var(--lp-line); }
.lp_chat_form textarea { min-height: 0; resize: vertical; }

/* Tablas de datos (Linaje Data) */
.lp_table_wrap { overflow-x: auto; }
.lp_table { width: 100%; border-collapse: collapse; font-size: 14px; }
.lp_table th { text-align: left; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--lp-muted); padding: 8px 10px; border-bottom: 1px solid var(--lp-line); white-space: nowrap; }
.lp_table td { padding: 10px; border-bottom: 1px solid var(--lp-line); vertical-align: top; }
.lp_table td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lp_bar { height: 8px; border-radius: 4px; background: var(--copper-color); min-width: 2px; }

/* Planes con precio y formulario */
.lp_plan_price { margin: 4px 0 10px; font-size: 15px; font-weight: 700; color: var(--copper-color); }
.lp_plan_form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.lp_plan_form select.lp_input { width: auto; padding: 6px 10px; font-size: 13px; }
.lp_plan_total { align-self: center; font-size: 13px; color: var(--lp-muted); }
.lp_plan_total strong { color: var(--heading-color); font-size: 15px; }
.lp_plan p { margin: 12px 0 0; font-size: 14px; color: var(--lp-muted); }

/* Chips de catálogos */
.lp_chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lp_chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 12px; border-radius: 20px; background: var(--white-color); border: 1px solid var(--lp-line); font-size: 14px; }
.lp_chip button { border: 0; background: none; color: var(--lp-muted); width: 22px; height: 22px; border-radius: 50%; }
.lp_chip button:hover { background: #fbe4e1; color: var(--lp-bad); }
.lp_matches { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 10px; }
.lp_match { display: block; padding: 12px; border: 1px solid var(--lp-line); border-radius: 12px; background: #fff; color: inherit; text-decoration: none; font-size: 14px; }
.lp_match:hover { border-color: var(--copper-color); }
.lp_lock { text-align: center; padding: 40px 20px; }
.lp_lock i { font-size: 30px; color: var(--copper-color); margin-bottom: 12px; display: block; }

@media (max-width: 767px) {
  .lp_grid5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp_msg { max-width: 92%; }
}


/*==============================================================
  Panel (app) · diseño de administración
  body.lp_in_app lo activa usuario.js al iniciar sesión.
==============================================================*/
body.lp_in_app .cs_site_header,
body.lp_in_app .cs_header_form_wrap { display: none !important; }
body.lp_in_app { background: #f2f4ee; }
body.lp_in_app .lp {
  --lp-side-w: 264px;
  --lp-shadow: 0 1px 2px rgba(34, 45, 33, 0.04), 0 4px 16px -8px rgba(34, 45, 33, 0.10);
  --lp-card-radius: 14px;
  padding-top: 0;
  min-height: 100vh;
  background: #f2f4ee;
}
.lp_side, .lp_main, .lp_shell { min-width: 0; }

/* ---------- Barra lateral ---------- */
.lp_side {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--lp-side-w, 264px);
  z-index: 1040;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #34452f 0%, #2a3827 100%);
  color: rgba(249, 251, 243, 0.78);
}
.lp_side_top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
}
.lp_brand img { width: 128px; height: auto; display: block; }
.lp_side_close {
  display: none;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.lp_nav {
  flex: 1;
  overflow-y: auto;
  padding: 10px 14px 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}
.lp_nav_group {
  margin: 18px 10px 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(249, 251, 243, 0.38);
}
.lp_nav button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 2px;
  padding: 9px 12px;
  border: 0;
  border-radius: 9px;
  background: none;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  color: rgba(249, 251, 243, 0.74);
  transition: background 0.15s, color 0.15s;
}
.lp_nav button i { width: 18px; text-align: center; font-size: 14px; color: rgba(249, 251, 243, 0.45); transition: color 0.15s; }
.lp_nav button:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.lp_nav button:hover i { color: rgba(249, 251, 243, 0.8); }
.lp_nav button[aria-current="page"] { background: rgba(255, 255, 255, 0.1); color: #fff; font-weight: 600; }
.lp_nav button[aria-current="page"] i { color: #e0a877; }
.lp_nav button[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #e0a877;
}
.lp_nav .lp_count {
  margin-left: auto;
  min-width: 20px;
  padding: 1px 7px;
  border-radius: 20px;
  background: var(--copper-color);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.lp_side_foot {
  flex-shrink: 0;
  padding: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.lp_me { display: flex; gap: 11px; align-items: center; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); }
.lp_me_text { min-width: 0; }
.lp_avatar {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #c98a52, var(--copper-color));
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
}
.lp_avatar_sm { width: 32px; height: 32px; font-size: 12px; }
.lp_me_name { font-size: 14px; font-weight: 600; line-height: 1.25; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp_me_role { font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: #e0a877; }
.lp_side_logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  background: transparent;
  color: rgba(249, 251, 243, 0.75);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}
.lp_side_logout:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.lp_side_backdrop { display: none; }

/* ---------- Zona principal ---------- */
.lp_shell { margin-left: var(--lp-side-w, 264px); min-height: 100vh; display: flex; flex-direction: column; }
.lp_topbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 72px;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--lp-line);
}
.lp_menu_btn { display: none !important; }
.lp_crumbs { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 14px; color: var(--lp-muted); }
.lp_crumbs i { font-size: 10px; opacity: 0.6; }
.lp_crumbs strong { color: var(--heading-color); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp_topbar_actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.lp_today { margin-right: 10px; font-size: 13px; color: var(--lp-muted); white-space: nowrap; }
.lp_icon_btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--heading-color);
  font-size: 16px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.lp_icon_btn:hover { background: #f2f4ee; border-color: var(--lp-line); color: var(--heading-color); }
.lp_dot {
  position: absolute;
  top: 4px;
  right: 3px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  border: 2px solid #fff;
  background: var(--copper-color);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 13px;
  text-align: center;
}
.lp_top_user {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: 8px;
  padding: 4px 12px 4px 4px;
  border: 1px solid var(--lp-line);
  border-radius: 999px;
  color: var(--heading-color);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}
.lp_top_user:hover { background: #f2f4ee; color: var(--heading-color); }

.lp_main { flex: 1; width: 100%; max-width: 1440px; padding: 32px 32px 64px; outline: none; }

/* ---------- Contenido ---------- */
body.lp_in_app .lp_head { align-items: center; margin-bottom: 24px; }
body.lp_in_app .lp_head .lp_eyebrow { font-size: 11px; letter-spacing: 2px; }
body.lp_in_app .lp_head h1 { margin: 4px 0 0; font-size: 26px; font-weight: 700; letter-spacing: -0.3px; }
body.lp_in_app .lp_head p { font-size: 14px; }

body.lp_in_app .lp_card {
  padding: 22px 24px;
  border: 1px solid rgba(55, 72, 54, 0.08);
  border-radius: var(--lp-card-radius);
  background: #fff;
  box-shadow: var(--lp-shadow);
}
body.lp_in_app .lp_card + .lp_card { margin-top: 20px; }
body.lp_in_app .lp_card > .lp_card_head:first-child {
  margin: -22px -24px 18px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--lp-line);
}
body.lp_in_app .lp_card_head h2, body.lp_in_app .lp_card h2 { font-size: 16px; font-weight: 700; }

/* Tarjetas de estadística (el ícono lo agrega usuario.js) */
/* Hasta 4 por fila; con menos tarjetas se reparten todo el ancho */
body.lp_in_app .lp_stats { grid-template-columns: repeat(auto-fit, minmax(max(200px, calc((100% - 48px) / 4)), 1fr)); gap: 16px; margin-bottom: 20px; }
body.lp_in_app .lp_stat {
  position: relative;
  padding: 20px 20px 18px;
  border: 1px solid rgba(55, 72, 54, 0.08);
  border-radius: var(--lp-card-radius);
  background: #fff;
  box-shadow: var(--lp-shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}
body.lp_in_app .lp_stat:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgba(34, 45, 33, 0.05), 0 10px 24px -10px rgba(34, 45, 33, 0.18); }
body.lp_in_app .lp_stat span { padding-right: 48px; font-size: 11.5px; font-weight: 600; letter-spacing: 1px; color: var(--lp-muted); }
body.lp_in_app .lp_stat strong {
  margin-top: 14px;
  font-size: 30px !important;
  font-weight: 700;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
  color: var(--heading-color);
}
body.lp_in_app .lp_stat small { margin-top: 8px; font-size: 13px; line-height: 1.45; }
.lp_stat_icon {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  font-size: 16px;
  background: #e8efe6;
  color: #3f5a3c;
}
.lp_stat:nth-child(4n + 2) .lp_stat_icon { background: #f6ebdf; color: var(--copper-color); }
.lp_stat:nth-child(4n + 3) .lp_stat_icon { background: #e6edf3; color: #3d5a73; }
.lp_stat:nth-child(4n + 4) .lp_stat_icon { background: #f3e8ec; color: #8a4a5f; }

/* Filas y vacíos */
body.lp_in_app .lp_row { padding: 14px 0; }
body.lp_in_app .lp_row_title { font-size: 14.5px; font-weight: 600; }
body.lp_in_app .lp_empty { padding: 36px 16px; font-size: 14px; }
body.lp_in_app .lp_empty i {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f2f4ee;
  font-size: 20px;
  color: var(--copper-color);
}

/* Botones un poco más compactos dentro del panel */
body.lp_in_app .lp_btn { border-radius: 10px; font-size: 14px; padding: 10px 18px; }
body.lp_in_app .lp_btn_sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }
body.lp_in_app .lp_btn_ghost { border-color: rgba(55, 72, 54, 0.22); }

/* Tablas */
body.lp_in_app .lp_table th { background: #f7f8f4; padding: 10px 12px; }
body.lp_in_app .lp_table td { padding: 12px; }
body.lp_in_app .lp_table tbody tr:hover td { background: #fafbf8; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .lp_side {
    transform: translateX(-100%);
    transition: transform 0.28s ease;
  }
  body.lp_side_open .lp_side { transform: translateX(0); box-shadow: 20px 0 50px rgba(0, 0, 0, 0.25); }
  body.lp_in_app .lp_stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp_side_close { display: grid; place-items: center; }
  .lp_side_backdrop {
    position: fixed;
    inset: 0;
    z-index: 1035;
    background: rgba(24, 33, 23, 0.5);
  }
  body.lp_side_open .lp_side_backdrop { display: block; }
  body.lp_side_open { overflow: hidden; }
  .lp_shell { margin-left: 0; }
  .lp_menu_btn { display: inline-grid !important; }
  .lp_topbar { padding: 0 20px; gap: 10px; }
  .lp_main { padding: 24px 20px 56px; }
}
@media (max-width: 767px) {
  .lp_today, .lp_top_user_name { display: none; }
  .lp_top_user { padding: 3px; margin-left: 4px; }
  .lp_crumbs span, .lp_crumbs i { display: none; }
}
@media (max-width: 575px) {
  .lp_topbar { height: 60px; padding: 0 12px; }
  .lp_main { padding: 18px 14px 48px; }
  body.lp_in_app .lp_stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body.lp_in_app .lp_stat { padding: 14px; }
  .lp_stat_icon { top: 12px; left: 14px; right: auto; width: 34px; height: 34px; font-size: 14px; }
  body.lp_in_app .lp_stat span { margin-top: 42px; padding-right: 0; font-size: 10.5px; }
  body.lp_in_app .lp_stat strong { margin-top: 8px; font-size: 22px !important; }
  body.lp_in_app .lp_card { padding: 18px; }
  body.lp_in_app .lp_card > .lp_card_head:first-child { margin: -18px -18px 16px; padding: 14px 18px; }
  .lp_head .lp_btn { width: 100%; }
}

/* ---------- Negocios B2B ---------- */
.lp_types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.lp_type {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 16px; border: 1px solid var(--lp-line); border-radius: 14px; background: #fff;
  text-align: left; color: var(--heading-color); transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.lp_type i { font-size: 20px; color: var(--copper-color); }
.lp_type strong { font-size: 15px; }
.lp_type small { font-size: 13px; line-height: 1.4; color: var(--lp-muted); }
.lp_type:hover { border-color: var(--copper-color); }
.lp_type:focus-visible { outline: 2px solid var(--copper-color); outline-offset: 2px; }
.lp_type[aria-checked="true"] { border-color: var(--heading-color); background: #f4f6f0; box-shadow: inset 0 0 0 1px var(--heading-color); }
.lp_type[aria-checked="true"] i { color: var(--heading-color); }

.lp_fieldset { display: grid; gap: 14px; min-width: 0; margin: 0; padding: 0; border: 0; }
.lp_fieldset legend { float: none; width: auto; margin: 0 0 2px; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--copper-color); }

.lp_pick_bar { display: flex; gap: 10px; align-items: center; }
.lp_pick_bar .lp_input { flex: 1; }
.lp_pick { max-height: 300px; overflow-y: auto; border: 1px solid var(--lp-line); border-radius: 12px; background: #fff; }
.lp_pick_item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--lp-line); cursor: pointer; }
.lp_pick_item:first-child { border-top: 0; }
.lp_pick_item:hover { background: #fafbf8; }
.lp_pick_item.is_on { background: #f1f5ec; }
.lp_pick_item input { width: 17px; height: 17px; accent-color: var(--heading-color); }
.lp_pick_item strong { display: block; font-size: 14px; }
.lp_pick_item small { display: block; font-size: 12.5px; color: var(--lp-muted); font-weight: 400; }
.lp_pick_side { text-align: right; font-weight: 700; font-size: 14px; white-space: nowrap; }

.lp_chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.lp_chip { padding: 2px 9px; border-radius: 20px; background: #f1f3ec; font-size: 12px; color: var(--heading-color); }

.lp_seg { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.lp_seg button { padding: 7px 14px; border: 1px solid var(--lp-line); border-radius: 30px; background: #fff; font-size: 13px; font-weight: 600; color: var(--lp-muted); }
.lp_seg button span { margin-left: 4px; padding: 1px 7px; border-radius: 10px; background: var(--gray-color); font-size: 11.5px; }
.lp_seg button[aria-selected="true"] { border-color: var(--heading-color); background: var(--heading-color); color: #fff; }
.lp_seg button[aria-selected="true"] span { background: rgba(255, 255, 255, 0.2); }

.lp_b2b_icon { width: 18px; margin-right: 4px; color: var(--copper-color); }
.lp_row_compact { padding: 10px 0; }

@media (max-width: 991px) {
  .lp_types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
  .lp_types { grid-template-columns: 1fr; }
  .lp_pick_item { grid-template-columns: auto minmax(0, 1fr); }
  .lp_pick_side { grid-column: 2; text-align: left; }
}

/* Campos con error: borde rojo y mensaje debajo */
.lp_input.lp_invalid { border-color: var(--lp-bad) !important; box-shadow: 0 0 0 3px rgba(162, 56, 42, 0.12); }
.lp_field_error { display: block; margin-top: 5px; font-size: 12.5px; font-weight: 600; color: var(--lp-bad); }
.lp_alert [data-goto] { color: inherit; font-weight: 700; text-decoration: underline; }

/* ---------- Panel del productor ---------- */
.lp_head_badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.lp_head_badges .lp_badge { text-decoration: none; }
.lp_head_badges .lp_badge i { margin-right: 3px; }

.lp_dash { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
.lp_dash_main, .lp_dash_side { display: grid; gap: 20px; min-width: 0; }
body.lp_in_app .lp_dash .lp_card + .lp_card, .lp_dash .lp_card + .lp_card { margin-top: 0; }

.lp_delta { font-weight: 700; }
.lp_delta_up { color: var(--lp-ok); }
.lp_delta_down { color: var(--lp-bad); }
.lp_text_warn { color: var(--lp-warn); font-weight: 700; }

/* Para hoy */
.lp_tasks { display: grid; gap: 10px; }
.lp_task {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 14px 16px; border: 1px solid var(--lp-line); border-left: 4px solid var(--lp-line); border-radius: 12px;
  background: #fff; color: var(--heading-color); text-decoration: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.lp_task:hover { box-shadow: 0 4px 14px rgba(55, 72, 54, 0.08); color: var(--heading-color); }
.lp_task:focus-visible { outline: 2px solid var(--copper-color); outline-offset: 2px; }
.lp_task_warn { border-left-color: var(--copper-color); }
.lp_task_bad { border-left-color: var(--lp-bad); }
.lp_task_info { border-left-color: #6f8aa3; }
.lp_task_icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--cream-color); color: var(--copper-color); }
.lp_task_bad .lp_task_icon { background: #fbe4e1; color: var(--lp-bad); }
.lp_task_info .lp_task_icon { background: #e6ecf2; color: #34506b; }
.lp_task_body strong { display: block; font-size: 15px; }
.lp_task_body small { display: block; margin-top: 2px; font-size: 13px; color: var(--lp-muted); }
.lp_task_cta { font-size: 13px; font-weight: 700; white-space: nowrap; color: var(--heading-color); }
.lp_task_cta i { margin-left: 4px; font-size: 11px; transition: transform 0.2s; }
.lp_task:hover .lp_task_cta i { transform: translateX(3px); }

/* Ventas por mes: una serie, barras finas, punta redondeada sobre la base, valor al pasar el cursor */
.lp_chart_summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.lp_chart_summary span { display: block; font-size: 12px; color: var(--lp-muted); }
.lp_chart_summary strong { font-size: 18px; }
.lp_chart { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; height: 210px; padding-top: 6px; border-bottom: 1px solid var(--lp-line); }
.lp_chart_col { position: relative; display: grid; grid-template-rows: 20px minmax(0, 1fr) 26px; justify-items: center; outline: none; cursor: default; }
.lp_chart_val { align-self: end; font-size: 12px; font-weight: 700; color: var(--heading-color); white-space: nowrap; }
.lp_chart_track { position: relative; display: flex; align-items: flex-end; justify-content: center; width: 100%; height: 100%; border-radius: 6px; }
.lp_chart_bar { display: block; width: min(38px, 62%); background: var(--copper-color); border-radius: 4px 4px 0 0; transition: filter 0.15s; }
.lp_chart_col:hover .lp_chart_track, .lp_chart_col:focus-visible .lp_chart_track { background: rgba(176, 112, 60, 0.07); }
.lp_chart_col:hover .lp_chart_bar, .lp_chart_col:focus-visible .lp_chart_bar { filter: brightness(0.9); }
.lp_chart_lbl { align-self: center; font-size: 12px; color: var(--lp-muted); text-transform: capitalize; }
.lp_chart_tip {
  position: absolute; bottom: calc(100% - 14px); left: 50%; z-index: 3; transform: translate(-50%, 4px);
  padding: 8px 10px; border-radius: 8px; background: var(--heading-color); color: #fff; font-size: 12px; line-height: 1.4;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.15s, transform 0.15s;
}
.lp_chart_tip strong { display: block; text-transform: capitalize; }
.lp_chart_col:hover .lp_chart_tip, .lp_chart_col:focus-visible .lp_chart_tip { opacity: 1; transform: translate(-50%, 0); }

/* Perfil */
.lp_profile { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; font-size: 14px; color: var(--lp-muted); }
.lp_ring {
  --p: 0; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%;
  background: radial-gradient(closest-side, #fff 78%, transparent 79% 100%), conic-gradient(var(--copper-color) calc(var(--p) * 1%), var(--gray-color) 0);
}
.lp_ring strong { font-size: 18px; color: var(--heading-color); }
.lp_checklist { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; }
.lp_checklist li { display: flex; gap: 10px; align-items: center; }
.lp_checklist i { width: 16px; color: var(--lp-muted); }
.lp_checklist li.is_ok { color: var(--lp-muted); }
.lp_checklist li.is_ok i { color: var(--lp-ok); }
.lp_checklist a { color: var(--heading-color); font-weight: 600; }

/* Mis cafés (resumen) */
.lp_minis { display: grid; gap: 4px; }
.lp_mini { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px; margin: 0 -8px; border-radius: 10px; color: inherit; text-decoration: none; }
.lp_mini:hover { background: #fafbf8; color: inherit; }
.lp_mini_img { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 10px; background: var(--cream-color) center / cover; color: var(--copper-color); }
.lp_mini_body strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp_mini_body small { display: block; font-size: 12.5px; color: var(--lp-muted); }
.lp_passport_mini i { margin-left: 6px; color: rgba(55, 72, 54, 0.25); }
.lp_passport_mini i.is_ok { color: var(--lp-ok); }

.lp_quote { margin: 0; padding: 12px 0; border-top: 1px solid var(--lp-line); font-size: 14px; }
.lp_quote:first-of-type { border-top: 0; padding-top: 0; }
.lp_quote p { margin: 4px 0; color: var(--heading-color); }
.lp_quote small { color: var(--lp-muted); }

@media (max-width: 1199px) {
  .lp_dash { grid-template-columns: minmax(0, 1fr); }
  .lp_dash_side { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}
@media (max-width: 575px) {
  .lp_task { grid-template-columns: auto minmax(0, 1fr); }
  .lp_task_cta { grid-column: 2; }
  .lp_chart_summary { grid-template-columns: 1fr 1fr; }
  .lp_chart { height: 170px; }
}

/* Cabecera del panel del productor: identidad de la finca e indicadores */
.lp_hero {
  position: relative; overflow: hidden; margin-bottom: 20px; padding: 28px 30px 0;
  border-radius: var(--lp-card-radius, 14px); color: #fff;
  background: linear-gradient(105deg, #253224 0%, #2f3f2e 55%, #374836 100%);
}
/* Foto del café más vendido, desvanecida hacia la izquierda */
.lp_hero_img {
  position: absolute; inset: 0 0 0 45%; background: center / cover no-repeat; opacity: 0.24;
  -webkit-mask-image: linear-gradient(to left, #000 30%, transparent); mask-image: linear-gradient(to left, #000 30%, transparent);
}
.lp_hero::after {
  content: ""; position: absolute; right: -80px; top: -120px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(176, 112, 60, 0.35), transparent 70%); pointer-events: none;
}
.lp_hero_top { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; justify-content: space-between; }
.lp_hero_eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #e6b98c; }
.lp_hero h1 { margin: 6px 0 4px; font-size: 34px; color: #fff !important; }
.lp_hero p { margin: 0; color: rgba(255, 255, 255, 0.78); font-size: 15px; }
.lp_hero_badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.lp_hero_badges > * {
  display: inline-flex; gap: 6px; align-items: center; padding: 5px 12px; border-radius: 20px; font-size: 12.5px; font-weight: 600;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16); color: #fff; text-decoration: none;
}
.lp_hero_badges a { background: rgba(230, 185, 140, 0.18); border-color: rgba(230, 185, 140, 0.45); }
.lp_hero_badges a:hover { color: #fff; background: rgba(230, 185, 140, 0.3); }
.lp_hero_actions { display: flex; flex-wrap: wrap; gap: 10px; }
.lp_btn.lp_btn_light { background: #fff; color: var(--heading-color); border-color: #fff; }
.lp_btn.lp_btn_light:hover { background: var(--cream-color); color: var(--heading-color); }
.lp_btn.lp_btn_outline_light { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.45); }
.lp_btn.lp_btn_outline_light:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.lp_hero_kpis {
  position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 26px -30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12); background: rgba(22, 30, 21, 0.78); backdrop-filter: blur(2px);
}
.lp_hero_kpis > div { padding: 18px 30px 20px; border-left: 1px solid rgba(255, 255, 255, 0.1); }
.lp_hero_kpis > div:first-child { border-left: 0; }
.lp_hero_kpis span { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: rgba(255, 255, 255, 0.62); }
.lp_hero_kpis strong { display: block; margin-top: 6px; font-size: 26px; line-height: 1.1; font-family: var(--heading-font); color: #fff; }
.lp_hero_kpis small { display: block; margin-top: 4px; font-size: 12.5px; color: rgba(255, 255, 255, 0.7); }
.lp_hero_kpis b { font-weight: 700; }
.lp_hero_kpis b.is_up { color: #9fd9a9; }
.lp_hero_kpis b.is_down { color: #f2a99c; }
.lp_hero_star { font-size: 18px; color: #e6b98c; }

/* Negocios B2B con LINAJE */
.lp_b2b_card { border-top: 3px solid var(--copper-color) !important; }
.lp_b2b_head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; }
.lp_b2b_head .lp_b2b_icon { display: grid; place-items: center; width: 44px; height: 44px; margin: 0; border-radius: 12px; background: var(--cream-color); color: var(--copper-color); font-size: 18px; }
.lp_b2b_head h2 { margin: 2px 0 4px; font-size: 17px !important; }
.lp_b2b_head p { margin: 0; font-size: 13.5px; color: var(--lp-muted); }
.lp_b2b_locked .lp_btn { margin-top: 14px; }
.lp_b2b_kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.lp_b2b_kpis > div { padding: 12px 14px; border-radius: 12px; background: #f6f7f2; }
.lp_b2b_kpis span { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; color: var(--lp-muted); }
.lp_b2b_kpis strong { display: block; margin-top: 4px; font-size: 20px; }
.lp_b2b_kpis small { display: block; font-size: 12px; color: var(--lp-muted); }
.lp_b2b_list { display: grid; gap: 8px; }
.lp_b2b_item {
  position: relative; display: grid; gap: 4px; padding: 12px 40px 12px 14px; border: 1px solid var(--lp-line); border-radius: 12px;
  color: var(--heading-color); text-decoration: none; transition: border-color 0.2s, background 0.2s;
}
.lp_b2b_item .lp_badge { justify-self: start; }
.lp_b2b_item strong { font-size: 14px; }
.lp_b2b_item small { font-size: 12.5px; color: var(--lp-muted); }
.lp_b2b_item > i { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--lp-muted); transition: transform 0.2s; }
.lp_b2b_item:hover { border-color: var(--copper-color); background: #fdfaf6; color: var(--heading-color); }
.lp_b2b_item:hover > i { transform: translate(3px, -50%); color: var(--copper-color); }
.lp_b2b_empty { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 14px; border-radius: 12px; background: #f6f7f2; font-size: 13.5px; color: var(--lp-muted); }
.lp_b2b_empty i { margin-top: 2px; font-size: 18px; color: var(--copper-color); }
.lp_b2b_empty strong { color: var(--heading-color); }

@media (max-width: 991px) {
  .lp_hero_kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp_hero_kpis > div:nth-child(3) { border-left: 0; }
  .lp_hero_kpis > div:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, 0.1); }
}
@media (max-width: 575px) {
  .lp_hero { padding: 22px 18px 0; }
  .lp_hero h1 { font-size: 26px; }
  .lp_hero_kpis { margin: 22px -18px 0; }
  .lp_hero_kpis > div { padding: 14px 18px; }
  .lp_hero_kpis strong { font-size: 20px; }
  .lp_hero_actions, .lp_hero_actions .lp_btn { width: 100%; }
  .lp_b2b_kpis { grid-template-columns: 1fr; }
}

/* ---------- Mi perfil de café (comprador) ---------- */
.lp_ideal { display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); gap: 28px; align-items: center; }
.lp_ideal_compact { grid-template-columns: 150px minmax(0, 1fr); gap: 20px; }
.lp_ideal_img { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 16px; background: var(--cream-color) center / cover no-repeat; }
.lp_ideal_compact .lp_ideal_img { aspect-ratio: 1; }
.lp_ideal_match {
  --m: 0; position: absolute; left: 12px; bottom: 12px; display: grid; place-items: center; align-content: center;
  width: 74px; height: 74px; border-radius: 50%; line-height: 1; text-align: center; color: var(--heading-color);
  background: radial-gradient(closest-side, #fff 80%, transparent 81% 100%), conic-gradient(var(--copper-color) calc(var(--m) * 1%), #ead9c4 0);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}
.lp_ideal_compact .lp_ideal_match { width: 56px; height: 56px; left: 8px; bottom: 8px; }
.lp_ideal_match b { font-size: 17px; }
.lp_ideal_compact .lp_ideal_match b { font-size: 13px; }
.lp_ideal_match small { margin-top: 2px; font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: var(--lp-muted); }
.lp_ideal_compact .lp_ideal_match small { display: none; }
.lp_ideal_body .lp_eyebrow i { margin-right: 4px; }
.lp_ideal_body h3 { margin: 6px 0 4px; font-size: 26px; }
.lp_ideal_compact .lp_ideal_body h3 { font-size: 20px; }
.lp_ideal_taste { margin: 0 0 10px; padding: 10px 14px; border-radius: 12px; background: #f6f1e8; font-size: 14px; color: var(--heading-color); }
.lp_ideal_why { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.lp_ideal_why li { display: flex; gap: 10px; align-items: flex-start; }
.lp_ideal_why i { flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: #e3efe2; color: var(--lp-ok); font-size: 10px; }
.lp_ideal_price { font-size: 20px; margin-right: 6px; }
.lp_answers { display: grid; gap: 0; margin: 0; }
.lp_answers > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 10px 0; border-top: 1px solid var(--lp-line); }
.lp_answers > div:first-child { border-top: 0; padding-top: 0; }
.lp_answers dt { font-weight: 400; font-size: 13.5px; color: var(--lp-muted); }
.lp_answers dd { margin: 0; font-weight: 700; font-size: 14px; text-align: right; }
.lp_quiz_cta { text-align: center; padding: 40px 24px !important; background: linear-gradient(180deg, #fff 0%, #fbf6ee 100%) !important; }
.lp_quiz_cta_icon { display: inline-grid; place-items: center; width: 60px; height: 60px; margin-bottom: 12px; border-radius: 18px; background: var(--cream-color); color: var(--copper-color); font-size: 24px; }
.lp_quiz_cta h2 { margin-bottom: 8px; }
.lp_quiz_cta p { max-width: 460px; margin: 0 auto 18px; color: var(--lp-muted); }
.lp_quiz_cta_inline { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; text-align: left; padding: 20px 24px !important; }
.lp_quiz_cta_inline .lp_quiz_cta_icon { margin: 0; }
.lp_quiz_cta_inline p { margin: 2px 0 0; max-width: none; }
@media (max-width: 767px) {
  .lp_ideal, .lp_ideal_compact { grid-template-columns: minmax(0, 1fr); }
  .lp_ideal_img { max-width: 260px; }
  .lp_ideal_compact .lp_ideal_img { max-width: 140px; }
  .lp_quiz_cta_inline { grid-template-columns: auto minmax(0, 1fr); }
  .lp_quiz_cta_inline .lp_btn { grid-column: 1 / -1; }
}

/* ---------- Cuentas: recuperar contraseña, confirmar correo, avisos ---------- */
.lp_or { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--lp-muted); letter-spacing: 0.4px; }
.lp_or::before, .lp_or::after { content: ""; flex: 1; height: 1px; background: var(--lp-line); }
[data-for-role="comprador"] .lp_or { margin-top: 18px; }
.lp_link {
  border: 0; padding: 0; background: none;
  color: var(--copper-color, #b0703c); font-weight: 700; font-size: inherit;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.lp_link:hover { color: var(--heading-color); }
.lp_hint .lp_link { font-size: 13px; }
#forgotOk { display: flex; gap: 10px; align-items: flex-start; }
#forgotOk i { margin-top: 3px; }

.lp_verify {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin: 24px 32px -8px; max-width: 1376px; padding: 14px 16px;
  border: 1px solid #ecd7bb; border-radius: 14px;
  background: #fbf3e7; color: var(--lp-warn);
}
.lp_verify > i { font-size: 20px; flex: none; }
.lp_verify p { flex: 1 1 260px; margin: 0; font-size: 14px; color: var(--heading-color); line-height: 1.5; }
.lp_verify p b { word-break: break-all; }
.lp_verify .lp_btn { background: var(--lp-warn); border-color: var(--lp-warn); }
.lp_verify_x { border: 0; background: none; width: 32px; height: 32px; border-radius: 8px; color: var(--lp-muted); }
.lp_verify_x:hover { background: rgba(0, 0, 0, 0.05); }

.lp_access { list-style: none; margin: 0; padding: 0; }
.lp_access li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--lp-line); }
.lp_access li:first-child { border-top: 0; padding-top: 0; }
.lp_access li:last-child { padding-bottom: 0; }
.lp_access li > i, .lp_access_g {
  flex: none; width: 40px; height: 40px; padding: 10px; border-radius: 12px;
  background: var(--gray-color, #f3efe6); color: var(--heading-color); text-align: center; line-height: 20px;
}
.lp_access li > div { flex: 1; min-width: 0; }
.lp_access b { display: block; font-size: 15px; word-break: break-word; }
.lp_access li > div span { display: block; font-size: 13px; color: var(--lp-muted); line-height: 1.45; }
.lp_access .lp_badge, .lp_access .lp_btn { flex: none; }

.lp_switch { position: relative; flex: none; display: inline-block; width: 48px; height: 28px; margin: 0; cursor: pointer; }
.lp_switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.lp_switch span { position: absolute; inset: 0; border-radius: 28px; background: rgba(55, 72, 54, 0.22); transition: background 0.2s; }
.lp_switch span::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); transition: transform 0.2s;
}
.lp_switch input:checked + span { background: var(--lp-ok); }
.lp_switch input:checked + span::after { transform: translateX(20px); }
.lp_switch input:focus-visible + span { outline: 2px solid var(--heading-color); outline-offset: 2px; }
.lp_switch input:disabled + span { opacity: 0.6; }
@media (max-width: 991px) { .lp_verify { margin: 18px 20px -6px; } }
@media (max-width: 575px) {
  .lp_verify { margin: 14px 14px -4px; }
  .lp_access li { flex-wrap: wrap; }
  .lp_access li:has(.lp_btn) > div { flex-basis: calc(100% - 54px); }
  .lp_access .lp_btn { margin-left: 54px; }
}

/* ---------- Mis pedidos: fotos de los cafés y guía de preparación ---------- */
.lp_order_main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.lp_order_main > div { min-width: 0; }
.lp_order_main .lp_row_meta { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lp_order_thumbs { display: flex; flex: none; }
.lp_order_thumbs .lp_mini_img { width: 52px; height: 52px; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(55, 72, 54, 0.12); }
.lp_order_thumbs .lp_mini_img + .lp_mini_img { margin-left: -18px; }

.lp_card.lp_brew, body.lp_in_app .lp_card.lp_brew { padding: 0; overflow: hidden; }
.lp_brew_top {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px;
  padding: 26px 28px 22px;
  background: linear-gradient(120deg, #2f3d2e 0%, #3d5039 100%); color: #f4efe4;
}
.lp_brew_top h2 { color: #fff !important; margin: 6px 0 6px; font-size: 24px; }
.lp_brew_top p { margin: 0; color: rgba(244, 239, 228, 0.78); font-size: 14px; max-width: 520px; }
.lp_brew_top .lp_eyebrow { color: #e0a96d; }
.lp_brew_pick { display: flex; flex-wrap: wrap; gap: 8px; }
.lp_brew_pick button {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px;
  border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 40px;
  background: rgba(255, 255, 255, 0.06); color: #f4efe4; font-weight: 700; font-size: 14px; text-transform: capitalize;
}
.lp_brew_pick .lp_mini_img { width: 34px; height: 34px; border-radius: 50%; }
.lp_brew_pick button[aria-selected="true"] { background: #f4efe4; color: #2f3d2e; border-color: #f4efe4; }

.lp_brew_body { display: grid; grid-template-columns: 300px minmax(0, 1fr); }
.lp_brew_cafe { padding: 26px 28px; background: #faf6ee; border-right: 1px solid var(--lp-line); }
.lp_brew_img {
  position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 14px;
  background: var(--cream-color) center / cover; color: var(--copper-color); font-size: 34px; margin-bottom: 16px;
}
.lp_brew_score {
  position: absolute; right: 10px; bottom: 10px; display: flex; flex-direction: column; align-items: center;
  padding: 6px 10px; border-radius: 12px; background: rgba(47, 61, 46, 0.9); color: #f4efe4;
  font-size: 10px; letter-spacing: 1px; line-height: 1.1;
}
.lp_brew_score b { font-size: 18px; letter-spacing: 0; }
.lp_brew_cafe h3 { font-size: 20px; margin: 0 0 4px; text-transform: capitalize; }
.lp_brew_facts { font-size: 13px; color: var(--lp-muted); margin: 0 0 10px; }
.lp_brew_notes { display: flex; gap: 8px; font-size: 14px; margin: 12px 0 0; }
.lp_brew_notes i { color: var(--lp-ok); margin-top: 4px; }
.lp_brew_why { display: flex; gap: 10px; margin-top: 16px; padding: 14px; border-radius: 12px; background: #fff; border: 1px solid #ecd7bb; }
.lp_brew_why i { color: var(--copper-color); margin-top: 3px; }
.lp_brew_why p { margin: 0; font-size: 13.5px; line-height: 1.55; }

.lp_brew_main { padding: 24px 28px 28px; min-width: 0; }
.lp_brew_methods { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.lp_brew_methods button {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 6px 12px; border: 1px solid var(--lp-line); border-radius: 12px; background: #fff;
  color: var(--heading-color); font-weight: 700; font-size: 13px; line-height: 1.2; text-align: center;
  transition: border-color 0.2s, background 0.2s;
}
.lp_brew_methods button i { font-size: 18px; color: var(--copper-color); }
.lp_brew_methods button:hover { border-color: var(--heading-color); }
.lp_brew_methods button[aria-selected="true"] { background: #2f3d2e; border-color: #2f3d2e; color: #fff; }
.lp_brew_methods button[aria-selected="true"] i { color: #e0a96d; }
.lp_brew_methods em {
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  padding: 2px 8px; border-radius: 20px; background: var(--copper-color); color: #fff;
  font-style: normal; font-size: 10px; letter-spacing: 0.6px; text-transform: uppercase; white-space: nowrap;
}
.lp_brew_head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin: 20px 0 16px; }
.lp_brew_head p { margin: 0; flex: 1 1 260px; color: var(--lp-muted); font-size: 14px; }
.lp_brew_cups { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--lp-muted); }
.lp_brew_cups button {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--lp-line); background: #fff; color: var(--heading-color);
}
.lp_brew_cups button:disabled { opacity: 0.4; }
.lp_brew_cups output { min-width: 18px; text-align: center; font-size: 20px; color: var(--heading-color); }
.lp_brew_recipe { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.lp_brew_recipe div { padding: 14px 12px; border-radius: 12px; background: #f3f6f1; text-align: center; min-width: 0; }
.lp_brew_recipe i { display: block; color: var(--lp-ok); margin-bottom: 6px; }
.lp_brew_recipe b { display: block; font-size: 17px; line-height: 1.2; }
.lp_brew_recipe span { display: block; margin-top: 2px; font-size: 11px; letter-spacing: 0.6px; text-transform: uppercase; color: var(--lp-muted); }
.lp_brew_steps { counter-reset: paso; list-style: none; margin: 22px 0 0; padding: 0; }
.lp_brew_steps li { counter-increment: paso; position: relative; padding: 0 0 14px 44px; font-size: 14.5px; line-height: 1.55; }
.lp_brew_steps li::before {
  content: counter(paso); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: #f7ead9; color: var(--lp-warn); font-weight: 800; font-size: 13px;
}
.lp_brew_steps li:not(:last-child)::after { content: ""; position: absolute; left: 13.5px; top: 30px; bottom: 2px; width: 1px; background: #ecd7bb; }
.lp_brew_tips { list-style: none; margin: 10px 0 0; padding: 16px 18px; border-radius: 12px; background: #faf6ee; display: grid; gap: 8px; }
.lp_brew_tips li { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.5; }
.lp_brew_tips i { color: var(--copper-color); margin-top: 3px; }

@media (max-width: 1199px) {
  .lp_brew_body { grid-template-columns: 1fr; }
  .lp_brew_cafe { border-right: 0; border-bottom: 1px solid var(--lp-line); display: grid; grid-template-columns: 180px minmax(0, 1fr); column-gap: 20px; align-content: start; }
  .lp_brew_img { grid-row: span 5; margin: 0; }
}
@media (max-width: 767px) {
  .lp_brew_top, .lp_brew_cafe, .lp_brew_main { padding-left: 18px; padding-right: 18px; }
  .lp_brew_cafe { grid-template-columns: 1fr; }
  .lp_brew_img { grid-row: auto; margin-bottom: 14px; aspect-ratio: 16 / 9; }
  .lp_brew_methods { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; }
  .lp_brew_recipe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp_brew_recipe div:last-child { grid-column: 1 / -1; }
  .lp_order_thumbs .lp_mini_img { width: 42px; height: 42px; }
}

/* Aviso: la sesión abierta es de otro tipo de cuenta que el enlace del menú */
.lp_rolemodal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(28, 38, 27, 0.55);
  animation: lpRoleModalIn 0.2s ease;
}
.lp_rolemodal_box {
  width: 100%;
  max-width: 460px;
  padding: 32px 28px 24px;
  border-radius: 20px;
  background: #fff;
  text-align: center;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.35);
}
.lp_rolemodal_icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: #f4ece0;
  color: var(--copper-color, #b0703c);
  font-size: 22px;
}
.lp_rolemodal_box h2 { margin: 0 0 10px; font-size: 22px; }
.lp_rolemodal_box p { margin: 0 0 8px; font-size: 15px; line-height: 1.55; }
.lp_rolemodal_q { font-weight: 600; color: var(--heading-color); }
.lp_rolemodal_btns { display: grid; gap: 10px; margin-top: 18px; }
.lp_rolemodal_btns .lp_link { justify-self: center; margin-top: 4px; }
@keyframes lpRoleModalIn { from { opacity: 0; } to { opacity: 1; } }

/* Ruleta: aviso de giro pendiente y código de descuento de membresía */
.lp_spin_banner { background: #eef4ec; border-color: #cfe0cb; }
.lp_spin_banner > i { color: var(--copper-color, #b0703c); }
.lp_coupon { padding: 16px 20px; }
.lp_coupon label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 14px; color: var(--heading-color); }
.lp_coupon .lp_input { max-width: 240px; text-transform: uppercase; letter-spacing: 1px; }
.lp_plan_cop { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--lp-muted); }

/* Mis descuentos (códigos de la ruleta) */
.lp_code_pct { display: grid; place-items: center; flex: none; width: 58px; height: 58px; border-radius: 14px; background: #f4ece0; color: var(--copper-color, #b0703c); font-size: 18px; font-weight: 800; }
.lp_code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 2px; font-size: 17px; }
.lp_code_row.is_off { opacity: 0.55; }
.lp_code_row.is_off .lp_code { text-decoration: line-through; }
.lp_empty_card { padding: 40px 24px; text-align: center; }
.lp_empty_card > i { font-size: 34px; color: var(--copper-color, #b0703c); margin-bottom: 12px; }
.lp_empty_card h2 { font-size: 20px; margin-bottom: 8px; }
.lp_empty_card p { max-width: 460px; margin: 0 auto 18px; }
.lp_errores { border: 1px solid #f0c9c3; }
.lp_errores h2 i { color: var(--lp-bad, #b23b2a); }
.lp_errores_list { margin: 10px 0 0; padding-left: 18px; max-height: 260px; overflow: auto; font-family: ui-monospace, Consolas, monospace; font-size: 12px; line-height: 1.5; color: #6b2a20; }
.lp_errores_list li { margin-bottom: 6px; word-break: break-word; }

/* ---------- Expo Café: sorteos de feria y leads ---------- */
.lp_btn_wa { background: #1f9d55; border-color: #1f9d55; color: #fff; }
.lp_btn_wa:hover { background: #17834a; border-color: #17834a; color: #fff; }
.lp_expo_hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.lp_expo_hero h2 { font-size: 26px; margin: 0 0 4px; }
.lp_expo_link { display: flex; gap: 8px; margin-top: 14px; max-width: 620px; }
.lp_expo_link .lp_input { font-size: 14px; padding: 9px 12px; background: var(--white-color); }
.lp_expo_qr_box { text-align: center; }
.lp_expo_qr { display: grid; place-items: center; width: 168px; height: 168px; padding: 8px; border: 1px solid var(--lp-line); border-radius: 14px; background: #fff; color: var(--lp-muted); }
.lp_expo_qr img, .lp_expo_qr canvas { width: 150px !important; height: 150px !important; }
.lp_expo_link .lp_btn { white-space: nowrap; }
.lp_stat strong .lp_expo_of { display: inline; margin: 0; }
.lp_expo_of { font-size: 16px; color: var(--lp-muted); font-family: var(--body-font); font-weight: 600; }
.lp_expo_bar { height: 6px; margin-top: 10px; border-radius: 6px; background: var(--gray-color); overflow: hidden; }
.lp_expo_bar i { display: block; height: 100%; border-radius: inherit; background: var(--copper-color); transition: width 0.4s; }
.lp_expo_cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; margin-bottom: 20px; }
.lp_expo_cols > .lp_card + .lp_card { margin-top: 0; }
.lp_expo_round { grid-template-columns: 82px minmax(0, 1fr) auto; }
.lp_expo_round_n { font-weight: 800; color: var(--copper-color); font-family: var(--heading-font); }
.lp_expo_top { grid-template-columns: minmax(0, 1fr) auto; }
.lp_expo_lead { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr) auto; align-items: start; }
/* Agenda de mensajes y plazo del ganador */
.lp_expo_agenda { margin-bottom: 20px; }
.lp_expo_ags { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.lp_expo_ag { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 12px; align-items: start; padding: 14px; border: 1px solid var(--lp-line); border-radius: 14px; background: var(--white-color); }
.lp_expo_ag > .lp_btn { grid-column: 2; justify-self: start; margin-top: 8px; }
.lp_expo_ag_icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #f6ebdf; color: var(--copper-color); }
.lp_expo_ag_status { margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--heading-color); }
.lp_expo_ag.is_now { border-color: #1f9d55; background: #eef8f1; box-shadow: 0 0 0 3px rgba(31, 157, 85, 0.12); }
.lp_expo_ag.is_now .lp_expo_ag_icon { background: #1f9d55; color: #fff; }
.lp_expo_ag.is_now .lp_expo_ag_status { color: #17834a; }
.lp_expo_ag.is_ok .lp_expo_ag_status { color: var(--lp-ok); }
.lp_expo_claim { margin-top: 6px; display: block; width: fit-content; max-width: 100%; padding: 4px 10px; border-radius: 20px; background: #f7ead9; color: var(--lp-warn); font-size: 12.5px; font-weight: 700; }
.lp_expo_claim.is_late { background: #fbe4e1; color: var(--lp-bad); }
.lp_expo_ceded a { font-weight: 700; color: #17834a; margin-left: 4px; }
.lp_expo_import { display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; background: #eef4ec; }
.lp_expo_wa_btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.lp_expo_wa_btns .lp_btn i.fa-check, .lp_expo_sent { font-size: 11px; opacity: 0.85; }
.lp_expo_sent { color: var(--lp-ok); }
.lp_expo_lead.is_off { opacity: 0.5; }
.lp_expo_num { display: grid; place-items: center; height: 40px; border-radius: 10px; background: var(--heading-color); color: var(--white-color); font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.lp_expo_lead .lp_row_title .lp_badge { margin-left: 4px; vertical-align: 2px; }
.lp_expo_next { color: var(--heading-color); font-weight: 600; }
.lp_expo_next i { color: var(--copper-color); }
.lp_expo_phone { font-weight: 700; color: var(--heading-color); text-decoration: none; white-space: nowrap; }
.lp_expo_phone i { color: #1f9d55; }
.lp_expo_lead .lp_row_actions { flex-wrap: nowrap; }

/* WhatsApp masivo */
.lp_expo_wa { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.lp_expo_wa_cfg { display: grid; gap: 16px; }
.lp_expo_tpls { display: flex; flex-wrap: wrap; gap: 6px; }
.lp_expo_tpl { padding: 7px 12px; border: 1px solid var(--lp-line); border-radius: 30px; background: #fff; font-size: 13px; font-weight: 600; color: var(--heading-color); }
.lp_expo_tpl i { color: var(--copper-color); margin-right: 2px; }
.lp_expo_tpl[aria-pressed="true"] { background: var(--heading-color); border-color: var(--heading-color); color: #fff; }
.lp_expo_tpl[aria-pressed="true"] i { color: #e0a873; }
.lp_expo_preview { padding: 12px 14px; border-radius: 12px 12px 12px 2px; background: #dcf8c6; }
.lp_expo_preview p { margin: 4px 0 0; font-size: 14px; color: #1d2b1c; white-space: pre-wrap; word-break: break-word; }
.lp_expo_wa_queue { padding: 18px; border: 1px solid var(--lp-line); border-radius: 14px; background: var(--white-color); }
.lp_expo_wa_head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.lp_expo_wa_head strong { font-size: 22px; font-family: var(--heading-font); }
.lp_expo_wa_list { display: grid; gap: 6px; max-height: 520px; overflow: auto; margin-top: 14px; }
.lp_expo_wa_item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; background: #fff; border: 1px solid var(--lp-line); }
.lp_expo_wa_item .lp_expo_num { height: 32px; font-size: 12px; }
.lp_expo_wa_item b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp_expo_wa_item small { display: block; font-size: 12px; color: var(--lp-muted); }
.lp_expo_wa_item.is_sent { background: #f3f7f1; }
.lp_expo_wa_item.is_sent .lp_expo_num { background: var(--lp-ok); }

/* Mis eventos (usuario) */
.lp_expo_tickets { display: grid; gap: 18px; }
.lp_expo_ticket { display: grid; grid-template-columns: 170px minmax(0, 1fr); border: 1px solid var(--lp-line); border-radius: 18px; background: #fff; overflow: hidden; }
.lp_expo_ticket_num { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 12px; background: linear-gradient(160deg, #2c3b2b, var(--heading-color)); color: var(--white-color); text-align: center; border-right: 2px dashed rgba(255, 255, 255, 0.25); }
.lp_expo_ticket_num small { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; opacity: 0.7; }
.lp_expo_ticket_num strong { font-family: var(--heading-font); font-size: 44px; line-height: 1.1; }
.lp_expo_ticket_num span { font-size: 12px; color: #e0a873; font-weight: 700; }
.lp_expo_ticket.is_ganador .lp_expo_ticket_num { background: linear-gradient(160deg, #8a5428, var(--copper-color)); }
.lp_expo_ticket_body { padding: 20px 24px; }
.lp_expo_ticket_body h2 { margin: 4px 0 2px; font-size: 22px; }
.lp_expo_result { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; padding: 10px 14px; border-radius: 12px; background: var(--white-color); font-weight: 600; font-size: 14px; }
.lp_expo_result i { color: var(--copper-color); margin-top: 3px; }
.lp_expo_ticket.is_ganador .lp_expo_result { background: #fff4e3; color: #8a5428; }

@media (max-width: 1199px) {
  .lp_expo_lead { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lp_expo_lead .lp_row_actions { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; }
}
@media (max-width: 991px) {
  .lp_expo_cols, .lp_expo_wa { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .lp_expo_hero { grid-template-columns: minmax(0, 1fr); }
  .lp_expo_qr_box { justify-self: start; }
  .lp_expo_link { flex-wrap: wrap; }
  .lp_expo_round { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .lp_expo_round .lp_row_actions { justify-content: flex-start; }
  .lp_expo_lead { grid-template-columns: minmax(0, 1fr); }
  .lp_expo_ticket { grid-template-columns: minmax(0, 1fr); }
  .lp_expo_ticket_num { border-right: 0; border-bottom: 2px dashed rgba(255, 255, 255, 0.25); flex-direction: row; gap: 12px; padding: 14px; }
  .lp_expo_ticket_num strong { font-size: 34px; }
  .lp_expo_wa_item { grid-template-columns: minmax(0, 1fr) auto; }
  .lp_expo_wa_item .lp_badge { display: none; }
}
