/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    padding: 20px;
}

/* Títulos */
h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #1e88e5;
}

h2 {
    margin-top: 30px;
    margin-bottom: 10px;
    color: #1565c0;
}

/* Botones */
button {
    padding: 10px 20px;
    background-color: #1e88e5;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1rem;
    margin-top: 10px;
}

button:hover {
    background-color: #1565c0;
}

/* Formularios */
form {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

input, select {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

/* Tablas */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

thead {
    background-color: #1e88e5;
    color: white;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

tbody tr:hover {
    background-color: #f1f7ff;
}

/* Resumen */
#resumen {
    background-color: #e3f2fd;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    font-weight: bold;
    text-align: center;
}

/* Ajustes móviles */
@media (max-width: 600px) {
    form {
        width: 90%;
    }

    table, th, td {
        font-size: 0.9rem;
    }

    button {
        width: 100%;
    }
}
/* Reset y tipografía */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    padding: 20px;
}

/* Títulos */
h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #1e88e5;
}

h2 {
    margin-top: 30px;
    margin-bottom: 10px;
    color: #1565c0;
}

/* Botones */
button {
    padding: 10px 20px;
    background-color: #1e88e5;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1rem;
    margin-top: 10px;
}

button:hover {
    background-color: #1565c0;
}

/* Formularios */
form {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

input, select {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

/* Dashboard tarjetas */
.dashboard {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.card {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.05);
    width: 250px;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-3px);
}

.card h3 {
    margin-bottom: 10px;
}

.card p {
    margin-bottom: 5px;
}

/* Colores por estado */
.activo {
    border-left: 5px solid #43a047;
}

.saldado {
    border-left: 5px solid #9e9e9e;
}

/* Abonos lista */
.abonos-list {
    max-width: 700px;
    margin: 0 auto;
    list-style: none;
}

.abonos-list li {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

/* Resumen */
#resumen {
    background-color: #e3f2fd;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: bold;
}

/* Ajustes móviles */
@media (max-width: 600px) {
    form, .card {
        width: 90%;
    }

    button {
        width: 100%;
    }
}
