
/* Basic reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #f6f8fa;
  --card: #ffffff;
  --primary: #2d9cdb;
  --primary-600: #216b9a;
  --muted: #6b7280;
  --accent: #f59e0b;
  --success: #27ae60;
  --text: #17223b;
}
body {
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, Helvetica, sans-serif;
  line-height: 1.5;
  background: linear-gradient(180deg, var(--bg), #eef3f8 100%);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
/* main */
.calculator {
  background: linear-gradient(180deg, var(--card), #fbfdff);
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(26, 36, 64, 0.08);
  display: block;
  gap: 12px;
  max-width: 920px;
  margin: 22px auto;
}
.calculator-title {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--primary-600);
  font-weight: 700;
}
.fields-grid {
  display: grid;
  grid-template-columns: 1fr; /* móvil: 1 columna */
  gap: 12px;
}



.field {
  display: flex;
  flex-direction: column;
}
.field label {
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--muted);
  font-weight: 600;
}
.field input[type="date"],
.field input[type="number"],
.field select {
  padding: 12px;
  border: 1px solid rgba(15,23,42,0.06);
  border-radius: 10px;
  background: #f8fbff;
  transition: box-shadow 0.18s ease, transform 0.06s ease, border-color 0.12s ease;
  width: 100%;
  outline: none;
}
.field input[type="date"]:focus,
.field input[type="number"]:focus,
.field select:focus {
  border-color: rgba(45,156,219,0.9);
  box-shadow: 0 6px 18px rgba(45,156,219,0.12);
  transform: translateY(-1px);
}
.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* --- Toggle genérico para radios --- */
.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Oculta los radios */
.toggle-input {
  width: 0;
  height: 0;
  position: absolute;
  opacity: 0;
}

/* Estilo base del label */
.toggle-input + .toggle-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: 8px 10px;
  border-radius: 999px;
  background: #eef6fb;
  color: var(--primary-600);
  font-weight: 700;
  border: 1px solid rgba(45,156,219,0.12);
  transition: all 0.14s ease;
  cursor: pointer;
}

/* Estilo cuando está seleccionado */
.toggle-input:checked + .toggle-label {
  background: linear-gradient(90deg, var(--primary), var(--primary-600));
  color: #fff;
  box-shadow: 0 6px 18px rgba(45,156,219,0.14);
  transform: translateY(-1px);
}

.actions {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}
.btn {
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.12s ease;
}
.btn.primary {
  background: linear-gradient(90deg, var(--primary), var(--primary-600));
  color: #fff;
  box-shadow: 0 12px 30px rgba(45,156,219,0.15);
}
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(45,156,219,0.18); }
.btn.primary:active { transform: translateY(0); box-shadow: 0 8px 22px rgba(45,156,219,0.12); }

/* Responsive */
@media (min-width:700px) {
  .fields-grid { grid-template-columns: repeat(2,1fr); gap: 14px; }
  .actions { justify-content: flex-end; }
  .btn { min-width: 160px; }
}

/* resultado */
.resultado { background:#fff; padding:12px; border-radius:6px; margin-top:12px; }

/* sections: informacion & FAQ */
.calculator-description { color: var(--muted); margin-bottom: 14px; font-size: 0.97rem; }
.informacion {
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(26,36,64,0.04);
  margin-top: 16px;
}
.informacion-inner { display:flex; gap:18px; align-items:center; }
.informacion-text { flex:1; }
.informacion-figure { width:240px; flex:0 0 240px; }
.informacion-figure img { width:100%; height:auto; border-radius:12px; box-shadow: 0 8px 24px rgba(26,36,64,0.04); }
@media (max-width:699px) { .informacion-inner { flex-direction:column-reverse; } .informacion-figure { width:100%; } }
.seo-faq {
  background: linear-gradient(180deg, var(--card), #fbfdff);
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(26,36,64,0.06);
  margin-top: 18px;
}

/* resultado */
.resultado {
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  padding: 22px;
  border-radius: 12px;
  margin-top: 20px;
  box-shadow: 0 10px 30px rgba(26,36,64,0.06);
  font-size: 0.95rem;
  animation: fadeIn 0.18s ease;
}

.result-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width:700px) {
  .result-grid { grid-template-columns: repeat(2,1fr); }
  .result-section.full { grid-column: 1 / -1; }
}

.result-section {
  background: #fff;
  padding: 14px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(15,23,42,0.03);
}

.result-title {
  font-size: 1rem;
  color: var(--primary-600);
  margin-bottom: 10px;
  font-weight: 700;
}

.result-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  background: linear-gradient(90deg,#f8fbff,#f6f9fc);
  border: 1px solid rgba(15,23,42,0.03);
  transition: transform .08s, box-shadow .12s;
}

.result-item:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15,23,42,0.06); }

.result-item .label { color: var(--muted); font-weight: 600; }
.result-item .value { color: var(--text); font-weight: 700; }

.resultado .neto {
  font-size: 1.45rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(90deg, var(--success), #1f9a56);
  padding: 14px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(39,174,96,0.12);
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

