/* ====== ESTILO GENERAL ====== */

body{
font-family:'Segoe UI',sans-serif;
background:linear-gradient(135deg,#1f0a18,#8b005d);
margin:0;
min-height:100vh;
display:flex;
justify-content:center;
align-items:center;
padding:30px;
color:#333;
}

/* pantallas */

.pantalla{
display:none;
width:100%;
max-width:520px;
}

.activa{
display:block;
animation:fade .35s ease;
}

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

/* tarjeta */

.card{
background:rgb(241, 241, 241);
padding:28px;
border-radius:18px;
box-shadow:0 20px 40px rgba(0,0,0,.35);
}

/* titulo */

h2{
text-align:center;
margin-bottom:20px;
font-weight:600;
color:#8b005d;
}

/* campos */

.campo{
margin-bottom:15px;
display:flex;
flex-direction:column;
}

label{
font-size:13px;
margin-bottom:6px;
color:#555;
}

/* inputs */

input,select{
padding:12px;
border-radius:10px;
border:1px solid rgb(241, 241, 241);
font-size:14px;
transition:.2s;
}

input[type="date"]{
width:100%;
box-sizing:border-box;
}

input:focus,select:focus{
outline:none;
border-color:#c2187a;
box-shadow:0 0 0 2px rgba(194,24,122,.2);
}

/* botones */

button{
background:#c2187a;
color:rgb(241, 241, 241);
border:none;
padding:12px;
border-radius:10px;
font-size:14px;
cursor:pointer;
transition:.2s;
}

button:hover{
background:#a01464;
}

.btn-sec{
background:#555;
}

.btn-sec:hover{
background:#333;
}

/* header de lista */
.lista-header{
display:flex;
align-items:center;
justify-content:space-between;
gap:8px;
margin-bottom:12px;
}

/* botones en linea */

.fila{
display:flex;
gap:10px;
align-items:center;
}

.btn-inline{
padding:10px 12px;
}

/* lista terceros */

.item{
background:rgb(241, 241, 241);
padding:18px;
margin-bottom:14px;
border-radius:14px;
box-shadow:0 8px 20px rgba(0,0,0,.12);
cursor:pointer;
transition:.2s;
border-left:5px solid #c2187a;
}

.item:hover{
transform:translateY(-4px);
box-shadow:0 12px 25px rgba(0,0,0,.18);
}

.nombre{
font-size:16px;
font-weight:600;
margin-bottom:6px;
color:#8b005d;
}

.info{
font-size:13px;
color:#666;
margin-bottom:3px;
}

.modalidad{
display:inline-block;
margin-top:8px;
background:#c2187a;
color:rgb(241, 241, 241);
padding:5px 10px;
border-radius:8px;
font-size:12px;
}


/* factores */

.lista-factores{
list-style:none;
padding:0;
margin-top:10px;
}

.lista-factores li{
display:flex;
justify-content:space-between;
background:rgb(241, 241, 241);
padding:8px;
border-radius:8px;
margin-bottom:6px;
font-size:13px;
}

.lista-factores button{
background:#ff4da6;
padding:6px 8px;
font-size:12px;
}

/* info base */

.info-base{
background:rgb(241, 241, 241);
padding:12px;
border-radius:10px;
margin:12px 0;
font-weight:600;
color:#8b005d;
}

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

.resultadoCard{
background: rgb(241, 241, 241);
padding:16px;
border-radius:12px;
box-shadow:0 6px 15px rgba(0,0,0,.12);
margin-bottom:12px;
display:flex;
justify-content:space-between;
align-items:center;
}

.resultadoTitulo{
font-size:14px;
color:#666;
}

.resultadoValor{
font-size:18px;
font-weight:bold;
color:#c2187a;
}

.totalCard{
background:linear-gradient(135deg,#8b005d,#ff4da6);
color:rgb(241, 241, 241);
padding:18px;
border-radius:14px;
display:flex;
justify-content:space-between;
font-size:18px;
font-weight:bold;
margin-top:14px;
}

/* boton principal */

.botonPrincipal{
margin-top:20px;
width:100%;
padding:14px;
font-size:15px;
border-radius:12px;
background:#c2187a;
}

.botonPrincipal:hover{
background:#a01464;
}

/* modalidad nueva */

.modalidadNueva{
display:none;
margin-top:10px;
gap:10px;
}

/* tabs liquidación nuevo año */

.liquidacion-tabs{
display:flex;
gap:8px;
overflow-x:auto;
padding:6px 4px 10px;
margin:6px 0 12px;
border-radius:12px;
background:rgba(194,24,122,.08);
scrollbar-width:thin;
}

.liquidacion-tabs button{
flex:0 0 auto;
background:rgb(241, 241, 241);
color:#8b005d;
border:1px solid #c2187a;
padding:6px 12px;
border-radius:999px;
min-width:34px;
font-size:13px;
}

.liquidacion-tabs button.activa{
background:#c2187a;
color:rgb(241, 241, 241);
}

.liquidacion-tabs::-webkit-scrollbar{
height:6px;
}

.liquidacion-tabs::-webkit-scrollbar-thumb{
background:rgba(194,24,122,.4);
border-radius:999px;
}

/* responsive */

@media (max-width:480px){

body{
padding:15px;
}

.card{
padding:20px;
}

}
