/* Calculadora de gratificación (ssemprende.com/herramientaslaborales). Usa los tokens VÉRTICE del portal (--m-*, --v-*). */
.marketing-site .t-page { padding-block: 56px 72px; }
.marketing-site .t-heading { max-width: 860px; margin-bottom: 32px; }
.marketing-site .t-heading h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.02; margin: 10px 0 12px; }
.marketing-site .t-lede { color: var(--m-muted); font-size: 17px; line-height: 1.6; margin: 0; max-width: 68ch; }
.t-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.t-form fieldset { border: 0; border-top: 1px solid var(--m-line); margin: 0; padding: 20px 0 8px; min-width: 0; }
.t-form legend { font-weight: 700; font-size: 17px; padding: 0 0 6px; color: var(--m-ink); }
.t-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 12px; }
.t-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--m-muted); font-weight: 500; }
.t-form input:not([type=checkbox]):not([type=radio]), .t-form select { font: inherit; font-size: 16px; color: var(--m-ink); background: var(--m-card); border: 1px solid var(--m-control); border-radius: 8px; min-height: 44px; padding: 8px 12px; width: 100%; }
.t-form :is(input, select, button):focus-visible, .t-opt input:focus-visible + span { outline: 3px solid var(--m-brand); outline-offset: 2px; }
.t-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-bottom: 12px; }
.t-opt { position: relative; display: block; cursor: pointer; }
.t-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.t-opt span { display: block; border: 1px solid var(--m-line); border-radius: 10px; padding: 10px 14px; min-height: 44px; background: var(--m-card); color: var(--m-ink); }
.t-opt b { display: block; font-size: 15px; }
.t-opt small { color: var(--m-muted); font-size: 13px; }
.t-opt input:checked + span { border-color: var(--m-brand); box-shadow: inset 0 0 0 2px var(--m-brand); background: var(--m-tint); }
.t-check { display: flex; gap: 10px; align-items: center; min-height: 44px; font-size: 15px; color: var(--m-ink); cursor: pointer; }
.t-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--v-violeta); flex: none; }
.t-hint { font-size: 13px; line-height: 1.5; color: var(--m-muted); margin: -2px 0 12px; }
.t-hint + .t-row, .t-hint + .t-check { margin-top: 10px; }
.t-scroll { overflow-x: auto; }
.t-vars { border-collapse: collapse; width: 100%; min-width: 620px; }
.t-vars th { font-size: 13px; color: var(--m-muted); font-weight: 500; text-align: right; padding: 4px 4px 6px; }
.t-vars th:first-child { text-align: left; }
.t-vars td { padding: 3px 4px; }
.t-vars td:first-child { font-size: 14px; font-weight: 500; width: 150px; color: var(--m-ink); }
.t-form .t-vars input { text-align: right; padding: 8px; }
.t-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.t-buttons button { font: inherit; font-size: 15px; font-weight: 700; min-height: 44px; padding: 8px 16px; border-radius: 8px; border: 1px solid var(--m-control); background: var(--m-card); color: var(--m-ink); cursor: pointer; }
.t-buttons button:first-child { background: var(--v-action); border-color: var(--v-action); color: var(--v-on-action); }

/* Comprobante */
.t-slip { position: sticky; top: 16px; background: var(--v-violeta); color: #fff; border-radius: 16px; padding: clamp(20px, 3vw, 30px); border-bottom: 6px solid var(--v-lima); box-shadow: 0 18px 40px -24px rgba(91, 61, 245, .75); }
.marketing-site .t-slip p { color: #fff; }
.t-slip-badge { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 13px; font-weight: 700; }
.t-slip-badge img { width: 34px; height: 34px; background: #fff; border-radius: 8px; padding: 3px; flex: none; }
.t-slip .t-k { font-size: 14px; opacity: .88; margin: 0; }
.t-total { font-family: var(--v-display); font-size: clamp(44px, 6vw, 64px); font-weight: 800; line-height: 1.05; margin: 4px 0 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.t-total span { box-shadow: inset 0 -.14em 0 var(--v-lima); }
.t-tag { display: inline-block; font-size: 13px; font-weight: 700; background: rgba(255, 255, 255, .16); border-radius: 99px; padding: 3px 10px; margin: 0 6px 6px 0; }
.t-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin: 18px 0 6px; }
.t-mo { border: 1.5px solid rgba(255, 255, 255, .6); border-radius: 8px; text-align: center; padding: 8px 2px; font-size: 13px; font-weight: 700; }
.t-mo.on { background: var(--v-lima); color: var(--v-noche); border-color: var(--v-lima); }
.t-mo i { display: block; font-style: normal; font-weight: 500; font-size: 11px; opacity: .9; }
.t-slip table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 15px; }
.t-slip td { padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, .22); }
.t-slip td + td { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; padding-left: 12px; }
.t-slip tr.sum td { font-weight: 800; border-top: 2px solid #fff; }
.t-slip tr.sub td { font-size: 13px; opacity: .88; padding: 3px 0; border-top: 0; }
.t-formula { background: rgba(255, 255, 255, .12); border-radius: 10px; padding: 10px 12px; margin-top: 14px; font-size: 14px; line-height: 1.5; }
.t-due { margin: 14px 0 0; font-size: 14px; }
.t-warns { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.t-warns:empty { display: none; }
.t-warns li { background: #fff5dc; color: #5c3f00; border-radius: 8px; padding: 8px 12px; font-size: 14px; line-height: 1.45; }

/* Reglas */
.marketing-site .t-rules-title { font-size: clamp(30px, 3.4vw, 44px); margin: 56px 0 18px; }
.t-rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px 32px; border-top: 1px solid var(--m-line); padding-top: 28px; }
.marketing-site .t-rules h3 { font-family: var(--v-text); font-size: 17px; font-weight: 700; text-transform: none; letter-spacing: 0; margin: 0 0 6px; }
.t-rules p, .t-rules ul { margin: 0; color: var(--m-muted); font-size: 15px; line-height: 1.55; }
.t-rules ul { padding-left: 18px; }
.t-sources { font-size: 13px; line-height: 1.6; color: var(--m-muted); margin-top: 28px; max-width: 90ch; }
.t-sources a { color: var(--v-action); }

@media (max-width: 900px) {
  .t-grid { grid-template-columns: minmax(0, 1fr); }
  .t-slip { position: static; order: -1; }
  .marketing-site .t-page { padding-block: 36px 56px; }
}
@media (max-width: 420px) {
  .t-strip { gap: 4px; }
  .t-mo { font-size: 12px; padding: 6px 1px; }
}
