/* TutorLab — sección de herramientas gratuitas (/free-tools/) y calculadora de costos de impresión 3D.
   La calculadora copia el lenguaje visual de CostLab 3D: tarjetas de vidrio con ícono de color,
   campos "etiqueta · número · unidad", interruptores, barra de desglose con los colores de la app
   y el acento naranja #FF6B35. Solo modo oscuro, como el resto del sitio. */
.page-tools { --acc: #ff6b35; --acc-2: #ff9a66; --mag: #d6337f;
  --glass: rgba(255,255,255,.055); --glass-2: rgba(255,255,255,.085); --fill: rgba(255,255,255,.075); --fill-2: rgba(255,255,255,.045);
  --edge: rgba(255,255,255,.1); --green: #30d158; --red: #ff453a; }

/* ---------- Hero ---------- */
.ft-hero { position: relative; overflow: hidden; padding-block: clamp(7.5rem, 14vw, 10rem) clamp(2.5rem, 6vw, 4rem); text-align: center; }
.ft-hero--calc { padding-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.ft-glow { position: absolute; inset: -20% 10% auto; height: 70%; pointer-events: none; filter: blur(10px);
  background: radial-gradient(closest-side, rgba(255,107,53,.28), rgba(214,51,127,.14) 55%, transparent); }
.ft-hero .wrap { position: relative; display: flex; flex-direction: column; align-items: center; }
.ft-hero h1 { margin-top: 1rem; font-size: clamp(2.4rem, 6.4vw, 4.6rem); line-height: 1.02; letter-spacing: -.035em; max-width: 15ch; text-wrap: balance; }
.ft-hero .marker { background: var(--acc); color: #fff; }
.ft-lead { margin-top: 1.2rem; max-width: 40rem; font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.ft-lead strong { color: var(--ink); }
.ft-trust { list-style: none; padding: 0; margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.2rem; color: var(--ink-2); font-size: .92rem; font-weight: 500; }
.ft-trust li { display: inline-flex; align-items: center; gap: .4rem; }
.ft-trust svg { width: 16px; height: 16px; color: var(--green); }
.ft-crumbs { display: flex; align-items: center; gap: .35rem; margin-bottom: 1rem; font-size: .85rem; color: var(--ink-3); flex-wrap: wrap; justify-content: center; }
.ft-crumbs a { color: var(--ink-2); }
.ft-crumbs svg { width: 14px; height: 14px; }
.page-tools .eyebrow::before { background: var(--acc); }
.hero-in { opacity: 0; transform: translateY(14px); animation: ft-in .8s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: var(--d, 0s); }
@keyframes ft-in { to { opacity: 1; transform: none; } }

/* ---------- Portada: tarjetas de herramientas ---------- */
.ft-grid-sec { padding-bottom: clamp(4rem, 9vw, 7rem); }
.ft-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 1.1rem; max-width: 62rem; }
.ft-card { position: relative; display: flex; flex-direction: column; gap: .55rem; padding: clamp(1.4rem, 3vw, 2rem); border-radius: 28px;
  background: radial-gradient(120% 80% at 0% 0%, rgba(255,107,53,.16), transparent 60%), var(--paper-2); border: 1px solid var(--line); color: var(--ink);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .3s; }
a.ft-card:hover { text-decoration: none; transform: translateY(-4px); border-color: rgba(255,107,53,.45); }
.ft-card h2 { font-size: clamp(1.4rem, 2.4vw, 1.7rem); letter-spacing: -.02em; }
.ft-card p { color: var(--ink-2); line-height: 1.55; }
.ft-tag { align-self: flex-start; font: 600 .72rem/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--acc-2); }
.ft-go { margin-top: auto; padding-top: .8rem; display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; color: var(--acc-2); }
.ft-go svg { width: 18px; height: 18px; transition: transform .25s; }
.ft-card:hover .ft-go svg { transform: translateX(3px); }
.ft-card-art { display: flex; align-items: center; gap: 1rem; margin-bottom: .8rem; }
.ft-card-art img { border-radius: 18px; box-shadow: 0 16px 36px -14px rgba(255,107,53,.7); }
.ft-mini { flex: 1; min-width: 0; padding: .8rem 1rem; border-radius: 18px; background: var(--fill-2); border: 1px solid var(--edge); }
.ft-mini b { display: block; font: 700 1.7rem/1 var(--display); letter-spacing: -.02em; margin-bottom: .55rem; }
.ft-card--soon { background: var(--paper-2); border-style: dashed; }
.ft-card-art--soon { width: 72px; height: 72px; justify-content: center; border-radius: 18px; background: var(--fill-2); color: var(--ink-3); }
.ft-card-art--soon svg { width: 34px; height: 34px; }

/* ---------- Calculadora: estructura ---------- */
.cc-wrap { padding-bottom: clamp(3rem, 7vw, 5rem); }
.cc-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; max-width: 70rem; }
.cc-form { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.cc-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 1rem; min-width: 0; max-height: calc(100vh - 96px); overflow-y: auto; scrollbar-width: none; border-radius: 32px; }
.cc-side::-webkit-scrollbar { display: none; }
/* En teléfono: precio arriba, luego el formulario, y el desglose y la promo al final (se reordena con grid). */
@media (max-width: 900px) {
  .cc-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "result" "form" "summary"; }
  .cc-side { display: contents; }
  .cc-side .cc-result { grid-area: result; }
  .cc-side .cc-summary { grid-area: summary; }
  .cc-form { grid-area: form; }
}

/* Barra superior: moneda, modo y reiniciar */
.cc-bar-top { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.cc-bar-top .cc-seg { margin-left: auto; }
.cc-icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--edge); background: var(--glass-2); color: var(--ink); cursor: pointer; transition: background .2s, transform .2s; }
.cc-icon-btn:hover { background: rgba(255,255,255,.14); transform: rotate(-30deg); }
.cc-icon-btn svg { width: 19px; height: 19px; }

/* ---------- Tarjeta (GlassCard) ---------- */
.cc-card { display: flex; flex-direction: column; gap: .7rem; padding: 16px; border-radius: 28px; background: var(--glass);
  border: 1px solid var(--edge); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); }
.cc-card-h { display: flex; align-items: center; gap: .65rem; font: 600 1.06rem/1.2 var(--font); letter-spacing: -.01em; margin-bottom: .15rem; }
.cc-tile { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 9px; color: #fff;
  background: linear-gradient(180deg, color-mix(in srgb, var(--t) 82%, #fff), var(--t)); }
.cc-tile svg { width: 16px; height: 16px; stroke-width: 2.2; }
.cc-add { margin-left: auto; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--edge); background: var(--glass-2); color: var(--ink); cursor: pointer; }
.cc-add svg { width: 17px; height: 17px; }
.cc-add:hover { background: rgba(255,255,255,.14); }

/* ---------- Campo numérico (NumberField) ---------- */
.cc-row { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.cc-field { display: flex; align-items: center; gap: .55rem; min-height: 50px; padding: 0 14px; border-radius: 16px; background: var(--fill); cursor: text; transition: box-shadow .2s, background .2s; }
.cc-field:focus-within { background: rgba(255,255,255,.1); box-shadow: 0 0 0 2px rgba(255,107,53,.55); }
.cc-fl { flex: 1; min-width: 0; font-size: 1rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-fi { width: 18px; height: 18px; flex: none; color: var(--ink-3); }
.cc-field input { width: 6.5ch; min-width: 0; flex: 0 1 auto; border: 0; outline: 0; background: none; color: var(--ink); text-align: right;
  font: 600 1.05rem/1 var(--font); font-variant-numeric: tabular-nums; -moz-appearance: textfield; padding: 0; }
.cc-field input::-webkit-outer-spin-button, .cc-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cc-unit { flex: none; font-size: .9rem; color: var(--ink-3); min-width: 1ch; }
.cc-unit:empty { display: none; }
.cc-note { font-size: .82rem; line-height: 1.45; color: var(--ink-3); padding-inline: 4px; }
.cc-note strong { color: var(--ink-2); }
.cc-note--ok { color: var(--green); }
.cc-note--ok.is-bad { color: #ffb340; }
.cc-note--hint { padding: .7rem .9rem; border-radius: 14px; background: rgba(255,107,53,.12); color: var(--acc-2); }
.cc-note--src::before { content: "≈ "; }
.cc-note--src.is-official::before { content: "✓ "; color: var(--green); }

/* Copias con stepper */
.cc-stepper { cursor: default; }
.cc-stepper b { font-weight: 600; font-variant-numeric: tabular-nums; margin-right: .4rem; }
.cc-steps { display: inline-flex; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
.cc-steps button { width: 46px; height: 34px; border: 0; background: none; color: var(--ink); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.cc-steps button + button { border-left: 1px solid rgba(255,255,255,.12); }
.cc-steps button:hover { background: rgba(255,255,255,.08); }

/* Botón de vidrio (G-code) */
.cc-glass-btn { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .6rem 1rem; border-radius: 999px;
  border: 1px solid var(--edge); background: var(--glass-2); color: var(--ink); font: 500 .95rem/1.2 var(--font); cursor: pointer; transition: background .2s; }
.cc-glass-btn:hover { background: rgba(255,255,255,.13); }
.cc-glass-btn svg { width: 18px; height: 18px; color: var(--acc-2); }

/* Selects */
.cc-select select { appearance: none; -webkit-appearance: none; border: 0; outline: 0; background: none; color: var(--ink); font: 600 1rem/1.2 var(--font); cursor: pointer; }
.cc-select select option, .cc-select select optgroup { background: #1c1c1e; color: #f5f5f5; }
.cc-select--row select { flex: 0 1 auto; max-width: 60%; text-align: right; padding-right: 1.1rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8a8a' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m7 9 5-5 5 5M7 15l5 5 5-5'/%3E%3C/svg%3E") right center / 12px no-repeat; text-overflow: ellipsis; }
.cc-select--pill { display: inline-flex; align-items: center; gap: .5rem; height: 42px; padding: 0 .9rem 0 1rem; border-radius: 999px; border: 1px solid var(--edge); background: var(--glass-2); font-size: .9rem; color: var(--ink-2); }
.cc-select--pill select { padding-right: 1rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8a8a' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m7 9 5-5 5 5M7 15l5 5 5-5'/%3E%3C/svg%3E") right center / 11px no-repeat; }
.cc-select--plain { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.cc-select--plain select { padding-right: 1.1rem; align-self: flex-start;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8a8a' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m7 9 5-5 5 5M7 15l5 5 5-5'/%3E%3C/svg%3E") right center / 11px no-repeat; }
.cc-select--plain small { font-size: .8rem; color: var(--ink-3); }
.cc-select--box { display: flex; align-items: center; padding: 0 14px; border-radius: 16px; background: var(--fill); }
.cc-select--box select { width: 100%; padding-right: 1rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8a8a' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m7 9 5-5 5 5M7 15l5 5 5-5'/%3E%3C/svg%3E") right center / 11px no-repeat; }

/* Segmentado */
.cc-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; border-radius: 999px; background: var(--fill); }
.cc-seg button { min-height: 36px; padding: 0 1rem; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font: 600 .92rem/1 var(--font); cursor: pointer; transition: background .25s, color .25s; }
.cc-seg button[aria-pressed="true"] { background: rgba(255,255,255,.16); color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.cc-seg--sm button { min-height: 34px; font-size: .85rem; }

/* Líneas de material y extras */
.cc-lines { display: flex; flex-direction: column; gap: .7rem; }
.cc-lines:empty { display: none; }
.cc-line { display: flex; flex-direction: column; gap: .55rem; padding: 12px; border-radius: 20px; background: var(--fill-2); animation: ft-pop .35s cubic-bezier(.2,1.2,.4,1); }
@keyframes ft-pop { from { opacity: 0; transform: scale(.97); } }
.cc-line-head { display: flex; align-items: center; gap: .65rem; }
.cc-swatch { position: relative; width: 34px; height: 34px; flex: none; cursor: pointer; }
.cc-swatch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cc-spool { width: 34px; height: 34px; display: block; }
.cc-del { width: 30px; height: 30px; flex: none; margin-left: auto; display: grid; place-items: center; border: 0; background: none; cursor: pointer; color: rgba(255,69,58,.85); }
.cc-del svg { width: 22px; height: 22px; fill: currentColor; stroke: #000; stroke-width: 2; stroke-linecap: round; }
.cc-name { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); font: 600 1rem/1.2 var(--font); padding: .3rem .2rem; border-bottom: 1px solid transparent; }
.cc-name:focus { border-bottom-color: rgba(255,107,53,.6); }
.cc-line .cc-row { grid-template-columns: 1fr auto; }

/* Interruptor (IncludeToggle) */
.cc-toggle { display: flex; align-items: center; gap: .65rem; min-height: 52px; padding: 0 12px 0 10px; border-radius: 16px; background: var(--fill); cursor: pointer; }
.cc-tg-ic { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 8px; color: var(--t); background: color-mix(in srgb, var(--t) 18%, transparent); }
.cc-tg-ic svg { width: 15px; height: 15px; }
.cc-toggle b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: .95rem; }
.cc-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cc-toggle i { position: relative; width: 51px; height: 31px; flex: none; border-radius: 999px; background: rgba(120,120,128,.36); transition: background .25s; }
.cc-toggle i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); transition: transform .3s cubic-bezier(.3,1.4,.5,1); }
.cc-toggle input:checked + i { background: var(--green); }
.cc-toggle input:checked + i::after { transform: translateX(20px); }
.cc-toggle input:focus-visible + i { outline: 2px solid var(--acc); outline-offset: 2px; }
.cc-toggle:has(input:not(:checked)) b { opacity: .4; }
.cc-sub { display: flex; flex-direction: column; gap: .6rem; padding-left: .5rem; border-left: 2px solid rgba(255,255,255,.07); margin-left: 1.2rem; }
.cc-sub[hidden] { display: none; }

/* Desplegables */
.cc-disclosure > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: .55rem .3rem; font: 500 .95rem/1.2 var(--font); color: var(--ink-2); }
.cc-disclosure > summary::-webkit-details-marker { display: none; }
.cc-disclosure > summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--acc-2); border-bottom: 2px solid var(--acc-2); transform: rotate(-45deg); transition: transform .25s; margin-right: .4rem; }
.cc-disclosure[open] > summary::after { transform: rotate(45deg); }
.cc-disclosure[open] { display: flex; flex-direction: column; gap: .6rem; }
.cc-more { border-top: 1px solid rgba(255,255,255,.07); padding-top: .3rem; }

/* Chips (atajos) */
.cc-chips { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 2px 16px 4px; scroll-padding-inline: 16px; }
.cc-chips::-webkit-scrollbar { display: none; }
.cc-chip { flex: none; display: inline-flex; flex-direction: column; align-items: center; gap: .15rem; padding: .55rem .9rem; border-radius: 16px;
  border: 1px solid var(--edge); background: var(--glass-2); color: var(--ink); font: 600 .9rem/1.1 var(--font); cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.cc-chip small { font-weight: 500; font-size: .78rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cc-chip:hover { background: rgba(255,255,255,.13); }
.cc-chip.is-on { background: rgba(255,107,53,.2); border-color: rgba(255,107,53,.7); }
.cc-chip.is-on small { color: var(--acc-2); }
.cc-chip--add { flex-direction: row; gap: .35rem; border-radius: 999px; padding: .5rem .85rem; font-weight: 500; }
.cc-chip--add svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; color: var(--acc-2); }

/* Ganancia */
.cc-profit { display: flex; align-items: baseline; justify-content: space-between; padding: .2rem .3rem 0; }
.cc-profit span { font-weight: 500; }
.cc-profit b { font: 700 1.35rem/1 var(--font); font-variant-numeric: tabular-nums; }
.cc-range { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: none; cursor: pointer; }
.cc-range::-webkit-slider-runnable-track { height: 5px; border-radius: 999px; background: linear-gradient(90deg, var(--acc), var(--mag)); }
.cc-range::-moz-range-track { height: 5px; border-radius: 999px; background: linear-gradient(90deg, var(--acc), var(--mag)); }
.cc-range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10.5px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.cc-range::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.cc-range:focus-visible { outline: 2px solid var(--acc); outline-offset: 4px; border-radius: 8px; }

/* ---------- Resultado (ResultHero) ---------- */
.cc-result { position: relative; overflow: hidden; padding: 20px; border-radius: 32px; border: 1px solid rgba(255,255,255,.12);
  background: radial-gradient(120% 90% at 0% 0%, rgba(255,107,53,.2), transparent 55%), radial-gradient(110% 90% at 100% 100%, rgba(214,51,127,.22), transparent 60%), rgba(255,255,255,.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 30px 60px -30px rgba(255,107,53,.35); -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6); }
.cc-result-top { display: flex; align-items: center; justify-content: space-between; color: var(--ink-3); font-weight: 500; font-size: .95rem; }
.cc-result-top em { font-style: normal; font-size: .78rem; font-weight: 600; color: var(--ink); padding: .3rem .7rem; border-radius: 999px; background: rgba(255,255,255,.1); }
.cc-total { display: block; margin-top: .4rem; font: 700 clamp(2.8rem, 7vw, 3.6rem)/1.05 var(--font); letter-spacing: -.03em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cc-total.is-bump { animation: cc-bump .35s cubic-bezier(.2,1.6,.4,1); }
@keyframes cc-bump { 40% { transform: scale(1.03); } }
.cc-unitprice { margin-top: .1rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cc-bar { display: flex; gap: 2px; height: 10px; margin-top: 1rem; }
.cc-bar i { display: block; flex: 1 1 0; min-width: 4px; height: 100%; border-radius: 999px; background: var(--c); transition: flex-grow .5s cubic-bezier(.2,.8,.2,1); }
.cc-legend { list-style: none; padding: 0; margin: .6rem 0 0; display: flex; flex-wrap: wrap; gap: .3rem .8rem; font-size: .76rem; color: var(--ink-3); }
.cc-legend li { display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; }
.cc-legend li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.cc-empty { margin-top: .9rem; display: flex; align-items: center; gap: .45rem; font-size: .92rem; color: var(--ink-3); }
.cc-empty svg { width: 18px; height: 18px; color: var(--acc-2); }
.cc-empty[hidden] { display: none; }
.cc-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; margin-top: 1.1rem; }
.cc-stat small { display: block; font-size: .8rem; color: var(--ink-3); }
.cc-stat b { display: block; margin-top: .15rem; font: 600 clamp(.95rem, 1.7vw, 1.12rem)/1.2 var(--font); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cc-stat b[data-stat="profit"] { color: var(--green); }
.cc-stat b.is-neg { color: var(--red); }
@media (max-width: 420px) { .cc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Desglose */
.cc-summary [data-summary] { display: flex; flex-direction: column; gap: .5rem; }
.cc-li { display: flex; align-items: center; gap: .55rem; font-size: .95rem; }
.cc-li i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.cc-li span { flex: 1; color: var(--ink-2); }
.cc-li b { font-weight: 500; font-variant-numeric: tabular-nums; }
.cc-li.is-bold span, .cc-li.is-bold b { color: var(--ink); font-weight: 700; }
.cc-summary hr { border: 0; border-top: 1px solid rgba(255,255,255,.08); margin: .2rem 0; }

/* Promoción de la app: franja ancha debajo de la calculadora */
.cc-promo { margin-top: 1.25rem; max-width: 70rem; display: grid; grid-template-columns: auto 1fr auto; gap: 1.2rem 1.6rem; align-items: center;
  padding: clamp(1.2rem, 3vw, 1.8rem); border-radius: 28px; border: 1px solid rgba(255,107,53,.35);
  background: radial-gradient(80% 140% at 100% 0%, rgba(255,107,53,.22), transparent 60%), radial-gradient(60% 120% at 0% 100%, rgba(214,51,127,.14), transparent 60%), var(--paper-2); }
.cc-promo-icon { border-radius: 18px; box-shadow: 0 16px 34px -12px rgba(255,107,53,.8); align-self: start; }
.cc-promo-text small { display: block; font: 600 .72rem/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--acc-2); }
.cc-promo h2 { margin-top: .5rem; font-size: clamp(1.3rem, 2.4vw, 1.6rem); line-height: 1.2; letter-spacing: -.02em; }
.cc-promo-text > p { margin-top: .4rem; color: var(--ink-2); font-size: .97rem; line-height: 1.5; }
.cc-promo ul, .ft-show-list { list-style: none; padding: 0; margin: 1rem 0 1.2rem; display: grid; gap: .5rem; }
.cc-promo ul { grid-template-columns: 1fr 1fr; gap: .45rem 1.2rem; margin: .9rem 0 0; }
.cc-promo li, .ft-show-list li { display: flex; gap: .5rem; font-size: .93rem; color: var(--ink-2); line-height: 1.4; }
.cc-promo li svg, .ft-show-list li svg { width: 17px; height: 17px; flex: none; color: var(--acc-2); margin-top: 1px; }
.cc-promo-cta { display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.cc-promo-more { display: inline-flex; align-items: center; gap: .25rem; font-weight: 600; font-size: .9rem; color: var(--acc-2); white-space: nowrap; }
.cc-promo-more svg { width: 16px; height: 16px; }
@media (max-width: 900px) {
  .cc-promo { grid-template-columns: auto 1fr; }
  .cc-promo-cta { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; }
}
@media (max-width: 560px) { .cc-promo { grid-template-columns: 1fr; } .cc-promo ul { grid-template-columns: 1fr; } .cc-promo-icon { width: 60px; height: 60px; } }

/* Barra fija en teléfono con el precio */
.cc-sticky { display: none; }
@media (max-width: 900px) {
  .cc-sticky { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: .6rem;
    padding: .65rem .7rem .65rem 1.1rem; border-radius: 999px; color: #fff; text-decoration: none;
    background: rgba(28,28,30,.72); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 18px 40px -12px rgba(0,0,0,.7);
    -webkit-backdrop-filter: blur(22px) saturate(1.8); backdrop-filter: blur(22px) saturate(1.8);
    transform: translateY(160%); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
  .cc-sticky.is-on { transform: none; }
  .cc-sticky:hover { text-decoration: none; }
  .cc-sticky span { font-size: .8rem; color: rgba(255,255,255,.65); }
  .cc-sticky b { font: 700 1.15rem/1 var(--font); font-variant-numeric: tabular-nums; }
  .cc-sticky em { margin-left: auto; display: inline-flex; align-items: center; gap: .2rem; font-style: normal; font-weight: 600; font-size: .85rem;
    padding: .55rem .9rem; border-radius: 999px; background: var(--acc); color: #fff; }
  .cc-sticky em svg { width: 15px; height: 15px; }
}

/* Modo sencillo: solo pieza, material, impresora/luz y ganancia (los demás valores siguen contando) */
.is-simple [data-adv], .is-simple .cc-more { display: none !important; }

/* ---------- Debajo de la calculadora ---------- */
.ft-how-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1rem; counter-reset: ft; }
.ft-how-list li { counter-increment: ft; display: flex; flex-direction: column; gap: .4rem; padding: 1.4rem; border-radius: 22px; background: var(--paper-2); border: 1px solid var(--line); }
.ft-how-list li::before { content: counter(ft, decimal-leading-zero); font: 700 .8rem/1 var(--display); color: var(--acc-2); letter-spacing: .05em; }
.ft-how-list b { font-size: 1.1rem; }
.ft-how-list span { color: var(--ink-2); line-height: 1.55; font-size: .95rem; }
.ft-db { margin-top: 1rem; display: flex; gap: 1rem; align-items: flex-start; padding: 1.4rem; border-radius: 22px; border: 1px solid rgba(10,132,255,.35); background: radial-gradient(120% 120% at 0% 0%, rgba(10,132,255,.14), transparent 60%), var(--paper-2); }
.ft-db > svg { width: 34px; height: 34px; flex: none; color: #64a8ff; }
.ft-db h3 { font-size: 1.15rem; }
.ft-db p { margin-top: .35rem; color: var(--ink-2); line-height: 1.55; font-size: .95rem; }

.ft-show-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.ft-show-text > img { border-radius: 22px; box-shadow: 0 20px 44px -16px rgba(255,107,53,.75); margin-bottom: 1.2rem; }
.ft-show-text h2 { margin-top: .9rem; font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.05; letter-spacing: -.03em; }
.ft-show-text h2 .marker { background: var(--acc); color: #fff; }
.ft-show-text > p { margin-top: 1rem; color: var(--ink-2); font-size: 1.08rem; line-height: 1.55; }
.ft-show-cta { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.ft-show-phones { position: relative; display: flex; justify-content: center; gap: 1rem; }
.ft-show-phones::before { content: ""; position: absolute; inset: 10% 0; background: radial-gradient(closest-side, rgba(255,107,53,.3), rgba(214,51,127,.1) 70%, transparent); filter: blur(20px); }
.ft-show-phones img { position: relative; width: min(46%, 250px); height: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.6)); }
.ft-show-phones img + img { margin-top: 3rem; }
@media (max-width: 800px) { .ft-show-grid { grid-template-columns: 1fr; } }

.ft-faq-wrap { max-width: 50rem; }
.ft-faq h2 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 1.5rem; }
.ft-faq-list { display: flex; flex-direction: column; gap: .6rem; }
.ft-faq-item { border-radius: 20px; background: var(--paper-2); border: 1px solid var(--line); }
.ft-faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.1rem 1.3rem; font-weight: 600; }
.ft-faq-item summary::-webkit-details-marker { display: none; }
.ft-faq-item summary span { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--fill); transition: transform .3s; }
.ft-faq-item summary svg { width: 15px; height: 15px; }
.ft-faq-item[open] summary span { transform: rotate(45deg); }
.ft-faq-item p { padding: 0 1.3rem 1.2rem; color: var(--ink-2); line-height: 1.6; }

@media (max-width: 560px) {
  .cc-card { padding: 14px; border-radius: 24px; }
  .cc-chips { margin-inline: -14px; padding-inline: 14px; }
  .cc-sub { margin-left: .5rem; }
  .cc-row { gap: .5rem; }
  .cc-field { padding: 0 12px; }
  .cc-bar-top .cc-seg { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-in { animation: none; opacity: 1; transform: none; }
  .cc-line, .cc-total.is-bump { animation: none; }
  .cc-toggle i::after, .cc-bar i, .cc-sticky { transition: none; }
}
@media (max-width: 560px) { .cc-field .cc-fl, .cc-toggle .cc-fl { white-space: normal; line-height: 1.2; } }
