* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    background: #eef0f2;
    color: #1a2b3c;
}
header.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 16px 32px;
    border-bottom: 1px solid #d5d9dd;
}
header.topbar .logo { font-size: 22px; font-weight: 700; color: #33475b; }
header.topbar .logo span { color: #e2334d; }
header.topbar .titulo { font-size: 18px; color: #33475b; }
header.topbar .usuario { display: flex; align-items: center; gap: 14px; font-size: 15px; }
header.topbar a.logout { color: #7a8a99; text-decoration: none; font-size: 13px; }
header.topbar a.logout:hover { text-decoration: underline; }

.contenedor { max-width: 1100px; margin: 24px auto; padding: 0 20px; }

.barra-busqueda { display: flex; gap: 10px; margin-bottom: 20px; }
.barra-busqueda input, .barra-busqueda select {
    padding: 10px 12px;
    border: 1px solid #33475b;
    border-radius: 4px;
    font-size: 15px;
}
.barra-busqueda input[type=text] { flex: 1; }
.btn {
    background: #1a2b3c;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    text-decoration: none;
    display: inline-block;
}
.btn:hover { background: #33475b; }
.btn-secundario { background: #7a8a99; }
.btn-secundario:hover { background: #5c6b78; }

table.lista { width: 100%; border-collapse: collapse; background: #fff; }
table.lista th, table.lista td { padding: 12px 14px; border-bottom: 1px solid #e2e6ea; text-align: left; }
table.lista th { background: #f4f6f8; color: #33475b; }
table.lista tr:hover { background: #f9fafb; cursor: pointer; }

.form-fila { display: flex; gap: 24px; margin-bottom: 18px; flex-wrap: wrap; }
.form-fila .campo { flex: 1; min-width: 200px; }
.campo label { display: block; margin-bottom: 6px; font-weight: 600; color: #33475b; }
.campo input, .campo select {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #33475b;
    border-radius: 4px;
    font-size: 15px;
}

.paso-bloque { border: 1px solid #33475b; border-radius: 6px; padding: 18px; margin-bottom: 20px; background: #fff; }
.paso-bloque h3 { margin-top: 0; color: #33475b; }
.paso-columnas { display: flex; gap: 20px; }
.paso-columnas > div { flex: 1; }
.paso-columnas h4 { color: #33475b; margin-bottom: 8px; }

textarea.procedimiento-texto {
    width: 100%;
    min-height: 200px;
    border: 1px solid #33475b;
    border-radius: 4px;
    padding: 10px;
    font-size: 15px;
    resize: vertical;
}

.zona-pegar {
    min-height: 200px;
    border: 1px solid #33475b;
    border-radius: 4px;
    background: repeating-linear-gradient(45deg, #f7f8f9, #f7f8f9 10px, #f2f3f4 10px, #f2f3f4 20px);
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 8px;
    padding: 10px;
    position: relative;
}
.zona-pegar.arrastrando { outline: 2px dashed #e2334d; }
.zona-pegar .placeholder {
    width: 100%;
    text-align: center;
    color: #8a97a3;
    padding-top: 70px;
    font-size: 14px;
    pointer-events: none;
}
.zona-pegar img.miniatura {
    max-height: 140px;
    max-width: 100%;
    border: 1px solid #ccd2d8;
    border-radius: 4px;
}
.zona-pegar .miniatura-wrap { position: relative; }
.zona-pegar .quitar-captura {
    position: absolute; top: -6px; right: -6px;
    background: #e2334d; color: #fff; border: none;
    width: 20px; height: 20px; border-radius: 50%;
    cursor: pointer; font-size: 12px; line-height: 1;
}

.acciones-paso { margin-top: 10px; display: flex; justify-content: space-between; }
.quitar-paso { background: none; border: none; color: #e2334d; cursor: pointer; font-size: 13px; }

.login-box {
    max-width: 360px;
    margin: 90px auto;
    background: #fff;
    padding: 32px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.login-box h2 { text-align: center; color: #33475b; }
.login-box .campo { margin-bottom: 16px; }
.error { color: #e2334d; font-size: 14px; margin-bottom: 12px; }

.adjunto-fila { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
