/* ===========================================================================
   Calculadora de baja temeraria · /blog/baja-temeraria/

   RECUPERADO DEL WORDPRESS ORIGINAL. En la migración se trajo el marcado de
   la calculadora pero no sus estilos ni su guion, así que la página mostraba
   una lista de campos sueltos sin formato y el botón «Calcular» no hacía
   nada.

   Este CSS es el que servía WordPress, tal cual, sin retocar. Se carga SOLO en
   ese artículo (ver src/pages/blog/[...slug].astro), no en toda la web.

   Origen: bloque <style> de https://jyringenieros.com/blog/baja-temeraria/
   Recuperado el 21/08/2026
   =========================================================================== */

.jyr-bt-calc {
  --jyr-black: #191919;
  --jyr-black-2: #232323;
  --jyr-gold: #d9a731;
  --jyr-gold-light: #f0cf7e;
  --jyr-gold-dark: #8a6a1f;
  --jyr-cream: #fffaf2;
  --jyr-border: #ddd4bd;
  --jyr-muted: #8f8570;
  --jyr-text: #2b2620;
  --jyr-name: #4a4438;
  --jyr-panel-text: #f2eee4;
  --jyr-bad-bg: #a8382c;
  --jyr-ok-bg: #3d6b46;
  box-sizing: border-box;
  max-width: 1220px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.08);
}
.jyr-bt-calc *, .jyr-bt-calc *::before, .jyr-bt-calc *::after { box-sizing: border-box; }

.jyr-bt-accent {
  height: 5px;
  background: linear-gradient(90deg, #b8872a, var(--jyr-gold-light), #b8872a);
}

.jyr-bt-header {
  padding: 24px 36px;
  background: linear-gradient(135deg, #141414, #232323);
}
.jyr-bt-header-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #f2eee4;
  letter-spacing: .3px;
}
.jyr-bt-header-title span { color: var(--jyr-gold); font-weight: 800; }
.jyr-bt-header-sub {
  margin-top: 5px;
  font-size: .82rem;
  font-style: italic;
  color: #b8b0a0;
}

.jyr-bt-body {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
}
.jyr-bt-col { padding: 32px 36px; min-width: 0; }
.jyr-bt-col-left { background: var(--jyr-cream); }
.jyr-bt-col-right { background: linear-gradient(160deg, var(--jyr-black), var(--jyr-black-2)); color: var(--jyr-panel-text); }

.jyr-bt-heading {
  margin: 0 0 14px;
  padding-bottom: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--jyr-text);
  border-bottom: 2px solid rgba(217,167,49,.4);
}
.jyr-bt-heading-offers { margin-top: 34px; }

.jyr-bt-calc .jyr-bt-input, .jyr-bt-calc .jyr-bt-offer-value {
  width: 100%;
  border: 1px solid var(--jyr-border) !important;
  border-radius: 6px !important;
  padding: 12px 14px;
  font-size: 0.95rem;
  color: #443c2c;
  text-align: right;
  background: #fff !important;
  outline: none;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.jyr-bt-calc .jyr-bt-input:focus, .jyr-bt-calc .jyr-bt-offer-value:focus {
  border-color: var(--jyr-gold) !important;
  box-shadow: 0 0 0 3px rgba(217,167,49,.15) !important;
}
.jyr-bt-input::placeholder, .jyr-bt-offer-value::placeholder { color: var(--jyr-muted); opacity: 1; }

.jyr-bt-offer {
  margin-bottom: 14px;
  padding: 14px 16px 16px;
  background: #fff;
  border: 1px solid var(--jyr-border);
  border-radius: 10px;
}

.jyr-bt-offer-label-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.jyr-bt-calc .jyr-bt-offer-name {
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-style: italic;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--jyr-name);
  text-align: right;
  outline: none;
  padding: 2px 4px;
  max-width: 220px;
}
.jyr-bt-calc .jyr-bt-offer-name:focus { background: #faf3e0 !important; border-radius: 3px !important; }
.jyr-bt-pencil { color: var(--jyr-gold-dark); flex: none; opacity: .9; }

.jyr-bt-offer-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.jyr-bt-calc .jyr-bt-icon-btn {
  all: unset;
  box-sizing: border-box;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 6px !important;
  background: none !important;
  color: var(--jyr-name);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.jyr-bt-calc .jyr-bt-icon-btn:hover { color: #6b511a; background: #f6ecd3 !important; }
.jyr-bt-calc .jyr-bt-icon-btn:disabled { opacity: .3; cursor: not-allowed; }
.jyr-bt-calc .jyr-bt-icon-btn:disabled:hover { background: none !important; }
.jyr-bt-calc .jyr-bt-icon-btn svg {
  display: block;
  width: 60%;
  height: 60%;
  fill: none !important;
  stroke: currentColor !important;
}
.jyr-bt-calc .jyr-bt-pencil svg {
  fill: none !important;
  stroke: currentColor !important;
}

.jyr-bt-info {
  font-style: italic;
  text-align: justify;
  line-height: 1.55;
  font-size: 0.92rem;
  margin: 0 0 24px;
  color: var(--jyr-panel-text);
}
.jyr-bt-calc .jyr-bt-btn {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, var(--jyr-gold-light), var(--jyr-gold)) !important;
  color: #241c08 !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 16px 20px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .1s ease, box-shadow .15s ease;
}
.jyr-bt-btn:hover { box-shadow: 0 4px 18px rgba(217,167,49,.4); }
.jyr-bt-btn:active { transform: translateY(1px); }

.jyr-bt-results { margin-top: 26px; }
.jyr-bt-results-msg {
  font-size: 0.88rem;
  line-height: 1.5;
  background: rgba(217,167,49,.1);
  border-left: 3px solid var(--jyr-gold);
  padding: 10px 14px;
  border-radius: 4px;
}
.jyr-bt-results-msg.jyr-bt-error { border-left-color: #c0685c; background: rgba(192,104,92,.1); }

.jyr-bt-summary {
  font-size: 0.82rem;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: var(--jyr-gold-light);
  margin-bottom: 10px;
  font-weight: 700;
}

.jyr-bt-table-wrap { overflow-x: auto; }
.jyr-bt-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.jyr-bt-table th, .jyr-bt-table td {
  text-align: left;
  padding: 9px 6px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.jyr-bt-table th { font-weight: 600; color: var(--jyr-gold-light); font-size: .78rem; text-transform: uppercase; letter-spacing: .4px; }
.jyr-bt-table td.jyr-bt-num { text-align: right; white-space: nowrap; }

.jyr-bt-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 3px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: #fff;
}
.jyr-bt-badge-bad { background: var(--jyr-bad-bg); }
.jyr-bt-badge-ok { background: var(--jyr-ok-bg); }
.jyr-bt-badge-excl { background: #8a6d1f; }

.jyr-bt-motivo {
  margin-top: 4px;
  font-size: .72rem;
  font-style: italic;
  color: #cfc6b4;
  white-space: normal;
  max-width: 160px;
}

.jyr-bt-media-info {
  margin: 4px 0 16px;
  padding: 12px 14px;
  background: rgba(217,167,49,.08);
  border: 1px solid rgba(217,167,49,.2);
  border-radius: 6px;
  font-size: .82rem;
  line-height: 1.6;
}
.jyr-bt-media-info p { margin: 0 0 6px; }
.jyr-bt-media-info p:last-child { margin-bottom: 0; }
.jyr-bt-media-info strong { color: var(--jyr-gold-light); }

.jyr-bt-nota {
  margin-top: 14px;
  font-size: .8rem;
  font-style: italic;
  color: #cfc6b4;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .jyr-bt-body { grid-template-columns: 1fr; }
  .jyr-bt-col { padding: 26px 22px; }
  .jyr-bt-header { padding: 20px 22px; }
}
