/* =========================================================
   Calculadoras Argentina · RapidTools
   Hoja de estilos compartida por toda la categoría.
   ========================================================= */
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #f6f8f8; --bg2: #eceff0; --panel: #ffffff; --ink: #0e1716; --ink2: #44524f; --muted: #718080;
  --line: #dde3e3; --line2: #cbd3d3; --acc: #0d9488; --acc2: #14b8a6; --acc-ink: #ffffff; --acc-soft: #e6f7f4; --acc-text: #0b7a70;
  --ok: #138a52; --ok-soft: #e7f6ee; --warn: #a65d00; --warn-soft: #fff4dc; --bad: #c0281b; --bad-soft: #fdecea;
  --shadow: 0 1px 2px rgba(10, 20, 18, .05), 0 10px 30px rgba(10, 20, 18, .07); --shadow-lg: 0 20px 60px rgba(10, 20, 18, .18);
  --r: 16px; --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --coffee: #b85a1f; --coffee-soft: #fff3e6; --coffee-line: #f3d6bb; --coffee-text: #8a3f12;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b1312; --bg2: #121c1a; --panel: #111b19; --ink: #eef5f4; --ink2: #bcccc9; --muted: #899996;
  --line: #1c2b28; --line2: #2a3d39; --acc: #2dd4bf; --acc2: #5eead4; --acc-ink: #042f2a; --acc-soft: #13302c; --acc-text: #5eead4;
  --ok: #4fd18f; --ok-soft: #10251a; --warn: #f5b84a; --warn-soft: #2a2011; --bad: #ff7b6e; --bad-soft: #2a1513;
  --coffee: #f0a05f; --coffee-soft: #2a1a0f; --coffee-line: #4a2e19; --coffee-text: #f6bb85;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1312; --bg2: #121c1a; --panel: #111b19; --ink: #eef5f4; --ink2: #bcccc9; --muted: #899996;
    --line: #1c2b28; --line2: #2a3d39; --acc: #2dd4bf; --acc2: #5eead4; --acc-ink: #042f2a; --acc-soft: #13302c; --acc-text: #5eead4;
    --ok: #4fd18f; --ok-soft: #10251a; --warn: #f5b84a; --warn-soft: #2a2011; --bad: #ff7b6e; --bad-soft: #2a1513;
    --coffee: #f0a05f; --coffee-soft: #2a1a0f; --coffee-line: #4a2e19; --coffee-text: #f6bb85;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -.025em; }
a { color: var(--acc-text); }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--panel); padding: 8px 12px; border-radius: 8px; z-index: 90; }
.skip:focus { left: 8px; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 28px; } }

/* barra superior */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font-weight: 800; letter-spacing: -.02em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand small { font-weight: 600; color: var(--muted); font-size: 14px; padding-left: 9px; border-left: 1px solid var(--line2); }
.crumbs { display: none; }
@media (min-width: 640px) { .crumbs { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); margin-left: 2px; } .crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { color: var(--ink); } }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel); color: var(--ink); text-decoration: none; font-weight: 650; font-size: 14px; cursor: pointer; white-space: nowrap; }
.pill--coffee { background: var(--coffee-soft); border-color: var(--coffee-line); color: var(--coffee-text); }
.pill--icon { width: 40px; padding: 0; }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; } :root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .i-sun { display: none; } :root:not([data-theme="light"]) .i-moon { display: block; } }
@media (max-width: 860px) { .crumbs { display: none !important; } .pill--coffee { margin-left: auto; } }
@media (max-width: 640px) { .pill--coffee span, .brand small { display: none; } .pill--coffee, .pill--icon { width: 44px; min-height: 44px; padding: 0; } }

/* héroe */
.hero { padding-top: 30px; padding-bottom: 18px; }
.hero h1 { font-size: clamp(28px, 4.2vw, 46px); font-weight: 800; letter-spacing: -.04em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--acc), var(--acc2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 10px 0 0; font-size: 17.5px; color: var(--ink2); max-width: 640px; }
.privacy { display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-weight: 650; font-size: 14px; margin-top: 14px; }
.privacy .ico { width: 18px; height: 18px; }
@media (max-width: 640px) { .hero { padding-top: 18px; } .hero p { font-size: 16px; } }

/* calculadora: formulario + resultado */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
@media (max-width: 920px) { .calc { grid-template-columns: 1fr; } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); }
.card h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 750; margin: 0 0 16px; }
.f { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.f > span { font-size: 13.5px; font-weight: 650; color: var(--ink2); }
.f small { font-size: 12.5px; color: var(--muted); }
input[type=number], input[type=text], select { width: 100%; min-height: 46px; padding: 8px 14px; border-radius: 11px; border: 1px solid var(--line2); background: var(--panel); color: var(--ink); font-size: 16px; font-variant-numeric: tabular-nums; }
input:focus, select:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 22%, transparent); }
.money { position: relative; }
.money::before { content: "$"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; }
.money input { padding-left: 30px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--bg2); border-radius: 12px; margin-bottom: 16px; }
.seg button { min-height: 42px; border: 0; border-radius: 9px; background: transparent; font-weight: 650; color: var(--ink2); cursor: pointer; font-size: 14.5px; }
.seg button[aria-pressed="true"] { background: var(--panel); color: var(--ink); box-shadow: var(--shadow); }
.chk { display: flex; align-items: flex-start; gap: 10px; min-height: 40px; padding: 6px 0; cursor: pointer; font-size: 14.5px; }
.chk input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--acc); flex: none; }
.chk small { display: block; color: var(--muted); font-size: 12.5px; }

.result { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 920px) { .result { position: static; } }
.result__box { background: var(--ink); color: var(--panel); border-radius: 20px; padding: 22px; box-shadow: var(--shadow-lg); }
.result__box span { display: block; font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; opacity: .65; margin-bottom: 6px; }
.result__box b { display: block; font-size: clamp(26px, 3.6vw, 34px); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.result__box b.lo { font-size: 18px; opacity: .8; font-weight: 650; }
.result__row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 0; border-top: 1px solid color-mix(in srgb, var(--panel) 16%, transparent); font-size: 14.5px; }
.result__row:first-of-type { border-top: 0; }
.note { font-size: 13.5px; line-height: 1.5; padding: 12px 14px; border-radius: 14px; background: var(--warn-soft); color: var(--warn); }
.note b { color: inherit; }

/* contenido */
.ad-slot { display: grid; place-items: center; border: 1.5px dashed var(--line2); border-radius: 14px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .16em; min-height: 100px; margin: 28px 0; background: repeating-linear-gradient(-45deg, transparent 0 10px, color-mix(in srgb, var(--line) 45%, transparent) 10px 20px); }
.ad-slot--lg { min-height: 250px; }
.sec { padding: 46px 0 10px; }
.sec h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -.03em; }
.sec .lead { color: var(--ink2); font-size: 17px; margin: 10px 0 24px; max-width: 700px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); counter-reset: s; }
.steps li { padding: 22px 22px 6px 0; counter-increment: s; }
.steps li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-size: 44px; font-weight: 800; letter-spacing: -.04em; background: linear-gradient(90deg, var(--acc), var(--acc2)); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; margin-bottom: 12px; }
.steps b { display: block; font-size: 19px; margin-bottom: 6px; }
.steps span { color: var(--ink2); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .steps li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }
.prose { max-width: 780px; }
.prose p, .prose li { color: var(--ink2); font-size: 16.5px; line-height: 1.7; }
.prose h3 { font-size: 20px; margin: 26px 0 6px; color: var(--ink); }
.prose strong { color: var(--ink); }
table.fmt { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
table.fmt th, table.fmt td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.fmt th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 17px 40px 17px 2px; font-weight: 650; font-size: 16.5px; cursor: pointer; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 16px; color: var(--ink2); }
.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.rel { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); text-decoration: none; color: var(--ink); }
.rel:hover { border-color: var(--acc); }
.rel img { width: 44px; height: 44px; border-radius: 12px; }
.rel b { display: block; }
.rel span { font-size: 14px; color: var(--ink2); }
.support { display: flex; align-items: center; gap: 16px 22px; padding: 22px; border-radius: 20px; background: var(--coffee-soft); border: 1px solid var(--coffee-line); flex-wrap: wrap; }
.support > div { flex: 1; min-width: 240px; }
.support p { margin: 4px 0 0; color: var(--ink2); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn--acc { background: var(--acc); color: var(--acc-ink); }
.btn--acc:hover { filter: brightness(1.06); }
.btn--ghost { background: var(--panel); border-color: var(--line2); color: var(--ink); }
.btn--coffee { background: var(--coffee); color: #fff; width: auto; }
:root[data-theme="dark"] .btn--coffee { color: #1d1006; }

/* catálogo de la categoría (página índice) */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.cal-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.cal-card:hover { border-color: var(--acc); }
.cal-card__icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc-text); }
.cal-card h3 { font-size: 18px; }
.cal-card p { margin: 0; color: var(--ink2); font-size: 14.5px; flex: 1; }
.cal-card .open { font-size: 14px; font-weight: 700; color: var(--acc-text); display: inline-flex; align-items: center; gap: 6px; }
.foot { margin-top: 48px; border-top: 1px solid var(--line); padding: 24px 0 36px; color: var(--muted); font-size: 14px; }
.foot__in { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.foot p { margin: 0; }
.foot nav { display: flex; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--ink2); }
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 70; transform: translate(-50%, 12px); opacity: 0; transition: transform .2s, opacity .2s; background: var(--ink); color: var(--panel); padding: 12px 16px; border-radius: 12px; font-size: 14.5px; font-weight: 550; box-shadow: var(--shadow-lg); max-width: calc(100vw - 32px); text-align: center; }
.toast.is-in { transform: translate(-50%, 0); opacity: 1; }
/* Sin anuncio real (ins.adsbygoogle) el espacio no se muestra: nada de recuadros vacíos. */
.ad-slot:not(:has(ins.adsbygoogle)) { display: none !important; }
