/* Yo en el Planeta – Calculadora de reciclaje v1.0.0 */
.yep-calc {
  --yep-forest: #10261B;
  --yep-green: #1F4D36;
  --yep-leaf: #5E8F45;
  --yep-sprout: #C9E0A5;
  --yep-mint: #ECE6D3;
  --yep-sand: #F3EEDF;
  --yep-ink: #1C2A21;
  --yep-muted: #5B6858;
  --yep-line: #DDD5BE;
  --yep-radius: 18px;
  box-sizing: border-box;
  max-width: 760px;
  margin: 0 auto;
  padding: 28px;
  background: var(--yep-sand);
  border: 1px solid var(--yep-line);
  border-radius: 26px;
  color: var(--yep-ink);
  font-family: "Figtree", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
.yep-calc *, .yep-calc *::before, .yep-calc *::after { box-sizing: border-box; }
.yep-calc button { font: inherit; cursor: pointer; text-transform: none; letter-spacing: normal; }

/* Encabezado */
.yep-head { margin-bottom: 20px; }
.yep-kicker { margin: 0 0 4px; color: var(--yep-leaf); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.yep-calc .yep-title { margin: 0 0 6px; color: var(--yep-forest); font-size: clamp(24px, 4.5vw, 32px); line-height: 1.15; font-weight: 800; }
.yep-lead { margin: 0; color: var(--yep-muted); }

/* Selector de modo */
.yep-mode { display: inline-flex; padding: 4px; margin-bottom: 18px; background: var(--yep-mint); border-radius: 999px; }
.yep-calc .yep-mode-btn { border: 0; padding: 8px 18px; border-radius: 999px; background: transparent; color: var(--yep-green); font-weight: 600; font-size: 15px; }
.yep-calc .yep-mode-btn.is-active { background: var(--yep-green); color: #fff; box-shadow: 0 2px 6px rgba(15, 61, 42, .25); }

/* Grupos de materiales */
.yep-groups { display: grid; gap: 14px; }
.yep-group { margin: 0; padding: 14px 16px 6px; border: 1px solid var(--yep-line); border-radius: var(--yep-radius); background: #fff; }
.yep-group legend { padding: 0 6px; font-weight: 700; color: var(--yep-forest); }
.yep-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px dashed var(--yep-line); }
.yep-row:first-of-type { border-top: 0; }
.yep-row-name { display: flex; flex-direction: column; font-size: 15px; font-weight: 500; }
.yep-row-hint { color: var(--yep-muted); font-size: 12.5px; font-weight: 400; }
.yep-stepper { display: flex; align-items: center; flex-shrink: 0; border: 1px solid var(--yep-line); border-radius: 12px; overflow: hidden; background: var(--yep-mint); }
.yep-calc .yep-step { width: 38px; height: 38px; border: 0; background: transparent; color: var(--yep-green); font-size: 20px; font-weight: 700; line-height: 1; padding: 0; }
.yep-calc .yep-step:hover { background: var(--yep-sprout); }
.yep-calc .yep-input { width: 58px; height: 38px; border: 0; border-left: 1px solid var(--yep-line); border-right: 1px solid var(--yep-line); border-radius: 0; background: #fff; text-align: center; font-size: 16px; font-weight: 600; color: var(--yep-ink); padding: 0; margin: 0; -moz-appearance: textfield; }
.yep-calc .yep-input::-webkit-outer-spin-button, .yep-calc .yep-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Ajuste de pesos */
.yep-weights { padding: 10px 16px; border-radius: var(--yep-radius); background: var(--yep-mint); }
.yep-weights summary, .yep-method summary { cursor: pointer; font-weight: 600; color: var(--yep-green); }
.yep-weights-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 16px; margin-top: 10px; }
.yep-weights-grid label { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13.5px; }
.yep-weights-grid input { width: 70px; padding: 4px 6px; border: 1px solid var(--yep-line); border-radius: 8px; text-align: right; font-size: 14px; }

/* Resultados */
.yep-results { margin-top: 22px; padding: 22px; border-radius: 22px; background: linear-gradient(140deg, var(--yep-forest), var(--yep-green)); color: #fff; }
.yep-hero { display: flex; flex-direction: column; }
.yep-hero-label { color: var(--yep-sprout); font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.yep-hero-value { font-size: clamp(44px, 10vw, 64px); font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; }
.yep-hero-value small { font-size: .4em; font-weight: 600; }
.yep-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.yep-stat { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .1); }
.yep-stat-value { display: block; font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.yep-stat-label { font-size: 13px; color: rgba(255, 255, 255, .82); }
.yep-eq-title { margin: 6px 0 6px; font-weight: 700; color: var(--yep-sprout); }
.yep-eq { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.yep-eq li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.yep-eq-icon { font-size: 20px; }
.yep-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.yep-calc .yep-btn { padding: 10px 16px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .5); background: transparent; color: #fff; font-weight: 600; font-size: 15px; }
.yep-calc .yep-btn:hover { background: rgba(255, 255, 255, .12); }
.yep-calc .yep-btn-primary { background: var(--yep-sprout); color: var(--yep-forest); border-color: var(--yep-sprout); }
.yep-calc .yep-btn-primary:hover { background: #cdeebb; }
.yep-calc .yep-btn-ghost { border-color: transparent; color: rgba(255, 255, 255, .8); }
.yep-toast { margin: 12px 0 0; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .16); font-size: 14px; }

/* Historial */
.yep-history { margin-top: 18px; padding: 18px; border: 1px solid var(--yep-line); border-radius: var(--yep-radius); background: #fff; }
.yep-calc .yep-sub { margin: 0 0 10px; font-size: 18px; color: var(--yep-forest); }
.yep-history-totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.yep-history-totals div { padding: 10px; border-radius: 12px; background: var(--yep-mint); font-size: 13px; color: var(--yep-muted); }
.yep-history-totals span { display: block; font-size: 22px; font-weight: 700; color: var(--yep-green); font-variant-numeric: tabular-nums; }
.yep-history-totals small { display: block; }
.yep-history-list { list-style: none; margin: 12px 0 6px; padding: 0; }
.yep-history-list li { display: grid; grid-template-columns: 70px 1fr auto; gap: 8px; padding: 6px 0; border-top: 1px dashed var(--yep-line); font-size: 14px; }
.yep-calc .yep-link { border: 0; background: none; padding: 0; color: var(--yep-muted); text-decoration: underline; font-size: 13px; }

/* Metodología */
.yep-method { margin-top: 18px; padding: 14px 16px; border-radius: var(--yep-radius); background: var(--yep-mint); font-size: 14px; color: var(--yep-muted); }
.yep-method p { margin: 10px 0 0; }
.yep-method a { color: var(--yep-green); }
.yep-note { margin: 8px 0 0; font-size: 12.5px; color: var(--yep-muted); }

@media (max-width: 560px) {
  .yep-calc { padding: 18px 14px; border-radius: 20px; }
  .yep-results { padding: 18px; }
  .yep-history-totals { grid-template-columns: 1fr; }
  .yep-calc .yep-input { width: 48px; }
  .yep-calc .yep-step { width: 34px; }
}

/* Identidad Yo en el Planeta: títulos en Fraunces */
.yep-calc h2, .yep-calc h3, .yep-calc .yep-hero-value { font-family: "Fraunces", Georgia, serif; letter-spacing: -.01em; }

/* Vista previa de la tarjeta para redes */
.yep-calc .yep-card { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.18); }
.yep-card-label { margin: 0 0 8px; font-weight: 700; color: var(--yep-sprout); }
.yep-calc .yep-card-preview { display: block; width: 100%; max-width: 260px; height: auto; border-radius: 12px; box-shadow: 0 14px 30px -16px rgba(0,0,0,.6); }
