/* =====================================================
   Calculadora de Dosis de Péptidos — v3
   ===================================================== */

.pdc-calculator-wrap {
  --pdc-color: #0073aa;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  max-width: 860px;
  margin: 0 auto 2.5rem;
  color: #1a1a2e;
  font-size: 15px;
  line-height: 1.55;
}
.pdc-description { color: #555; margin-bottom: 18px; font-size: 14px; }

/* ── Panel de inputs ── */
.pdc-panel {
  background: #fff;
  border: 1px solid #dde3ea;
  border-radius: 14px;
  padding: 24px 22px;
  box-shadow: 0 4px 20px rgba(0,0,0,.055);
  margin-bottom: 20px;
}
.pdc-section { margin-bottom: 22px; }
.pdc-section:last-child { margin-bottom: 0; }
.pdc-section-title { font-size: 14px; font-weight: 700; color: #333; margin: 0 0 10px; display: flex; align-items: center; gap: 10px; }
.pdc-step { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--pdc-color); color: #fff; font-size: 12px; font-weight: 800; flex-shrink: 0; }

/* ── Chips ── */
.pdc-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pdc-chip { border: 1.5px solid #cbd5e1; background: #fff; padding: 7px 14px; border-radius: 999px; font-size: 13px; cursor: pointer; transition: all .18s ease; font-family: inherit; color: #374151; line-height: 1; }
.pdc-chip:hover { border-color: var(--pdc-color); color: var(--pdc-color); }
.pdc-chip.pdc-active { background: var(--pdc-color); color: #fff; border-color: var(--pdc-color); box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.pdc-custom-input { border: 1.5px solid #cbd5e1; border-radius: 8px; padding: 7px 10px; font-size: 13px; width: 90px; font-family: inherit; outline: none; transition: border-color .15s; }
.pdc-custom-input:focus { border-color: var(--pdc-color); }
.pdc-hidden { display: none !important; }

/* ── Resultados ── */
.pdc-results-wrap { display: flex; flex-direction: column; gap: 18px; }

/* ══════════════════════════════════════════════════
   SECCIÓN DE JERINGA
   ══════════════════════════════════════════════════ */
.pdc-syringe-section {
  background: #f7f9fb;
  border: 1px solid #dde3ea;
  border-radius: 14px;
  padding: 22px 20px 18px;
  box-shadow: 0 4px 20px rgba(0,0,0,.055);
}
.pdc-syringe-title {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-align: center;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.pdc-syringe-svg-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.pdc-syringe-svg {
  display: block;
  width: 100%;
  min-width: 480px;
  height: auto;
}

/* ── Animated SVG elements ──
   Liquid bar: scaleX from RIGHT → LEFT (correct draw direction)
   transform-box:fill-box makes transform-origin relative to the element itself  */
.pdc-liquid-bar {
  transform-box: fill-box;
  transform-origin: right center;
  transform: scaleX(0);
  transition: transform .58s cubic-bezier(.4, 0, .2, 1);
}
.pdc-liquid-shine {
  transform-box: fill-box;
  transform-origin: right center;
  transform: scaleX(0);
  transition: transform .58s cubic-bezier(.4, 0, .2, 1);
}
/* Plunger group: slides left as liquid increases */
.pdc-plunger-group {
  transition: transform .58s cubic-bezier(.4, 0, .2, 1);
}
/* Indicator arrow: slides left with plunger */
.pdc-indicator-grp {
  transition: transform .58s cubic-bezier(.4, 0, .2, 1);
}

/* Overflow warning */
.pdc-exceed-warn {
  margin-top: 12px;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
}

/* ── Tarjetas ── */
.pdc-result-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 520px) { .pdc-result-cards { grid-template-columns: repeat(4, 1fr); } }
.pdc-result-card { background: #fff; border: 1px solid #dde3ea; border-radius: 12px; padding: 14px 12px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.pdc-result-label { font-size: 11px; color: #64748b; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.pdc-result-value { font-size: 24px; font-weight: 800; color: var(--pdc-color); line-height: 1.1; }
.pdc-result-sub { font-size: 11px; color: #94a3b8; margin-top: 4px; }

/* ── Resumen ── */
.pdc-summary { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px 16px; font-size: 14px; color: #374151; line-height: 1.65; }

/* ── Disclaimer ── */
.pdc-disclaimer { font-size: 12px; color: #94a3b8; text-align: center; margin-top: 6px; margin-bottom: 0; }

/* ── Responsive ── */
@media (max-width: 560px) {
  .pdc-panel { padding: 16px 14px; }
  .pdc-result-value { font-size: 20px; }
  .pdc-syringe-section { padding: 14px 10px 12px; }
}
