:root{
  --bg:#0b1220;
  --card:#121a2b;
  --text:#e8eefc;
  --muted:#a9b7d6;
  --border:rgba(255,255,255,.08);
  --btn:#2d6cdf;
  --btn2:#1b2742;
  --danger:#ff5a7a;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(45,108,223,.25), transparent 55%),
    radial-gradient(900px 500px at 100% 10%, rgba(255,90,122,.18), transparent 60%),
    var(--bg);
  color:var(--text);
}

/* Asegura consistencia en inputs/buttons (Safari/iOS) */
input, select, button{
  font: inherit;
}

.container{
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 16px 40px;
}

.header{
  margin-bottom: 16px;
}
.header h1{
  margin: 0 0 6px;
  font-size: 28px;
  letter-spacing: .2px;
}
.header p{
  margin:0;
  color:var(--muted);
}

.card{
  background: rgba(18,26,43,.9);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.sub{
  margin: 0 0 10px;
  font-size: 16px;
  opacity: .92;
}

/* ===== FORM ===== */

.form .grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 680px){
  .form .grid{ grid-template-columns: 1fr; }
}

.field label{
  display:block;
  font-weight: 600;
  margin-bottom: 8px;
}

.field input,
.field select{
  width:100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.22);
  color: var(--text);
  outline: none;
}

.field input:focus,
.field select:focus{
  border-color: rgba(45,108,223,.8);
  box-shadow: 0 0 0 4px rgba(45,108,223,.15);
}

.hint{
  display:block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

/* ===== SWITCH (SÁBADO INGLÉS) ===== */

.field .switch-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.22);
}

.field .switch-row span{
  font-weight: 600;
  color: var(--text);
}

.switch{
  position:relative;
  display:inline-block;
  width:52px;
  height:28px;
}

.switch input{
  opacity:0;
  width:0;
  height:0;
  position:absolute;
}

.slider{
  position:absolute;
  cursor:pointer;
  inset:0;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  border:1px solid var(--border);
  transition:.2s;
}

.slider:before{
  content:"";
  position:absolute;
  height:22px;
  width:22px;
  left:3px;
  top:3px;
  border-radius:999px;
  background:#fff;
  transition:.2s;
}

.switch input:checked + .slider{
  background: var(--btn);
  border-color: rgba(45,108,223,.6);
}

.switch input:checked + .slider:before{
  transform: translateX(22px);
}

.switch input:focus-visible + .slider{
  box-shadow: 0 0 0 4px rgba(45,108,223,.18);
}

/* ===== BOTONES ===== */

.actions{
  display:flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--btn);
  color: #fff;
  text-decoration:none;
  font-weight: 700;
  cursor:pointer;
}

.btn.secondary{
  background: var(--btn2);
  border-color: var(--border);
  color: var(--text);
}

.btn:hover{ filter: brightness(1.05); }

/* En mobile, botones al 100% para que queden prolijos */
@media (max-width: 680px){
  .actions .btn{
    width: 100%;
  }
}

/* ===== RESULTADOS ===== */

.result .row{
  display:flex;
  justify-content:space-between;
  gap: 10px;
  padding: 10px 6px;
  border-bottom: 1px dashed rgba(255,255,255,.08);
}

.result .row:last-child{ border-bottom:none; }

.result hr{
  border:none;
  border-top:1px solid var(--border);
  margin:14px 0;
}

.result .total{
  font-size:18px;
  border-bottom:none;
}

/* ===== ALERTAS ===== */

.alert{
  border: 1px solid rgba(255,90,122,.35);
  background: rgba(255,90,122,.08);
  padding: 14px;
  border-radius: 14px;
}

.alert ul{ margin: 10px 0 0 18px; }

/* ===== NOTA / FOOTER ===== */

.note{
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.footer{
  display:flex;
  gap: 10px;
  justify-content:center;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

/* ===== IMAGEN ESCALA SALARIAL (RESPONSIVE + SCROLL EN CELU) ===== */

.img-wrap{
  width:100%;
  overflow:auto;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
  padding: 8px;
}

/* Importante: min-width para que en celular puedas hacer scroll y leer */
.img-wrap img{
  display:block;
  height:auto;
  max-width:none;
  width:100%;
  min-width:900px;
}
