* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    min-height: 100vh;
    background: #0B4FAF;
    color: #fff;
}

.body-login,
.body-app {
    position: relative;
    overflow-x: hidden;
}

.watermark {
    position: fixed;
    inset: 0;
    background-image: url('../img/incra_logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 420px;
    opacity: 0.10;
    pointer-events: none;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 450px;
    background: #F8FBFF;
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.20);
    position: relative;
    z-index: 1;
}

.logo-area {
    text-align: center;
    margin-bottom: 22px;
}

.logo-login {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin-bottom: 12px;
}

.logo-area h1 {
    color: #0F172A;
    font-size: 30px;
    margin-bottom: 8px;
}

.logo-area p {
    color: #64748B;
    font-size: 14px;
}

label {
    display: block;
    color: #1E3A8A;
    font-weight: bold;
    margin-bottom: 6px;
    margin-top: 14px;
}

input,
select {
    width: 100%;
    height: 52px;
    border: 1px solid #BFDBFE;
    border-radius: 14px;
    padding: 0 16px;
    font-size: 15px;
    outline: none;
}

button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border: none;
    border-radius: 14px;
    padding: 12px 18px;
    text-decoration: none;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    transition: 0.2s ease;
}

button:hover,
.btn:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.login-card button {
    width: 100%;
    margin-top: 22px;
    background: #1E3A8A;
}

.usuarios-info {
    margin-top: 18px;
    text-align: center;
    color: #64748B;
    font-size: 12px;
}

.alerta-error {
    background: #FEE2E2;
    color: #991B1B;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 14px;
    font-size: 14px;
}

.contenedor {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px;
    position: relative;
    z-index: 1;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.topbar h1 {
    font-size: 30px;
    margin-bottom: 4px;
}

.topbar p {
    color: #D6E4FF;
    font-size: 14px;
}

.acciones-grid,
.acciones-secundarias {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.acciones-grid .btn,
.acciones-secundarias .btn {
    flex: 1 1 220px;
}

.acciones-secundarias {
    margin-bottom: 18px;
}

.btn-rojo {
    background: #DC2626;
}

.btn-azul-oscuro {
    background: #1E3A8A;
}

.btn-azul {
    background: #2563EB;
}

.btn-morado {
    background: #7C3AED;
}

.btn-verde {
    background: #059669;
}

.btn-celeste {
    background: #60A5FA;
}

.lista-productos {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-item {
    background: rgba(16, 63, 145, 0.40);
    border: 1px solid rgba(59, 130, 246, 0.55);
    border-radius: 14px;
    padding: 16px;
}

.producto-descripcion {
    font-size: 18px;
    font-weight: bold;
    color: #FFFFFF;
}

.producto-cantidad {
    margin-top: 8px;
    font-size: 15px;
    color: #D6E4FF;
}

@media (max-width: 768px) {
    .topbar {
        flex-direction: column;
        align-items: stretch;
    }
}
.subtitulo-app {
    color: #D6E4FF;
    font-size: 14px;
    margin-top: 4px;
    margin-bottom: 20px;
}

.contenedor-form {
    max-width: 760px;
}

.form-card {
    background: rgba(16, 63, 145, 0.40);
    border: 1px solid rgba(59, 130, 246, 0.55);
    border-radius: 18px;
    padding: 18px;
}

.form-card label {
    color: #FFFFFF;
}

.form-card input,
.form-card select {
    margin-bottom: 10px;
}

.acciones-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.acciones-form .btn,
.acciones-form button {
    flex: 1 1 220px;
}

.alerta-ok {
    background: #DCFCE7;
    color: #166534;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 14px;
    font-size: 14px;
}

.btn-gris {
    background: #334155;
}

.tabla-wrap {
    width: 100%;
    overflow-x: auto;
    background: rgba(16, 63, 145, 0.25);
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: 16px;
}

.tabla-web {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.tabla-web th,
.tabla-web td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.tabla-web th {
    background: rgba(0, 0, 0, 0.15);
    color: #FFFFFF;
}

.tabla-web td {
    color: #E2E8F0;
}