/* Bulk & Pallet — 8 sep 2026.
   Hereda la paleta y la tipografia del sitio (styles.css + premium.css).
   Este archivo solo aporta lo propio de la seccion; no redefine el cuerpo,
   la navegacion ni los botones globales. */

.bp-wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ── Portada de la seccion ─────────────────────────────── */
.bp-hero { padding: 54px 0 34px; }
.bp-kicker {
  display: inline-block; font-size: 12px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 12px;
}
.bp-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700; font-size: clamp(34px, 5vw, 54px);
  line-height: 1.06; margin-bottom: 16px;
}
.bp-hero h1 span { color: var(--gold); }
.bp-lede { font-size: 17px; color: var(--muted); max-width: 62ch; }

.bp-steps { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); margin-top: 30px; }
.bp-step {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--r); padding: 18px 20px;
}
.bp-step b { display: block; color: var(--gold); font-size: 13px;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.bp-step p { font-size: 14px; color: var(--muted); }

/* ── Calculadora ───────────────────────────────────────── */
.bp-calc {
  background: var(--panel2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 26px; margin: 34px 0;
  box-shadow: var(--shadow);
}
.bp-calc h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px; margin-bottom: 6px;
}
.bp-calc > p { color: var(--muted); font-size: 14px; margin-bottom: 20px; }

.bp-slider-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.bp-slider-row input[type=range] {
  flex: 1 1 320px; accent-color: var(--gold); height: 30px; cursor: pointer;
}
.bp-weight {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 34px; font-weight: 700; color: var(--gold); line-height: 1;
  min-width: 210px;
}
.bp-weight small { display: block; font-family: 'Poppins', sans-serif;
  font-size: 13px; font-weight: 400; color: var(--muted); margin-top: 4px; }

.bp-result { display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); margin-top: 22px; }
.bp-cell {
  background: var(--dark); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 16px;
}
.bp-cell span { display: block; font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.bp-cell b { font-size: 22px; color: var(--text); font-weight: 600; }
.bp-cell.bp-total b { color: var(--gold); }
.bp-cell small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

.bp-note { font-size: 13px; color: var(--muted); margin-top: 16px; }

/* ── Tabla completa ────────────────────────────────────── */
.bp-table-wrap { overflow-x: auto; margin: 12px 0 6px; }
.bp-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; min-width: 620px; }
.bp-table th, .bp-table td { padding: 11px 12px; text-align: right; border-bottom: 1px solid var(--border); }
.bp-table th:first-child, .bp-table td:first-child { text-align: left; }
.bp-table thead th { color: var(--gold); font-size: 12px; line-height: 1.35;
  letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.bp-table tbody tr.is-anchor { background: rgba(232,194,84,.07); }
.bp-table tbody tr.is-active { background: rgba(232,194,84,.16); }
.bp-table td b { color: var(--text); }

/* ── Fuera de rango ────────────────────────────────────── */
.bp-bounds { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); margin: 26px 0; }
.bp-bound {
  border: 1px solid var(--border); border-left: 3px solid var(--gold);
  border-radius: 10px; padding: 16px 18px; background: var(--panel);
}
.bp-bound b { display: block; margin-bottom: 4px; }
.bp-bound p { font-size: 14px; color: var(--muted); }

/* ── Formulario ────────────────────────────────────────── */
.bp-form { background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--r); padding: 26px; margin: 34px 0; }
.bp-fields { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.bp-fields label { display: block; font-size: 13px; color: var(--muted); }
.bp-fields .bp-wide { grid-column: 1 / -1; }
.bp-fields input, .bp-fields select, .bp-fields textarea {
  width: 100%; margin-top: 5px; padding: 10px 12px;
  background: var(--dark); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: 15px;
}
.bp-fields input:focus, .bp-fields select:focus, .bp-fields textarea:focus {
  outline: 2px solid var(--gold); outline-offset: 1px;
}
.bp-lot { display: grid; gap: 10px; grid-template-columns: 3fr 1.4fr 1fr auto;
  align-items: end; margin-bottom: 10px; }
.bp-check { display: flex; gap: 10px; align-items: flex-start;
  margin: 18px 0; font-size: 14px; color: var(--muted); }
.bp-check input { margin-top: 3px; }

.bp-btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px;
  background: linear-gradient(135deg, var(--gold-l), var(--gold));
  color: #2E1F14; font-weight: 700; text-decoration: none;
  border: 0; cursor: pointer; font-family: inherit; font-size: 15px;
}
.bp-btn:hover { filter: brightness(1.06); }
.bp-btn.bp-ghost {
  background: transparent; color: var(--gold);
  border: 1px solid var(--gold-d); font-weight: 600;
}
.bp-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

.bp-terms { border-top: 1px solid var(--border); margin-top: 34px;
  padding-top: 22px; font-size: 14px; color: var(--muted); }
.bp-terms p { margin-bottom: 10px; }
.bp-terms b { color: var(--text); }

@media (max-width: 860px) {
  .bp-steps, .bp-result, .bp-bounds, .bp-fields { grid-template-columns: 1fr; }
  .bp-lot { grid-template-columns: 1fr 1fr; }
  .bp-lot > label:first-child { grid-column: 1 / -1; }
  .bp-weight { min-width: 0; }
}

/* El atributo hidden debe ganar a display:inline-block de .bp-btn.
   Sin esto, el enlace de respaldo a WhatsApp se ve siempre. */
[hidden] { display: none !important; }

/* Astra: local accessibility and mobile layout, no shared styles changed. */
.bp-weight-choice{font:inherit;color:inherit;background:transparent;border:0;min-height:44px;text-align:left;cursor:pointer}
.bp-weight-choice:focus-visible,.bp-table-wrap:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.bp-lot>*{min-width:0}.bp-lot select,.bp-lot input{width:100%;min-width:0}
.bp-page input,.bp-page select{font-size:16px}.bp-page input[type=range]{min-height:44px}
@media(max-width:600px){body.bp-page #dl-btn{position:static!important;margin:20px auto!important;display:flex!important}body.bp-page #dl-panel{bottom:12px!important;max-height:calc(100dvh - 24px)!important}}

/* Respaldo del formulario: copiar o descargar el resumen cuando no se puede
   confirmar la entrega. Bloque aislado; no cambia ningun estilo compartido. */
.bp-fallback { margin-top: 16px; padding: 16px; border: 1px solid var(--border);
  border-radius: var(--r); background: rgba(0,0,0,.12); }
.bp-fallback-note { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.bp-fallback-text { width: 100%; box-sizing: border-box; font: 13px/1.5 ui-monospace,
  SFMono-Regular, Menlo, Consolas, monospace; color: inherit; background: transparent;
  border: 1px solid var(--border); border-radius: 8px; padding: 10px; resize: vertical; }
.bp-fallback-text:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.bp-fallback-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.bp-fallback-actions .bp-btn { min-height: 44px; }

/* Compromisos visibles en el punto de decision, justo antes de los botones. */
.bp-commit { list-style: none; margin: 20px 0 4px; padding: 16px 18px;
  border: 1px solid var(--border); border-radius: var(--r);
  background: rgba(0,0,0,.10); display: grid; gap: 8px; }
.bp-commit li { position: relative; padding-left: 20px; font-size: 13.5px;
  line-height: 1.5; color: var(--muted); }
.bp-commit li::before { content: ""; position: absolute; left: 4px; top: .55em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* Phones: each published step becomes a compact card instead of a sideways-scrolling table.
   Same rows, same values and the same weight buttons; only the layout changes. */
@media (max-width: 600px) {
  .bp-table-wrap { overflow: visible; }
  .bp-table, .bp-table tbody { display: block; min-width: 0; }
  .bp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .bp-table tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-bottom: 10px; padding: 12px 14px;
    border: 1px solid var(--border); border-radius: 12px; }
  .bp-table tbody th { grid-column: 1 / -1; padding: 0 0 4px; border: 0; }
  .bp-table tbody td { padding: 0; border: 0; text-align: left; font-size: 14px; }
  .bp-table tbody td::before { display: block; color: var(--gold); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
  .bp-table tbody td:nth-of-type(1)::before { content: "USD / kg"; }
  .bp-table tbody td:nth-of-type(2)::before { content: "USD / lb"; }
  .bp-table tbody td:nth-of-type(3)::before { content: "Total freight"; }
  .bp-table tbody td:nth-of-type(4)::before { content: "Green · workdays"; }
  .bp-table tbody td:nth-of-type(5)::before { content: "Roasted · workdays"; }
  .bp-weight-choice { min-height: 44px; }
}

/* Screen-reader-only text (the table caption); this page had no definition, so it showed on screen. */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
