/* CosteoChef · guías dinámicas (mini calculadoras y movimiento al leer) */

/* ---------- Pasos: línea de tiempo ---------- */
.art-body ol.fx-steps { list-style: none; counter-reset: paso; padding: 0; margin: 14px 0 18px; position: relative; }
.art-body ol.fx-steps::before {
  content: ""; position: absolute; left: 15px; top: 10px; bottom: 14px; width: 2px; border-radius: 2px;
  background: linear-gradient(#14b886, #0b7a56); transform-origin: top; opacity: .55;
}
.art-body ol.fx-steps > li { counter-increment: paso; position: relative; padding: 2px 0 12px 46px; margin: 0; }
.art-body ol.fx-steps > li::before {
  content: counter(paso); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--ticket); font-weight: 700; font-size: .92rem;
  background: var(--paper); color: #0b7a56; border: 2px solid #14b886; box-shadow: 0 0 0 4px var(--paper);
}
.art-body ol.fx-steps > li:last-child { padding-bottom: 2px; }
.fx-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.art-body ol.fx-steps > li.fx-li-mean { counter-increment: none; padding: 12px 16px; margin: 6px 0 0 46px; background: #e8f4ee; border-radius: 12px; }
.art-body ol.fx-steps > li.fx-li-mean::before { display: none; }

/* «Qué significa»: la conclusión de cada ejemplo */
.art-body p.fx-mean { background: #e8f4ee; border-radius: 12px; padding: 12px 16px; color: var(--paper-ink); }
.art-body p.fx-mean strong:first-child { color: #0b7a56; }

/* Totales de tabla */
.tbl tr.fx-total td { font-weight: 700; background: #eef6f1; }

/* ---------- Movimiento al entrar en pantalla ---------- */
.fx-on .art-body ol.fx-steps > li { opacity: 0; transform: translateX(-8px); transition: opacity .38s var(--ease-out) var(--d, 0ms), transform .38s var(--ease-out) var(--d, 0ms); }
.fx-on .art-body ol.fx-steps > li::before { transform: scale(.6); transition: transform .32s var(--ease-out) var(--d, 0ms); }
.fx-on .art-body ol.fx-steps::before { transform: scaleY(0); transition: transform .7s var(--ease-out) .05s; }
.fx-on .art-body ol.fx-steps.fx-in > li { opacity: 1; transform: none; }
.fx-on .art-body ol.fx-steps.fx-in > li::before { transform: none; }
.fx-on .art-body ol.fx-steps.fx-in::before { transform: none; }

.fx-on .art-body .callout.formula { clip-path: inset(0 0 100% 0 round 14px); transition: clip-path .6s var(--ease-out); }
.fx-on .art-body .callout.formula.fx-in { clip-path: inset(0 0 0 0 round 14px); }
.fx-on .art-body .callout:not(.formula) { opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease-out), transform .45s var(--ease-out); }
.fx-on .art-body .callout:not(.formula).fx-in { opacity: 1; transform: none; }

.fx-on .art-body .tbl-wrap tbody tr { opacity: 0; transform: translateY(6px); transition: opacity .35s var(--ease-out) var(--d, 0ms), transform .35s var(--ease-out) var(--d, 0ms); }
.fx-on .art-body .tbl-wrap.fx-in tbody tr { opacity: 1; transform: none; }

.fx-on .art-body p.fx-mean { opacity: 0; transform: translateY(8px); transition: opacity .45s var(--ease-out) .15s, transform .45s var(--ease-out) .15s; }
.fx-on .art-body p.fx-mean.fx-in { opacity: 1; transform: none; }

.art-body h2[id]::after { content: ""; display: block; width: 44px; height: 3px; border-radius: 2px; background: #14b886; margin-top: 10px; }
.fx-on .art-body h2[id]::after { transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out) .1s; }
.fx-on .art-body h2[id].fx-in::after { transform: none; }
.art-body .fx-try h2::after { display: none; }

/* ---------- Pruébalo con tus números ---------- */
.fx-try {
  position: relative; margin: 34px 0 30px; padding: 22px 22px 20px; border-radius: 18px;
  background: #0d1714; color: #e8efec; box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
}
.fx-on .fx-try { opacity: 0; transform: translateY(14px) scale(.985); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.fx-on .fx-try.fx-in { opacity: 1; transform: none; }
.art-body .fx-try-h h2 { color: #fff; margin: 0 0 4px; font-size: 1.35rem; }
.art-body .fx-try-h p { margin: 0 0 16px; color: #b9c7c1; font-size: .95rem; }
.fx-try-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.fx-try-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fx-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.art-body .fx-field > span { font-size: .82rem; font-weight: 700; color: #b9c7c1; line-height: 1.25; }
.fx-input { display: flex; align-items: center; height: 44px; border: 1px solid #2c3d37; border-radius: 10px; background: #0a1512; padding: 0 10px; transition: border-color .15s, box-shadow .15s; }
.fx-input:focus-within { border-color: #14b886; box-shadow: 0 0 0 3px rgba(20, 184, 134, .22); }
.fx-input i { font-style: normal; color: #93a69e; font-family: var(--ticket); font-size: .9rem; white-space: nowrap; }
.fx-input i.pre { margin-right: 4px; }
.fx-input i.post { margin-left: 6px; }
.fx-input input[type="text"] { flex: 1; min-width: 0; height: 40px; border: 0; background: transparent; color: #fff; padding: 0; font-family: var(--ticket); font-size: 1.05rem; font-weight: 700; box-shadow: none; }
.fx-input input[type="text"]:focus { outline: none; box-shadow: none; border: 0; }
.fx-input input.is-bad { color: #ff7a6b; }
.fx-reset { grid-column: 1 / -1; justify-self: start; background: none; border: 0; color: #8ff0cb; font-weight: 700; padding: 4px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.fx-try-out { position: relative; background: var(--paper); color: var(--paper-ink); border-radius: 4px; padding: 16px 16px 14px; font-family: var(--ticket); box-shadow: 0 14px 28px rgba(0, 0, 0, .35); }
.fx-try-out::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 10px;
  background: linear-gradient(135deg, var(--paper) 50%, transparent 50%) 0 0 / 14px 10px repeat-x,
              linear-gradient(225deg, var(--paper) 50%, transparent 50%) 0 0 / 14px 10px repeat-x;
}
.fx-out-h { margin: 0 0 8px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; text-align: center; border-bottom: 1px dashed #9a9a92; padding-bottom: 8px; }
.fx-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 4px 0; font-size: .9rem; }
.art-body .fx-line span { color: var(--paper-ink-2); }
.fx-line b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.fx-line.is-big { border-top: 1px dashed #9a9a92; margin-top: 4px; padding-top: 8px; font-size: 1.05rem; }
.fx-line.is-big span { color: var(--paper-ink); font-weight: 700; }
.fx-line.is-big b { font-size: 1.45rem; color: #0b7a56; }
.art-body .fx-note { margin: 10px 0 0; font-family: var(--font); font-size: .86rem; line-height: 1.45; color: var(--paper-ink-2); }
.fx-note.is-ok { color: #0b7a56; font-weight: 600; }
.fx-note.is-over { color: #b4501f; font-weight: 600; }
.fx-more { margin: 10px 0 0; font-family: var(--font); font-size: .88rem; }
.fx-more a { color: #0b7a56; font-weight: 700; }
.fx-tick { display: inline-block; animation: fx-tick .22s var(--ease-out); }
@keyframes fx-tick { from { opacity: .3; transform: translateY(35%); } to { opacity: 1; transform: none; } }
.fx-pop { animation: fx-pop .3s var(--ease-out); }
@keyframes fx-pop { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .fx-try { padding: 18px 14px 16px; margin-left: -6px; margin-right: -6px; }
  .fx-try-in { grid-template-columns: 1fr; }
}
@media (max-width: 380px) { .fx-try-form { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .fx-tick, .fx-pop { animation: none; }
}
