/* ============================================================
   LaborTools — Shared Base Stylesheet
   hogartendencia.com/calculadoras/ & /tools/
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand:      #1d4ed8;   /* deep blue — trust / finance */
  --brand-dk:   #1e3a8a;
  --brand-lt:   #dbeafe;
  --accent:     #0ea5e9;   /* sky — secondary highlights */
  --green:      #16a34a;
  --green-lt:   #dcfce7;
  --amber:      #d97706;
  --amber-lt:   #fef3c7;
  --red:        #dc2626;
  --red-lt:     #fee2e2;
  --slate:      #0f172a;
  --slate-2:    #1e293b;
  --muted:      #64748b;
  --border:     #e2e8f0;
  --bg:         #f8fafc;
  --white:      #ffffff;
  --radius:     14px;
  --radius-sm:  8px;
  --shadow:     0 1px 3px rgba(0,0,0,.07), 0 4px 20px rgba(0,0,0,.07);
  --shadow-md:  0 4px 6px rgba(0,0,0,.07), 0 10px 40px rgba(0,0,0,.10);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--slate);
  line-height: 1.65;
  font-size: 16px;
}

/* ── NAV ── */
.site-nav {
  background: var(--slate);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 0;
  padding: 0 16px; overflow-x: auto;
  scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar { display: none; }
.nav-logo {
  color: #fff; font-weight: 800; font-size: .95rem;
  text-decoration: none; padding: 14px 20px 14px 0;
  white-space: nowrap; border-right: 1px solid rgba(255,255,255,.12);
  margin-right: 8px; letter-spacing: -.01em;
}
.nav-logo span { color: var(--accent); }
.nav-link {
  color: rgba(255,255,255,.72); text-decoration: none;
  font-size: .82rem; font-weight: 500;
  padding: 14px 14px; white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav-link:hover, .nav-link.active {
  color: #fff; border-bottom-color: var(--accent);
}
.nav-sep { color: rgba(255,255,255,.2); padding: 0 2px; font-size: .7rem; }

/* ── HEADER ── */
.page-header {
  background: linear-gradient(135deg, var(--brand-dk) 0%, var(--brand) 60%, var(--accent) 100%);
  color: #fff; text-align: center;
  padding: 48px 20px 44px;
}
.page-header .eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 99px;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  padding: 4px 16px; margin-bottom: 16px;
}
.page-header h1 {
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  font-weight: 800; line-height: 1.18;
  margin-bottom: 12px; letter-spacing: -.02em;
}
.page-header p {
  font-size: 1.02rem; opacity: .88;
  max-width: 560px; margin: 0 auto;
}

/* ── PAGE WRAP ── */
.page-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ── AD UNITS ── */
.ad-unit {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: #94a3b8; font-size: .72rem;
  letter-spacing: .06em; text-transform: uppercase;
  overflow: hidden;
}
.ad-leaderboard { width: 100%; height: 90px; max-width: 728px; margin: 20px auto; }
.ad-rectangle   { width: 300px; min-height: 250px; }
.ad-halfpage    { width: 300px; min-height: 600px; }
.ad-inarticle   { width: 100%; max-width: 728px; min-height: 250px; margin: 32px auto; }
.ad-mobile      { width: 100%; height: 100px; display: none; }

@media (max-width: 640px) {
  .ad-leaderboard { display: none; }
  .ad-mobile { display: flex; }
}

/* ── CARD ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.card + .card { margin-top: 20px; }
.card-title {
  font-size: 1.08rem; font-weight: 700;
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
  color: var(--slate);
}
.card-icon {
  width: 34px; height: 34px; min-width: 34px;
  border-radius: 9px;
  background: var(--brand-lt);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}

/* ── MAIN LAYOUT ── */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  margin-top: 28px;
  margin-bottom: 60px;
}
@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; }
  .sidebar-col .ad-rectangle,
  .sidebar-col .ad-halfpage { display: none; }
}

.sidebar-col { display: flex; flex-direction: column; gap: 20px; }

/* ── FORM ELEMENTS ── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }
.col-span-2 { grid-column: 1 / -1; }

.field label {
  display: block;
  font-size: .76rem; font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: .06em;
}
.field input,
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .97rem; font-family: inherit;
  color: var(--slate); background: #fff;
  appearance: none;
  transition: border-color .18s, box-shadow .18s;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(29,78,216,.12);
}
.field-hint {
  font-size: .74rem; color: var(--muted); margin-top: 4px;
}
.input-prefix { position: relative; }
.input-prefix .pfx {
  position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted); font-weight: 600; pointer-events: none;
}
.input-prefix input { padding-left: 28px; }

/* ── TABS ── */
.tab-row { display: flex; gap: 8px; margin-bottom: 24px; }
.tab-btn {
  flex: 1; padding: 11px 8px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  cursor: pointer;
  font-size: .84rem; font-weight: 600;
  color: var(--muted); text-align: center;
  line-height: 1.35;
  transition: all .18s;
}
.tab-btn.active {
  border-color: var(--brand);
  background: var(--brand-lt);
  color: var(--brand-dk);
}

/* ── CALC BUTTON ── */
.btn-primary {
  width: 100%; margin-top: 22px;
  padding: 15px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff; border: none;
  border-radius: var(--radius-sm);
  font-size: 1.05rem; font-weight: 700;
  cursor: pointer; letter-spacing: .01em;
  box-shadow: 0 4px 16px rgba(29,78,216,.35);
  transition: transform .15s, box-shadow .15s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(29,78,216,.4);
}
.btn-primary:active { transform: translateY(0); }

/* ── RESULTS ── */
.results-wrap { display: none; margin-top: 28px; }
.result-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  padding: 4px 14px; border-radius: 99px;
  margin-bottom: 16px;
}
.badge-blue   { background: var(--brand-lt); color: var(--brand-dk); }
.badge-green  { background: var(--green-lt); color: #14532d; }
.badge-amber  { background: var(--amber-lt); color: #92400e; }
.badge-red    { background: var(--red-lt);   color: #991b1b; }

.total-hero {
  background: linear-gradient(135deg, var(--brand-dk), var(--brand), var(--accent));
  border-radius: var(--radius);
  padding: 28px 24px; text-align: center; color: #fff;
  margin-bottom: 20px;
}
.total-hero .lbl { font-size: .82rem; opacity: .82; margin-bottom: 4px; }
.total-hero .amt {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800; letter-spacing: -.03em;
}
.total-hero .sub { font-size: .76rem; opacity: .7; margin-top: 6px; }

.breakdown { display: flex; flex-direction: column; gap: 10px; }
.b-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 16px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--brand);
}
.b-row .b-left .b-name { font-size: .93rem; font-weight: 600; }
.b-row .b-left .b-detail { font-size: .74rem; color: var(--muted); margin-top: 1px; }
.b-row .b-amt { font-weight: 700; color: var(--brand-dk); font-size: .97rem; white-space: nowrap; }

.disclaimer-box {
  margin-top: 16px; padding: 12px 16px;
  background: var(--amber-lt); border-radius: var(--radius-sm);
  border-left: 3px solid var(--amber);
  font-size: .78rem; color: #92400e; line-height: 1.6;
}

/* ── SEO CONTENT ── */
.seo-content { margin-top: 0; }
.seo-content h2 {
  font-size: 1.35rem; font-weight: 800;
  color: var(--slate); margin: 32px 0 10px;
  padding-top: 8px;
}
.seo-content h2:first-child { margin-top: 0; }
.seo-content h3 {
  font-size: 1.05rem; font-weight: 700;
  color: var(--slate); margin: 20px 0 8px;
}
.seo-content p {
  font-size: .94rem; color: #334155; line-height: 1.82;
  margin-bottom: 10px;
}
.seo-content ul {
  list-style: none; display: flex;
  flex-direction: column; gap: 6px;
  margin: 8px 0 16px;
}
.seo-content ul li {
  font-size: .93rem; color: #334155;
  line-height: 1.7; padding-left: 22px; position: relative;
}
.seo-content ul li::before {
  content: "✓"; position: absolute; left: 0;
  color: var(--green); font-weight: 800;
}
.formula-block {
  background: var(--slate); color: #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 20px 24px; font-family: 'Courier New', monospace;
  font-size: .86rem; line-height: 2; margin: 14px 0 20px;
  overflow-x: auto;
}
.formula-block .hl { color: #7dd3fc; font-weight: 700; }
.formula-block .val { color: #86efac; }

/* ── DATA TABLE ── */
.data-table { width: 100%; border-collapse: collapse; font-size: .88rem; margin: 12px 0 20px; overflow-x: auto; display: block; }
.data-table thead tr { background: var(--brand); color: #fff; }
.data-table th { padding: 10px 14px; text-align: left; font-weight: 600; white-space: nowrap; }
.data-table td { padding: 9px 14px; border-bottom: 1px solid var(--border); }
.data-table tbody tr:nth-child(even) { background: var(--bg); }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%; background: none; border: none;
  text-align: left; padding: 16px 0;
  font-size: .95rem; font-weight: 700; color: var(--slate);
  cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; gap: 12px; font-family: inherit;
}
.faq-icon { color: var(--brand); font-size: 1.3rem; min-width: 20px; text-align: center; }
.faq-a { display: none; font-size: .9rem; color: #475569; line-height: 1.8; padding-bottom: 16px; }
.faq-a.open { display: block; }

/* ── INFO LIST (sidebar) ── */
.info-list { display: flex; flex-direction: column; gap: 12px; list-style: none; }
.info-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; line-height: 1.55; }
.il-dot {
  width: 22px; height: 22px; min-width: 22px;
  background: var(--brand-lt); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .68rem; font-weight: 800; color: var(--brand-dk);
  margin-top: 1px;
}

/* ── TOOL GRID (hub pages) ── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px; margin-top: 28px;
}
.tool-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none; color: inherit;
  transition: transform .18s, box-shadow .18s, border-color .18s;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--shadow);
}
.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand);
}
.tool-card .tc-flag { font-size: 2rem; }
.tool-card .tc-title { font-size: 1rem; font-weight: 700; color: var(--slate); }
.tool-card .tc-desc { font-size: .84rem; color: var(--muted); line-height: 1.55; }
.tool-card .tc-cta {
  margin-top: auto; padding-top: 12px;
  font-size: .8rem; font-weight: 700;
  color: var(--brand); display: flex; align-items: center; gap: 4px;
}

/* ── DIVIDER ── */
hr.divider { border: none; border-top: 1px solid var(--border); margin: 28px 0; }

/* ── FOOTER ── */
.site-footer {
  background: var(--slate-2); color: #94a3b8;
  text-align: center; padding: 32px 16px;
  font-size: .82rem; margin-top: 40px;
}
.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer .footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 10px; flex-wrap: wrap; }

/* ── UTILITIES ── */
.text-muted { color: var(--muted); }
.mt-0 { margin-top: 0 !important; }
.section-label {
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .09em;
  color: var(--brand); margin-bottom: 8px; display: block;
}
