/* ENLAXOS Labs — Suite de calculadoras laborales Paraguay
   Compartido por aguinaldo, salario neto, vacaciones y liquidación. */

.tool-hero { padding-top: 96px; }
/* El nav es fixed y no ocupa lugar en el flujo: el padding tiene que superarlo
   (~75px en tablet, ~63px en movil) o el breadcrumb del hero queda tapado. */
@media (max-width: 860px) { .tool-hero { padding-top: 92px; } }
@media (max-width: 768px) { .tool-hero { padding-top: 76px; } }

body { background: var(--black); color: var(--text); font-family: var(--font-body); }

/* ── Barra de tabs entre las 4 calculadoras ───────────────────────────────── */
/* Es un <nav>, asi que hay que neutralizar el selector global de elemento
   `nav` (fixed a pantalla completa), igual que hace .breadcrumb en labs.css. */
.calc-tabs {
  position: relative;
  top: auto; left: auto; right: auto;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin-bottom: 24px;
  background: none;
  backdrop-filter: none;
  border-bottom: 0;
}

.calc-tab {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 9px 13px;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  transition: color .2s, border-color .2s, background .2s;
  white-space: nowrap;
}

.calc-tab:hover { color: var(--white); border-color: rgba(0,229,255,.35); }

.calc-tab[aria-current="page"] {
  color: var(--black);
  background: var(--cyan);
  border-color: var(--cyan);
}

/* ── Tarjeta y formulario ─────────────────────────────────────────────────── */
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 36px;
  max-width: none;
}

@media (max-width: 860px) { .tool-card { padding: 26px 20px; } }

.calc-field { margin-bottom: 18px; }

.calc-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.calc-input,
.calc-select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border-hover);
  border-radius: 12px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  padding: 14px 16px;
  outline: none;
  transition: border-color .2s;
}

.calc-select { font-size: 16px; cursor: pointer; appearance: none; -webkit-appearance: none; }
.calc-input:focus, .calc-select:focus { border-color: rgba(0,229,255,.45); }
.calc-input::placeholder { color: var(--muted); font-weight: 400; font-size: 17px; }

/* Fecha en móvil no debe desbordar */
.calc-input[type="date"] { font-size: 16px; min-height: 52px; }

.calc-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .calc-row-2 { grid-template-columns: 1fr; } }

.calc-hint { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.5; }

.calc-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  margin-bottom: 18px;
  line-height: 1.5;
}

.calc-check input { margin-top: 3px; accent-color: var(--cyan); width: 16px; height: 16px; flex-shrink: 0; }

.calc-submit {
  width: 100%;
  background: var(--cyan);
  border: 1px solid var(--cyan);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 15px 24px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: opacity .2s;
}

.calc-submit:hover { opacity: .88; }

/* ── Resultado ────────────────────────────────────────────────────────────── */
.calc-result { display: none; margin-top: 26px; }
.calc-result.is-visible { display: block; }

.calc-result-rows { border-top: 1px solid var(--border); }

.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.calc-row-label { font-size: 13px; color: var(--muted); }

.calc-row-value {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  text-align: right;
  white-space: nowrap;
}

.calc-row.is-negative .calc-row-value { color: #fb7185; }

.calc-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 20px;
  padding: 20px 22px;
  background: var(--cyan-dim);
  border: 1px solid rgba(0,229,255,.28);
  border-radius: 14px;
}

.calc-total-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.calc-total-value {
  font-family: var(--font-display);
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 800;
  color: var(--white);
  text-align: right;
  line-height: 1.2;
}

.calc-note {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.65;
  margin-top: 16px;
}

.calc-note strong { color: var(--text); }

.calc-error {
  font-size: 14px;
  color: #fb7185;
  margin-top: 20px;
  padding: 14px 16px;
  background: rgba(251,113,133,.08);
  border: 1px solid rgba(251,113,133,.25);
  border-radius: 12px;
}

.disclaimer {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.disclaimer a { color: var(--cyan); text-decoration: none; }
.disclaimer a:hover { text-decoration: underline; }

/* ── Preguntas frecuentes (contenido para SEO/AEO) ────────────────────────── */
.calc-faq { padding: 0 clamp(24px, 8vw, 160px) 110px; max-width: 900px; }

.calc-faq h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 28px;
}

.calc-faq-item { border-top: 1px solid var(--border); padding: 22px 0; }

.calc-faq-item h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.calc-faq-item p { font-size: 14.5px; color: var(--text); line-height: 1.75; }
.calc-faq-item p + p { margin-top: 10px; }
.calc-faq-item a { color: var(--cyan); text-decoration: none; }
.calc-faq-item a:hover { text-decoration: underline; }

/* ── Selector de modo (salario fijo vs. ingresos variables) ──────────────── */
.mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 22px;
  background: var(--surface-2);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-pill);
  padding: 4px;
}

.mode-tab {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 10px 12px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all .2s;
  text-align: center;
}

.mode-tab:hover { color: var(--white); }
.mode-tab.active { background: var(--cyan); color: var(--black); font-weight: 700; }

/* ── Grilla de los 12 meses ──────────────────────────────────────────────── */
.meses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

@media (max-width: 560px) { .meses-grid { grid-template-columns: repeat(2, 1fr); } }

.mes-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}

.mes-field input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border-hover);
  border-radius: 9px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 10px;
  outline: none;
  transition: border-color .2s;
}

.mes-field input:focus { border-color: rgba(0,229,255,.45); }
.mes-field input::placeholder { color: #4a4a63; font-weight: 400; }

.meses-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.meses-total-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.meses-total-value {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
}

[data-panel][hidden] { display: none; }
