* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #eef2f7;
    color: #1f2937;
}

.header {
    background: #ffffff;
    border-bottom: 1px solid #dbe1e8;
    padding: 12px 20px;
}

.header img {
    display: block;
    max-width: 620px;
    width: 100%;
    max-height: 90px;
    object-fit: contain;
    margin: auto;
}

.navbar {
    background: #293896;
    padding: 10px 20px;
}

.navbar a {
    color: white;
    text-decoration: none;
    margin-right: 18px;
    font-size: 14px;
    font-weight: bold;
}

.navbar a:hover {
    text-decoration: underline;
}

.contenedor {
    max-width: 1200px;
    margin: auto;
    padding: 25px;
}

.titulo-pagina {
    margin-bottom: 20px;
}

.titulo-pagina h1 {
    margin: 0;
    color: #293896;
    font-size: 26px;
}

.titulo-pagina p {
    color: #64748b;
    margin-top: 5px;
}

.panel {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    margin-bottom: 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
}

.tarjeta {
    display: block;
    background: white;
    border-radius: 8px;
    padding: 20px;
    text-decoration: none;
    color: #1f2937;
    border-left: 5px solid #293896;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    transition: .2s;
}

.tarjeta:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(0, 0, 0, .13);
}

.tarjeta h2 {
    margin: 0 0 8px 0;
    color: #293896;
    font-size: 18px;
}

.contador {
    font-size: 28px;
    font-weight: bold;
}

.descripcion {
    margin-top: 5px;
    color: #64748b;
    font-size: 13px;
}

.formulario {
    max-width: 700px;
}

.campo {
    margin-bottom: 16px;
}

.campo label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
}

input,
select,
textarea {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    background: white;
    font-size: 14px;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #293896;
    box-shadow: 0 0 0 2px rgba(41, 56, 150, .12);
}

input[type="checkbox"] {
    width: auto;
}

.mensaje-info {
    margin-top: 5px;
    color: #64748b;
    font-size: 12px;
}

.mensaje-error {
    color: #991b1b;
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 5px;
    padding: 10px 12px;
    margin-bottom: 18px;
}

.mensaje-exito {
    color: #166534;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    border-radius: 5px;
    padding: 10px 12px;
    margin-bottom: 18px;
}

.acciones {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.boton {
    display: inline-block;
    border: none;
    background: #293896;
    color: white;
    text-decoration: none;
    padding: 9px 14px;
    border-radius: 5px;
    font-size: 13px;
    cursor: pointer;
}

.boton:hover {
    background: #202d78;
}

.boton-secundario {
    background: #475569;
}

.boton-secundario:hover {
    background: #334155;
}

.boton-exito {
    background: #15803d;
}

.boton-exito:hover {
    background: #166534;
}

.boton-peligro {
    background: #b91c1c;
}

.boton-peligro:hover {
    background: #991b1b;
}

.tabla-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th {
    background: #293896;
    color: white;
    text-align: left;
    padding: 10px;
    font-size: 13px;
}

td {
    padding: 9px 10px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 13px;
}

tbody tr:nth-child(even) {
    background: #f8fafc;
}

tbody tr:hover {
    background: #eef2ff;
}

.estado-pendiente {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
}

.estado-pagado {
    display: inline-block;
    background: #dcfce7;
    color: #166534;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
}

.footer {
    text-align: center;
    color: #64748b;
    font-size: 12px;
    padding: 20px;
}

@media (max-width: 768px) {
    .contenedor {
        padding: 15px;
    }

    .navbar a {
        display: inline-block;
        margin-bottom: 6px;
    }

    th,
    td {
        font-size: 12px;
    }
}